/* ================================
   NU_styles.css — Bio-MEMS Lab (unified + theming + hero image)
   ================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; margin: 0; padding: 0; }
img, picture { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

/* Visually hidden (for screen readers) */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* ---------- Theme Tokens (Dark default) ---------- */
:root{
  /* Brand + contrast */
  --brand: #00d1ff;            /* cyan */
  --orange: #ff7a1a;           /* main orange */
  --orange-2: #ffb36b;         /* soft orange */

  /* Dark theme colors */
  --bg: #0b1320;
  --bg-elev: #0f1a2b;
  --panel: #111c31;
  --text: #e6edf6;
  --muted: #9bb0c9;
  --border: #244567;
  --shadow: 0 10px 30px rgba(0,0,0,.25);

  /* UI bits */
  --chip: #17304d;
  --chip-active: #183b60;

  /* Timeline */
  --rail: #1b3557;
  --rail-marker: #a5e7ff;

  /* Decor */
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1200px;
  --font-serif:'Merriweather', serif;
  --font-sans:'Lato', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Hero overlay */
  --hero-overlay: rgba(8,13,24,.55);
}

/* Light theme overrides */
:root[data-theme="light"]{
  --bg:#ffffff;
  --bg-elev:#f6f9fc;
  --panel:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --border:#d9e3f7;
  --shadow:0 6px 20px rgba(2,6,23,.08);

  --chip:#fff3ec;            /* light orange chip */
  --chip-active:#ffe7d7;

  --rail:#e6eefc;
  --rail-marker:#2aa7ff;

  /* Lighter hero overlay for readability over mech.jpg */
  --hero-overlay: rgba(255,255,255,.55);
}

/* ---------- Base ---------- */
html, body { height: 100%; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- GLOBAL CONTAINER ---------- */
:root {
  --page-gutter: clamp(12px, 4vw, 24px); /* responsive side spacing */
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* ---------- Header & Nav ---------- */
header{
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(11,19,32,.85), rgba(11,19,32,.65));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
:root[data-theme="light"] header{
  background: rgba(255,255,255,.85);
  border-bottom-color: rgba(2,6,23,.06);
}

/* Logo swap for light theme */
:root[data-theme="light"] .logo img {
    content: url('logo_black_farsi.png'); /* dark version for light theme */
}

.top-bar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 20px; max-width: var(--maxw); margin: 0 auto;
}
.logo{ display:flex; align-items:center; gap:12px; font-weight:700; color: var(--orange-2); }
.logo img{ height:36px; width:auto; }

.header-actions{ display:flex; align-items:center; gap:10px; }

.hamburger-menu{
  display:none; background:none; border:1px solid rgba(255,255,255,.15);
  color:var(--text); padding:6px 10px; border-radius:10px; cursor:pointer;
}
:root[data-theme="light"] .hamburger-menu{
  border-color: rgba(2,6,23,.12);
}

/* Theme toggle button */
.theme-toggle{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px; cursor:pointer;
  border:1px solid var(--border); background: linear-gradient(90deg, rgba(255,122,26,.12), rgba(0,209,255,.12));
  color: var(--text);
}
.theme-toggle .fa-sun{ display:none; }
.theme-toggle .fa-moon{ display:inline-block; }
:root[data-theme="light"] .theme-toggle .fa-sun{ display:inline-block; }
:root[data-theme="light"] .theme-toggle .fa-moon{ display:none; }

.nav-links{ border-top: 1px solid rgba(255,255,255,.06); }
:root[data-theme="light"] .nav-links{ border-top-color: rgba(2,6,23,.06); }
.nav-links ul{
  max-width: var(--maxw);
  margin:0 auto;
  padding: 6px 20px;
  display:flex;
  align-items:center;
  flex-wrap: wrap;
  list-style: none;   /* <-- remove browser bullets */
  gap: 0;             /* <-- we'll space with the separator */
}
.nav-links a{
  display:inline-block; padding:10px 12px; border-radius:10px; color: var(--muted);
}
.nav-links a:hover{ color: var(--text); background: rgba(255,255,255,.06); }
:root[data-theme="light"] .nav-links a:hover{ background: rgba(2,6,23,.06); }
.nav-links a.active{
  color: var(--text);
  background: linear-gradient(90deg, rgba(255,122,26,.18), rgba(0,209,255,.18));
  border: 1px solid rgba(255,255,255,.06);
}
:root[data-theme="light"] .nav-links a.active{ border-color: rgba(2,6,23,.06); }

/* Mobile nav (anchored dropdown) */
@media (max-width: 820px){
  .hamburger-menu{ display:block; }
  .top-bar{ position: relative; z-index: 101; }
  .nav-links {
    position: absolute; top: 100%; left:0; right:0;
    display:none; background: var(--bg-elev);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 20px rgba(0,0,0,.35);
  }
  .nav-links ul{ flex-direction:column; align-items:flex-start; gap:6px; padding:12px 20px; }
  .nav-links.active, .nav-links.open{ display:block; } /* both supported */
}
.nav-links ul li::before{
  content: "•";
  display:inline-block;
  margin: 0 12px;     /* equal space on both sides of the dot */
  color: var(--muted);
  transform: translateY(1px); /* optical alignment with text */
}

/* ---------- Hero (now with mech.jpg) ---------- */
.hero{
  position: relative; padding: 72px 0 48px; border-bottom: 1px solid rgba(255,255,255,.06);
  background-image:
    linear-gradient(to bottom, var(--hero-overlay), var(--hero-overlay)),
    url('mech.jpg');
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
:root[data-theme="light"] .hero{ border-bottom-color: rgba(2,6,23,.06); }
.hero .hero-content h1{
  font-family: var(--font-serif); font-weight: 700; letter-spacing:.3px;
  font-size: clamp(36px, 5vw, 56px);
  text-shadow: 0 1px 16px rgba(0,0,0,.25);
}
.hero-subtitle{ margin-top:10px; color:var(--muted); font-size: clamp(15px, 2.4vw, 18px); }

/* ---------- Shared section primitives ---------- */
.title{ font-family: var(--font-serif); font-size: clamp(24px, 3.2vw, 34px); margin-top: 24px; }
.line{
  width: 320px; height: 3px; border: none; margin: 10px 0 16px;
  background: linear-gradient(90deg, var(--orange), var(--brand));
}
.description{ color: var(--muted); max-width: 70ch; }

/* ---------- HOME ---------- */ 
.main-section{ padding: 28px 0 56px; } 

.main-content .description {
  font-size: 1.05rem;
  text-align: justify;
  max-width: none;       /* removes global width limit */
  width: 100%;           /* allows full container width */
}


/* ---------- RESEARCH (simplified topics) ---------- */
.research-container{ max-width: var(--maxw); margin: 28px auto 80px; padding: 0 20px; }

.topics{ display: grid; gap: 24px; margin-top: 16px; }
.topic{
  display:grid; grid-template-columns: 1.2fr .8fr; gap: 18px;
  background: var(--bg-elev); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}

.topic:hover {
  background: var(--chip-active);
  transform: translateY(-2px);
}

:root[data-theme="light"] .topic{ border-color: rgba(2,6,23,.06); }
.topic--flip{ grid-template-columns: .8fr 1.2fr; }
.topic h3{ font-size: 22px; margin-bottom: 8px; }
.topic p{ color: var(--text); opacity:.95; text-align: justify;}
.topic .topic-media{
  width:450px; height:300px;
  display: block;
  margin-left: auto;
  margin-right: auto;  border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
:root[data-theme="light"] .topic .topic-media{ border-color: rgba(2,6,23,.08); background: rgba(2,6,23,.03); }
.topic .topic-media img{ width:100%; height:100%; object-fit: cover; }

@media (max-width: 960px){
  .topic, .topic--flip{ grid-template-columns: 1fr; }
}

/* ---------- TEAM (one per row + header layout) ---------- */
.members-container{ max-width: var(--maxw); margin: 28px auto 80px; padding: 0 20px; }
.members-list{ display:grid; grid-template-columns: 1fr; gap: 18px; } /* one per row always */

.member-card{
  display:flex; gap: 14px; padding: 14px;
  background: var(--bg-elev); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); box-shadow: var(--shadow);

}
.member-card:hover {
  background: var(--chip-active);
  transform: translateY(-2px);
}
:root[data-theme="light"] .member-card{ border-color: rgba(2,6,23,.06); }
.member-photo img{
  width:160px; height:200px; object-fit: cover; border-radius:8px;
  border: 1px solid rgba(255,255,255,.12);
}
.member-info{ flex: 1; }

.member-header{
  display: grid;
  grid-template-areas:
    "name socials"
    "title title";
  grid-template-columns: 1fr auto; /* name grows, socials shrink to fit */
  align-items: center;
  gap: 4px 12px;
}
.member-name{ grid-area: name; font-weight: 900; font-size: 20px; }
.member-title{ grid-area: title; color: var(--muted); font-size: 16px; margin-top: -8px; }
.member-date {
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px; /* small spacing from the title */
}
.member-socials{   
  grid-area: socials;
  display: flex;
  gap: 12px;
}
.member-socials a i{           /* make icons ~1.5x bigger */
  font-size: 1.25em;
}
.member-socials a{ color: var(--orange); }
.member-socials a:hover{ color: var(--brand); }

.member-details{ margin-top: 8px; text-align: justify;}

/* Alumni section uses same container spacing as members */
.alumni-section {
  max-width: var(--maxw);
  margin: 40px auto 40px;
  padding: 0 20px; /* same L/R gap */
}

.alumni-subtitle {
  margin-top: 20px;
  margin-bottom: 15px;
  color: var(--orange-2);
}

/* Rows layout (not a table) */
.alumni-rows { font-size: 15px; }

.alumni-row {
  display: grid;
  grid-template-columns: minmax(140px, 22%) 13ch 1fr; /* Name | Date | Thesis */
  column-gap: 10px;
  align-items: start;
  padding: 8px 8px;
}

.alumni-head {
  font-weight: 700;
  color: var(--muted);
  padding-top: 10px;
}

.alumni-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0 2px;
}

.alumni-row + .alumni-row {
  border-top: 1px solid var(--border); /* the dashed line vibe */
}

/* Optional: subtle row hover (no card look) */
.alumni-row:not(.alumni-head):hover {
  background: var(--chip-active);
}

/* Mobile: stack nicely (name + grad on first line, thesis below) */
@media (max-width: 640px) {
  .alumni-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name grad"
      "thesis thesis";
    row-gap: 4px;
  }
  .alumni-head {
    grid-template-columns: 1fr auto 0; /* keep header readable */
    grid-template-areas: none;
  }
  .alumni-name   { grid-area: name; }
  .alumni-grad   { grid-area: grad; justify-self: end; color: var(--muted); }
  .alumni-thesis { grid-area: thesis; }
}


/* ---------- PUBLICATIONS ---------- */
.publications-container {
  display: grid;
  grid-template-columns: 1fr;               /* same single-column layout as courses */
  gap: 18px;
  max-width: var(--maxw);                   /* keeps width consistent */
  margin: 28px auto 80px;                   /* same top/bottom spacing as courses */
}

/* ---------- Collapsible Year Header with Minimal Arrow ---------- */
.year-group h2.collapsible {
  position: relative;
  display: flex;
  margin-top: 20px;
  margin-bottom: 5px;
  justify-content: space-between; /* text left, arrow right */
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: background 0.3s ease;
}

/* Minimal triangle arrow */
.year-group h2.collapsible::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  transition: transform 0.3s ease, border-top-color 0.3s ease;
  margin-left: 10px; /* slight space from the text */
}

/* Rotate arrow when expanded */
.year-group:not(.collapsed) h2.collapsible::after {
  transform: rotate(180deg); /* arrow points up */
}

/* Hover effect on year header */
.year-group h2.collapsible:hover {
  background: var(--chip-active);  /* existing hover for background */
}

/* Optional: subtle arrow color change on hover */
.year-group h2.collapsible:hover::after {
  border-top-color: var(--orange); /* arrow slightly highlighted */
}


/* Collapse/expand */
.year-group.collapsed ul {
  display: none;
}

/* Publication list */
.year-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

/* Each paper card */
.publication {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-bottom: -10px;
  transition: background 0.3s ease, transform 0.15s ease;
}

.publication:hover {
  background: var(--chip-active);
  transform: translateY(-2px);
}

.publication strong {
  font-size: 1.05rem;
  display: block;
  margin-bottom: -20px;
}

.publication .authors {
  color: var(--muted);
  font-size: 0.95rem;
  display: block;
  margin-bottom: -20px;
}

.publication .journal {
  font-size: 0.95rem;
  display: block;
  margin: 0px 0 0px;
  margin-bottom: -10px;
}

/* DOI button */
.publication button {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: var(--orange);
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.publication button:hover {
  background: var(--brand);
}

/* ---------- COURSES ---------- */
.courses-container { max-width: var(--maxw); margin: 28px auto 80px; padding: 0 20px; }

/* Courses: force single-column layout */
.courses-grid{
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 18px;
}

@media (max-width: 980px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .courses-grid { grid-template-columns: 1fr; } }

.course-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  transition: transform .15s ease, background .3s ease, border-color .2s ease;
}

.course-card:hover {
  background: var(--chip-active);
  transform: translateY(-2px);
}

/* ---- Transparent title area (header) ---- */
.course-header {
  /* make header itself transparent to show the card background */
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

/* ensure all header children (like h3) are also transparent */
.course-header, .course-header * {
  background: transparent !important;
  box-shadow: none !important;
  border: 0;
}

.course-header h3 {
  color: var(--text);
  font-size: 20px;
  margin: 2px 10px 6px;
  padding: 0; /* no chip/pill look */
}

/* Arrow button + icon colors follow theme text color */
.course-toggle{
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);                /* key line: sets currentColor */
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.course-toggle:hover{ background: var(--chip); }
.course-toggle:active{ transform: scale(0.98); }

.course-toggle .chev{
  font-size: 0.95rem;
  transform: rotate(0deg);
  transition: transform .2s ease;
  color: currentColor !important;    /* force the icon to inherit color */
}

.course-toggle[aria-expanded="true"] .chev{
  transform: rotate(180deg);
}

/* ---- Transparent details area (textbox) ---- */
.course-panel {
  background: transparent !important;
  margin-top: 8px;
  border-top: 1px dashed var(--border) !important;
  padding-top: 10px;
}

/* make every element inside the panel transparent too */
.course-panel * {
  background: transparent !important;
  box-shadow: none !important;
  border: 0;
}

.course-desc { color: var(--text); opacity: .95; text-align: justify; }
.course-bullets { margin: 8px 0 0; padding-left: 18px; }
.course-bullets li { margin: 4px 0; color: var(--muted); }

/* ---------- CONTACT ---------- */
.contact-main-wrapper { max-width: var(--maxw); margin: 28px auto 80px; padding: 0 20px; }

.contact-flex{ display:grid; grid-template-columns: 360px 1fr; gap: 22px; align-items:start; margin-top: 8px; }
@media (max-width: 980px){ .contact-flex{ grid-template-columns: 1fr; } }

.contact-info-col,
.contact-form-col{
  background: var(--bg-elev); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
:root[data-theme="light"] .contact-info-col,
:root[data-theme="light"] .contact-form-col{ border-color: rgba(2,6,23,.06); }
.info-block{ padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.info-block:last-child{ border-bottom: none; }
.info-block i{ color: var(--orange); margin-right: 10px; }

.contact-form-modern{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.contact-form-modern input[type="text"],
.contact-form-modern input[type="email"],
.contact-form-modern textarea{
  width: 100%; border-radius: 12px; border: 1px solid var(--border);
  background: #0c1a2e; color: var(--text); padding: 10px 12px;
}
:root[data-theme="light"] .contact-form-modern input[type="text"],
:root[data-theme="light"] .contact-form-modern input[type="email"],
:root[data-theme="light"] .contact-form-modern textarea{
  background: #fff; border-color: rgba(2,6,23,.12);
}
.contact-form-modern textarea{ grid-column: span 2; min-height: 160px; resize: vertical; }
.contact-form-modern button{
  grid-column: span 2; justify-self: start;
  padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(255,122,26,.45);
  background: linear-gradient(90deg, rgba(255,122,26,.12), rgba(0,209,255,.12)); color: var(--text); cursor: pointer;
}
.contact-form-modern button:hover{ background: linear-gradient(90deg, rgba(255,122,26,.18), rgba(0,209,255,.18)); }

/* Honeypot hide */
.contact-form-modern input[name="website"]{
  position: absolute !important; left: -9999px !important; height: 0 !important; width: 0 !important; opacity: 0 !important; pointer-events: none !important;
}

.contact-map{
  margin-top: 16px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow);
}
:root[data-theme="light"] .contact-map{ border-color: rgba(2,6,23,.06); }

/* ---------- ALIGN HOME TITLE WITH CONTACT ---------- */
.main-content.container {
  max-width: var(--maxw);
  margin: 28px auto 28px;  /* same as contact page wrapper */
  padding: 0 20px;         /* same horizontal padding as other pages */
}

/* ---------- Fine-tune HOME title vertical alignment ---------- */
.main-content .title {
  margin-top: -25px;    /* lift the "Welcome" title slightly upward */
}

.main-content .line {
  margin-top: 4px;      /* small adjustment below the title */
  margin-bottom: 20px;  /* consistent gap before paragraph */
}

/* --- Header / mobile nav stacking context --- */
header, .top-bar {
  position: relative;
  z-index: 1000;               /* keep header above page content */
}

/* Base nav layer above header */
.nav-links {
  position: relative;
  z-index: 1100;
}

/* When hamburger opens on mobile, make it overlay the page */
@media (max-width: 980px) {
  .nav-links.open {
    position: fixed;           /* overlay */
    top: var(--header-height, 64px); /* adjust if your header height differs */
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--bg);     /* a solid background so content doesn’t bleed through */
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
  }
}

/* Ensure page sections don't create higher stacking contexts */
.hero, .courses-container {
  position: relative;
  z-index: 0;                  /* never above the nav */
  /* Avoid transforms/filters here; they create new stacking contexts */
}

/* ---------- Smooth theme transition site-wide ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Core containers */
  html, body, header, nav, main, footer,
  .container, .hero, .top-bar, .nav-links, .nav-links a {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  }

  /* Common card-ish components across your site */
  .course-card, .member-card, .pub-card, .contact-form-col, .contact-info-col,
  .info-block, .card {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  }

  /* Buttons, inputs, chips, lines, icons */
  button, .btn, input, textarea, select, .chip, .line,
  i, .fa, [class^="fa-"] {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  }
}

/* Tip: don't animate layout-heavy properties (width/height/margin) */



/* ---------- Footer ---------- */
/* Base footer styling (keep your existing border + colors) */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}
:root[data-theme="light"] footer {
border-top: 1px solid rgba(2,6,23,0.4);}

.footer-container {
  max-width: 1200px;  /* or whatever width your main content uses */
  margin: 0 auto;     /* centers it horizontally */
  padding: 0 20px;    /* same horizontal padding as main content */
  padding-bottom: 20px;
  
  display: grid;
  grid-template-columns: 1.5fr 0.5fr 2.5fr;
  align-items: center;
  gap: 16px;
}

:root[data-theme="light"] .site-footer {
  border-top-color: rgba(2,6,23,.06);
}

/* Column alignment */
.site-footer .left  { justify-self: start;  text-align: left; }
.site-footer .center{ justify-self: center; text-align: center; }
.site-footer .right { justify-self: end;    text-align: right; }

/* Logo sizing */
.footer-brand { display: inline-flex; align-items: center; }
.footerlogo { margin-top: 20px; height: 100px; width: auto; display: inline-block; }

/* Theme-specific logo visibility
   - When data-theme="light": show .logo--light, hide .logo--dark
   - Otherwise (dark or anything else): show .logo--dark, hide .logo--light
*/
.logo--dark { display: none; }
:root[data-theme="light"] .logo--light { display: inline-block; }
:root[data-theme="light"] .logo--dark  { display: none; }
:root[data-theme="dark"] .logo--light { display: none; }
:root[data-theme="dark"] .logo--dark  { display: inline-block; }

/* Links */
.site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Responsive: stack on small screens */
@media (max-width: 720px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-footer .left,
  .site-footer .right { justify-self: center; text-align: center; }
  .site-footer .right p { margin: 6px 0; }
}


/* ---------- Utilities ---------- */
.maxw{ max-width: var(--maxw); margin: 0 auto; }
.hidden{ display:none !important; }

/* ---------- Motion prefs ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
