/* Shared site styles. Append home-hero-v5.css unchanged after this file. */
:root {
  --paper:#faf9f5; --white:#fff; --ink:#203e34; --green:#245443;
  --muted:#617168; --gold:#a77b2f; --gold-text:#876125;
  --line:#e6e9e1; --soft:#f1f4ed; --warm:#f4efe3;
  --radius:18px; --max:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}
button:disabled{cursor:default}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:5px}
img{max-width:100%;height:auto}
[hidden]{display:none!important}
.wrap{width:min(var(--max),calc(100% - 96px));margin-inline:auto}
.skip{position:absolute;top:-80px;left:20px;z-index:30;padding:10px 18px;background:#fff}
.skip:focus{top:12px}
.screen-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Header and navigation */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:10}
.header-inner{min-height:100px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brands{display:flex;align-items:center;gap:25px;flex-shrink:0}
.brand-logo{display:block;width:144px;height:auto;max-height:48px;object-fit:contain;flex-shrink:0}
.brand-logo img{display:block;width:144px;height:auto;max-height:48px;object-fit:contain}
.mathe-brand{font-size:20px;font-weight:800;letter-spacing:-.7px;line-height:1.2}
.mathe-brand em{font-style:normal;color:#a86c2f}
.mathe-brand small{display:block;margin-top:5px;font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:500;color:var(--muted)}
.brand-divider{height:35px;width:1px;background:#d7c4a2}
.wordmark{font-family:Georgia,'Times New Roman',serif;font-size:32px;font-weight:700;font-style:italic;letter-spacing:-1.4px;line-height:1;white-space:nowrap}
.site-nav{display:flex;gap:22px;align-items:center;font-size:12px;font-weight:700;white-space:nowrap}
.site-nav a{padding:11px 0;position:relative}
.site-nav a[aria-current=page]::after{content:'';height:2px;background:var(--gold);position:absolute;bottom:2px;left:0;right:0}
.site-nav a:hover{color:var(--gold-text)}
.menu-toggle{display:none;min-height:44px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 14px;color:var(--ink);font-size:14px;font-weight:700}

/* Shared title typography; the approved home composition is defined separately. */
.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--gold-text);margin:0 0 24px}
.hero-copy{position:relative;z-index:2;max-width:570px;min-width:0}
.display{font-family:Georgia,'Times New Roman',serif;font-size:88px;line-height:1.02;letter-spacing:-4px;font-weight:500;margin:0 0 21px}
.hero-subtitle{font-family:Georgia,'Times New Roman',serif;font-size:40px;font-weight:400;line-height:1.17;letter-spacing:-1.1px;margin:0 0 25px;max-width:540px}
.hero-description{font-size:17px;line-height:1.75;color:#52675c;max-width:480px;margin:0 0 29px}
.actions{display:flex;gap:13px;align-items:center;flex-wrap:wrap}
.button{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:49px;padding:12px 21px;border:1px solid var(--green);border-radius:7px;font-size:13px;font-weight:700;line-height:1.4;transition:background .15s,color .15s}
.button.primary{background:var(--green);color:#fff}
.button.primary:hover{background:#153c2e}
.button.secondary{background:rgba(255,255,255,.55);border-color:#ccd6ca}
.button.secondary:hover{background:#fff}
.arrow{font-size:19px;font-weight:400}
.text-link{display:inline-flex;align-items:center;gap:14px;font-weight:700;font-size:14px;color:var(--green);margin-top:18px}
.text-link:hover{text-decoration:underline;text-underline-offset:5px}

/* Compact topic cards and editorial sections */
.topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-block:0 42px;position:relative;z-index:3}
.topic-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:23px 21px 24px;display:flex;gap:15px;align-items:flex-start;transition:border-color .15s,transform .15s;min-width:0}
.topic-card:hover{border-color:#c3ceb9;transform:translateY(-2px)}
.icon-box{color:#9d7f40;width:36px;height:36px;background:#f6f2e8;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.icon-box svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.topic-card h2{font-size:15px;line-height:1.4;margin:0 0 7px;font-weight:700}
.topic-card p{font-size:13px;line-height:1.65;color:var(--muted);margin:0}
.section-heading{font-family:Georgia,'Times New Roman',serif;font-size:37px;font-weight:400;line-height:1.2;letter-spacing:-.7px;margin:0 0 20px}
.intro-band{border-top:1px solid var(--line);padding:32px 0 36px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px}
.intro-band p:not(.eyebrow){margin:0;color:var(--muted);font-size:16px;max-width:560px}
.intro-band .eyebrow{margin-bottom:14px}
.page-top{padding-top:32px}
.breadcrumb{font-size:12px;color:var(--muted);letter-spacing:.2px;margin-bottom:24px}
.breadcrumb a{color:#52675c}
.breadcrumb a:hover{text-decoration:underline;text-underline-offset:3px}
.breadcrumb span{padding-inline:12px;color:#a3aca4}
.page-hero{position:relative;padding:12px 0 34px;min-height:0}
.page-title{font-family:Georgia,'Times New Roman',serif;font-size:60px;line-height:1.1;font-weight:400;letter-spacing:-2px;max-width:780px;margin:0 0 24px}
.page-lead{font-size:17px;line-height:1.75;color:var(--muted);max-width:660px;margin:0}
.page-hero .hero-copy{max-width:780px}
.page-hero .page-lead{max-width:660px}
.content-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-bottom:36px}
.content-grid.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
.content-card{min-width:0;background:#fff;border:1px solid var(--line);padding:27px 28px 29px;border-radius:var(--radius)}
.content-card>.icon-box{margin-bottom:18px}
.number{font-family:Georgia,'Times New Roman',serif;font-size:28px;color:#b89b60;line-height:1;margin:0 0 22px}
.content-card h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.3px;font-size:26px;line-height:1.2;margin:0 0 14px}
.content-card h3{font-size:18px;line-height:1.35;margin:0 0 12px}
.content-card p:not(.number):not(.eyebrow){font-size:14px;line-height:1.75;color:var(--muted);margin:0}
.content-card p:not(.number):not(.eyebrow)+p{margin-top:12px}
.callout{display:flex;align-items:center;justify-content:space-between;gap:28px;background:var(--soft);border:1px solid #e5ebdf;border-radius:var(--radius);padding:25px 30px;margin-bottom:38px}
.callout>div{min-width:0}
.callout h2{font-family:Georgia,'Times New Roman',serif;font-size:28px;font-weight:400;margin:0 0 7px;letter-spacing:-.3px;line-height:1.25}
.callout p{font-size:14px;color:var(--muted);margin:0}
.callout .button{flex-shrink:0;white-space:nowrap}
.learning-hero{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:42px;align-items:center;padding-top:12px;margin-bottom:36px}
.learning-hero .page-title{max-width:800px}
.learning-note{align-self:center;padding:28px;border-left:1px solid #ddd8c9}
.learning-note .eyebrow{margin-bottom:15px}
.learning-note p:not(.eyebrow){font-family:Georgia,'Times New Roman',serif;font-size:25px;line-height:1.4;margin:0}
.learning-card .icon-box{margin-bottom:22px;width:42px;height:42px}
.learning-card h2{font-size:30px}
.learning-card .mini-title{display:block;font-weight:700;font-size:13px;color:var(--green);margin-top:20px}
.editorial-heading{font-family:Georgia,'Times New Roman',serif;font-size:34px;font-weight:400;margin:0 0 14px;line-height:1.3}
.faq{max-width:900px;margin:0 0 36px}
.faq details{border-bottom:1px solid var(--line);padding:18px 0}
.faq summary{cursor:pointer;font-weight:700;font-size:15px}
.faq p{font-size:15px;max-width:760px;color:var(--muted)}
.faq p a{text-decoration:underline;text-underline-offset:3px}

/* Text paired with a complete original app view */
.feature-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:36px;align-items:center;margin:0 0 36px}
.feature-intro>*{min-width:0}
.feature-intro .hero-copy{max-width:100%}
.feature-intro .page-hero{padding-bottom:0}
.feature-intro .page-title{font-size:clamp(42px,4.3vw,58px);max-width:620px}
.feature-intro .page-lead{font-size:16px;max-width:620px}
.feature-intro .actions{margin-top:24px}
.feature-image{min-width:0;margin:0}
.feature-image figure{margin:0}
.feature-image a{display:block}
.feature-image img{display:block;width:100%;height:auto;object-fit:contain;border:1px solid var(--line);border-radius:14px;background:#fff;padding:8px}
.feature-image figcaption{font-size:13px;line-height:1.6;color:var(--muted);padding:11px 2px 0}
.feature-image figcaption strong{color:var(--ink)}
.feature-image figcaption p{margin:4px 0 0}
.image-context{font-size:14px;line-height:1.75;color:var(--muted);margin:16px 0 0}
.breadcrumb span[aria-current]{padding-inline:0;color:var(--muted)}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:22px}
.section-head>*{min-width:0}
.section-head h2,.section-head h3{font-family:Georgia,'Times New Roman',serif;font-size:32px;font-weight:400;line-height:1.2;letter-spacing:-.55px;margin:0;max-width:760px}
.section-head p:not(.eyebrow){font-size:15px;line-height:1.7;color:var(--muted);margin:0;max-width:560px}
.section-head .eyebrow{margin-bottom:10px}
.section-head h2+p,.section-head h3+p{margin-top:10px}

/* Original image galleries: no fixed image heights and no image cropping. */
.gallery{margin:0 0 36px}
.gallery figure{margin:0}
.gallery a{display:block;padding:10px;background:#fff;border:1px solid var(--line);border-radius:15px}
.gallery img{display:block;width:100%;height:auto;object-fit:contain;border-radius:8px}
.gallery figcaption{font-size:13px;line-height:1.6;color:var(--muted);padding-top:12px}
.gallery-group{margin-block:36px;scroll-margin-top:24px}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.gallery-item{min-width:0;margin:0;padding:10px 10px 15px;background:#fff;border:1px solid var(--line);border-radius:16px}
.gallery-item>a{display:block;overflow:hidden;border:0;padding:0;border-radius:9px;background:var(--paper)}
.gallery-item>a:hover{outline:1px solid #b9c6b5;outline-offset:3px}
.gallery-item img{display:block;width:100%;height:auto;object-fit:contain;border-radius:8px}
.gallery-item figcaption{padding:14px 5px 0;font-size:13px;line-height:1.65;color:var(--muted)}
.gallery-item figcaption h3{font-size:17px;line-height:1.35;font-weight:700;color:var(--ink);margin:0 0 6px}
.gallery-item figcaption p{margin:0;font-size:14px;line-height:1.65;color:var(--muted)}
.jump-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 26px;padding:0;list-style:none}
.jump-links a{display:inline-flex;align-items:center;min-height:44px;padding:9px 14px;border:1px solid #dbe2d5;background:#fff;border-radius:7px;font-size:13px;font-weight:700;line-height:1.4;color:var(--green)}
.jump-links a:hover{background:var(--soft);border-color:#bdcbb5}

/* Informative lists and two-column content */
.split-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:start;margin-bottom:36px}
.split-content>*{min-width:0}
.split-content .content-grid{margin-bottom:0}
.fact-list{margin:0;padding:3px 24px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.fact-list dl{margin:0}
.fact-list>div,.fact-list dl>div{display:grid;grid-template-columns:minmax(120px,.75fr) minmax(0,1.25fr);gap:20px;padding:15px 0}
.fact-list>div+div,.fact-list dl>div+div{border-top:1px solid var(--line)}
.fact-list dt{font-size:14px;font-weight:700;line-height:1.65;color:var(--ink)}
.fact-list dd{margin:0;font-size:14px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}
.detail-list{margin:16px 0 0;padding-left:21px;font-size:15px;line-height:1.75;color:var(--muted)}
.detail-list li{padding-left:3px}
.detail-list li+li{margin-top:8px}
.detail-list li::marker{color:var(--gold-text)}
.detail-list strong{color:var(--ink)}
.detail-list a{text-decoration:underline;text-underline-offset:3px}

/* Author and legal information */
.legal{max-width:820px;padding-bottom:42px}
.legal h2{font-family:Georgia,'Times New Roman',serif;font-size:25px;font-weight:400;line-height:1.3;margin:28px 0 10px}
.legal h2:first-child{margin-top:0}
.legal p,.legal li{font-size:15px;line-height:1.8;color:#52675c;overflow-wrap:break-word}
.legal a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.legal address{font-style:normal;line-height:1.9}
.creator-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;align-items:start;margin-bottom:42px}
.creator-layout>*{min-width:0}
.creator-layout .legal{max-width:none;padding-bottom:0}
.creator-portrait{width:100%;max-width:300px;margin:0}
.creator-portrait img{display:block;width:100%;height:auto;object-fit:contain;border:1px solid var(--line);border-radius:14px;background:#fff}
.creator-portrait figcaption{margin-top:11px;font-size:13px;line-height:1.65;color:var(--muted)}
.creator-portrait figcaption strong{display:block;color:var(--ink);font-size:15px}

/* Original-size image dialog. Native dialog focus management is handled by JS. */
.lightbox{width:min(1320px,calc(100% - 48px));max-width:none;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);padding:20px 22px 18px;border:1px solid #496255;border-radius:14px;background:#15372c;color:#faf9f5;box-shadow:0 20px 80px #05130f66;overflow:auto}
.lightbox:not([open]){display:none}
.lightbox[open]{display:flex;flex-direction:column;gap:15px}
.lightbox::backdrop{background:rgba(7,24,18,.88)}
.lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px}
.lightbox-caption{font-size:15px;line-height:1.5;font-weight:700;margin:0;min-width:0}
.lightbox-stage{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:auto;background:#102b23;border-radius:9px}
.lightbox img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 210px);max-height:calc(100dvh - 210px);object-fit:contain;margin:auto}
.lightbox-controls{display:flex;align-items:center;justify-content:space-between;gap:14px}
.lightbox-close,.lightbox-prev,.lightbox-next,.lightbox button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;padding:9px 15px;border:1px solid #83978b;border-radius:7px;background:#234b3b;color:#fff;font-size:14px;line-height:1.4;font-weight:700}
.lightbox button:hover:not(:disabled){background:#315f4b;border-color:#b4c4b8}
.lightbox-close{flex-shrink:0}
.lightbox button:disabled{opacity:.45}
.lightbox-counter{font-size:13px;color:#d6e1d8;white-space:nowrap}
.lightbox-original{font-size:13px;text-decoration:underline;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center;text-align:center}
.lightbox :focus-visible{outline-color:#f2cd7d}

/* Footer */
.site-footer{border-top:1px solid var(--line);background:#fff}
.footer-inner{min-height:115px;display:flex;justify-content:space-between;align-items:center;gap:32px}
.footer-brand{font-family:Georgia,'Times New Roman',serif;font-size:24px;font-style:italic;font-weight:700;letter-spacing:-.6px}
.footer-sub{font-size:12px;margin:4px 0 0;color:var(--muted)}
.footer-links{display:flex;gap:26px;font-size:13px;color:var(--muted)}
.footer-links a:hover{text-decoration:underline;text-underline-offset:3px}
.page-footer-note{font-size:12px;color:var(--muted)}

@media(min-width:1550px){
  .hero-copy{max-width:600px}
  .display{font-size:94px}
}
@media(max-width:1180px){
  .wrap{width:calc(100% - 64px)}
  .brands{gap:18px}
  .mathe-brand,.brand-logo,.brand-divider{display:none}
  .site-nav{gap:19px}
  .hero-copy{max-width:515px}
  .display{font-size:78px}
  .hero-subtitle{font-size:36px;max-width:490px}
  .hero-description{max-width:440px}
  .topic-card{padding:21px 16px;gap:10px}
  .topic-card h2{font-size:14px}
  .icon-box{width:29px;height:29px}
  .page-title{font-size:54px}
  .content-card{padding:25px}
  .content-card h2{font-size:24px}
  .learning-hero{grid-template-columns:minmax(0,1fr) 250px;gap:32px}
  .feature-intro{gap:28px}
  .creator-layout{gap:34px}
}
@media(max-width:850px){
  .header-inner{min-height:80px}
  .wordmark{font-size:30px}
  .menu-toggle{display:block}
  .site-nav{display:none;position:absolute;top:80px;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:#fff;padding:12px 32px 20px;border-bottom:1px solid var(--line);box-shadow:0 12px 18px #284f3510;font-size:15px}
  .site-nav.is-open{display:flex}
  .site-nav a{padding:12px;min-height:46px}
  .site-nav a[aria-current=page]::after{display:none}
  .site-nav a[aria-current=page]{background:var(--soft);border-radius:6px}
  .hero-copy{max-width:55%}
  .display{font-size:61px;letter-spacing:-2.7px}
  .hero-subtitle{font-size:30px}
  .hero-description{font-size:15px}
  .actions{gap:10px}
  .button{font-size:13px;padding:11px 16px;gap:15px}
  .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:32px}
  .topic-card h2{font-size:15px}
  .topic-card{padding:20px}
  .intro-band{gap:32px;padding-top:28px}
  .section-heading{font-size:32px}
  .page-title{font-size:46px}
  .page-lead{font-size:16px}
  .content-grid{gap:16px}
  .content-card{padding:21px}
  .content-card h2{font-size:23px}
  .callout{padding:23px;gap:20px}
  .callout h2{font-size:25px}
  .learning-hero{grid-template-columns:minmax(0,1fr) 200px;gap:24px}
  .learning-note{padding:20px}
  .learning-note p:not(.eyebrow){font-size:21px}
  .feature-intro{grid-template-columns:1fr;gap:24px}
  .feature-intro .page-title{font-size:46px}
  .feature-intro .page-lead{max-width:720px}
  .feature-image{max-width:760px}
  .creator-layout{grid-template-columns:1fr;gap:28px}
  .footer-inner{flex-wrap:wrap;gap:18px 28px;padding-block:24px}
  .footer-links{gap:18px;flex-wrap:wrap}
}
@media(max-width:849px){
  .split-content{grid-template-columns:1fr;gap:24px}
}
@media(max-width:759px){
  .content-grid,.content-grid.two-col{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:1fr;gap:20px}
  .section-head{display:block}
  .section-head p:not(.eyebrow){margin-top:10px;max-width:680px}
  .section-head h2,.section-head h3{font-size:30px}
  .callout{align-items:flex-start;flex-direction:column;gap:18px}
  .callout .button{margin-top:0}
}
@media(max-width:600px){
  .wrap{width:calc(100% - 40px)}
  .header-inner{min-height:76px;gap:12px}
  .wordmark{font-size:28px}
  .site-nav{top:76px;padding-inline:20px}
  .hero-copy{max-width:100%}
  .eyebrow{font-size:11px;letter-spacing:1.6px;margin-bottom:20px}
  .display{font-size:59px;letter-spacing:-2.9px;margin-bottom:20px}
  .hero-subtitle{font-size:32px;max-width:360px;margin-bottom:20px}
  .hero-description{font-size:15px;line-height:1.8;max-width:100%;margin-bottom:25px}
  .actions{display:flex;gap:10px}
  .button{font-size:13px;min-height:46px;padding:11px 14px;gap:12px}
  .topic-grid{gap:10px;margin-bottom:28px}
  .topic-card{padding:16px;display:block}
  .topic-card .icon-box{margin-bottom:12px}
  .topic-card h2{font-size:14px}
  .topic-card p{font-size:13px}
  .intro-band{grid-template-columns:1fr;gap:0;padding:28px 0}
  .section-heading{font-size:31px;margin-bottom:16px}
  .intro-band p:not(.eyebrow){font-size:15px}
  .page-top{padding-top:24px}
  .breadcrumb{margin-bottom:24px;font-size:11px}
  .page-hero{padding:4px 0 28px}
  .page-hero .hero-copy{max-width:100%}
  .page-title{font-size:43px;letter-spacing:-1.6px;margin-bottom:20px}
  .page-lead{font-size:15px}
  .content-grid{margin-bottom:28px;gap:14px}
  .content-card{padding:23px}
  .content-card .number{margin-bottom:18px;font-size:25px}
  .content-card h2{font-size:26px}
  .callout{padding:23px;margin-bottom:30px}
  .learning-hero{display:block;margin-bottom:28px;padding-top:4px}
  .learning-note{margin-top:24px;padding:17px 22px;background:var(--soft);border-left:2px solid #cfb77f;border-radius:0 10px 10px 0}
  .learning-note .eyebrow{margin-bottom:8px}
  .learning-note p:not(.eyebrow){font-size:21px}
  .learning-card .icon-box{margin-bottom:19px}
  .editorial-heading{font-size:29px}
  .feature-intro{margin-bottom:28px;gap:22px}
  .feature-intro .page-title{font-size:43px}
  .feature-intro .page-lead{font-size:15px}
  .feature-image img{padding:6px;border-radius:12px}
  .feature-image figcaption{font-size:13px}
  .section-head{margin-bottom:18px}
  .section-head h2,.section-head h3{font-size:28px}
  .gallery-group{margin-block:30px}
  .gallery-item{padding:8px 8px 14px}
  .gallery-item figcaption{padding:12px 4px 0}
  .jump-links{gap:7px;margin-bottom:22px}
  .jump-links a{padding:9px 12px}
  .split-content{margin-bottom:28px}
  .fact-list{padding-inline:20px}
  .fact-list>div,.fact-list dl>div{grid-template-columns:1fr;gap:4px;padding:13px 0}
  .creator-layout{margin-bottom:32px}
  .creator-portrait{max-width:280px}
  .footer-inner{display:block;padding-block:28px;min-height:0}
  .footer-brand{font-size:25px}
  .footer-links{margin-top:20px;gap:16px 24px;flex-wrap:wrap}
  .page-footer-note{display:block;margin-top:18px}
  .legal p,.legal li{font-size:15px}
  .legal{padding-bottom:32px}
  .lightbox{width:calc(100% - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);padding:14px 12px;border-radius:10px}
  .lightbox[open]{gap:12px}
  .lightbox-toolbar{gap:12px;align-items:flex-start}
  .lightbox-caption{font-size:14px}
  .lightbox img{max-height:calc(100vh - 190px);max-height:calc(100dvh - 190px)}
  .lightbox-controls{gap:8px;flex-wrap:wrap}
  .lightbox-close,.lightbox-prev,.lightbox-next,.lightbox button{font-size:13px;padding:9px 11px}
}
@media(max-width:360px){
  .wordmark{font-size:25px}
  .topic-grid{grid-template-columns:1fr}
  .topic-card{display:flex;gap:14px}
  .topic-card .icon-box{margin-bottom:0}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}

.home-hero{position:relative;isolation:isolate;overflow:hidden;background:var(--paper);margin-bottom:30px}
.home-world{position:absolute;inset:0;z-index:0}
.home-world img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:75% 50%;filter:saturate(.76) brightness(1.035)}
.home-veil{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(250,249,245,.91) 0%,rgba(250,249,245,.90) 10%,rgba(250,249,245,.86) 22%,rgba(250,249,245,.79) 34%,rgba(250,249,245,.66) 46%,rgba(250,249,245,.49) 57%,rgba(250,249,245,.30) 67%,rgba(250,249,245,.13) 77%,rgba(250,249,245,.035) 87%,rgba(250,249,245,0) 100%)}
.home-inner{position:relative;z-index:2;min-height:640px;display:flex;align-items:center;padding-block:62px 64px}
.home-inner .hero-copy{width:560px;max-width:49%}
.home-inner .hero-description{color:#3e5749;max-width:480px}
.home-inner .button.secondary{background:rgba(250,249,245,.76)}
@media(min-width:1550px){.home-inner{min-height:660px}.home-inner .hero-copy{width:590px}}
@media(min-width:851px) and (max-width:1100px){.home-inner{min-height:620px;padding-block:46px}.home-inner .hero-copy{max-width:52%;width:480px}.home-inner .display{font-size:73px}.home-inner .hero-subtitle{font-size:35px}.home-inner .hero-description{font-size:16px;max-width:420px}}
@media(min-width:601px) and (max-width:850px){.home-inner{min-height:610px;padding-block:42px}.home-inner .hero-copy{max-width:59%;width:450px}.home-inner .display{font-size:60px}.home-inner .hero-subtitle{font-size:30px}.home-inner .hero-description{font-size:15px}.home-world img{object-position:80% 50%}}
@media(max-width:600px){.home-hero{margin-bottom:24px}.home-inner{display:block;min-height:0;padding-top:38px;padding-bottom:410px}.home-inner .hero-copy{width:100%;max-width:100%}.home-inner .display{font-size:59px}.home-inner .hero-subtitle{font-size:32px}.home-inner .hero-description{font-size:15px}.home-world{inset:auto 0 0;height:420px}.home-world img{object-position:88% 50%}.home-veil{inset:auto 0 0;height:420px;background:linear-gradient(180deg,rgba(250,249,245,1) 0%,rgba(250,249,245,.91) 8%,rgba(250,249,245,.54) 18%,rgba(250,249,245,.16) 30%,rgba(250,249,245,0) 44%,rgba(250,249,245,0) 100%)}}


/* Film page – matched to the existing green, gold and ivory design. */
.film-page{padding-bottom:8px}
.film-feature{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1fr);align-items:center;gap:clamp(26px,4vw,70px);padding:10px 0 44px}
.film-feature>*{min-width:0}
.film-feature .page-title{font-size:clamp(38px,4.4vw,58px);max-width:610px;letter-spacing:-1.8px}
.film-feature .eyebrow{margin-bottom:17px}
.film-feature .page-lead{font-size:16px;max-width:570px}
.film-context{font-size:14px;line-height:1.8;color:var(--muted);max-width:550px;margin:19px 0 0}
.film-facts{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px}
.film-facts span{display:inline-block;padding:6px 11px;border:1px solid #e1e5db;border-radius:999px;background:#fff;font-size:12px;color:#52675c;white-space:nowrap}
.film-facts strong{color:var(--green)}
.film-figure{margin:0;width:100%;max-width:529px;justify-self:end}
.film-player{position:relative;width:100%;aspect-ratio:7 / 5;background:#133126;border:1px solid #345846;border-radius:16px;overflow:hidden;box-shadow:0 18px 42px rgba(20,55,40,.16)}
.film-poster{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#112a21,#244836)}
.film-poster::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,rgba(6,23,15,.36),transparent 42%)}
.film-poster img{display:block;max-height:100%;width:100%;height:100%;object-fit:contain}
.film-video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#102920}
.film-video[hidden]{display:none}
.film-play-button{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;display:flex;align-items:center;gap:13px;min-height:56px;padding:10px 19px 10px 11px;border:1px solid #ffffffb8;border-radius:999px;background:rgba(255,255,255,.96);color:var(--green);font-size:14px;font-weight:700;white-space:nowrap;box-shadow:0 8px 30px #06190f80;transition:background .15s,transform .15s}
.film-play-button:hover{background:#fff;transform:translate(-50%,-50%) scale(1.025)}
.film-play-icon{display:flex;align-items:center;justify-content:center;border-radius:50%;height:36px;width:36px;color:#fff;background:var(--green);font-size:14px;padding-left:2px}
.film-duration{position:absolute;z-index:2;right:14px;bottom:12px;color:#fff;background:#13291ed9;padding:3px 9px;border-radius:5px;font-size:12px;font-weight:700;letter-spacing:.4px}
.film-caption{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-top:11px;font-size:12px;line-height:1.5;color:var(--muted)}
.film-caption a{font-weight:700;text-decoration:underline;text-underline-offset:3px;color:var(--green);white-space:nowrap}
.film-caption a:hover{color:var(--gold-text)}
.film-status{font-size:13px;margin:6px 0 0;color:#9a4b35}.film-status:empty{display:none}
.film-noscript{font-size:13px}.film-noscript a{text-decoration:underline}
.film-story{padding-top:28px;border-top:1px solid var(--line)}
.film-story .section-head{margin-bottom:26px}
.film-topic-grid{margin-bottom:36px}
.film-topic-grid .content-card .number{margin-bottom:16px}
.film-topic-grid .content-card h3{font-family:Georgia,'Times New Roman',serif;font-size:25px;font-weight:400}
.home-film-preview{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:center;gap:clamp(25px,5vw,80px);padding:26px 28px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin:0 0 42px}
.home-film-image{display:block;position:relative;min-width:0;aspect-ratio:1230 / 576;overflow:hidden;border-radius:12px;background:#173b2d;border:1px solid #d9e2d6}
.home-film-image img{display:block;width:100%;height:100%;object-fit:contain}
.home-film-time{position:absolute;right:12px;bottom:11px;color:#fff;background:#10271fdc;border-radius:5px;font-size:11px;font-weight:700;padding:5px 9px}
.home-film-triangle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:55px;height:55px;display:flex;align-items:center;justify-content:center;padding-left:4px;border:1px solid #fff;border-radius:50%;color:#fff;background:#245443cf;box-shadow:0 6px 20px #0005}
.home-film-text .eyebrow{margin-bottom:10px}
.home-film-text h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(27px,3vw,36px);font-weight:400;line-height:1.18;letter-spacing:-.7px;margin:0 0 13px}
.home-film-text p:not(.eyebrow){font-size:14px;line-height:1.8;color:var(--muted);margin:0}
.home-film-text .text-link{margin-top:14px}
.game-film-link{display:flex;align-items:center;justify-content:space-between;gap:30px;border:1px solid #dfe7db;border-radius:var(--radius);background:var(--soft);padding:25px 28px;margin:0 0 34px}
.game-film-link h2{font-family:Georgia,'Times New Roman',serif;font-size:27px;font-weight:400;line-height:1.2;margin:0 0 8px}
.game-film-link .eyebrow{margin:0 0 8px}
.game-film-link p:not(.eyebrow){color:var(--muted);font-size:14px;margin:0}
.game-film-link .button{flex-shrink:0;background:#fff}
/* Navigation switches to the already supported mobile menu slightly earlier to fit the new item. */
@media(min-width:851px) and (max-width:1020px){
 .header-inner{min-height:80px}
 .menu-toggle{display:block}
 .site-nav{display:none;position:absolute;top:80px;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:#fff;padding:12px 32px 20px;border-bottom:1px solid var(--line);box-shadow:0 12px 18px #284f3510;font-size:15px}
 .site-nav.is-open{display:flex}
 .site-nav a{padding:12px;min-height:46px}
 .site-nav a[aria-current=page]::after{display:none}
 .site-nav a[aria-current=page]{background:var(--soft);border-radius:6px}
}
@media(max-width:850px){
 .film-feature{grid-template-columns:1fr;gap:25px;padding-bottom:35px}
 .film-feature .page-title{max-width:850px}
 .film-figure{justify-self:start}
 .home-film-preview{gap:24px;padding:22px}
}
@media(max-width:600px){
 .film-feature .page-title{font-size:clamp(36px,9vw,44px);letter-spacing:-1.2px}
 .film-feature .page-lead{font-size:15px}
 .film-player{border-radius:12px}
 .film-caption{display:block}
 .film-caption a{display:inline-block;margin-top:5px}
 .home-film-preview{grid-template-columns:1fr;gap:18px;padding:14px 14px 21px;margin-bottom:30px}
 .home-film-text{padding:0 5px}
 .home-film-text h2{font-size:28px}
 .game-film-link{display:block;padding:23px}
 .game-film-link .button{margin-top:17px}
}
@media(prefers-reduced-motion:reduce){.film-play-button{transition:none}}

/* Unified game-and-film destination */
html{scroll-behavior:smooth}#bilder,#filme{scroll-margin-top:110px}
.game-section-nav{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--soft);border:1px solid #dce7d7;border-radius:var(--radius);padding:22px 28px;margin:0 0 36px}
.game-section-nav .eyebrow{margin:0 0 5px}.game-section-nav p:not(.eyebrow){margin:0;font-family:Georgia,'Times New Roman',serif;font-size:24px}
.game-section-actions{display:flex;flex-wrap:wrap;gap:10px}.game-section-actions .button{white-space:nowrap}
.game-photos-more{display:flex;justify-content:flex-start;margin-top:19px}
.parents-photo-section{padding-top:27px;border-top:1px solid var(--line)}
.films-section{margin:52px 0 42px;padding:34px 0 35px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.films-section .section-head{margin-bottom:26px}
.films-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
.film-choice{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 3px 18px rgba(28,58,37,.035)}
.film-choice-head{min-height:172px}.film-choice-number{display:inline-block;color:var(--gold-text);font-weight:700;text-transform:uppercase;letter-spacing:1.8px;font-size:11px;margin-bottom:11px}
.film-choice h3{font:400 clamp(23px,2.2vw,30px)/1.2 Georgia,'Times New Roman',serif;color:var(--green);margin:0 0 12px}
.film-choice-head p{margin:0 0 16px;color:var(--muted);font-size:14px;line-height:1.7}
.film-choice .film-figure{max-width:none;justify-self:stretch}.film-choice .film-player{max-width:none}
.film-poster[hidden],.film-video[hidden]{display:none!important}
.films-explain{max-width:860px;color:var(--muted);font-size:14px;line-height:1.8;margin:25px auto 0;text-align:center}
@media(max-width:850px){.films-grid{grid-template-columns:1fr;max-width:610px;margin:auto}.film-choice-head{min-height:0}.film-choice{padding:18px}.game-section-nav{align-items:flex-start}}
@media(max-width:560px){.game-section-nav{display:block;padding:21px}.game-section-actions{margin-top:17px}.game-section-actions .button{flex:1;justify-content:center}.film-choice{padding:13px}.film-choice h3{font-size:25px}.film-caption a{margin-top:2px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Editorial merge: adopt existing headings, cards, image galleries and colors. */
.learning-integrated{border-top:1px solid var(--line);padding-top:35px;margin:36px 0 43px;scroll-margin-top:24px}
.learning-integrated>.section-head{margin-bottom:24px}
.learning-integrated>.content-grid{margin-bottom:34px}
.learning-integrated>.gallery-group{margin:18px 0 40px}
@media(max-width:600px){.learning-integrated{padding-top:27px;margin-top:30px}.game-section-actions{width:100%}}

/* App-Download mit Code – im bestehenden Grün-, Gold- und Elfenbein-Design */
.download-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,450px);gap:clamp(28px,5vw,72px);align-items:center;margin:0 0 44px}
.download-intro>*{min-width:0}
.download-intro .page-title{font-size:clamp(40px,4.4vw,58px);max-width:640px}
.download-intro .page-lead{font-size:16px;max-width:600px}
.download-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px 30px 26px;box-shadow:0 3px 18px rgba(28,58,37,.05);scroll-margin-top:24px}
.download-card .eyebrow{margin-bottom:10px}
.download-card h2{font-family:Georgia,'Times New Roman',serif;font-size:30px;font-weight:400;line-height:1.2;letter-spacing:-.5px;margin:0 0 20px;color:var(--green)}
.download-card label{display:block;font-size:14px;font-weight:700;margin-bottom:8px}
.download-input{display:block;width:100%;min-height:54px;padding:12px 16px;border:1px solid #ccd6ca;border-radius:7px;background:var(--paper);color:var(--ink);font:700 18px/1.3 Arial,Helvetica,sans-serif;letter-spacing:2px;text-transform:uppercase}
.download-input::placeholder{color:#a3aca4;letter-spacing:1px;font-weight:400}
.download-input:focus{outline:3px solid var(--gold);outline-offset:2px;background:#fff}
.download-card .button{width:100%;margin-top:14px}
.download-msg{margin:0 0 18px;padding:12px 14px;border-radius:8px;font-size:14px;line-height:1.55}
.download-msg.error{background:#fbf0eb;border:1px solid #ebc9bb;color:#8a3b25}
.download-msg.ok{background:var(--soft);border:1px solid #cfdcc8;color:var(--green)}
.download-note{font-size:13px;line-height:1.65;color:var(--muted);margin:16px 0 0}
.download-note a{color:var(--green);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.download-steps{border-top:1px solid var(--line);padding-top:35px;margin-bottom:10px}
.download-steps .content-card h3{font-family:Georgia,'Times New Roman',serif;font-size:25px;font-weight:400;margin:0 0 12px}
.download-steps .content-card .number{margin-bottom:16px}
@media(max-width:850px){.download-intro{grid-template-columns:1fr;gap:28px}.download-card{max-width:560px}}
@media(max-width:600px){.download-intro{margin-bottom:34px}.download-intro .page-title{font-size:clamp(36px,9vw,43px)}.download-card{padding:22px 20px 20px}.download-card h2{font-size:26px}.download-steps{padding-top:28px}}
