/*
Theme Name: MA SADIQ Child
Template: generatepress
Description: Design Baseline v1.0 child theme -- Native WordPress + SCF implementation (no page builder)
Version: 1.0.0
Text Domain: masadiq-child
*/

/* MA SADIQ Website — Global Theme Styles v1.0 (Design Baseline) */
/* This is the complete approved design system: colors, typography, spacing, components */
/* Google Fonts are enqueued in functions.php: Space Grotesk 500;600;700, IBM Plex Sans 400;500;600, IBM Plex Mono 400;500 */


  :root{
    --ink:#1A1D1F; --steel:#5B6066; --steel-light:#9BA0A4;
    --paper:#F1F1EE; --surface:#FFFFFF; --accent:#E2A233; --accent-red:#8C2222;
    --line:#D8D8D3; --white:#FAFAF8;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{margin:0;background:var(--paper);color:var(--ink);font-family:'IBM Plex Sans',sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;}
  h1,h2,h3{font-family:'Space Grotesk',sans-serif;margin:0;letter-spacing:-0.01em;}
  .mono{font-family:'IBM Plex Mono',monospace;}
  a{color:inherit;}
  .wrap{max-width:1160px;margin:0 auto;padding:0 24px;}
  ::selection{background:var(--accent);color:var(--ink);}
  :focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
  img{max-width:100%;}

  nav{position:sticky;top:0;z-index:50;background:rgba(241,241,238,0.92);backdrop-filter:blur(6px);border-bottom:1px solid var(--line);}
  .navrow{max-width:1160px;margin:0 auto;padding:10px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;}
  .brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);}
  .brand img{height:44px;width:auto;display:block;}
  .brand-text{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:15px;line-height:1.15;}
  .brand-text small{display:block;font-family:'IBM Plex Mono',monospace;font-weight:400;font-size:9.5px;letter-spacing:0.08em;color:var(--steel);}
  .navlinks{display:flex;gap:18px;list-style:none;margin:0;padding:0;flex-wrap:wrap;justify-content:flex-end;}
  .navlinks a{text-decoration:none;font-size:12.5px;font-family:'IBM Plex Mono',monospace;color:var(--ink);position:relative;padding-bottom:3px;white-space:nowrap;}
  .navlinks a::after{content:'';position:absolute;left:0;bottom:0;width:0;height:1px;background:var(--accent);transition:width .25s ease;}
  .navlinks a:hover::after{width:100%;}
  .navlinks a.active::after{width:100%;background:var(--ink);}
  .navlinks a.kids{background:var(--accent-red);color:#fff;padding:5px 10px;border-radius:20px;font-weight:500;}
  .navlinks a.kids::after{display:none;}
  @media (max-width:1040px){ .navlinks{display:none;} }
  .search-btn{background:none;border:1px solid var(--line);color:var(--ink);width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;}
  .search-btn:hover{border-color:var(--accent);color:var(--accent-red);}
  .search-form{display:flex;align-items:center;gap:6px;flex-shrink:0;}
  .search-input{width:120px;border:1px solid var(--line);background:var(--surface);font-family:'IBM Plex Mono',monospace;font-size:12px;padding:7px 10px;color:var(--ink);}
  .search-input:focus{outline:2px solid var(--accent);outline-offset:1px;}
  @media (max-width:1040px){ .search-input{display:none;} }

  .portrait-frame{position:relative;border:1px solid var(--line);padding:8px;background:var(--surface);}
  .portrait-frame img{display:block;width:100%;height:auto;}
  .crop{position:absolute;width:14px;height:14px;}
  .crop::before,.crop::after{content:'';position:absolute;background:var(--accent);}
  .crop::before{width:100%;height:1.5px;top:0;left:0;}
  .crop::after{width:1.5px;height:100%;top:0;left:0;}
  .crop.tl{top:-1px;left:-1px;}
  .crop.tr{top:-1px;right:-1px;transform:scaleX(-1);}
  .crop.bl{bottom:-1px;left:-1px;transform:scaleY(-1);}
  .crop.br{bottom:-1px;right:-1px;transform:scale(-1,-1);}

  /* Interior page hero (title-block, smaller than Home welcome) */
  header.page-hero{background:linear-gradient(180deg, var(--ink), #26292C);color:var(--white);padding:52px 0 44px;position:relative;overflow:hidden;}
  header.page-hero::before{content:'';position:absolute;inset:0;background-image:repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 26px);pointer-events:none;}
  .page-hero .eyebrow{position:relative;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:0.1em;color:var(--accent);text-transform:uppercase;margin-bottom:14px;}
  .page-hero h1{position:relative;font-size:clamp(28px,4.6vw,42px);line-height:1.08;font-weight:700;max-width:26ch;}
  .page-hero p.lede{position:relative;margin-top:16px;font-size:16px;color:#D8DADA;max-width:60ch;}

  section{padding:60px 0;border-bottom:1px solid var(--line);}
  section:last-of-type{border-bottom:none;}
  .sec-head{display:flex;align-items:baseline;gap:16px;margin-bottom:30px;}
  .sec-tag{font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--steel);letter-spacing:0.08em;text-transform:uppercase;white-space:nowrap;}
  .sec-head h2{font-size:clamp(20px,2.8vw,28px);font-weight:600;}
  .sec-rule{flex:1;height:1px;background:var(--line);}
  .body-text{max-width:70ch;font-size:16px;color:#2E3336;}
  .body-text p+p{margin-top:14px;}

  .chip-row{display:flex;flex-wrap:wrap;gap:10px;}
  .chip{font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--ink);background:var(--surface);padding:8px 13px;border:1px solid var(--line);transition:all .18s ease;}
  .chip:hover{border-color:var(--accent);}
  .filter-chip{cursor:pointer;}
  .filter-chip.active{background:var(--ink);color:var(--white);border-color:var(--ink);}

  .card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);}
  .card{background:var(--surface);padding:24px;}
  .card .k{font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--accent-red);text-transform:uppercase;letter-spacing:.06em;}
  .card h3{font-size:16px;font-weight:600;margin:8px 0 8px;}
  .card p{font-size:13.5px;color:var(--steel);margin:0;}

  .timeline{position:relative;padding-left:36px;}
  .timeline-line{position:absolute;left:8px;top:6px;bottom:6px;width:2px;background:var(--line);}
  .t-item{position:relative;padding-bottom:36px;}
  .t-item:last-child{padding-bottom:0;}
  .node{position:absolute;left:-36px;top:3px;width:13px;height:13px;border:2px solid var(--ink);background:var(--paper);transform:rotate(45deg);}
  .node.filled{background:var(--accent);border-color:var(--accent);}
  .t-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;margin-bottom:4px;}
  .t-role{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:16.5px;}
  .t-date{font-family:'IBM Plex Mono',monospace;font-size:11.5px;color:var(--steel);}
  .t-desc{font-size:14px;color:#3C4247;max-width:64ch;}

  .plate{border:1px solid var(--line);padding:16px 18px;background:var(--surface);position:relative;}
  .plate::before{content:'';position:absolute;top:8px;left:8px;width:5px;height:5px;border-radius:50%;background:var(--line);}
  .plate h4{font-family:'Space Grotesk',sans-serif;font-size:14.5px;font-weight:600;margin:0 0 4px;}
  .plate p{margin:0;font-size:12.5px;color:var(--steel);font-family:'IBM Plex Mono',monospace;}
  .plate-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;}

  .btn{font-family:'IBM Plex Mono',monospace;font-size:12.5px;text-decoration:none;padding:11px 18px;border:1px solid var(--ink);color:var(--ink);transition:all .2s ease;display:inline-flex;align-items:center;gap:8px;}
  .btn:hover{border-color:var(--accent-red);color:var(--accent-red);}
  .btn.solid{background:var(--ink);border-color:var(--ink);color:var(--white);}
  .btn.solid:hover{background:var(--accent-red);border-color:var(--accent-red);color:#fff;}
  .btn.on-dark{border-color:rgba(255,255,255,0.35);color:var(--white);}
  .btn.on-dark:hover{border-color:var(--accent);color:var(--accent);}
  .btn.on-dark.solid{background:var(--accent);border-color:var(--accent);color:var(--ink);font-weight:500;}
  .btn.on-dark.solid:hover{background:#eeb552;}
  .link-more{display:inline-block;margin-top:20px;font-family:'IBM Plex Mono',monospace;font-size:12.5px;text-decoration:none;border-bottom:1px solid var(--ink);color:var(--ink);}
  .link-more:hover{color:var(--accent-red);border-color:var(--accent-red);}

  .quote-block{border-left:2px solid var(--accent-red);padding:8px 0 8px 20px;margin-top:6px;}
  .quote-block p{margin:0;font-size:14.5px;color:#3C4247;font-style:italic;}
  .quote-block .who{margin-top:6px;font-family:'IBM Plex Mono',monospace;font-size:11.5px;color:var(--steel);font-style:normal;}

  .note-box{background:#FFF7E8;border:1px solid #EAD6A3;padding:16px 18px;font-size:13.5px;color:#5B4A20;}

  footer{background:#141618;color:#C9CBCC;padding:48px 0 28px;}
  .foot-grid{display:flex;justify-content:space-between;flex-wrap:wrap;gap:28px;}
  .foot-links{display:flex;flex-direction:column;gap:8px;}
  .foot-links a{font-family:'IBM Plex Mono',monospace;font-size:12.5px;text-decoration:none;color:#C9CBCC;}
  .foot-links a:hover{color:var(--accent);}
  .foot-bottom{margin-top:40px;padding-top:18px;border-top:1px solid #2A2D2F;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-family:'IBM Plex Mono',monospace;font-size:11px;color:#7A7D7E;}

  @media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} }
/* ============================================================
   ADR-002 — CSS RESTORATION PACKAGE
   Restores styling lost during the Elementor -> Native WordPress
   migration. Sourced directly from the original approved
   home.html and kids-world.html standalone files (pre-migration).
   Append this block to the END of style.css. Nothing above this
   line should be modified.
   ============================================================ */

/* ------------------------------------------------------------
   SECTION 1 — HOME: HERO SECTION
   Restores: header.hero, .hero-grid, .eyebrow, .tagline, .lede,
   .cta-row -- the section reported as "portrait appears oversized."
   ------------------------------------------------------------ */
header.hero{
  background:linear-gradient(180deg, var(--ink), #26292C);
  color:var(--white);
  padding:60px 0 52px;
  position:relative;
  overflow:hidden;
}
header.hero::before{
  content:'';
  position:absolute;
  inset:0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 26px);
  pointer-events:none;
}
.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns:1.4fr 0.8fr;
  gap:44px;
  align-items:center;
}
@media (max-width:820px){
  .hero-grid{ grid-template-columns:1fr; }
}

/* Bare .eyebrow / .lede rules -- coexist safely alongside the existing
   .page-hero .eyebrow / .page-hero p.lede rules (different selector
   specificity, no conflict). Home's hero uses header.hero, not
   .page-hero, so it needs its own unscoped version. */
.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  letter-spacing:0.1em;
  color:var(--accent);
  text-transform:uppercase;
  margin-bottom:16px;
}
.hero h1{
  font-size:clamp(30px,5vw,46px);
  line-height:1.06;
  font-weight:700;
}
.hero .tagline{
  margin-top:12px;
  font-family:'IBM Plex Mono', monospace;
  font-size:13px;
  letter-spacing:0.1em;
  color:var(--steel-light);
}
.hero p.lede{
  margin-top:20px;
  font-size:17px;
  color:#D8DADA;
  max-width:48ch;
}
.cta-row{
  margin-top:28px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* ------------------------------------------------------------
   SECTION 2 — HOME: PORTRAIT SIZING
   This is the direct fix for the reported "portrait appears
   oversized" defect. .hero-logo-box img is the rule that was
   entirely missing -- with no width constraint, the browser
   rendered the portrait at native pixel size.
   ------------------------------------------------------------ */
.hero-logo-box{
  display:flex;
  justify-content:center;
}
.hero-logo-box img{
  width:100%;
  max-width:260px;
  height:auto;
}
/* Scoped override for the portrait frame specifically inside Home's
   dark hero -- restores the original transparent/light-border look
   without touching the existing .portrait-frame rule used on the
   light-background About/Contact heroes. */
.hero-logo-box .portrait-frame{
  max-width:260px;
  border:1px solid rgba(255,255,255,0.25);
  background:transparent;
}

/* ------------------------------------------------------------
   SECTION 3 — HOME: SUMMARY, PRODUCTIONS GRID, STATS, KIDS TEASER, CTA BAND
   ------------------------------------------------------------ */
.summary-text{
  max-width:70ch;
  font-size:16.5px;
  color:#2E3336;
}
.prod-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.prod-card{
  background:var(--surface);
  padding:22px;
}
.prod-type{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  color:var(--accent-red);
  text-transform:uppercase;
  letter-spacing:.06em;
}
.prod-card h3{
  font-size:15.5px;
  font-weight:600;
  margin:8px 0 6px;
}
.prod-card p{
  font-size:13.5px;
  color:var(--steel);
  margin:0;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:24px;
  text-align:left;
}
.stat-num{
  font-family:'Space Grotesk', sans-serif;
  font-size:clamp(28px,4vw,40px);
  font-weight:700;
  color:var(--ink);
}
.stat-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:11.5px;
  color:var(--steel);
  letter-spacing:.05em;
  text-transform:uppercase;
  margin-top:4px;
}
.kids-teaser{
  background:#EAF4FB;
  border:1px solid #CFE6F4;
  padding:32px;
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
}
.kids-teaser img{ height:90px; width:auto; }
.kids-teaser .kt-text{ flex:1; min-width:220px; }
.kids-teaser h3{ font-size:19px; font-weight:700; color:#16324F; }
.kids-teaser p{ font-size:14px; color:#33506B; margin:6px 0 14px; max-width:52ch; }
.kids-teaser .btn{ background:#2C7FD1; border-color:#2C7FD1; color:#fff; }
.kids-teaser .btn:hover{ background:#4A93DB; }
.cta-band{
  background:var(--ink);
  color:var(--white);
  text-align:center;
  padding:56px 24px;
}
.cta-band h2{
  color:var(--white);
  font-size:clamp(22px,3.4vw,32px);
  max-width:26ch;
  margin:0 auto 22px;
}

/* ------------------------------------------------------------
   SECTION 4 — KIDS WORLD: NAVIGATION
   ------------------------------------------------------------ */
.kw-brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.kw-brand img{ height:52px; width:auto; }
.kw-navlinks{
  display:flex;
  gap:10px;
  list-style:none;
  margin:0;
  padding:0;
  flex-wrap:wrap;
}
.kw-navlinks a{
  text-decoration:none;
  font-family:'Baloo 2', cursive;
  font-weight:600;
  font-size:15px;
  color:var(--kid-navy);
  background:#EFF6FB;
  padding:8px 16px;
  border-radius:999px;
  transition:all .2s ease;
}
.kw-navlinks a:hover{ background:var(--kid-gold); color:#fff; }
.back-main{
  font-family:'IBM Plex Sans', sans-serif;
  font-size:12.5px;
  text-decoration:none;
  color:#7C8B98;
  border-bottom:1px dotted #B7C2CB;
  white-space:nowrap;
}
.back-main:hover{ color:var(--kid-navy); }

/* ------------------------------------------------------------
   SECTION 5 — KIDS WORLD: DESIGN TOKENS
   These custom properties are referenced throughout Sections 4-8
   and must be declared once, here, since Kids World was never part
   of the shared :root token set (it is a deliberately separate
   visual identity per the approved Design Baseline).
   ------------------------------------------------------------ */
:root{
  --kid-blue:#2C7FD1;
  --kid-gold:#F2A93B;
  --kid-green:#4FA92B;
  --kid-pink:#E23B55;
  --kid-navy:#16324F;
  --kid-leaf:#5FA43A;
  --sky:#F3F8FC;
}

/* ------------------------------------------------------------
   SECTION 6 — KIDS WORLD: HERO
   ------------------------------------------------------------ */
header.kw-hero{
  background:linear-gradient(160deg,#EAF4FB,#DCEFFB);
  padding:50px 0 46px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
header.kw-hero::before,
header.kw-hero::after{
  content:'\2605';
  position:absolute;
  font-size:28px;
  color:var(--kid-gold);
  opacity:.6;
}
header.kw-hero::before{ top:20px; left:8%; }
header.kw-hero::after{ bottom:24px; right:10%; color:var(--kid-pink); }
.kw-hero img{ height:150px; width:auto; margin-bottom:8px; }
.kw-hero h1{ font-size:clamp(26px,4.2vw,38px); color:var(--kid-navy); }
.kw-hero p{ max-width:52ch; margin:14px auto 0; font-size:16.5px; color:#3A4C5C; }

/* ------------------------------------------------------------
   SECTION 7 — KIDS WORLD: BUTTONS, DECORATIVE BACKGROUND
   ------------------------------------------------------------ */
.kw-btn{
  display:inline-block;
  margin-top:22px;
  background:var(--kid-blue);
  color:#fff;
  text-decoration:none;
  font-family:'Baloo 2', cursive;
  font-weight:700;
  font-size:16px;
  padding:14px 30px;
  border-radius:999px;
  box-shadow:0 6px 0 #1F5FA3;
  transition:transform .15s ease;
}
.kw-btn:hover{ transform:translateY(-2px); }
.kw-btn.green{ background:var(--kid-green); box-shadow:0 6px 0 #357A1C; }
.kw-btn.pink{ background:var(--kid-pink); box-shadow:0 6px 0 #A6273B; }

section::before{
  content:'\2726';
  position:absolute;
  font-size:22px;
  color:var(--kid-gold);
  opacity:.35;
  top:14px;
  left:4%;
}
section::after{
  content:'\2726';
  position:absolute;
  font-size:16px;
  color:var(--kid-blue);
  opacity:.3;
  bottom:18px;
  right:6%;
}
section:nth-of-type(3n)::before{ color:var(--kid-pink); left:auto; right:5%; top:20px; }
section:nth-of-type(3n)::after{ right:auto; left:8%; color:var(--kid-green); }

/* ------------------------------------------------------------
   SECTION 8 — KIDS WORLD: SECTION HEADERS, CARD GRID
   ------------------------------------------------------------ */
.kw-sec-head{ text-align:center; margin-bottom:30px; }
.kw-sec-head h2{ font-size:clamp(22px,3.2vw,30px); color:var(--kid-navy); }
.kw-sec-head p{ color:#5B6B78; margin-top:8px; max-width:50ch; margin-left:auto; margin-right:auto; }

.kw-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
}
.kw-card{
  background:#fff;
  border-radius:22px;
  padding:22px;
  box-shadow:0 4px 16px rgba(30,60,90,0.08);
  border:3px solid transparent;
  transition:border-color .2s ease;
}
.kw-card:nth-child(4n+1){ border-color:#DCEFFB; }
.kw-card:nth-child(4n+2){ border-color:#FBE9CE; }
.kw-card:nth-child(4n+3){ border-color:#E3F3DA; }
.kw-card:nth-child(4n+4){ border-color:#FBDDE2; }
.kw-card .emoji{ font-size:34px; }
.kw-card h3{ font-size:17px; margin-top:10px; color:var(--kid-navy); }
.kw-card p{ font-size:13.5px; color:#5B6B78; margin-top:6px; }

.kw-section-alt{ background:#fff; }

/* ------------------------------------------------------------
   SECTION 9 — KIDS WORLD: CHARACTER GALLERY, GUIDE BUBBLE, PARENTS BOX
   ------------------------------------------------------------ */
.char-row{ display:flex; gap:22px; flex-wrap:wrap; justify-content:center; }
.char{ text-align:center; width:130px; }
.char .avatar{
  width:96px; height:96px; border-radius:50%;
  margin:0 auto 10px;
  display:flex; align-items:center; justify-content:center;
  font-size:40px; color:#fff;
}
.char h3{ font-size:14.5px; color:var(--kid-navy); }
.char p{ font-size:11.5px; color:#7C8B98; }

.guide-bubble{
  display:flex; align-items:center; gap:14px;
  background:#FFF9EC; border:2px dashed var(--kid-gold); border-radius:18px;
  padding:14px 20px; max-width:560px; margin:0 auto 28px;
}
.guide-bubble .g-avatar{
  width:52px; height:52px; border-radius:50%;
  background:var(--kid-blue);
  display:flex; align-items:center; justify-content:center;
  font-size:26px; flex-shrink:0;
}
.guide-bubble p{ margin:0; font-size:14.5px; color:#3A4C5C; font-weight:600; }

.social-row{ display:flex; gap:14px; justify-content:center; margin-top:14px; }
.social-row a{
  width:38px; height:38px; border-radius:50%;
  background:#EFF6FB;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; color:var(--kid-navy); text-decoration:none;
}
.social-row a:hover{ background:var(--kid-gold); color:#fff; }

.parents-box{
  background:var(--kid-navy); color:#EAF2F8; border-radius:24px;
  padding:32px; max-width:800px; margin:0 auto;
}
.parents-box h3{ color:#fff; font-size:19px; }
.parents-box p{ font-size:14.5px; color:#C9D9E6; margin-top:10px; }
.parents-box a.kw-btn{ margin-top:18px; }

/* ------------------------------------------------------------
   SECTION 10 — KIDS WORLD: FOOTER
   ------------------------------------------------------------ */
footer.kw-footer{
  background:#fff;
  border-top:4px solid var(--kid-gold);
  padding:32px 0;
  text-align:center;
}
footer.kw-footer p{ font-size:13px; color:#7C8B98; margin:0 0 10px; }
footer.kw-footer a{ color:var(--kid-blue); text-decoration:none; font-weight:600; }

/* ------------------------------------------------------------
   SECTION 11 — PRODUCTIONS: VIDEO EMBED (single-productions.php)
   Not present in either original source file (this field/markup
   was added after the two original stylesheets were written) --
   this one rule is a genuinely new addition, not a restoration,
   flagged as such in the ADR-002 change log.
   ------------------------------------------------------------ */
.video-embed{
  position:relative;
  width:100%;
  overflow:hidden;
  background:#000;
}
.video-embed iframe{
  position:absolute;
  top:0; left:0;
  width:100%;
  height:100%;
}


/* ============================================================
   RESPONSIVE NAVIGATION — hamburger toggle for tablet/mobile
   Desktop appearance is completely unaffected: .nav-toggle is
   hidden by default and only shown inside the existing
   @media (max-width:1040px) rule that already hides .navlinks.
   ============================================================ */

.nav-toggle{
  display:none; /* hidden on desktop */
  background:none;
  border:1px solid var(--line);
  width:38px;
  height:38px;
  border-radius:4px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  flex-shrink:0;
}
.nav-toggle:hover{ border-color:var(--accent); }
.nav-toggle-bar{
  display:block;
  width:18px;
  height:2px;
  background:var(--ink);
  border-radius:1px;
  transition:transform .2s ease, opacity .2s ease;
}
/* Animate into an "X" when open */
.nav-open .nav-toggle-bar:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2){ opacity:0; }
.nav-open .nav-toggle-bar:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:1040px){
  .nav-toggle{ display:flex; }

  /* .navlinks{display:none;} already exists above (unchanged) --
     this override shows it only when the parent .navrow has
     the JS-controlled .nav-open class. */
  .navrow{ position:relative; flex-wrap:wrap; }
  .navrow.nav-open .navlinks{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--surface);
    border:1px solid var(--line);
    padding:8px 0;
    z-index:60;
  }
  .navrow.nav-open .navlinks a{
    width:100%;
    padding:12px 20px;
    box-sizing:border-box;
  }
  .navrow.nav-open .navlinks a.kids{
    margin:6px 20px;
    width:auto;
    display:inline-block;
  }
}

/* Respect reduced-motion preference (existing site-wide convention) */
@media (prefers-reduced-motion: reduce){
  .nav-toggle-bar{ transition:none; }
}
