
*,
::before,
::after {
  box-sizing: border-box;
}


/* Default Light Mode and Night mode switching*/
body {
  background-color:  #fcfccc;    /* Light yellow color */
  /* background-color: #aeae7a;    Light yellow color */
  color: #000;
  transition: background-color 0.3s ease, color 0.3s ease;
}


/* ✅ Night Mode Styling */
body.night-mode {
  /* background-color: #121212; */
  background-color: #1c252d;
  color: #ffffff;
}



/* Button Styling (Optional) */
/* 
#night-mode-toggle {
  background: black;
  border: 1px solid #ccc;
  border-radius: 30%;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 20px;
  color: rgb(231, 77, 77);
}
*/


/* Button Styling (Optional) */
/* 
#night-mode-toggle.night-mode {
  background: lightyellow;
  border: 1px solid #ccc;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 20px;
  color: rgb(231, 77, 77);
}
*/

/* ✅ Default Button Styling */
#night-mode-toggle {
  background: grey;
  border: 1px solid #ccc;
  border-radius: 15%;
  padding: 8px 12px; /* ✅ Keep constant padding */
  width: 50px;        /* 🔥 Fixed width */
  height: 50px;       /* 🔥 Fixed height */
  cursor: pointer;
  font-size: 20px;    /* 🔥 Bigger text/emoji */
  margin-left: 20px;
  color: lightyellow;
  text-align: center;
  line-height: 50px; /* 🔥 Center text vertically */
  transition: background 0.7s ease, color 0.7s ease, transform 0.3s ease;
  overflow: hidden;  /* 🔥 Prevent content push */
}

#night-mode-toggle:hover {
  transform: scale(1.1); /* ✅ Slight enlarge on hover */
}

/* Night Mode Styling */
body.night-mode #night-mode-toggle {
  background: rgb(241, 123, 80);
  color: black;
}

/* Header Styles */
header {
  background-color: lightyellow;
}

body.night-mode header {
  background: #222;
  color: white;
}


/* ✅ Expand on hover */
/* #night-mode-toggle:hover {
  transform: scale(1.1);
  padding: 10px 15px;
}
 */

/* back to original*/
/* 
on line-height
Most browsers interpret normal default value if none is specified as roughly 1.2 to 1.4 times the font size. 
A range was given because the value is not a fixed number- it depends on the browser and font. 
However: For article/post text (especially in Wagtail-rich text or streamfields), line-height: 1.5 to 1.7 is often a sweet spot.
 */

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif, Apple Color Emoji, "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.6;
}

body {
  min-height: 100vh;
  /* max-width: 1200px; */
  /* max-width: 1000px; */
  /* max-width: 800px; */
  max-width: 960px;

  margin: 0 auto;
  padding: 10px;
  /* padding: 100px; */
  display: grid;
  gap: 3vw;
  grid-template-rows: min-content 1fr min-content;
}


a {
  color: currentColor;
  text-decoration: none;
  display: inline-block; /* Ensures transform works */
  /* color: var(--text-color, #000); Default text color */
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

a:hover {
  transform: scale(1.35); /* Enlarge text by 10% */
  color: var(--hover-text-color,  #ffcc00); /* #ffcc00 Soft gold for good visibility */
  text-shadow: 
      0px 0px 5px var(--hover-shadow-color, rgba(255, 204, 0, 0.7)), /* Outer glow */
      2px 2px 5px var(--hover-shadow-color, rgba(255, 204, 0, 0.5)); /* Soft shadow */
}


footer {
  border-top: 2px dotted;
  text-align: center;
}

/* start nav drop down options */
/* 
/* end nav drop down options */



/* Apply the same shadow effect as the header */
.authorpic {
  box-shadow: 0 4px 8px rgba(32, 142, 1, 0.1),  
              0 6px 20px rgba(1, 230, 36, 0.2); 3D shadow
              /* 0 6px 20px rgba(0, 0, 0, 0.2); 3D shadow */
  border-radius: 5px; /* Keeps the rounded effect */
}

/* ✅ Dark Mode Styling */
body.night-mode .authorpic {
  box-shadow: 0 4px 8px rgba(243, 128, 128, 0.1),  
              0 6px 20px rgba(250, 121, 121, 0.616); /* 3D shadow */
}



.template-homepage main {
  text-align: center;

}


.cta-button {
  /* font-size: 18px; */
  /* font-weight: bold; */
  text-decoration: none;
}

.cta-button:hover {
  text-decoration: underline;
  color: green !important; /* Change text color to green on hover */
}


.fortune-cookie {
  border: 1px dotted currentColor; 
  padding: 30px 50px;
  text-align: center;
  position: relative;
  /* background-color: white;  */
  border-radius: 15px; /* Curved edges for the slip */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  /* max-width: 400px; */
  margin: 20px auto;
}



/*
the following styles are not effecting skip to content (main)
header hyperlink (at leaste in the ~wagtail/rejournal version)
*/

main .skip-link {
  position: absolute;
  top: -30px;
}

main .skip-link:focus-visible {
  top: 5px;
}


/* Style the tag buttons for blog related sites*/
.tag-button {
  /* background-color: currentbackground-color;  */
  color: currentColor; 
  background-color: inherit;
  border: 1px solid currentColor; /* Border color adapts to text */
  border-radius: 7px; /* Rounded corners */
  padding: 5px 10px; /* Add padding */
  cursor: pointer; /* Change cursor to pointer */
  /* font-size: 10px; */
  font-size: 0.65rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: bold;

}


/* Add focus effect for accessibility */
.tag-button:focus {
  outline: 2px solid #0056b3; /* Focus outline */
  outline-offset: 2px; /* Offset outline for clarity */
}

/* Active filter button */
.tag-button.active {
  background-color: #0056b3; /* Blue highlight for active button */
  color: white;
  font-weight: bold;
  border-color: #0056b3;
  transform: scale(1.1);
}

.tag-button.onpage {
  background-color: white; /* Blue highlight for active button */
  color: #0056b3;
  font-weight: bold;
  border-color: #0056b3;
  transform: scale(1.1);
}
/* Add hover effect */
.tag-button:hover {
  background-color: #ffc022; 
  color: black;
  transform: scale(1.1); /* Slightly enlarge button */
}
/* 
.tag-container {
  display: flex;
  justify-content: flex-end;
  align-items: center; 
  gap: 10px; 
  padding-right: 20px; 
}
*/

.tag-container {
  display: flex;
  flex-wrap: wrap;              /* 🔹 Allow items to wrap */
  gap: 10px;                    /* 🔹 Add spacing between buttons */
  justify-content: flex-start; /* 🔹 Align to the left (or center, or right as needed) */
  padding-left: 50px;          /* 🔹 Indent from left (optional) */
  max-width: 100%;             /* ✅ Prevent overflow */
  box-sizing: border-box;      /* ✅ Respect padding within total width */
}


.sort-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;              /* space between buttons */
  /* margin: 1rem 0;          */
  margin: 1em 0;
  justify-content: flex-start;  /* could use center or space-between if needed */
  align-items: right;
}
/* 
.sort-controls {
  margin: 1em 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
 */



.sort-controls {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.sort-button {
  padding: 0.2rem 0.4rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f0f0f0;
  color: black;
  cursor: pointer;
}
.sort-controls {
  display: flex;
  gap: 20px;
  margin: 1rem 0;
}

.sort-button {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 0.001rem 0.05rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
}

.sort-button:hover {
  /* background-color: #e0e0e0; */
  background-color:  #ffc022;
  color: black;
}



.sort-button.active {
  background: #dbeafe; /* soft blue */
  border-color: #3b82f6; /* accent border */
  color: #1e40af; /* strong blue text */
  font-weight: bold;
}




/* for styling the contacts homepage */

/* Apply Times New Roman to the page intro */
.about-intro {
  /* font-family: "Times New Roman", Times, serif; */
  /* font-family: "Garamond", Times, serif; */
  line-height: 2; /* Double spacing */

}

.page-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}


.page-form :is(textarea, input, select) {
    width: 100%;
    background-color: rgb(130, 203, 239);
    color: black;
    max-width: 500px;
    min-height: 40px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.page-form .helptext {
    /* font-style: italic; */
    font-style: bold;
}


/* Center the form container */


/* rjn app, includes all templates eg rjn_utils_block.html */
.rjn-date {
  line-height: 1;
  margin: 0.25em 0; /* optional: tight vertical spacing */
}


/* rjn app and the nav menu */

.concern-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* if you want mobile responsiveness */
  padding: 20px;
  margin-top: -1em;
}

.concern-item {
  position: relative; /* ✅ ADD THIS */
  display: flex;
  align-items: center;
  margin-right: 1em; /* space between items */
}

.concern-all-link {
  padding-left: 1em;
}

.concern-item::after {
  /* content: "•"; */
  content: "+";
  margin-left: 0.8em;
  color: #888;
}

/* Remove bullet after last item */
.concern-item:last-child::after {
  content: "";
}



 .topic-dropdown {
  display: none;
  position: absolute;
  top: 100%; /* ⬅️ Below the concern link */
  left: 50%; /* ⬅️ Centered under the concern */
  transform: translateX(-50%); /* ⬅️ Pull it back half-width */
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 150px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  white-space: nowrap; /* prevents weird wrapping inside */
}

.topic-dropdown a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
}

.topic-dropdown a:hover {
  background-color: #f0f0f0;
}

.concern-item:hover .topic-dropdown {
  display: block;
}




/* REUSABLE CSS */
.spacer-xxl {
  height: 250em;
}
/* <div class="spacer-xxl"></div> */

.all-caps {
  text-transform: uppercase;
}
