/*
  ELCT Iringa Diocese (DIRA) - Mobile-First Slate Blue-Grey Design
  - 100% Mobile-optimized with perfect UX
  - Responsive video background (desktop + mobile)
  - Touch-friendly navigation and interactions
  - Mobile-first responsive design
  - Raleway typography (Light 300, Bold 700)
*/

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;700&display=swap');

:root {
  --color-bg: transparent;
  --color-surface: transparent;
  --color-primary: #ffffff;
  --color-primary-hover: rgba(200, 40, 40, 0.4);
  --color-text: #ffffff;
  --color-muted: #ffffff;
  --color-border: transparent;
  --color-border-light: transparent;
  --ring: 2px solid rgba(156,57,53,255);
  --max-w: 1100px;
  --header-height: 70px;
  --mobile-padding: 1rem;
  --desktop-padding: 2rem;
}

/* CSS reset (lightweight) */
*, *::before, *::after { box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
  margin: 0;
  padding: 0;
  font-size: 16px;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Raleway", sans-serif;
  color: var(--color-text);
  background: transparent;
  line-height: 1.6;
  font-size: 1rem;
  position: relative;
  overflow-x: hidden;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.background-img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.background-img-parallax {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: url('../images/background.png') center/cover no-repeat;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.1s linear;
}

.red-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(200, 40, 40, 0.4); /* Soft red overlay */
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

/* Mobile-First Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px) brightness(0.4) contrast(1.1);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Mobile video optimizations */
@media (max-width: 767px) {
  .video-background {
    filter: blur(1px) brightness(0.5) contrast(1.0);
    opacity: 0.95;
  }
  
  .video-background video {
    object-position: center center;
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .video-background {
    opacity: 0.8;
    filter: blur(3px) brightness(0.3) contrast(1.2);
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Mobile-First Layout */
.container { 
  width: 90%; 
  max-width: var(--max-w); 
  margin: 0 auto; 
  padding: 0 var(--mobile-padding);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--desktop-padding);
  }
}

/* Mobile-First Typography */
h1, h2, h3, h4 {
  font-family: "Raleway", sans-serif;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  font-weight: 700;
  word-wrap: break-word;
}

h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 6vw, 2rem); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--color-text); }
h3 { font-size: clamp(1.25rem, 5vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 4vw, 1.25rem); }

p { 
  margin: 0 0 1rem 0; 
  font-size: clamp(0.9rem, 4vw, 1rem);
  line-height: 1.6;
  text-align: left;
}

/* Global text alignment */
body, h1, h2, h3, h4, h5, h6,
p, ul, ol, li, a, small, strong, em,
blockquote, figcaption, label, input, textarea, button,
table, th, td, summary, details {
  text-align: left;
}

/* Mobile-First Header */
.header {
  position: sticky; 
  top: 0; 
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  transition: all 0.3s ease;
  margin: 0;
  padding: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}

.header.scrolled {
  background: rgba(160,43,24,0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(160,43,24,0.3);
  box-shadow: 0 2px 20px rgba(160,43,24,0.1);
}

.navbar { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  width: 100%;
  padding: 0.75rem 0; 
  background: transparent;
  margin: 0;
}

/* Mobile-First Brand */
.brand { 
  display: flex; 
  align-items: center; 
  text-decoration: none; 
  color: var(--color-text);
  z-index: 1001;
}

.brand__logo { 
  width: 10px; 
  height: 10px; 
  background: var(--color-text); 
  border-radius: 50%; 
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.brand__text { 
  font-family: "Raleway", sans-serif;
  font-size: clamp(1rem, 5vw, 1.25rem);
  font-weight: 700; 
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Mobile-First Navigation */
.nav-toggle { 
  display: flex;
  align-items: center;
  justify-content: center;
  border: none; 
  background: transparent; 
  padding: 0.75rem; 
  font-family: "Raleway", sans-serif;
  cursor: pointer;
  font-weight: 300;
  color: var(--color-text);
  font-size: 0.9rem;
  z-index: 1200;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

/* Mobile: Hamburger sits in header (not floating) */
@media (max-width: 800px) {
  .nav-toggle {
    position: static;
    top: auto;
    right: auto;
    background: transparent;
    backdrop-filter: none;
    border-radius: 4px;
    box-shadow: none;
  }
}

.nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle:focus-visible { 
  outline: none; 
  box-shadow: 0 0 0 2px var(--color-text);
}

/* Mobile: replace "Menu" text with hamburger icon */
@media (max-width: 800px) {
  .nav-toggle {
    font-size: 0; /* hide text label visually */
    position: relative;
  }
  .nav-toggle::before {
    content: '\2630'; /* ☰ */
    font-size: 1.5rem;
    line-height: 1;
    color: currentColor;
  }
  .nav-toggle[aria-expanded="true"]::before {
    content: '\2715'; /* ✕ close icon */
  }
}

/* Mobile Navigation Menu: dropdown below header */
.nav { 
  display: none;
}

@media (max-width: 800px) {
  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(160,43,24,0.98);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1rem 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.5rem;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    z-index: 1002; /* above header background, below toggle */
  }
  .nav.open {
    display: flex;
  }
}

.nav a {
  color: var(--color-text); 
  text-decoration: none; 
  padding: 1rem 0; 
  font-family: "Raleway", sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  text-align: left;
  min-width: 200px;
  border-radius: 0;
  padding: 1rem 2rem;
  background: transparent;
}

.nav a:hover, .nav a[aria-current="page"] {
  border-bottom-color: var(--color-text);
  border-bottom-width: 2px;
  background: transparent;
}

/* Desktop Navigation */
@media (min-width: 801px) {
  .nav-toggle { 
    display: none; 
  }
  
  .nav { 
    position: static;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    min-width: auto;
  }
  
  .nav a {
    font-size: 1rem;
    padding: 0.5rem 0;
    margin-left: 2.5rem;
    min-width: auto;
    border-radius: 0;
    background: transparent;
  }
  
  .nav a:hover, .nav a[aria-current="page"] {
    background: transparent;
    border-bottom-color: var(--color-text);
    border-bottom-width: 2px;
  }
}

/* Mobile-First Sections */
.section { 
  padding: 2.5rem 0; /* Reduced from 3rem */
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .section {
    padding: 3.5rem 0; /* Reduced from 4rem */
  }
}

/* Section spacing utility: add extra space below a section */
.section--extra-bottom {
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section--extra-bottom {
    padding-bottom: 6rem;
  }
}

.section.alt { 
  background: transparent; 
  border-top: none; 
  border-bottom: none; 
  box-shadow: none;
}

/* Mobile-First Hero */
.hero { 
  background: transparent; 
  border-bottom: none;
  padding: 2.5rem 0; /* Adjusted from 2rem/4rem */
  min-height: auto; /* Let content define height */
  display: flex;
  align-items: center;
  box-shadow: none;
}

@media (min-width: 768px) {
  .hero {
    padding: 3.5rem 0;
    min-height: auto;
  }
}

.hero__wrap { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 2rem; 
  align-items: center; 
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (min-width: 901px) {
  .hero__wrap { 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 4rem; 
    text-align: left;
  }
}

.hero__title { 
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  margin-bottom: 1rem; 
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.2;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero__subtitle { 
  color: var(--color-text); 
  margin-bottom: 1.5rem; 
  font-size: clamp(0.9rem, 4vw, 1rem);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.6;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (min-width: 901px) {
  .hero__subtitle {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero__img { 
  border: none;
  filter: grayscale(100%);
  width: 100%;
  height: auto;
  border-radius: 0;
  max-width: 100%;
  box-shadow: none;
}

/* Mobile-First Grid */
.grid { 
  display: grid; 
  gap: 2rem; 
}

.grid-2, .grid-3 { 
  grid-template-columns: 1fr; 
}

@media (min-width: 641px) { 
  .grid { 
    gap: 2.5rem; 
  }
  .grid-2 { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (min-width: 901px) { 
  .grid { 
    gap: 3rem; 
  }
  .grid-3 { 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
  }
}

/* Tighter grid gap utility for close pairings (e.g., Mission & Vision) */
.grid--tight {
  gap: 1rem;
}

@media (min-width: 641px) {
  .grid--tight {
    gap: 1.5rem;
  }
}

@media (min-width: 901px) {
  .grid--tight {
    gap: 2rem;
  }
}

/* Reduce internal block spacing when used with grid--tight */
.grid--tight .content-block {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

/* Mobile-First Content Blocks */
.content-block {
  padding: 0;
  border-bottom: none;
  padding-bottom: 1.5rem; /* Reduced from 2rem */
  margin-bottom: 1.5rem; /* Reduced from 2rem */
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .content-block {
    text-align: left;
  }
}

.content-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.content-block__title { 
  margin: 0 0 1rem 0; 
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.3;
  background: transparent;
  border: none;
  box-shadow: none;
}

.content-block__text { 
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-size: clamp(0.9rem, 4vw, 1rem);
  background: transparent;
  border: none;
  box-shadow: none;
}

.content-block__media {
  width: 100%;
  height: auto;
  border-radius: 0;
  margin-bottom: 1.5rem;
  filter: grayscale(100%);
  border: none;
  box-shadow: none;
}

.content-block__link {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-text);
  padding: 0.25rem 0;
  transition: all 0.2s ease;
  font-weight: 300;
  display: inline-block;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.content-block__link:hover {
  border-bottom-width: 2px;
  border-bottom-color: var(--color-primary-hover);
  color: var(--color-primary-hover);
  background: transparent;
}

/* Mobile-First Buttons */
.button, .text-button {
  display: inline-block;
  background: transparent;
  color: var(--color-text);
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--color-text);
  text-decoration: none;
  font-family: "Raleway", sans-serif;
  font-size: clamp(0.9rem, 4vw, 1rem);
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 1rem;
  margin-bottom: 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .button, .text-button {
    margin-right: 2rem;
    margin-bottom: 0;
    padding: 0.5rem 0;
    min-height: auto;
    display: inline-block;
  }
}

.button:hover, .text-button:hover { 
  color: #DAA520;
  border-bottom-color: var(--color-primary-hover);
  border-bottom-width: 2px;
}

.button:focus-visible, .text-button:focus-visible { 
  outline: none; 
  box-shadow: 0 2px 0 0 var(--color-text);
}

.button.primary {
  background: transparent;
  color: var(--color-text);
  border: none;
  border-bottom: 1px solid var(--color-text);
  border-radius: 0;
  padding: 0.75rem 0;
  font-weight: 300;
  margin-right: 1rem;
  margin-bottom: 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .button.primary {
    margin-right: 2rem;
    margin-bottom: 0;
    padding: 0.5rem 0;
    min-height: auto;
    display: inline-block;
  }
}

.button.primary:hover {
  background: transparent;
  border-bottom-color: var(--color-primary-hover);
  border-bottom-width: 2px;
  color: var(--color-primary-hover);
}

 /* Navbar logo */
.brand img {
  margin-left: 1rem;
  margin-right: 1rem;
  border-radius: 50%;      
  object-fit: cover;       
  overflow: hidden;
}

/* Mobile-First Forms */
.form { 
  max-width: 100%; 
  margin: 0 auto; 
}

@media (min-width: 768px) {
  .form {
    max-width: 600px;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  color: var(--color-text);
  font-size: clamp(0.9rem, 4vw, 1rem);
}

.input, .textarea { 
  width: 100%; 
  padding: 1rem; 
  border: none; 
  border-bottom: 1px solid var(--color-text);
  background: transparent;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 4vw, 1rem);
  color: var(--color-text);
  transition: border-bottom-color 0.2s ease;
  min-height: 44px;
  border-radius: 4px;
}

.input:focus, .textarea:focus { 
  outline: none; 
  border-bottom-color: var(--color-primary-hover);
  border-bottom-width: 2px;
  background-color: rgba(255, 255, 255, 0.05);
}

.textarea { 
  min-height: 120px; 
  resize: vertical;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
}

/* Mobile-First Footer */
.footer {
  background: #a02b18 !important;
  background-color: #a02b18 !important;
  color: #000 !important;
  font-weight: bold !important;
  z-index: 1100 !important;
  position: relative;
  padding: 2rem 0;
  margin-top: 3rem;
  margin-bottom: 0;
  text-align: center;
}

.footer p, .footer span, .footer div, .footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6, .footer a {
  color: #ffffff !important;
  font-weight: bold !important;
  background: transparent !important;
  background-color: transparent !important;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: left;
  }
}

.footer a { 
  color: #ffffff !important; 
  text-decoration: none; 
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s ease;
  padding: 0.25rem 0;
}

.footer a:hover { 
  border-bottom-color: #ffffff;
  border-bottom-width: 1px;
}

/* Mobile-First Utilities */
.muted { 
  color: var(--color-text); 
  font-weight: 300;
}
.center { text-align: center; }
.spaced > * + * { margin-top: 1rem; }

/* Mobile-First Lists */
ul, ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

@media (min-width: 768px) {
  ul, ol {
    padding-left: 2rem;
  }
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-size: clamp(0.9rem, 4vw, 1rem);
}

/* Mobile-First Content Articles */
.content-article {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .content-article {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
  }
}

.content-article:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.content-article h2 {
  margin-bottom: 1rem;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .content-article h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 5vw, 1.75rem);
  }
}

.content-article p {
  margin-bottom: 1.5rem;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 4vw, 1rem);
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Mobile-First Styled Lists */
.styled-list {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

.styled-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 4vw, 1rem);
  background: transparent;
  border: none;
  box-shadow: none;
}

.styled-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-text);
  font-weight: 700;
}

/* Mobile-First Contact Info */
.contact-info {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .contact-info {
    margin-top: 3rem;
    padding-top: 2rem;
  }
}

.contact-info h2 {
  margin-bottom: 1rem;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  background: transparent;
  border: none;
  box-shadow: none;
}

.office-details {
  margin-bottom: 1.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .office-details {
    margin-bottom: 2rem;
  }
}

.office-details p,
.office-details address {
  margin-bottom: 0.5rem;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 4vw, 1rem);
  background: transparent;
  border: none;
  box-shadow: none;
}

.social-links p {
  margin-bottom: 1rem;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 4vw, 1rem);
  background: transparent;
  border: none;
  box-shadow: none;
}

.social-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .social-nav {
    justify-content: flex-start;
    gap: 1.5rem;
  }
}

.social-link {
  color: var(--color-text);
  text-decoration: none;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  font-size: clamp(0.9rem, 4vw, 1rem);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.social-link:hover {
  color: var(--color-primary-hover);
  border-bottom-color: var(--color-primary-hover);
  border-bottom-width: 1px;
  background: transparent;
}

/* Mobile-First Responsive Adjustments */
@media (max-width: 640px) {
  .content-article {
    padding: 0 0.5rem;
  }
  
  .content-article h2 {
    font-size: 1.25rem;
  }
  
  .hero__wrap {
    gap: 1.5rem;
  }
  
  .grid {
    gap: 1.5rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .container {
    width: 95%;
    padding: 0 0.75rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .button, .text-button, .nav a {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav a {
    padding: 1rem 1.5rem;
  }
  
  .input, .textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .video-background {
    filter: blur(1.5px) brightness(0.4) contrast(1.1);
  }
}

/* Landscape Mobile Optimizations */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 50vh;
    padding: 1.5rem 0;
  }
  
  .nav {
    padding: calc(var(--header-height) + 1rem) 1rem 1rem;
    gap: 1rem;
  }
  
  .nav a {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Minimal Accordions (details/summary) */
details {
  margin: 1rem 0;
}

summary {
  list-style: none;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 4vw, 1.25rem);
  line-height: 1.2;
  padding: 0.25rem 0;
  outline: none;
}

/* Remove default marker */
summary::-webkit-details-marker {
  display: none;
}

/* Minimal indicator using text only, preserves color */
summary::after {
  content: "+";
  margin-left: 0.75rem;
  font-weight: 700;
}

details[open] summary::after {
  content: "–";
}

/* Hover/Focus states without changing color scheme */
summary:hover {
  text-decoration: underline;
}

summary:focus-visible {
  outline: var(--ring);
  outline-offset: 2px;
}

details > .details__content {
  margin-top: 0.75rem;
}

/* In-page TOC (On this page) */
.toc {
  margin: 1.5rem 0 0;
}

.toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.toc__link {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 0.25rem 0;
}

.toc__link:hover {
  border-bottom-color: var(--color-text);
}

@media (min-width: 900px) {
  .toc {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
  }
}

/* Print Styles */
@media print {
  .video-background,
  .nav-toggle {
    display: none !important;
  }
  
  .header {
    position: static;
    background: #48585d !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .section {
    break-inside: avoid;
  }
}