/* Homepage offer, Example Maps, the sign-up, step 5's lock and the Tools page's My Matric Map button. No printable-report styles. */
.home-offer .offer-grid{align-items:stretch}
.home-offer .offer-card{align-content:start}
.home-offer .offer-unified{grid-template-columns:1fr;max-width:920px}
.offer-unified .offer-card{gap:20px}
.offer-unified .offer-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
.offer-unified .offer-list b{font-weight:650}
.home-offer .home-offer-start{text-align:center;margin-top:26px}
.home-offer .home-offer-start .btn{min-width:220px;padding:14px 28px}
.home-offer .home-offer-start p{margin:12px auto 0;max-width:48ch}
html[data-map-scheme="night"] .home-v2 .home-offer-start p{color:#fbf6ea}
.plan-example-stages{max-width:1000px;margin:0 auto 14px}
.example-back-row{max-width:1000px;margin:0 auto 10px}
.example-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface,#fff);color:var(--brand);font-weight:650;font-size:.95rem;text-decoration:none}
.example-back:hover{border-color:var(--brand)}
.example-back:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
/* Without the desktop side rail, the way back stays in reach under the header while the example scrolls */
@media(max-width:1099px){.example-back-row{position:sticky;top:73px;z-index:5;pointer-events:none}.example-back{pointer-events:auto;box-shadow:0 4px 14px #0f3d3e1f}}
.example-grade-short{display:none}
.example-reader-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface,#fff);max-width:1000px;margin:0 auto}
.example-scroll{height:72vh;height:72svh;max-height:850px;min-height:340px;overflow:auto;overscroll-behavior-x:contain;background:#e8e9e5;padding:18px;scrollbar-gutter:stable}
.example-scroll:focus-visible{outline:3px solid var(--brand);outline-offset:-3px}
.example-pages{width:100%;max-width:950px;margin:auto;display:grid;gap:18px}
.example-page{position:relative;margin:0;background:white;box-shadow:0 2px 12px #0f3d3e18}
.example-page-sheet{position:relative;background:white}
.example-page img,.example-pages>img{display:block;width:100%;height:auto;background:white}
.example-source{position:absolute;border-radius:2px}
.example-source:hover,.example-source:focus-visible{outline:2px solid var(--brand);background:#17605f22}
.example-page-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--paper);padding:20px;text-align:center}
.example-page-error[hidden]{display:none}
.example-reader-error{padding:18px;color:var(--ink-2);background:var(--tint);border-radius:8px}
.example-next{justify-content:center;padding-top:22px}
.example-signup-slot{width:210px;height:50px;max-width:100%}
.example-signup{bottom:calc(20px + env(safe-area-inset-bottom,0px));width:100%;height:50px;display:flex;align-items:center;justify-content:center;gap:10px}
.example-signup.is-floating{position:fixed;z-index:40;box-shadow:0 6px 24px #0f3d3e30}
/* The sign-in page: one card, Continue with Google first, the emailed code folded under "Use my email instead". */
.signup-view{max-width:480px;margin:8px auto 40px}
.signin-card{padding:28px 26px;border:1px solid var(--line);border-radius:18px;background:var(--surface,#fff)}
.signin-card .journey-intro{margin:0 0 18px}
.signin-card .journey-intro h1{margin:0 0 8px;font-size:1.6rem}
.signin-card .journey-intro p{margin:0;color:var(--ink-2)}
.signup-check{display:flex;gap:10px;align-items:flex-start;font-weight:400!important;line-height:1.45;cursor:pointer;margin:0 0 10px;font-size:.92rem}
.signup-check input{flex:none;width:20px;height:20px;min-height:0!important;margin:1px 0 0;padding:0!important;accent-color:var(--brand)}
.signup-check-small{font-size:.82rem;color:var(--ink-2)}
.signup-google{margin:18px 0 6px;display:flex;justify-content:center}
.signup-google[hidden]{display:none}
#signup-google-btn{min-height:44px;width:100%;display:flex;justify-content:center}
.signin-card .auth-msg{margin:12px 0}
.signin-email,.signin-email:first-of-type{margin:14px 0 0;border:0}
.signin-email>summary::after,.signin-email[open]>summary::after{content:none}
.signin-email>summary{display:inline-block;padding:6px 0;color:var(--brand);font-size:.9rem;font-weight:600;text-decoration:underline;text-decoration-color:#7fbfba;cursor:pointer;list-style:none}
.signin-email>summary::-webkit-details-marker{display:none}
.signin-email.solo>summary{display:none}
.signin-email .auth-form{margin:12px 0;max-width:none}
.signin-row{display:flex;gap:8px}
.signin-row input{flex:1;min-width:0;width:100%}
.signin-row .btn{flex:none;white-space:nowrap}
.signin-email .fine{margin:6px 0 0}
.signin-foot{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:420px){.signin-card{padding:22px 18px}.signin-row{flex-direction:column}}
/* My Map step 5 before the sign-up: the Example Map, or the free sign-up that opens the step */
.lock-map .lock-or{margin:-2px 0 10px;text-align:center;font-size:.85rem;color:var(--ink-3)}
.lock-map .lock-signup{display:flex;width:100%;justify-content:center}
.lock-map .lock-who{margin:10px 0 0;text-align:center;font-size:.85rem;line-height:1.4;color:var(--ink-3)}
.tools-next{flex-direction:column;align-items:center;text-align:center;gap:14px;margin:34px 0 12px;padding-top:26px;border-top:1px solid var(--line)}
.tools-next-text{margin:0;max-width:44ch;color:var(--ink-2)}
/* The feedback box, and the line that leads to it under the Tools page and My Map's last step */
.feedback-view{max-width:640px;margin:0 auto 32px}
.feedback-view .journey-intro p{max-width:56ch}
.feedback-form{max-width:none;margin:20px 0 12px;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface,#fff)}
.feedback-who{min-width:0;margin:0 0 6px;padding:0;border:0}
.feedback-who legend{margin:0 0 8px;padding:0;font-weight:700;font-size:.9rem}
.feedback-form textarea{min-height:140px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);font:500 1rem/1.5 var(--font);resize:vertical}
.feedback-form input[type=email]{width:100%}
.feedback-optional{font-weight:400;color:var(--ink-3)}
.feedback-form .btn{justify-self:start;margin-top:4px}
.feedback-view .auth-msg{margin:12px 0}
.feedback-back{margin:14px 0 0}
.tools-next+.feedback-line{margin:0 0 8px;text-align:center}
@media(max-width:650px){
 .feedback-form{padding:20px 18px}
 .offer-unified .offer-list{grid-template-columns:1fr;gap:12px}
 .offer-unified .offer-card{padding:24px 20px}
 /* One quiet segmented control, with equally sized, centred touch targets. */
 .plan-example-stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--tint);margin-bottom:12px}
 .plan-example-stages .chip{min-width:0;min-height:44px;padding:8px 0;justify-content:center;align-items:center;border:0;border-radius:8px;background:transparent;color:var(--brand);font-size:.8rem;font-weight:600;line-height:1;white-space:nowrap;text-align:center}
 .plan-example-stages .chip:last-child{font-size:.75rem}
 .plan-example-stages .chip.on{background:var(--brand);color:#fff;box-shadow:0 1px 3px #0f3d3e1a}
 .plan-example-stages .chip:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
 .example-grade-long{display:none}
 .example-grade-short{display:inline}
 .example-scroll{padding:0;height:72vh;height:72svh;scrollbar-gutter:auto}
 .example-pages{gap:12px}
}

/* State feedback keeps the same geometry, including when the CTA docks. */
.plan-example-stages .chip, .example-signup {
 transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
@media(prefers-reduced-motion:reduce){
 .plan-example-stages .chip,.example-signup{transition:none}
}

/* A join link waiting through sign-in (#/join): says what joining means, above the sign-up */
.join-note{margin:14px 0 0;padding:12px 16px;border-radius:12px;background:var(--brand-soft);color:var(--ink)}
.join-view{max-width:640px;margin:24px auto;padding:0 16px}

/* Step 5: only the Example Map and Google action, with confirmation for new accounts after account selection. */
.lock-map>div{width:100%;min-width:0}
.step5-google .signup-google{margin:8px 0 0}
#step5-google-btn{width:100%;min-height:44px;display:flex;justify-content:center}
.step5-google .auth-msg{margin:10px 0;text-align:center}
.step5-email{display:flex;width:100%;min-height:48px;justify-content:center;text-align:center}
.step5-email[hidden]{display:none}
@media(max-width:420px){.lock-map{padding:12px}.lock-map .lock-example{gap:8px;padding:10px 8px}.lock-map .lock-example img{width:42px}.lock-map .lock-example-go{width:26px;height:26px}}

/* One Google control moves with the example CTA; never clone an OAuth button. */
.example-google-signup{height:auto;display:block;padding:0;border:0;background:transparent;border-radius:999px}
.example-google-signup:has(.auth-msg:not([hidden])){padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:18px;max-height:calc(100dvh - 100px);overflow-y:auto}
.example-google-signup .signup-google{margin:0}
.join-welcome{margin:12px auto 0;width:min(1100px,calc(100% - 32px))}
