/* Roots of Reason Parent Resources - v7 Design */
@import url('https://fonts.googleapis.com/css2?family=Gentium+Plus:ital,wght@0,400;0,700;1,400&display=swap');

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

html { scroll-behavior: smooth; }

:root {
  --sage-green: #265c2f;
  --sage-dark: #0f2f1d;
  --text-dark: #2d3a2d;
  --parchment: #faf8f3;
  --cream: #f5f1e8;
  --line: #d4cbbe;
  --font-palatino: Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --font-gentium: 'Gentium Plus', Georgia, serif;
}

body {
  font-family: var(--font-gentium);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--cream);
}

.site-header { background: var(--sage-dark); position: relative; }
.nav-container { 
  max-width: 1250px; 
  margin: 0 auto; 
  padding: 14px 24px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}
.logo { 
  font-family: var(--font-palatino); 
  font-size: 1.7rem; 
  color: #fff; 
  text-decoration: none; 
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { 
  font-size: 1rem; 
  color: rgba(255,255,255,0.85); 
  text-decoration: none; 
  padding: 6px 10px;
  border-radius: 4px;
}
.nav-links a:hover { 
  background: rgba(255,255,255,0.1); 
  color: #fff;
}
.nav-links a.active { 
  color: #fff; 
  border-bottom: 2px solid #fff;
}

.page-wrapper { 
  max-width: 1250px; 
  margin: 0 auto; 
  padding: 24px; 
  background: var(--parchment); 
  min-height: calc(100vh - 100px); 
  border-left: 1px solid var(--line); 
  border-right: 1px solid var(--line); 
}

/* Jump-to section bar - hidden on desktop, shown on mobile */
.jump-to { display: none; }

.page-with-toc { 
  max-width: 1250px; 
  margin: 0 auto; 
  background: var(--parchment); 
  min-height: calc(100vh - 100px); 
  border-left: 1px solid var(--line); 
  border-right: 1px solid var(--line); 
  display: grid; 
  grid-template-columns: 240px 1fr 260px;
}

.toc { 
  padding: 24px 20px; 
  border-right: 1px solid var(--line); 
  font-size: 0.95rem; 
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}
.toc-label { 
  font-size: 1.1rem; 
  letter-spacing: 0.05em; 
  color: var(--sage-green); 
  margin-bottom: 12px; 
  font-weight: 600;
  padding-left: 28px;
}
.toc ol { list-style: none; counter-reset: toc; margin: 0 -20px; padding: 0; }
.toc li { 
  counter-increment: toc; 
  margin-bottom: 0; 
  padding: 10px 20px 10px 48px; 
  text-indent: -28px; 
}
.toc li:hover {
  background: rgba(38, 92, 47, 0.1);
}
.toc li::before { content: counter(toc, upper-roman) "."; margin-right: 8px; color: var(--sage-green); font-size: 0.85em; }
.toc a { color: var(--text-dark); text-decoration: none; }
.toc a:hover { color: var(--sage-green); }

main { padding: 24px 28px; }

/* Right sidebar - Quick Contacts */
.sidebar-right {
  padding: 24px 20px;
  border-left: 1px solid var(--line);
  font-size: 0.9rem;
  background: var(--cream);
}
.sidebar-right h4 {
  font-family: var(--font-palatino);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sage-green);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}
.contact-list.schools {
  margin-top: 0;
}
.sidebar-right h4.schools-header {
  margin-top: 24px;
  padding-top: 20px;
  border-top: none;
  position: relative;
}
.sidebar-right h4.schools-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sage-green), var(--line), transparent);
}
.contact-list li {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child {
  border-bottom: none;
}
.contact-list .org {
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 2px;
}
.contact-list .phone {
  font-family: var(--font-gentium);
  color: var(--sage-green);
  font-size: 1rem;
}
.contact-list .phone a {
  color: var(--sage-green);
  text-decoration: none;
}
.contact-list .phone a:hover {
  text-decoration: underline;
}
.contact-list .website {
  font-size: 0.8rem;
  display: block;
  margin-top: 2px;
}
.contact-list .website a {
  color: var(--sage-green);
  text-decoration: none;
}
.contact-list .website a:hover {
  text-decoration: underline;
}
.contact-list .note {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin-top: 2px;
  background: none;
  padding: 0;
}

h1 { font-family: var(--font-palatino); font-size: 2.2rem; font-weight: 400; margin-bottom: 4px; color: var(--text-dark); letter-spacing: -0.02em; }
h1::after { content: ""; display: block; width: 60px; height: 2px; background: var(--sage-green); margin-top: 8px; }
h2 { font-family: var(--font-palatino); font-size: 1.5rem; font-weight: 400; margin-top: 28px; margin-bottom: 10px; color: var(--sage-green); scroll-margin-top: 20px; }
h3 { font-family: var(--font-gentium); font-size: 1.15rem; font-weight: 700; margin-top: 18px; margin-bottom: 6px; font-style: italic; scroll-margin-top: 20px; }
p { margin-bottom: 12px; }
a { color: var(--sage-green); }

ul, ol { margin: 10px 0 14px; padding-left: 28px; }
li { margin-bottom: 6px; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--sage-green); color: #fff; font-weight: 700; font-family: var(--font-palatino); }
tr.section-header td {
  background: rgba(38, 92, 47, 0.15);
  color: var(--sage-green);
  font-weight: 700;
  font-family: var(--font-palatino);
  font-size: 0.9rem;
  padding: 8px 12px;
}

/* Comparison table (IEP vs 504) */
.comparison-table {
  border: none;
  margin: 1.5rem 0;
  border-top: 2px solid var(--sage-dark);
}
.comparison-table th,
.comparison-table td {
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.25rem;
  vertical-align: top;
}
.comparison-table thead th {
  background: transparent;
  color: var(--sage-dark);
  font-family: var(--font-palatino);
  font-size: 1rem;
  font-weight: 600;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sage-dark);
}
.comparison-table thead th:first-child {
  width: 18%;
}
.comparison-table tbody td:first-child {
  font-family: var(--font-palatino);
  font-weight: 600;
  color: var(--sage-dark);
  font-size: 0.9rem;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table tbody tr:hover td {
  background: rgba(38, 92, 47, 0.03);
}

.note { background: var(--cream); padding: 12px 16px; margin: 14px 0; border-radius: 2px; }
.note strong { color: var(--sage-green); }
.note.warning { border-left: 3px solid #c9a227; }

/* Section dividers */
.section-divider {
  height: 1px;
  margin: 32px 0;
  background: linear-gradient(90deg, transparent, rgba(38, 92, 47, 0.2), transparent);
}

/* Collapsible sidebar sections */
.sidebar-section {
  margin-bottom: 16px;
}
.sidebar-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  user-select: none;
}
.sidebar-section-header h4 {
  margin: 0;
}
.sidebar-section-header .toggle {
  font-size: 0.8rem;
  color: var(--sage-green);
  transition: transform 0.2s;
}
.sidebar-section.collapsed .toggle {
  transform: rotate(-90deg);
}
.sidebar-section.collapsed .contact-list {
  display: none;
}
.sidebar-section .contact-list {
  margin-top: 8px;
}
.schools-header-divider {
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(90deg, transparent, rgba(38, 92, 47, 0.2), transparent);
}

.session-note { margin-bottom: 24px; }
.session-date { font-size: 0.85rem; color: #888; font-style: italic; margin-bottom: 6px; }
.session-note h3 { margin-top: 8px; }

.quick-links { margin-bottom: 20px; }
.quick-links-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage-green); margin-bottom: 6px; }
.quick-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.quick-links a { font-size: 0.95rem; }

footer { max-width: 1250px; margin: 0 auto; background: var(--sage-dark); color: rgba(255,255,255,0.8); font-size: 0.85rem; padding: 16px 24px; text-align: center; }

/* ============================================
   MOBILE NAVIGATION SYSTEM
   ============================================ */

/* Hamburger button - hidden on desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav dropdown - uses max-height for smooth animation */
.nav-dropdown {
  max-height: 0;
  overflow: hidden;
  background: var(--sage-dark);
  transition: max-height 0.3s ease-in-out;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.nav-dropdown.active {
  max-height: 500px;
}
.nav-dropdown .nav-links {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav-dropdown .nav-links li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-dropdown .nav-links li:last-child {
  border-bottom: none;
}
.nav-dropdown .nav-links a {
  display: block;
  padding: 8px 24px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.nav-dropdown .nav-links a:hover,
.nav-dropdown .nav-links a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Floating TOC button - mobile only */
.toc-fab {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--sage-green);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 999;
  color: #fff;
  font-size: 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.toc-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.toc-fab::before {
  content: "☰";
}
.toc-fab.active::before {
  content: "✕";
}

/* Mobile TOC panel */
.toc-panel {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--parchment);
  border-top: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 998;
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px 24px 80px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.toc-panel.active {
  display: block;
  transform: translateY(0);
}
.toc-panel-header {
  font-family: var(--font-palatino);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage-green);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.toc-panel ol {
  list-style: none;
  counter-reset: toc-mobile;
  margin: 0;
  padding: 0;
}
.toc-panel li {
  counter-increment: toc-mobile;
  margin: 0;
  padding: 0;
}
.toc-panel li a {
  display: block;
  padding: 12px 0;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.toc-panel li a::before {
  content: counter(toc-mobile, upper-roman) ". ";
  color: var(--sage-green);
  font-size: 0.85em;
  margin-right: 6px;
}
.toc-panel li a:active {
  background: rgba(38, 92, 47, 0.1);
}

/* Tablet: 768-1000px */
@media (max-width: 1000px) {
  .page-with-toc { grid-template-columns: 200px 1fr; }
  .sidebar-right { display: none; }
  
  .nav-links { gap: 0.5rem; }
  .nav-links a { font-size: 0.9rem; padding: 5px 8px; }
  
  /* Timeline slightly smaller */
  .timeline-h .week { font-size: 0.75rem; }
  .timeline-h .task { font-size: 0.8rem; }
  
  /* Tables scroll horizontally */
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .comparison-table { white-space: normal; }
  .comparison-table thead th:first-child { width: 22%; }
}

/* Large mobile / small tablet: 700-768px */
@media (max-width: 768px) {
  /* Tooltips adjust for smaller screens */
  .cite .tooltip {
    width: 260px;
    left: -40px;
  }
}

/* Mobile: below 700px */
@media (max-width: 700px) {
  /* Show hamburger, hide desktop nav */
  .hamburger { display: block; }
  .nav-container .nav-links { display: none; }
  .nav-container { padding: 12px 16px; }
  .logo { font-size: 1.4rem; }
  
  /* Show floating TOC button, hide sidebar TOC */
  .toc-fab { display: flex; align-items: center; justify-content: center; }
  .page-with-toc { display: block; border-left: none; border-right: none; max-width: 100%; overflow-x: hidden; }
  .page-wrapper { border-left: none; border-right: none; max-width: 100%; padding: 20px 16px; overflow-x: hidden; }
  .toc { display: none; }
  
  main { padding: 20px 16px; }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  
  /* Phase 2: Visual chunking for mobile */
  h3 { 
    margin-top: 2rem; 
  }
  
  p { 
    line-height: 1.75; 
    margin-bottom: 1.2rem;
  }
  
  /* Section dividers more prominent on mobile */
  .section-divider {
    margin: 2.5rem 0;
  }
  
  /* Timeline converts to vertical */
  .timeline-h {
    flex-direction: column;
    gap: 0;
    padding-left: 2rem;
  }
  .timeline-h::before {
    top: 0;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline-h a {
    text-align: left;
    padding: 0.75rem 0 0.75rem 1rem;
  }
  .timeline-h a::before {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }
  .timeline-h .week {
    display: inline;
    margin-right: 0.5rem;
  }
  .timeline-h .task {
    display: inline;
  }
  
  /* Resource card tighter on mobile */
  .resource-card {
    padding: 1rem 1.25rem;
  }
  
  /* Red flags box */
  .red-flags-box {
    padding: 1rem 1.25rem;
  }
  
  /* Note/quote blocks - improved legibility */
  .note {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    line-height: 1.8;
  }
  
  /* List items - more breathing room */
  li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
  }
  
  ul, ol {
    margin: 1rem 0 1.25rem;
  }
  
  /* Tooltips for mobile - prevent cutoff */
  .cite .tooltip {
    width: auto;
    left: 0;
    right: auto;
    max-width: calc(100vw - 40px);
    font-size: 0.85rem;
    padding: 10px 14px;
    z-index: 1000;
  }
  .cite .tooltip::after {
    left: 20px;
  }
  
  /* Tables - allow text wrap on mobile */
  table { white-space: normal; }
  th, td { padding: 8px 10px; font-size: 0.9rem; }
  
  /* Comparison table stacks better */
  .comparison-table thead th:first-child { width: auto; }
  .comparison-table th,
  .comparison-table td { padding: 0.7rem 0.75rem; }
  
  /* Jump-to-section bar visible on mobile */
  .jump-to {
    display: block;
    background: var(--parchment);
    padding: 12px 16px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
  }
  .jump-to-label {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--sage-green);
    margin-bottom: 8px;
  }
  .jump-to-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .jump-to a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--sage-green);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
  }
  .jump-to a:hover,
  .jump-to a:active {
    background: rgba(38, 92, 47, 0.1);
    border-color: var(--sage-green);
  }
  .jump-to a.active {
    background: var(--sage-green);
    color: #fff;
    border-color: var(--sage-green);
  }
}

/* Small mobile: below 480px */
@media (max-width: 480px) {
  body { font-size: 17px; }
  
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  
  main { padding: 16px 14px; }
  
  /* Note blocks tighter but still legible */
  .note {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
  
  /* List items slightly tighter */
  li {
    margin-bottom: 0.6rem;
  }
  
  /* Timeline even tighter */
  .timeline-h { padding-left: 1.5rem; }
  .timeline-h a { padding: 0.6rem 0 0.6rem 0.75rem; }
  .timeline-h .week { font-size: 0.75rem; }
  .timeline-h .task { font-size: 0.8rem; }
  
  /* Tooltips - tighter margins on small screens */
  .cite .tooltip {
    left: 0;
    max-width: calc(100vw - 32px);
  }
  
  /* Contact buttons stack */
  .contact-row {
    flex-direction: column;
  }
  .contact-row a {
    text-align: center;
  }
  
  /* Smaller TOC button */
  .toc-fab {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 16px;
  }
}


/* Sidebar link lists and dividers */
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links li {
  margin-bottom: 10px;
}
.sidebar-links a {
  color: var(--sage-green);
  text-decoration: none;
  font-size: 0.95rem;
}
.sidebar-links a:hover {
  text-decoration: underline;
}
.link-desc {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}
.sidebar-divider {
  height: 1px;
  background: rgba(38, 92, 47, 0.2);
  margin: 16px 0;
}
.sidebar-note {
  font-size: 0.85rem;
  color: #666;
  margin: 8px 0 0 0;
}
.sidebar-note a {
  color: var(--sage-green);
}


/* Source cards for research page */
.source-card {
  background: #fafaf8;
  border-left: 3px solid var(--sage-green);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
}
.source-card h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}
.source-card h3 a {
  color: var(--sage-green);
  text-decoration: none;
}
.source-card h3 a:hover {
  text-decoration: underline;
}
.source-plain-title {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.source-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}
.source-card p:last-child {
  margin-bottom: 0;
}
.section-description {
  color: #666;
  font-style: italic;
  margin-bottom: 1.5rem;
}


/* Superscript citations with tooltips */
.cite {
  position: relative;
  display: inline;
}
.cite sup {
  font-size: 0.7em;
  color: var(--sage-green);
  cursor: help;
  margin-left: 1px;
  font-weight: 600;
}
.cite sup:hover {
  color: var(--sage-dark);
}
.cite .tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #f5f1e8;
  color: var(--text-dark);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.5;
  width: 320px;
  z-index: 100;
  transition: opacity 0.2s, visibility 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 8px;
}
.cite .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  border: 6px solid transparent;
  border-top-color: #f5f1e8;
}
.cite:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
.cite .tooltip a {
  color: var(--sage-green);
  text-decoration: underline;
}
.cite .tooltip a:hover {
  color: var(--sage-dark);
}


/* Featured resource card */
.resource-card {
  background: linear-gradient(135deg, #f8f6f1 0%, #f0ebe0 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage-green);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 2rem 0;
}
.resource-card h3 {
  color: var(--sage-dark);
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}
.resource-card .contact-info {
  margin: 0.75rem 0 1rem 0;
  line-height: 1.8;
}
.resource-card .description {
  margin: 0;
  font-size: 0.95rem;
}

/* Horizontal timeline */
.timeline-h {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 1.5rem 0 1rem 0;
  padding: 0;
}
.timeline-h::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.timeline-h a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  position: relative;
  padding-top: 2rem;
  transition: color 0.2s;
}
.timeline-h a:hover {
  color: var(--sage-green);
}
.timeline-h a::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid var(--sage-green);
  border-radius: 50%;
  transition: background 0.2s;
}
.timeline-h a:hover::before,
.timeline-h a.final::before {
  background: var(--sage-green);
}
.timeline-h .week {
  display: block;
  font-weight: 600;
  color: var(--sage-dark);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}
.timeline-h a:hover .week {
  color: var(--sage-green);
}
.timeline-h .task {
  font-size: 0.85rem;
  line-height: 1.3;
  padding: 0 0.25rem;
}

/* Red flags box */
.red-flags-box {
  background: #fdf8f4;
  border: 1px solid #e8d5c4;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.red-flags-box h3 {
  color: #8b5a2b;
  margin: 0 0 1rem 0;
  font-size: 1rem;
}
.red-flags-box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.red-flags-box li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.red-flags-box li:last-child {
  margin-bottom: 0;
}
.red-flags-box li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #c17a50;
  font-weight: bold;
  font-size: 0.85rem;
}


/* Inline contact buttons */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.4rem 0 0.6rem 0;
}
.contact-row a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: rgba(38, 92, 47, 0.08);
  border: 1px solid rgba(38, 92, 47, 0.2);
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--sage-green);
  transition: background 0.15s, border-color 0.15s;
}
.contact-row a:hover {
  background: rgba(38, 92, 47, 0.15);
  border-color: rgba(38, 92, 47, 0.35);
}


/* Next page navigation */
.next-page {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: right;
}
.next-page a {
  display: inline-block;
  font-size: 1rem;
  color: var(--sage-green);
  text-decoration: none;
  padding: 0.5rem 0;
}
.next-page a:hover {
  text-decoration: underline;
}
.next-page .label {
  font-size: 0.85rem;
  color: var(--text-dark);
  opacity: 0.7;
  margin-right: 0.25rem;
}

/* Language Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  margin-left: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-green);
  background: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle:hover {
  background: var(--sage-green);
  color: #fff;
}
@media (max-width: 768px) {
  .lang-toggle {
    position: absolute;
    top: 14px;
    right: 60px;
  }
}
