/* ZITOMATHIA v2 — Lovable-reference composition, with black / beige / silver palette. */
:root{--ref-ink:#191919;--ref-beige:#e9dfd0;--ref-ivory:#f8f5ef;--ref-silver:#aeb0b2;--ref-silver-light:#d8d9da;--ref-line:#d9d3ca;--ref-muted:#66635e}
body.zito-reference{background:#fff;color:var(--ref-ink);font-family:'Noto Sans',system-ui,-apple-system,'Segoe UI',sans-serif;overflow-x:hidden}
body.zito-reference h1,body.zito-reference h2,body.zito-reference h3,body.zito-reference h4{font-family:'Noto Sans',system-ui,-apple-system,'Segoe UI',sans-serif;font-style:normal;font-weight:650;letter-spacing:-.045em}
body.zito-reference em{font-style:normal}
body.zito-reference .z-main-page{background:var(--ref-ivory)}
body.zito-reference .z-skip{z-index:100}
.ref-wrap{width:min(calc(100% - 64px),1230px);margin-inline:auto}
.ref-progress{position:fixed;top:0;left:0;width:0;height:3px;background:linear-gradient(90deg,#858789,#e4e5e6,#858789);z-index:200;transition:width .08s linear}
.ref-header{position:sticky;top:0;z-index:95;background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(185,182,177,.45)}
.admin-bar .ref-header{top:32px}
.ref-header-wrap{display:flex;align-items:center;justify-content:space-between;gap:35px;min-height:100px}
.ref-logo{display:flex;align-items:center;flex-shrink:0}.ref-logo img{height:72px;width:auto;max-width:100px;object-fit:contain;display:block}
.ref-nav{display:flex;gap:clamp(12px,2vw,27px);align-items:center;margin-left:auto}
.ref-nav a{font-size:13px;font-weight:550;color:var(--ref-ink);background-image:linear-gradient(currentColor,currentColor);background-repeat:no-repeat;background-size:0 1px;background-position:0 100%;transition:background-size .2s}
.ref-nav a:hover,.ref-nav a:focus-visible{background-size:100% 1px}
.ref-header-right{display:flex;gap:17px;align-items:center}
.ref-lang{display:flex;align-items:center;gap:7px;font-size:13px;white-space:nowrap;color:#aaa}.ref-lang a{color:#8d8b86}.ref-lang a.active{color:var(--ref-ink);font-weight:800}
.ref-burger{display:none;width:44px;height:44px;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px solid #cacaca;border-radius:12px;background:#fff}
.ref-burger span{width:18px;height:2px;background:#222}
.ref-main{overflow:clip}
.ref-eyebrow{text-transform:uppercase;font-weight:720;letter-spacing:.16em;font-size:12px;line-height:1.6;color:#65635f;margin:0 0 24px}
.ref-hero{position:relative;isolation:isolate;overflow:hidden;background:var(--ref-beige)}
.ref-hero-grid{min-height:calc(100svh - 100px);display:grid;grid-template-columns:1.22fr .95fr;gap:clamp(10px,3vw,65px);align-items:center}
.ref-hero-text{position:relative;z-index:3;padding:75px 0}
.ref-hero h1{font-size:clamp(42px,5.4vw,88px);line-height:1.09;max-width:800px;letter-spacing:-.056em;margin:25px 0 30px}
.ref-lead{font-size:clamp(15px,1.45vw,18px);line-height:1.82;max-width:640px;color:#4c4843}
.ref-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:38px}
.ref-button{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:52px;padding:13px 25px;border-radius:999px;font-size:13px;font-weight:650;transition:transform .25s ease,background .25s,color .25s,border-color .25s}
.ref-button:hover{transform:translateY(-3px)}
.ref-button-dark{background:var(--ref-ink);color:#fff;border:1px solid var(--ref-ink)}.ref-button-dark:hover{color:#fff;background:#515154;border-color:#515154}
.ref-button-outline{color:var(--ref-ink);border:1px solid var(--ref-ink)}.ref-button-outline:hover{background:#181818;color:white}
.ref-hero-photo{position:relative;height:min(78svh,720px);align-self:end;display:flex;justify-content:center;align-items:flex-end}
.ref-hero-photo:before{content:"";position:absolute;bottom:-11%;width:110%;height:76%;border-radius:55% 44% 0 0;background:radial-gradient(ellipse at center,rgba(230,229,226,.7),transparent 67%);opacity:.75}
.ref-hero-photo img{position:relative;z-index:2;display:block;width:100%;max-width:600px;height:100%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 15px 24px rgba(40,38,33,.13))}
.ref-movement{pointer-events:none;position:absolute;inset:0;z-index:0;letter-spacing:9vw;word-spacing:4vw;font-size:clamp(90px,13vw,200px);line-height:1.9;transform:rotate(-14deg) translate(5%,6%);opacity:.08;color:#333;white-space:normal;overflow:hidden}
.ref-word{height:290svh;background:var(--ref-ivory);position:relative}
.ref-word-inner{position:sticky;top:85px;height:calc(100svh - 85px);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;padding:25px;background:linear-gradient(145deg,var(--ref-ivory),var(--ref-beige))}
.ref-love{display:flex;gap:clamp(2px,.8vw,15px);font-size:clamp(60px,15.2vw,222px);font-weight:750;letter-spacing:-.06em;line-height:1.2;justify-content:center;max-width:100%;white-space:nowrap}
.ref-love span{display:inline-block;will-change:transform,opacity;transition:filter .3s ease}
.ref-love-sub{font-size:clamp(12px,2vw,22px);letter-spacing:.33em;font-weight:500;color:#56524d;margin-top:22px}
.ref-silver-gleam{display:block;height:1px;width:140px;background:linear-gradient(90deg,transparent,var(--ref-silver),#fff,var(--ref-silver),transparent);margin-top:46px}
.ref-scroll-lesson{text-align:center;background:var(--ref-beige);padding:130px 0 155px}
.ref-scroll-lesson .ref-eyebrow{margin-bottom:65px}
.ref-lesson-pair{margin:0 auto 155px}
.ref-lesson-pair h2{font-size:clamp(49px,8.7vw,118px);letter-spacing:-.06em;line-height:1.15;margin:0}
.ref-lesson-pair p{font-size:clamp(32px,5.6vw,64px);color:#65625c;margin:20px 0}
.ref-mini-quiz{background:#fff;border:1px solid var(--ref-line);border-radius:24px;max-width:610px;margin:40px auto 0;padding:35px;box-shadow:0 25px 55px -40px #2227}
.ref-mini-quiz h3{font-size:25px;margin:0 0 29px}
.ref-answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ref-answer-grid button{padding:16px 10px;border:1px solid #dcd7d0;background:#fdfcf9;border-radius:14px;min-height:56px;font-size:13px;color:var(--ref-ink)}
.ref-answer-grid button:hover{border-color:#636363}.ref-answer-grid button.ok{border-color:#326a50;background:#e7f4e9}.ref-answer-grid button.no{border-color:#9e5555;background:#fff0ed}.ref-answer-msg{font-size:13px;min-height:18px;margin:18px 0 0}
.ref-eleni{display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,8vw,120px);align-items:center;padding-block:140px 145px}
.ref-eleni-art{position:relative;display:flex;align-items:end;justify-content:center;min-height:480px}
.ref-eleni-art img{width:min(100%,520px);max-height:600px;object-fit:contain;position:relative;z-index:2;filter:grayscale(.08)}
.ref-silver-halo{position:absolute;inset:6% 5% 0;background:radial-gradient(ellipse at center,#dedad3,transparent 70%);border-radius:50%;opacity:.7}
.ref-eleni-copy h2{font-size:clamp(32px,4.3vw,59px);line-height:1.13;max-width:600px;margin:0 0 28px}
.ref-eleni-copy>p:not(.ref-eyebrow){font-size:16px;line-height:1.95;color:#5b5955;max-width:600px}
.ref-textlink{display:inline-flex;gap:10px;align-items:center;color:#222;font-weight:750;border-bottom:1px solid #777;padding-bottom:8px;margin-top:25px;font-size:14px}
.ref-levels{background:var(--ref-ivory);padding:110px 0 125px}
.ref-section-title{font-size:clamp(33px,5.2vw,66px);line-height:1.08;margin:0 0 45px;max-width:850px}
.ref-level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.ref-level-card{position:relative;background:#fff;min-height:320px;padding:32px 30px 60px;border:1px solid #e6dfd6;border-radius:24px;box-shadow:0 22px 50px -48px rgba(20,20,20,.5);transition:transform .3s,border-color .3s}
.ref-level-card:hover{border-color:#aaa;transform:translateY(-6px)}
.ref-level-mark{width:100px;height:100px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#ddd4c6,#f3f1ed);color:var(--ref-ink);font-size:42px;font-weight:760;margin-bottom:38px}
.ref-level-card h3{font-size:23px;line-height:1.25;margin:0 0 12px}
.ref-level-card p{color:#67645d;font-size:14px;line-height:1.7;margin:0}
.ref-level-arrow{position:absolute;right:26px;bottom:21px;font-size:23px;color:#7c7c7c}
.ref-cyprus{padding:125px 0;background:#fff}
.ref-cyprus-title{display:grid;grid-template-columns:1.1fr .75fr;gap:80px;align-items:end;margin-bottom:48px}
.ref-cyprus-title .ref-section-title{margin-bottom:0}
.ref-cyprus-title>p{font-size:15px;line-height:1.88;color:#68635d}
.ref-atlas{display:grid;grid-template-columns:1.3fr .8fr;gap:20px;align-items:stretch}
.ref-atlas-map{position:relative;min-height:460px;background:linear-gradient(152deg,#ece7df,#f8f6f2);border:1px solid #ddd9d3;border-radius:24px;overflow:hidden}
.ref-map-island{position:absolute;inset:9% 5%;display:flex;justify-content:center;align-items:center;filter:drop-shadow(0 20px 20px #7772)}
.ref-map-island svg{width:100%;height:auto;max-height:100%}
.ref-map-point{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;background:#242424;color:#f8f5ef;width:36px;height:36px;border:2px solid #e9e6df;border-radius:50%;font-size:12px;font-weight:750;cursor:pointer;transition:background .2s,transform .2s,box-shadow .2s;z-index:2}
.ref-map-point:hover,.ref-map-point.is-current{background:#969899;color:#111;box-shadow:0 0 0 6px #c7c8c988;transform:translate(-50%,-50%) scale(1.12)}
.ref-atlas-card{background:#202020;color:#f9f6ef;border-radius:24px;padding:42px 35px;display:flex;flex-direction:column;min-height:460px}
.ref-atlas-counter{color:#b7b8ba;font-size:13px;letter-spacing:.12em;margin-bottom:45px}
.ref-atlas-card .ref-eyebrow{color:#d3d4d6;font-size:10px;margin:0 0 9px}
.ref-atlas-place{font-size:13px;color:#b9b6b0;margin:0 0 12px}
.ref-atlas-name{font-size:30px;line-height:1.18;margin:0 0 20px;color:white}
.ref-atlas-info{font-size:14px;line-height:1.8;color:#d1cbc5;margin:0}
.ref-atlas-card .ref-textlink{color:#e3e3e3;align-self:start;border-color:#9e9e9e;margin-top:auto;margin-bottom:25px}
.ref-map-caption{border-top:1px solid #434343;padding-top:18px;color:#92918f;font-size:11px;line-height:1.6;margin:0}
.ref-end-cta{background:#1b1a18;color:#f7f5ef;position:relative;overflow:hidden}
.ref-end-layout{display:grid;grid-template-columns:1.1fr .65fr;align-items:center;gap:30px;min-height:550px}
.ref-end-layout>div:first-child{padding:100px 0;position:relative;z-index:2}
.ref-end-cta .ref-eyebrow{color:#c1c2c4}
.ref-end-cta h2{font-size:clamp(36px,5vw,67px);line-height:1.12;max-width:700px;margin:0 0 25px;color:#fff}
.ref-end-cta p:not(.ref-eyebrow){font-size:16px;color:#c7c5c0;line-height:1.8;max-width:690px;margin:0 0 30px}
.ref-button-light{background:#f3eee5;color:#191919;border:1px solid #ece5dc}
.ref-end-art{height:100%;position:relative;display:flex;align-items:flex-end;justify-content:center}
.ref-end-art:before{position:absolute;inset:5% -30% 0;content:"";background:radial-gradient(ellipse,#777a7c55,transparent 65%)}
.ref-end-art img{position:relative;max-height:550px;object-fit:contain;object-position:bottom;width:100%;filter:grayscale(.22)}
.ref-footer{background:#191919;color:#eee;padding:58px 0 0}
.ref-footer-main{display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:55px;padding-bottom:65px}
.ref-footer-brand img{height:115px;width:auto;max-width:115px;object-fit:contain}
.ref-footer h3{font-size:18px;letter-spacing:-.02em;font-weight:600;color:#fff;margin:19px 0 10px}
.ref-footer-brand p{color:#c3c3c3;line-height:1.8;font-size:12px;max-width:350px}
.ref-footer h4{font-size:14px;letter-spacing:0;font-weight:700;margin:10px 0 27px;color:#eee}
.ref-footer nav a,.ref-footer-main>div:last-child a{display:block;color:#bdbdbd;font-size:13px;margin-bottom:15px;overflow-wrap:anywhere}
.ref-footer a:hover{color:white}
.ref-footer-bottom{border-top:1px solid #444;color:#aaa;display:flex;justify-content:space-between;gap:20px;padding:23px 0;font-size:12px}
.ref-footer-bottom a{color:#d8d8d8}
.ref-reveal{opacity:0;transform:translateY(25px);transition:opacity .75s ease,transform .75s cubic-bezier(.2,.7,.2,1)}
.ref-reveal.is-visible{opacity:1;transform:none}
/* theme pages share the reference's monochrome visual language */
.zito-reference .z-main-page,.zito-reference .z-page-intro,.zito-reference .z-content-section{font-family:'Noto Sans',system-ui,sans-serif}
.zito-reference .z-page-intro h1,.zito-reference .z-eleni-content h1{font-family:inherit;font-weight:650;font-style:normal;letter-spacing:-.055em}
.zito-reference .z-kicker,.zito-reference .z-eyebrow{color:#717171}
.zito-reference .z-book-cover,.zito-reference .z-package-art{background:linear-gradient(143deg,#3a3a3b,#101010)!important;color:#f8f6f0!important}
.zito-reference .z-book-cover .z-book-mark{color:#d2d2d2}
.zito-reference .z-button-dark{background:#1b1a18;border-color:#1b1a18;color:#fff}
.zito-reference .z-level-card{box-shadow:none}
@media(max-width:1050px){.ref-header-wrap{min-height:80px}.ref-logo img{height:61px}.ref-nav{gap:10px}.ref-nav a{font-size:11px}.ref-hero-grid{min-height:660px}.ref-hero h1{font-size:clamp(45px,5.6vw,68px)}.ref-eleni{padding:90px 0}.ref-atlas{grid-template-columns:1.15fr .85fr}}
@media(max-width:850px){.ref-wrap{width:min(calc(100% - 40px),1230px)}.ref-header-wrap{min-height:74px}.ref-nav{position:absolute;display:none;top:74px;left:0;right:0;margin:0;padding:23px 28px;background:#fff;box-shadow:0 20px 40px #0002;border-bottom:1px solid #ddd;flex-direction:column;align-items:stretch;gap:0}.ref-nav.is-open{display:flex}.ref-nav a{font-size:18px;padding:14px 0;border-bottom:1px solid #eee}.ref-burger{display:flex}.ref-hero-grid{min-height:0;grid-template-columns:1fr 1fr;gap:0}.ref-hero h1{font-size:clamp(38px,5.5vw,54px)}.ref-hero-photo{height:500px}.ref-level-card{min-height:300px;padding:25px 18px 55px}.ref-level-mark{height:80px;width:80px;font-size:32px}.ref-level-card h3{font-size:20px}.ref-cyprus-title{grid-template-columns:1fr;gap:0}.ref-atlas{grid-template-columns:1fr}.ref-atlas-map{min-height:440px}.ref-atlas-card{min-height:370px}.ref-footer-main{grid-template-columns:1.4fr 1fr 1fr;gap:30px}.ref-footer-main>div:last-child{grid-column:2/4}.ref-end-layout{min-height:500px}}
@media(max-width:650px){.admin-bar .ref-header{top:46px}.ref-wrap{width:min(calc(100% - 34px),1230px)}.ref-logo img{height:59px}.ref-header-right{gap:10px}.ref-header-wrap{min-height:70px}.ref-nav{top:70px}.ref-hero-grid{display:flex;flex-direction:column;align-items:stretch;gap:0}.ref-hero-text{padding:68px 0 18px}.ref-hero h1{font-size:clamp(43px,10.7vw,63px);margin:20px 0 25px}.ref-hero .ref-eyebrow{font-size:10px}.ref-lead{font-size:15px;line-height:1.7}.ref-actions{gap:9px}.ref-button{padding:12px 19px;min-height:49px;font-size:12px}.ref-hero-photo{height:420px;max-width:450px;width:100%;margin:auto}.ref-hero-photo img{max-width:450px}.ref-word{height:200svh}.ref-word-inner{height:100svh;top:0}.ref-love{font-size:clamp(56px,17.2vw,100px);gap:0}.ref-love-sub{font-size:11px;letter-spacing:.18em}.ref-scroll-lesson{padding:95px 0}.ref-scroll-lesson .ref-eyebrow{margin-bottom:42px}.ref-lesson-pair{margin-bottom:100px}.ref-lesson-pair h2{font-size:clamp(47px,11vw,78px)}.ref-lesson-pair p{font-size:35px}.ref-mini-quiz{padding:22px}.ref-mini-quiz h3{font-size:20px}.ref-answer-grid{gap:8px}.ref-answer-grid button{font-size:12px;min-height:52px;padding:10px 5px}.ref-eleni{grid-template-columns:1fr;gap:30px;padding:90px 0}.ref-eleni-art{min-height:360px;max-width:430px;width:100%;margin:auto}.ref-eleni-art img{max-height:420px}.ref-eleni-copy h2{font-size:clamp(36px,9vw,55px)}.ref-eleni-copy>p:not(.ref-eyebrow){font-size:15px}.ref-levels{padding:85px 0}.ref-level-grid{grid-template-columns:1fr}.ref-level-card{min-height:225px;display:grid;grid-template-columns:100px 1fr;align-content:center;gap:0 22px}.ref-level-mark{grid-row:span 2;margin:0}.ref-level-card h3{margin:0 0 10px;align-self:end}.ref-level-card p{grid-column:2}.ref-cyprus{padding:85px 0}.ref-cyprus-title .ref-section-title{font-size:38px}.ref-atlas-map{min-height:300px}.ref-map-point{width:29px;height:29px;font-size:10px}.ref-atlas-card{min-height:370px;padding:31px 25px}.ref-atlas-name{font-size:27px}.ref-end-layout{grid-template-columns:1fr;gap:0}.ref-end-layout>div:first-child{padding:80px 0 0}.ref-end-art{height:340px}.ref-end-art img{max-height:340px}.ref-footer-main{grid-template-columns:1fr 1fr;gap:32px 28px}.ref-footer-brand{grid-column:1/-1}.ref-footer-main>div:last-child{grid-column:1/-1}.ref-footer-bottom{flex-direction:column;gap:10px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.ref-reveal{opacity:1;transform:none;transition:none}.ref-button,.ref-level-card,.ref-map-point,.ref-love span{transition:none}}
/* Reference-matched teacher profile and original Cyprus cover art. */
.ref-about-page{display:grid;grid-template-columns:.95fr 1.05fr;gap:65px;align-items:start;padding-top:75px;padding-bottom:130px}
.ref-about-photo{background:linear-gradient(145deg,#ede4d7,#f6f2ec);position:sticky;top:130px;border-radius:30px;min-height:530px;display:flex;justify-content:center;align-items:flex-end;overflow:hidden}
.ref-about-photo img{display:block;object-fit:contain;object-position:bottom;max-height:680px;width:auto;max-width:100%}
.ref-about-content{padding:25px 0 0}.ref-about-content h1{font-size:clamp(38px,5vw,68px);line-height:1.09;margin:0 0 30px}.ref-about-content>p:not(.ref-eyebrow),.ref-about-box p:not(.ref-eyebrow){font-size:16px;color:#5c5955;line-height:1.9}
.ref-about-box{padding:35px;margin-top:50px;background:var(--ref-ivory);border:1px solid #e5dfd7;border-radius:22px}
.ref-rule{height:1px;background:linear-gradient(90deg,#8e9092,#d9d9d9,transparent);margin:20px 0 32px}
.ref-about-box h2{font-size:clamp(27px,3vw,42px);margin:0 0 19px}
.ref-book-cover{background:#f8f5ef!important;display:flex;align-items:center;justify-content:center}
.ref-book-cover img{height:100%;width:100%;max-width:100%;object-fit:contain;display:block}
@media(max-width:750px){.ref-about-page{grid-template-columns:1fr;gap:35px;padding-top:40px}.ref-about-photo{position:relative;top:auto;min-height:350px;max-height:540px}.ref-about-photo img{max-height:520px}.ref-about-content h1{font-size:42px}.ref-about-box{margin-top:35px}}
