/* Aixplaind — calm, readable, accessible styles */
:root{
  --bg:#FBF7F0;          /* warm cream */
  --surface:#FFFFFF;
  --soft:#F1EADF;        /* soft sand panels */
  --mint:#E3F1EE;        /* soft teal panels */
  --ink:#1F2A44;         /* deep navy text (≈13:1 on cream) */
  --ink-2:#3D4760;       /* secondary text (≈8:1 on cream) */
  --primary:#0B6460;     /* deep teal (≈6.8:1 on cream, ≈7:1 white on it) */
  --primary-dark:#084B48;
  --accent:#A8461F;      /* warm clay (≈5.6:1 on cream) */
  --sun:#F2B84B;         /* decorative only */
  --line:#D9CFC0;
  --focus:#C2410C;
  --radius:18px;
  --max:1120px;
  font-size:20px;
}
html.big-text{font-size:25px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Atkinson Hyperlegible",Verdana,"Segoe UI",Tahoma,Arial,sans-serif;font-size:1rem;line-height:1.65}
img,svg{max-width:100%;height:auto}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;line-height:1.25;color:var(--ink);margin:0 0 .6em}
h1{font-size:2.4rem}
h2{font-size:1.8rem}
h3{font-size:1.3rem}
p{margin:0 0 1em;max-width:68ch}
a{color:var(--primary);text-decoration-thickness:2px;text-underline-offset:3px}
a:hover{color:var(--primary-dark)}
:focus-visible{outline:4px solid var(--focus);outline-offset:4px;border-radius:6px}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;padding:.8rem 1.2rem;z-index:100;font-weight:700}
.skip-link:focus{left:1rem;top:1rem;color:#fff}
.wrap{max-width:var(--max);margin:0 auto;padding:0 1.25rem}
.section{padding:3.5rem 0}
.section.alt{background:var(--soft)}
.section.mint{background:var(--mint)}
.eyebrow{display:inline-block;font-weight:700;color:var(--accent);letter-spacing:.03em;margin-bottom:.4rem}
.lead{font-size:1.2rem;color:var(--ink-2)}
.center{text-align:center}.center p{margin-left:auto;margin-right:auto}

/* Header */
.site-header{background:var(--surface);border-bottom:3px solid var(--line);position:sticky;top:0;z-index:50}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:.7rem 1.25rem;max-width:var(--max);margin:0 auto}
.logo{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--ink);font-family:Georgia,serif;font-size:1.5rem;font-weight:700}
.logo svg{width:52px;height:52px;flex:none}
.logo .ai{color:var(--primary)}
.main-nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:.3rem;margin:0;padding:0}
.main-nav a{display:block;padding:.6rem 1rem;min-height:48px;border-radius:12px;text-decoration:none;font-weight:700;color:var(--ink)}
.main-nav a:hover{background:var(--mint);color:var(--primary-dark)}
.main-nav a[aria-current="page"]{background:var(--primary);color:#fff}
.text-toggle{font:inherit;font-weight:700;font-size:.95rem;cursor:pointer;min-height:48px;padding:.5rem 1rem;border-radius:12px;border:3px solid var(--primary);background:var(--surface);color:var(--primary)}
.text-toggle:hover{background:var(--mint)}
.text-toggle[aria-pressed="true"]{background:var(--primary);color:#fff}
.header-tools{display:flex;align-items:center;gap:.5rem}

/* Buttons */
.btn{display:inline-block;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;min-height:56px;padding:.8rem 1.6rem;border-radius:14px;border:3px solid var(--primary);background:var(--primary);color:#fff;text-align:center}
.btn:hover{background:var(--primary-dark);border-color:var(--primary-dark);color:#fff}
.btn.secondary{background:transparent;color:var(--primary)}
.btn.secondary:hover{background:var(--mint);color:var(--primary-dark)}
.btn-row{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.5rem}

/* Hero */
.hero{padding:3.5rem 0 3rem;background:linear-gradient(180deg,#FFF9EF 0%,var(--bg) 100%)}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:2.5rem;align-items:center}
.hero h1{font-size:2.9rem}
.hero-art{background:var(--mint);border-radius:28px;padding:1.5rem}

/* Cards */
.grid{display:grid;gap:1.5rem}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.card{background:var(--surface);border:2px solid var(--line);border-radius:var(--radius);padding:1.5rem;display:flex;flex-direction:column}
.card h3{margin-top:.6rem}
.card p{color:var(--ink-2)}
.card .card-link{margin-top:auto;font-weight:700;display:inline-block;padding:.5rem 0;min-height:48px}
.card .icon{width:72px;height:72px}
.tag{display:inline-block;font-size:.8rem;font-weight:700;padding:.15rem .7rem;border-radius:999px;background:var(--soft);color:var(--ink);border:1px solid var(--line);align-self:flex-start}
.tag.ready{background:var(--mint);color:var(--primary-dark);border-color:#9FCFC7}
.placeholder-note{display:inline-block;background:#FFF1D6;border:2px dashed #B7791F;color:#5C3A06;padding:.3rem .8rem;border-radius:10px;font-weight:700;font-size:.85rem}

/* Video */
.video-box{aspect-ratio:16/9;width:100%;max-width:880px;margin:1.5rem auto 0;background:var(--ink);border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;padding:1.5rem;border:6px solid #fff;box-shadow:0 6px 24px rgba(31,42,68,.18)}
.video-box p{color:#E6EAF2;margin:0 auto}
.video-box .play{width:96px;height:96px;margin-bottom:1rem}
.video-box strong{font-size:1.4rem}

/* Reassurance */
.welcome{background:var(--surface);border-left:10px solid var(--sun);border-radius:var(--radius);padding:2rem;max-width:880px;margin:0 auto}
.welcome ul{padding-left:1.2rem;margin:0}
.welcome li{margin-bottom:.6rem}

/* Forms */
form{max-width:640px}
.field{margin-bottom:1.3rem}
label{display:block;font-weight:700;margin-bottom:.35rem}
.hint{display:block;font-weight:400;color:var(--ink-2);font-size:.9rem}
input[type=text],input[type=email],input[type=tel],select,textarea{width:100%;font:inherit;padding:.75rem .9rem;min-height:56px;border:3px solid #7A8399;border-radius:12px;background:#fff;color:var(--ink)}
textarea{min-height:160px}
input:focus,select:focus,textarea:focus{border-color:var(--primary)}
fieldset{border:2px solid var(--line);border-radius:12px;padding:1rem 1.2rem;margin:0 0 1.3rem}
legend{font-weight:700;padding:0 .4rem}
.check{display:flex;gap:.7rem;align-items:center;font-weight:400;margin:.5rem 0;min-height:44px}
.check input{width:28px;height:28px;flex:none;accent-color:var(--primary)}
.form-msg{margin-top:1rem;padding:1rem;border-radius:12px;background:var(--mint);font-weight:700;display:none}
.form-msg.show{display:block}
.newsletter{background:var(--primary);color:#fff;border-radius:28px;padding:2.5rem}
.newsletter h2,.newsletter p,.newsletter label{color:#fff}
.newsletter .hint{color:#E3F1EE}
.newsletter .placeholder-note{background:#FFF1D6}
.newsletter form{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end;max-width:none}
.newsletter .field{flex:1 1 280px;margin:0}
.newsletter .btn{background:var(--sun);border-color:var(--sun);color:var(--ink)}
.newsletter .btn:hover{background:#FFD27A;border-color:#FFD27A}
.newsletter .form-msg{color:var(--ink)}
.newsletter :focus-visible{outline-color:#FFD27A}

/* Lesson pages */
.lesson{max-width:820px;margin:0 auto}
.lesson h2{margin-top:2.2rem}
.lesson ul,.lesson ol{padding-left:1.4rem}
.lesson li{margin-bottom:.6rem}
.breadcrumb{font-size:.95rem;margin:1.5rem 0 0}
.figure{background:var(--surface);border:2px solid var(--line);border-radius:var(--radius);padding:1.2rem;margin:1.5rem 0}
.figure figcaption{color:var(--ink-2);font-size:.95rem;margin-top:.6rem}
.callout{background:var(--mint);border-radius:var(--radius);padding:1.3rem 1.5rem;margin:1.5rem 0;border-left:8px solid var(--primary)}
.callout.warn{background:#FDEDE4;border-left-color:var(--accent)}
.callout p:last-child,.callout ul:last-child{margin-bottom:0}
.keypoints{background:var(--soft);border-radius:var(--radius);padding:1.5rem 1.8rem;margin-top:2rem}
.lesson-meta{color:var(--ink-2);font-weight:700}
.example{background:#fff;border:2px dashed #7A8399;border-radius:12px;padding:1rem 1.2rem;margin:1rem 0;font-style:italic}

/* Classes */
.class-card dl{margin:0 0 1rem;display:grid;grid-template-columns:auto 1fr;gap:.3rem 1rem}
.class-card dt{font-weight:700}
.class-card dd{margin:0;color:var(--ink-2)}

/* Footer */
.site-footer{background:var(--ink);color:#E6EAF2;padding:3rem 0 2rem;margin-top:0}
.site-footer a{color:#fff}
.site-footer h2{color:#fff;font-size:1.2rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li a{display:inline-block;padding:.35rem 0;min-height:44px}
.footer-bottom{border-top:1px solid #4A5573;margin-top:2rem;padding-top:1.2rem;font-size:.9rem}
.site-footer :focus-visible{outline-color:#FFD27A}

/* Responsive */
@media (max-width:860px){
  :root{font-size:20px}
  .hero-grid{grid-template-columns:1fr}
  .hero h1{font-size:2.2rem}
  h1{font-size:2rem}h2{font-size:1.55rem}
  .footer-grid{grid-template-columns:1fr}
  .site-header{position:static}
  .header-inner{flex-direction:column;align-items:stretch}
  .header-tools{justify-content:space-between}
  .main-nav ul{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}
  .main-nav a{text-align:center;background:var(--soft)}
  .grid-2,.grid-3{grid-template-columns:1fr}
  .newsletter{padding:1.6rem}
  .btn{width:100%}
  .btn-row{flex-direction:column}
}

/* Start-here cards: icon beside text on wider screens */
.start-grid .card{display:grid;grid-template-columns:72px 1fr;column-gap:1.2rem;align-content:start}
.start-grid .card>*:not(.icon){grid-column:2}
.start-grid .card .icon{grid-row:1 / span 4}
.start-grid .card .tag{margin-top:0!important}
@media (max-width:860px){
  .start-grid .card{display:flex}
  .start-grid .card .tag{margin-top:.8rem!important}
  .main-nav li:last-child:nth-child(odd){grid-column:1 / -1}
  .text-toggle{width:100%}
}
.start-grid{grid-template-columns:1fr 1fr}
.start-grid .card .tag{justify-self:start}
.start-grid .card .card-link{justify-self:start}
@media (max-width:860px){.start-grid{grid-template-columns:1fr}}

/* Illustration panels (stack nicely on phones) */
.panels{display:grid;gap:1rem;align-items:start}
.panels.four{grid-template-columns:repeat(4,1fr)}
.panels.three{grid-template-columns:repeat(3,1fr)}
.panels.two{grid-template-columns:repeat(2,1fr)}
.panel svg{display:block;width:100%;max-width:220px;margin:0 auto}
.panel-label{text-align:center;margin:.5rem auto 0;font-size:1rem;color:var(--ink)}
@media (max-width:600px){
  .panels.four{grid-template-columns:1fr 1fr}
  .panels.three,.panels.two{grid-template-columns:1fr}
  .panels.three .panel svg,.panels.two .panel svg{max-width:240px}
}
.figure figcaption{margin-top:1rem}

/* ===== Warm & friendly refresh (images, video, forms) ===== */
body{background:var(--bg) radial-gradient(1200px 500px at 100% -10%,#FCEBD9 0%,transparent 60%) no-repeat}
.photo,.card-photo{display:block;width:100%;height:auto}
.photo{border-radius:24px;box-shadow:0 12px 32px rgba(31,42,68,.16),0 2px 6px rgba(31,42,68,.08)}
.hero{background:radial-gradient(700px 380px at 85% 40%,#E3F1EE 0%,transparent 70%),linear-gradient(180deg,#FFF6E9 0%,var(--bg) 100%)}
.hero-art{background:none;padding:0;position:relative}
.hero-art::before{content:"";position:absolute;inset:auto -14px -14px auto;width:60%;height:60%;background:var(--sun);opacity:.35;border-radius:28px;z-index:0}
.hero-art picture{position:relative;z-index:1;display:block}
.hero-art .photo{border:6px solid #fff;border-radius:28px}
.hero-grid{grid-template-columns:1fr 1fr}
.greeting{display:inline-flex;align-items:center;gap:.5rem;background:#fff;border:2px solid var(--line);border-radius:999px;padding:.35rem 1.1rem;font-weight:700;color:var(--accent);font-size:1.05rem;box-shadow:0 3px 10px rgba(31,42,68,.06);margin-bottom:1rem}
.greeting .wave{font-size:1.3rem}
.hero-note{font-weight:700;color:var(--primary-dark)}

/* Topic cards with pictures on top */
.topic-grid{grid-template-columns:repeat(2,1fr)}
.topic-card{padding:0;overflow:hidden;border-radius:22px;box-shadow:0 6px 18px rgba(31,42,68,.08);transition:transform .2s ease,box-shadow .2s ease}
.topic-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(31,42,68,.14)}
.card-top{aspect-ratio:16/10;overflow:hidden;background:var(--mint)}
.card-top picture,.card-top .card-photo{width:100%;height:100%}
.card-top .card-photo{object-fit:cover;object-position:center 35%}
.card-icon-top{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--mint),var(--soft))}
.card-icon-top .icon{width:120px;height:120px}
.card-body{padding:1.4rem 1.5rem 1.2rem;display:flex;flex-direction:column;flex:1}
.card-body .tag{margin-bottom:.2rem}
.card-body .card-link{margin-top:auto;font-weight:700;display:inline-block;padding:.5rem 0;min-height:48px}
.card-link.muted{color:var(--ink-2)}

/* Classes teaser */
.split{grid-template-columns:1fr 1fr;gap:2.5rem;align-items:center}
.check-list{list-style:none;padding:0;margin:0 0 1rem}
.check-list li{position:relative;padding-left:2.2rem;margin-bottom:.55rem}
.check-list li::before{content:"";position:absolute;left:0;top:.3em;width:1.4rem;height:1.4rem;border-radius:50%;background:var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%23fff' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat}
.page-photo{margin:1.5rem 0 1.8rem;max-width:900px}
.lesson-photo{margin:1.5rem 0}
.welcome-sub{font-style:italic;color:var(--accent);margin-top:-.3rem}
.welcome{box-shadow:0 8px 24px rgba(31,42,68,.08)}

/* Video */
.video-frame{max-width:960px;margin:1.5rem auto 0;text-align:left}
.video-frame .video-shell{background:#fff;padding:6px;border-radius:26px;box-shadow:0 12px 32px rgba(31,42,68,.18)}
.video-frame video{display:block;width:100%;height:auto;background:var(--ink);border-radius:20px}
.video-frame figcaption{margin-top:.9rem;color:var(--ink-2);font-size:.95rem;text-align:center}
.transcript{max-width:960px;margin:1.2rem auto 0;text-align:left;background:#fff;border:2px solid var(--line);border-radius:16px}
.transcript summary{cursor:pointer;font-weight:700;color:var(--primary);padding:.9rem 1.2rem;min-height:56px;display:flex;align-items:center}
.transcript summary:hover{background:var(--mint);border-radius:14px}
.transcript-body{padding:0 1.2rem 1rem}
.lesson .video-frame,.lesson .transcript{margin-left:0;margin-right:0}
.video-h{margin-top:1.6rem!important}

/* Contact / forms */
.hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.email-card{display:flex;flex-direction:column;gap:.2rem;background:#fff;border:2px solid var(--line);border-left:10px solid var(--primary);border-radius:var(--radius);padding:1.2rem 1.5rem;margin:1.2rem 0 2rem;max-width:640px;box-shadow:0 6px 18px rgba(31,42,68,.06)}
.email-label{font-weight:700;color:var(--accent)}
.email-big{font-size:1.35rem;font-weight:700;word-break:break-word}
.btn[disabled]{opacity:.75;cursor:wait}
.footer-email a{font-weight:700;font-size:1.1rem}
.thanks{padding:5rem 0}
.thanks-badge svg{width:110px;height:110px;margin:0 auto 1rem;display:block}
.form-errors{background:#FDEDE4;border-left:8px solid var(--accent);border-radius:var(--radius);padding:1.2rem 1.5rem;margin:1.5rem 0}

@media (max-width:860px){
  .hero-grid,.split,.topic-grid{grid-template-columns:1fr}
  .hero-art{order:-1}
  .hero-art::before{inset:auto -8px -8px auto}
  .greeting{font-size:1rem}
  .email-big{font-size:1.15rem}
}
/* Class cards: label above value, easier to read */
.class-card{border-top:8px solid var(--primary);box-shadow:0 6px 18px rgba(31,42,68,.06)}
.class-card dl{grid-template-columns:1fr;gap:0}
.class-card dt{margin-top:.55rem}
.lesson-photo{max-width:620px}

/* ===== Combined site v2: prompts, steps, glossary, FAQ, resources, legal ===== */
.ext{font-weight:700}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Breadcrumbs */
.breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:.35rem .7rem;margin:0;padding:1.5rem 0 0;font-size:.95rem}
.breadcrumb li{display:flex;align-items:center;gap:.7rem}
.breadcrumb li:not(:last-child)::after{content:"›";color:var(--ink-2);font-weight:700}
.breadcrumb [aria-current="page"]{color:var(--ink-2);font-weight:700}

/* Numbered how-to steps */
.steps{list-style:none;padding:0;margin:1.5rem 0;counter-reset:step}
.steps > li{position:relative;padding:1.2rem 1.2rem 1.2rem 5rem;margin:0 0 1rem;background:#fff;border:2px solid var(--line);border-radius:var(--radius);counter-increment:step}
.steps > li::before{content:counter(step);position:absolute;left:1rem;top:1.15rem;width:2.6rem;height:2.6rem;border-radius:50%;background:var(--primary);color:#fff;font-weight:700;font-family:Georgia,serif;font-size:1.35rem;display:flex;align-items:center;justify-content:center}
.steps > li > strong:first-child,.steps > li > h3:first-child{display:block;margin:0 0 .35rem}

/* AI tool cards */
.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin:1.5rem 0}
.tool-card{background:#fff;border:2px solid var(--line);border-radius:var(--radius);padding:1.3rem 1.4rem;display:flex;flex-direction:column;box-shadow:0 6px 18px rgba(31,42,68,.06)}
.tool-card h3{margin:0 0 .2rem}
.tool-card .tool-meta{color:var(--ink-2);font-size:.95rem;font-weight:700;margin-bottom:.7rem}
.tool-card .btn{margin-top:auto;align-self:flex-start}

/* Copy-and-paste question cards */
.prompt-card{background:#fff;border:2px solid var(--line);border-radius:var(--radius);padding:1.4rem 1.5rem;margin:0 0 1.3rem;box-shadow:0 6px 18px rgba(31,42,68,.06)}
.prompt-card h3{margin-top:0}
.prompt-text{background:var(--soft);border:2px dashed #7A8399;border-radius:12px;padding:1rem 1.15rem;font-style:normal;margin:0 0 1rem}
.prompt-var,.prompt-text mark{background:#FCE4C8;color:var(--ink);font-style:normal;font-weight:700;padding:.05rem .2rem;border-radius:4px}
.copy-btn{font:inherit;font-weight:700;cursor:pointer;min-height:56px;padding:.7rem 1.3rem;border-radius:14px;border:3px solid var(--primary);background:#fff;color:var(--primary)}
.copy-btn:hover{background:var(--mint);color:var(--primary-dark)}
.copy-note{min-height:1.5em;margin:.6rem 0 0;font-weight:700;color:var(--primary-dark)}
.open-row{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.8rem}
.open-row .btn{min-height:48px;padding:.5rem 1rem;font-size:.95rem;width:auto}
.open-label{font-weight:700;width:100%;margin:0 0 .2rem}

/* Question builder */
.builder{background:var(--mint);border-radius:var(--radius);padding:1.6rem 1.6rem 1.4rem;margin:2rem 0;border-left:8px solid var(--primary)}
.builder h2{margin-top:0}
.builder-output{background:#fff;border:2px solid var(--line);border-radius:12px;padding:1rem 1.15rem;min-height:5.5rem;margin:0 0 1rem;font-weight:700}

/* Glossary & FAQ */
.glossary, .faq-list{max-width:820px}
.glossary details, .faq-list details{background:#fff;border:2px solid var(--line);border-radius:14px;margin:0 0 .8rem;padding:0}
.glossary summary, .faq-list summary{cursor:pointer;font-weight:700;font-size:1.05rem;padding:1rem 1.2rem;min-height:56px;display:flex;align-items:center;list-style:none}
.glossary summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker{display:none}
.glossary summary::before, .faq-list summary::before{content:"+";display:inline-flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;margin-right:.7rem;border-radius:50%;background:var(--mint);color:var(--primary-dark);font-weight:700;flex:none}
.glossary details[open] summary::before, .faq-list details[open] summary::before{content:"–"}
.glossary .gloss-body, .faq-list .faq-body{padding:0 1.2rem 1.1rem 3.5rem}
.glossary details[open] summary, .faq-list details[open] summary{color:var(--primary-dark)}

/* Resource / class cards */
.resource-card{border-top:8px solid var(--primary)}
.help-list{list-style:none;padding:0;margin:1rem 0 0}
.help-list li{background:#fff;border:2px solid var(--line);border-left:8px solid var(--primary);border-radius:14px;padding:1rem 1.2rem;margin:0 0 .8rem}
.help-list a{font-weight:700;font-size:1.15rem}

/* Legal / about long text */
.legal h2{margin-top:2rem}
.legal ul,.legal ol{padding-left:1.4rem}
.legal li{margin-bottom:.5rem}

/* 404 */
.notfound{padding:4.5rem 0}
.notfound .lead{margin-left:auto;margin-right:auto}

/* Footer legal row + 4 columns */
.footer-grid{grid-template-columns:2fr 1fr 1fr 1fr}
.footer-legal{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;margin-top:.8rem}
.footer-legal a{font-weight:700}

/* Lesson prev/next already uses btn-row */
.page-intro{max-width:820px}

@media (max-width:860px){
  .tool-grid{grid-template-columns:1fr}
  .steps > li{padding-left:4.6rem}
  .glossary .gloss-body, .faq-list .faq-body{padding-left:1.2rem}
  .footer-grid{grid-template-columns:1fr}
  .open-row .btn{width:auto;flex:1 1 auto}
}

/* Two-row desktop header: logo + text button on top, full-width nav underneath.
   Six large, easy-to-tap items don't fit beside the logo on one row. */
@media (min-width:861px){
  .header-inner{display:grid;grid-template-columns:1fr auto;grid-template-areas:"logo tools" "nav nav";align-items:center;row-gap:.35rem;column-gap:1rem}
  .logo{grid-area:logo}
  .header-tools{grid-area:tools}
  .main-nav{grid-area:nav}
  .main-nav ul{justify-content:flex-start;flex-wrap:nowrap}
  .main-nav a{padding:.5rem 1rem}
}
