/* Milford Del website: bright, calm and easy to read.
   Colours are checked for at least 4.5:1 contrast where they carry text. */

@font-face { font-family: 'Lexend'; src: url('../fonts/lexend.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #1d1233;
  --ink-2: #463d5e;
  --bg: #ffffff;
  --bg-2: #faf7ff;
  --line: #e6def5;
  --purple: #6d28d9;
  --purple-dk: #4c1d95;
  --purple-xdk: #2a0f5c;
  --magenta: #a21caf;
  --grad: linear-gradient(135deg, #b517d4 0%, #6d28d9 100%);
  --sun: #ffc93c;
  --sun-lt: #fff4d1;
  --sea: #0b7a75;
  --sea-lt: #ddf5f2;
  --coral: #c8324a;
  --coral-lt: #ffe6ea;
  --orange: #b34e08;
  --orange-lt: #ffeedd;
  --leaf: #2a7030;
  --leaf-lt: #e3f4e2;
  --sky: #1d5fbf;
  --sky-lt: #e4efff;
  --lilac: #f1e9ff;
  --focus: #ffbf00;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(76, 29, 149, .28);
  --shadow-sm: 0 4px 14px -6px rgba(76, 29, 149, .22);
  --font: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --scale: 1;
  --lh: 1.65;
  --header-h: 84px;
}
html[data-size="2"] { --scale: 1.18; }
html[data-size="3"] { --scale: 1.36; }
html[data-font="atkinson"] { --font: 'Atkinson Hyperlegible', Arial, sans-serif; }
html[data-spacing="wide"] { --lh: 2; }
html[data-spacing="wide"] p, html[data-spacing="wide"] li { letter-spacing: .03em; word-spacing: .12em; }

/* Soft cream: lower glare for visual stress */
html[data-theme="cream"] { --bg: #fdf6e3; --bg-2: #f7eed3; --line: #e5d9b6; --lilac: #f3e8cf; --ink: #241b10; --ink-2: #4a3e2b; }
/* Dark */
html[data-theme="dark"] { --bg: #16112a; --bg-2: #1e1838; --line: #352c57; --ink: #f4f0ff; --ink-2: #cfc7e6; --lilac: #2a2250; --sun-lt: #3a3115; --sea-lt: #10332f; --coral-lt: #3a1820; --orange-lt: #3a2414; --leaf-lt: #17321a; --sky-lt: #172846; --purple: #b794ff; --purple-dk: #d6c2ff; --magenta: #f0a6ff; --sea: #6fe0d6; --coral: #ff8fa1; --orange: #ffb27a; --leaf: #8fdc93; --sky: #9cc4ff; }
/* High contrast */
html[data-theme="contrast"] { --bg: #000; --bg-2: #000; --line: #fff; --ink: #fff; --ink-2: #fff; --lilac: #000; --sun-lt: #000; --sea-lt: #000; --coral-lt: #000; --orange-lt: #000; --leaf-lt: #000; --sky-lt: #000; --purple: #ffeb3b; --purple-dk: #ffeb3b; --magenta: #ffeb3b; --sea: #ffeb3b; --coral: #ffeb3b; --orange: #ffeb3b; --leaf: #ffeb3b; --sky: #ffeb3b; --grad: #000; --shadow: none; --shadow-sm: none; }
html[data-theme="contrast"] * { border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html[data-theme="contrast"] a { color: #ffeb3b !important; text-decoration: underline !important; }
html[data-theme="contrast"] .btn, html[data-theme="contrast"] .opt-btn { background: #000 !important; color: #ffeb3b !important; border: 3px solid #ffeb3b !important; }
html[data-theme="contrast"] img { filter: grayscale(.2) contrast(1.1); }
html[data-theme="contrast"] .page-hero, html[data-theme="contrast"] .home-hero, html[data-theme="contrast"] .site-footer, html[data-theme="contrast"] .topbar, html[data-theme="contrast"] .help-strip, html[data-theme="contrast"] .value-tile, html[data-theme="contrast"] .er-pic { background: #000 !important; color: #fff !important; border: 2px solid #fff; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: calc(112.5% * var(--scale)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html[data-motion="reduce"] { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: var(--lh); font-weight: 400; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--magenta); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.012em; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 2.1; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 7px var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2rem); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 999; background: var(--sun); color: #1d1233; padding: .8rem 1.2rem; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: .7em 1.35em; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow); }
.btn-sun { background: var(--sun); color: #1d1233; }
.btn-sun:hover { color: #1d1233; background: #ffd666; }
.btn-light { background: #fff; color: var(--purple-dk); }
.btn-light:hover { color: var(--magenta); }
.btn-soft { background: var(--lilac); color: var(--purple-dk); }
.btn-outline { background: transparent; color: var(--purple); border-color: currentColor; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-sm { min-height: 44px; padding: .5em 1.05em; font-size: .92rem; }
.btn-easier { white-space: nowrap; background: var(--sun); color: #1d1233; min-height: 48px; padding: .5em 1em; font-size: .95rem; }
.btn-easier:hover { color: #1d1233; background: #ffd666; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--lilac); }
.listen { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: .4em .95em .4em .75em; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); color: var(--purple-dk); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; vertical-align: middle; }
.listen:hover, .listen.is-speaking { background: var(--lilac); border-color: var(--purple); }
.listen.is-speaking .icon { animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.18); } }
.home-hero .hero-actions .listen, .page-hero .listen { background: rgba(255,255,255,.14); color: inherit; border-color: rgba(255,255,255,.5); }
.page-hero .listen:hover { background: rgba(255,255,255,.26); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--purple-xdk); color: #fff; font-size: .88rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 46px; gap: 1rem; }
.tb-item { display: inline-flex; align-items: center; gap: .45em; color: #fff; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: .4em .2em; min-height: 44px; }
.tb-item:hover { color: var(--sun); }
.tb-right { display: flex; gap: 1.1rem; align-items: center; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 99px; background: rgba(255,255,255,.3); transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.easy-mode .switch { background: var(--sun); }
.easy-mode .switch::after { transform: translateX(16px); background: var(--purple-xdk); }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); }
.site-header { background: var(--bg); }
.header-inner { width: min(1340px, 100% - 2rem); display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: auto; height: 58px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.42rem; letter-spacing: .07em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); margin-top: .3em; font-weight: 600; }
html[data-theme="contrast"] .brand-name, html[data-theme="dark"] .brand-name { color: var(--purple); background: none; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; align-items: center; }
.nav-list > li { position: relative; margin: 0; }
.nav-link { white-space: nowrap; display: inline-flex; align-items: center; gap: .25em; padding: .5em .6em; min-height: 46px; border-radius: 12px; color: var(--ink); text-decoration: none; font: inherit; font-weight: 550; font-size: .93rem; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--lilac); color: var(--purple-dk); }
.nav-link[aria-current="page"], .nav-link[data-current] { color: var(--purple); box-shadow: inset 0 -3px 0 var(--purple); border-radius: 12px 12px 4px 4px; }
.nav-link .chev { width: 1em; height: 1em; transition: transform .2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px; list-style: none; margin: 0; padding: .5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); display: none; z-index: 60; }
.nav-toggle[aria-expanded="true"] + .sub { display: block; }
.sub li { margin: 0; }
.sub a { display: flex; align-items: center; gap: .7em; padding: .65em .8em; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.sub a .icon { color: var(--purple); background: var(--lilac); padding: .35em; width: 2.1em; height: 2.1em; border-radius: 10px; }
.sub a:hover { background: var(--lilac); color: var(--purple-dk); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: none; align-items: center; gap: .4em; min-height: 48px; padding: .4em .9em; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.nav-mobile-extra { display: none; }

@media (max-width: 1480px) {
  .hide-md { display: none; }
}
@media (max-width: 1320px) {
  .nav-link { padding: .5em .5em; font-size: .9rem; }
  .brand-name { font-size: 1.22rem; }
  .brand img { height: 50px; }
  .header-inner { gap: .6rem; }
}
@media (max-width: 1200px) {
  :root { --header-h: 72px; }
  .menu-btn { display: inline-flex; }
  .main-nav { position: fixed; inset: var(--nav-top, 118px) 0 0 0; background: var(--bg); overflow-y: auto; padding: 1rem 1rem 3rem; display: none; border-top: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .3rem; }
  .nav-link { width: 100%; justify-content: space-between; font-size: 1.1rem; min-height: 56px; padding: .7em 1em; background: var(--bg-2); border-radius: 16px; }
  .nav-link[aria-current="page"], .nav-link[data-current] { box-shadow: inset 4px 0 0 var(--purple); border-radius: 16px; }
  .sub { position: static; box-shadow: none; border: 0; min-width: 0; padding: .3rem 0 .5rem .6rem; }
  .sub a { font-size: 1.02rem; min-height: 52px; }
  .nav-mobile-extra { display: grid; gap: .7rem; margin-top: 1.2rem; }
  .btn-easier span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn-easier { width: 48px; padding: 0; }
  .brand img { height: 48px; }
  .brand-name { font-size: 1.15rem; }
  .brand-sub { font-size: .56rem; }
}
@media (max-width: 560px) {
  .tb-hide-sm { display: none; }
  .topbar { font-size: .8rem; }
  .tb-item { white-space: nowrap; gap: .3em; }
  .tb-right { gap: .7rem; }
  .tb-staff span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .switch { width: 32px; height: 20px; } .switch::after { width: 14px; height: 14px; } .easy-mode .switch::after { transform: translateX(12px); }
  .menu-btn span { display: none; }
  .brand-sub { display: none; }
}
@media (max-width: 400px) {
  .header-inner { gap: .4rem; }
  .header-actions { gap: .4rem; }
  .brand { gap: .4rem; }
  .brand img { height: 40px; }
  .brand-name { font-size: 1.02rem; }
  .menu-btn { padding: .4em .65em; }
}
@media (max-width: 350px) {
  .topbar-inner { flex-wrap: wrap; justify-content: center; row-gap: .2rem; padding-block: .3rem; }
  .brand img { height: 34px; }
  .brand-name { font-size: .95rem; }
  .btn-easier { width: 44px; }
  .menu-btn { min-height: 44px; padding: .3em .55em; }
}

/* ---------- Sections & layout ---------- */
.section { padding: clamp(3rem, 2rem + 4vw, 6rem) 0; }
.section-tint { background: var(--bg-2); }
.section-lilac { background: var(--lilac); }
.section-head { max-width: 760px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); margin-bottom: .8em; }
.lead { font-size: 1.18rem; color: var(--ink-2); }
.grid { display: grid; gap: 1.4rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--purple-dk); }
.prose li::marker { color: var(--purple); }
.read-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; margin-bottom: 1rem; }
.read-row h2 { margin: 0; }

/* ---------- Cards ---------- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); position: relative; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card-link .more { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: .4em; color: var(--purple); font-weight: 650; }
.card-img { padding: 0; overflow: hidden; }
.card-img > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-img .card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.ic-badge { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 18px; margin-bottom: 1rem; background: var(--lilac); color: var(--purple); }
.ic-badge .icon { width: 1.7rem; height: 1.7rem; }
.c-coral { background: var(--coral-lt); color: var(--coral); }
.c-sea { background: var(--sea-lt); color: var(--sea); }
.c-sun { background: var(--sun-lt); color: var(--orange); }
.c-leaf { background: var(--leaf-lt); color: var(--leaf); }
.c-sky { background: var(--sky-lt); color: var(--sky); }
.c-purple { background: var(--lilac); color: var(--purple); }
.c-orange { background: var(--orange-lt); color: var(--orange); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 0 0 1rem; }
.chips li { margin: 0; display: inline-flex; align-items: center; gap: .35em; padding: .35em .8em; border-radius: 99px; background: var(--lilac); color: var(--purple-dk); font-size: .85rem; font-weight: 600; }
.chips .icon { width: 1.05em; height: 1.05em; }
.tick-list { list-style: none; padding: 0; }
.tick-list li { display: flex; gap: .7em; align-items: flex-start; margin-bottom: .7em; }
.tick-list li > .icon { color: #fff; background: var(--leaf); border-radius: 50%; padding: .2em; width: 1.5em; height: 1.5em; margin-top: .12em; }
.quote { font-size: 1.15rem; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; color: #fff; background: var(--grad); padding: clamp(2.6rem, 2rem + 3vw, 4.5rem) 0 clamp(4rem, 3rem + 3vw, 6rem); overflow: hidden; }
.page-hero::before { content: ''; position: absolute; right: -120px; top: -140px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255,201,60,.35), transparent 65%); }
.page-hero h1, .page-hero .lead, .page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow { color: var(--sun); }
.page-hero .lead { opacity: .95; max-width: 60ch; }
.page-hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.page-hero:not(.has-image) .page-hero-inner { grid-template-columns: 1fr; }
.page-hero-media img { border-radius: 28px; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: 0 25px 50px -20px rgba(0,0,0,.45); border: 6px solid rgba(255,255,255,.25); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; align-items: center; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; fill: var(--bg); }
.hero-sea { background: linear-gradient(135deg, #0b7a75, #1d5fbf); }
.hero-coral { background: linear-gradient(135deg, #c8324a, #a21caf); }
.hero-leaf { background: linear-gradient(135deg, #2f7d32, #0b7a75); }
.hero-dark { background: linear-gradient(135deg, #2a0f5c, #6d28d9); }
.hero-sun { background: linear-gradient(135deg, #b34e08, #c8324a); }
@media (max-width: 860px) { .page-hero-inner { grid-template-columns: 1fr; } .page-hero-media { order: -1; } .page-hero-media img { aspect-ratio: 16/9; } }

/* ---------- Home hero ---------- */
.home-hero { position: relative; color: #fff; overflow: hidden; background: #1a0b3d; isolation: isolate; }
.home-hero .bg { position: absolute; inset: 0; z-index: -2; }
.home-hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.home-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(42,15,92,.94) 0%, rgba(76,29,149,.82) 42%, rgba(109,40,217,.42) 66%, rgba(181,23,212,.12) 100%); }
@media (max-width: 900px) { .home-hero::after { background: linear-gradient(180deg, rgba(42,15,92,.9) 0%, rgba(76,29,149,.84) 55%, rgba(109,40,217,.7) 100%); } .home-hero .bg img { object-position: 62% 40%; } }
.home-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0 clamp(5rem, 4rem + 4vw, 8rem); }
.home-hero h1 { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem); }
.home-hero h1 .hl { color: var(--sun); }
.home-hero .lead { color: #f3eaff; font-size: 1.25rem; max-width: 34em; }
.trust-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; padding: 0; list-style: none; }
.trust-row li { display: inline-flex; align-items: center; gap: .5em; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28); padding: .45em .9em; border-radius: 99px; font-size: .9rem; font-weight: 600; margin: 0; }
.trust-row .icon { color: var(--sun); }
.lighthouse-wrap { position: relative; justify-self: center; width: min(360px, 80%); }
.beam { position: absolute; top: 12%; left: 50%; width: 520px; height: 160px; transform-origin: 0 50%; background: conic-gradient(from 270deg at 0 50%, transparent 0deg, rgba(255,233,160,.55) 10deg, transparent 22deg); animation: sweep 7s ease-in-out infinite alternate; filter: blur(2px); pointer-events: none; }
@keyframes sweep { from { transform: translate(0,-50%) rotate(-28deg); } to { transform: translate(0,-50%) rotate(208deg); } }
.lighthouse-card { position: relative; background: rgba(255,255,255,.96); border-radius: 30px; padding: 1.6rem 1.6rem 1.4rem; color: var(--ink); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
html[data-theme="dark"] .lighthouse-card { background: var(--bg-2); }
.lighthouse-card h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .5em; }
.lighthouse-card h2 .icon { color: var(--purple); }
.start-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.start-list li { margin: 0; }
.start-list a, .start-list button { width: 100%; display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; border-radius: 16px; background: var(--bg-2); border: 2px solid var(--line); color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; text-align: left; min-height: 60px; }
.start-list a:hover, .start-list button:hover { border-color: var(--purple); background: var(--lilac); color: var(--purple-dk); }
.start-list .ic-badge { width: 2.6rem; height: 2.6rem; margin: 0; border-radius: 12px; }
.start-list .ic-badge .icon { width: 1.3rem; height: 1.3rem; }
.start-list .arr { margin-left: auto; color: var(--purple); }
@media (max-width: 900px) { .home-hero-inner { grid-template-columns: 1fr; } .lighthouse-wrap { width: 100%; } .beam { display: none; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -3.2rem; position: relative; z-index: 2; }
.stat { background: var(--bg); border-radius: var(--radius); padding: 1.3rem 1.2rem; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; gap: .9rem; align-items: center; }
.stat .ic-badge { margin: 0; flex: none; }
.stat strong { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--purple-dk); }
.stat > div > span { font-size: .92rem; color: var(--ink-2); display: block; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat > div { min-width: 0; }
@media (max-width: 480px) { .stats { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 350px) { .stat { padding: 1rem; gap: .7rem; } .stat strong { font-size: 1.45rem; } }

/* ---------- Values (HEART) ---------- */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .values { grid-template-columns: 1fr; } }
.value-tile { --c: var(--purple); --c-lt: var(--lilac); position: relative; border: 0; border-radius: 26px; padding: 1.3rem 1.1rem 1.2rem; background: var(--c); color: #fff; cursor: pointer; font: inherit; text-align: left; display: flex; flex-direction: column; min-height: 250px; overflow: hidden; transition: transform .25s, box-shadow .25s; box-shadow: var(--shadow-sm); }
.value-tile:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: var(--shadow); }
.value-tile::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.12); }
.value-letter { font-size: 4.6rem; font-weight: 800; line-height: .9; letter-spacing: -.04em; display: flex; align-items: center; justify-content: space-between; }
.value-letter .icon { width: 2.2rem; height: 2.2rem; opacity: .95; background: rgba(255,255,255,.18); padding: .45rem; border-radius: 14px; box-sizing: content-box; }
.value-name { font-size: 1.15rem; font-weight: 700; margin-top: .6rem; overflow-wrap: anywhere; }
.value-short { font-size: .95rem; opacity: .95; line-height: 1.45; margin-top: .3rem; }
.value-more { margin-top: auto; padding-top: .8rem; font-size: .85rem; font-weight: 650; display: inline-flex; gap: .35em; align-items: center; opacity: .95; }
.value-tile[aria-expanded="true"] { outline: 4px solid var(--sun); outline-offset: 4px; }
.v-heart { --c: var(--coral); } .v-equality { --c: var(--purple); } .v-accessible { --c: var(--sea); } .v-realistic { --c: var(--orange); } .v-transform { --c: var(--leaf); }
html[data-theme="dark"] .value-tile { color: #16112a; }
.value-detail { margin-top: 1.4rem; border-radius: var(--radius); background: var(--bg); border: 2px solid var(--line); padding: 1.5rem 1.6rem; display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; box-shadow: var(--shadow-sm); }
.value-detail .big-letter { width: 5.5rem; height: 5.5rem; border-radius: 24px; display: grid; place-items: center; font-size: 3.2rem; font-weight: 800; color: #fff; }
.value-detail h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.value-detail .er-mini { background: var(--sun-lt); border-radius: 14px; padding: .8rem 1rem; display: flex; gap: .7rem; align-items: flex-start; margin: .8rem 0; }
.value-detail .er-mini .icon { color: var(--orange); margin-top: .2em; }
@media (max-width: 600px) { .value-detail { grid-template-columns: 1fr; } }
.heart-word { display: flex; justify-content: center; gap: .4rem; margin: 0 auto 1.5rem; font-weight: 800; font-size: 1rem; letter-spacing: .3em; color: var(--ink-2); }

/* ---------- Easy read ---------- */
.easy-read { display: none; margin: 2rem auto; width: min(1000px, 100% - 2rem); background: var(--sun-lt); border: 3px solid var(--sun); border-radius: 26px; padding: 1.5rem clamp(1rem, 3vw, 2.2rem) 1.2rem; }
.easy-mode .easy-read, .easy-read[data-always] { display: block; }
.er-head { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-bottom: 1rem; }
.er-head h2 { margin: 0; font-size: 1.5rem; flex: 1 1 260px; }
.er-badge { display: inline-flex; align-items: center; gap: .4em; background: var(--purple-xdk); color: #fff; padding: .35em .85em; border-radius: 99px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
html[data-theme="contrast"] .er-badge { border: 2px solid #fff; }
.er-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.er-line { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 1rem; align-items: center; background: var(--bg); border-radius: 18px; padding: .7rem .8rem; margin: 0; font-size: 1.15rem; line-height: 1.5; }
.er-pic { width: 4.2rem; height: 4.2rem; border-radius: 16px; display: grid; place-items: center; background: var(--lilac); color: var(--purple); }
.er-pic .icon { width: 2.2rem; height: 2.2rem; }
.er-text strong { color: var(--purple-dk); }
.speak-line { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg-2); color: var(--purple-dk); display: grid; place-items: center; cursor: pointer; }
.speak-line:hover, .speak-line.is-speaking { background: var(--purple); color: #fff; border-color: var(--purple); }
.easy-mode body { --lh: 1.8; }
.easy-mode .prose p, .easy-mode .card p { font-size: 1.05rem; }
.is-reading { background: color-mix(in srgb, var(--sun) 45%, transparent) !important; border-radius: 8px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--sun) 45%, transparent); }
html[data-tap="on"] main :is(p, li, h1, h2, h3, h4, blockquote, figcaption, .er-text, .value-short) { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23ffc93c' stroke='%231d1233' stroke-width='1.6'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7' fill='none'/%3E%3Cpath d='M19 5a10 10 0 0 1 0 14' fill='none'/%3E%3C/svg%3E") 6 16, pointer; }
html[data-tap="on"] main :is(p, li, h1, h2, h3, h4, blockquote):hover { background: color-mix(in srgb, var(--sun) 25%, transparent); border-radius: 8px; }

@media (max-width: 560px) {
  .easy-read { padding: 1.1rem .7rem 1rem; }
  .er-line { grid-template-columns: 3rem 1fr auto; gap: .65rem; padding: .6rem .55rem; font-size: 1.08rem; }
  .er-pic { width: 3rem; height: 3rem; border-radius: 12px; }
  .er-pic .icon { width: 1.6rem; height: 1.6rem; }
  .speak-line { width: 46px !important; height: 46px !important; }
}

/* Hard-word glossary */
.term { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help; text-decoration: underline dotted var(--purple) .14em; text-underline-offset: .22em; }
.term:hover, .term[aria-expanded="true"] { color: var(--purple-dk); background: var(--lilac); border-radius: 4px; }
.term-pop { position: absolute; z-index: 80; max-width: 320px; background: var(--purple-xdk); color: #fff; padding: .9rem 1rem; border-radius: 16px; box-shadow: var(--shadow); font-size: .95rem; line-height: 1.5; }
.term-pop strong { color: var(--sun); display: block; margin-bottom: .2rem; }
.term-pop .listen { margin-top: .6rem; color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
html[data-theme="contrast"] .term-pop { background: #000; border: 2px solid #fff; }

/* ---------- Accessibility panel ---------- */
.a11y-panel { position: fixed; inset: 0; z-index: 200; background: rgba(20, 8, 45, .55); display: flex; justify-content: flex-end; }
.a11y-panel[hidden] { display: none; }
.a11y-card { width: min(460px, 100%); height: 100%; overflow-y: auto; background: var(--bg); padding: 1.4rem 1.4rem 2.5rem; box-shadow: -20px 0 50px -20px rgba(0,0,0,.4); animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.a11y-head { display: flex; justify-content: space-between; align-items: center; }
.a11y-head h2 { margin: 0; font-size: 1.5rem; display: flex; align-items: center; gap: .5em; }
.a11y-head h2 .icon { color: var(--purple); }
.a11y-note { color: var(--ink-2); font-size: .95rem; }
.a11y-group { border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; margin-bottom: 1rem; background: var(--bg-2); }
.a11y-group h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .45em; margin-bottom: .7rem; }
.a11y-group h3 .icon { color: var(--purple); }
.a11y-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .7rem; }
.seg-label { width: 100%; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.opt-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; min-width: 52px; padding: .45em .9em; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.opt-btn:hover { border-color: var(--purple); }
.opt-btn[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.opt-btn.big { flex: 1; background: var(--grad); color: #fff; border: 0; }
.theme-seg .opt-btn { flex: 1 1 45%; }
.toggle { display: flex; align-items: center; gap: .8rem; padding: .45rem 0; cursor: pointer; font-weight: 500; min-height: 48px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui { flex: none; width: 52px; height: 30px; border-radius: 99px; background: #cbc3dc; position: relative; transition: background .2s; }
.toggle-ui::after { content: ''; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.toggle input:checked + .toggle-ui { background: var(--purple); }
.toggle input:checked + .toggle-ui::after { transform: translateX(22px); }
.toggle input:focus-visible + .toggle-ui { outline: 4px solid var(--focus); outline-offset: 2px; }
.reset-btn { width: 100%; }
.reading-ruler { position: fixed; left: 0; right: 0; height: 2.6em; pointer-events: none; z-index: 150; display: none; background: rgba(255, 201, 60, .18); border-top: 3px solid var(--sun); border-bottom: 3px solid var(--sun); }
html[data-ruler="on"] .reading-ruler { display: block; }
.speech-bar { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 160; display: flex; align-items: center; gap: .9rem; padding: .55rem .6rem .55rem 1.1rem; border-radius: 99px; background: var(--purple-xdk); color: #fff; box-shadow: var(--shadow); font-weight: 600; }
.speech-bar[hidden] { display: none; }
.sb-wave { display: inline-flex; gap: 3px; align-items: center; height: 20px; }
.sb-wave i { width: 4px; height: 100%; background: var(--sun); border-radius: 2px; animation: wave .9s ease-in-out infinite; }
.sb-wave i:nth-child(2) { animation-delay: .15s; } .sb-wave i:nth-child(3) { animation-delay: .3s; } .sb-wave i:nth-child(4) { animation-delay: .45s; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- Quiz / finder ---------- */
.finder { background: var(--bg); border-radius: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: clamp(1.3rem, 3vw, 2.4rem); }
.finder-progress { display: flex; gap: .4rem; margin-bottom: 1.4rem; }
.finder-progress span { flex: 1; height: 8px; border-radius: 99px; background: var(--line); transition: background .3s; }
.finder-progress span.on { background: var(--grad); }
.finder-step[hidden] { display: none; }
.finder-q { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; margin-bottom: 1.2rem; }
.finder-q h2, .finder-q h3 { margin: 0; font-size: 1.45rem; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .9rem; }
.pick { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; padding: 1.2rem .9rem; min-height: 150px; border-radius: 22px; border: 3px solid var(--line); background: var(--bg-2); color: var(--ink); font: inherit; font-weight: 600; font-size: 1.02rem; cursor: pointer; transition: transform .15s, border-color .15s; }
.pick:hover { transform: translateY(-3px); border-color: var(--purple); }
.pick .ic-badge { margin: 0; width: 4rem; height: 4rem; border-radius: 20px; }
.pick .ic-badge .icon { width: 2rem; height: 2rem; }
.pick[aria-pressed="true"] { border-color: var(--purple); background: var(--lilac); box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 25%, transparent); }
.pick[aria-pressed="true"]::after { content: '✓'; position: absolute; top: .55rem; right: .7rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-size: 1rem; font-weight: 800; }
.finder-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.finder-result .card { height: 100%; }
.result-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; margin: 1rem 0 1.4rem; }

/* ---------- Locations ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.filter-bar button { display: inline-flex; align-items: center; gap: .45em; min-height: 48px; padding: .45em 1.05em; border-radius: 99px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.filter-bar button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.place-card[hidden] { display: none; }
.place-card .gallery-btn { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,.95); color: var(--purple-dk); border: 0; border-radius: 99px; padding: .4em .8em; font: inherit; font-size: .85rem; font-weight: 700; display: inline-flex; gap: .35em; align-items: center; cursor: pointer; min-height: 40px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .8rem; }
.gallery button { padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--line); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.05); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(15, 5, 35, .92); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem; }
.lightbox figure { margin: 0; display: grid; place-items: center; gap: .8rem; height: 100%; min-height: 0; }
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 18px; object-fit: contain; }
.lightbox figcaption { color: #fff; font-weight: 600; text-align: center; }
.lb-close { position: absolute; top: 1rem; right: 1rem; background: #fff; }
.lb-prev, .lb-next { background: #fff; }

/* ---------- MDT circle ---------- */
.mdt-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 960px) { .mdt-wrap { grid-template-columns: 1fr; } }
.mdt-circle { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin-inline: auto; }
.mdt-circle::before { content: ''; position: absolute; inset: 13%; border-radius: 50%; border: 3px dashed color-mix(in srgb, var(--purple) 40%, transparent); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mdt-you { position: absolute; inset: 34%; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 1.4rem; box-shadow: var(--shadow); line-height: 1.1; padding: .5rem; }
.mdt-you small { display: block; font-size: .7rem; font-weight: 600; opacity: .9; margin-top: .3rem; }
.mdt-node { position: absolute; width: 23%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid var(--line); background: var(--bg); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; font: inherit; font-size: .78rem; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer; padding: .4rem; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s; }
.mdt-node .icon { width: 1.7rem; height: 1.7rem; color: var(--purple); }
.mdt-node:hover { transform: translate(-50%, -50%) scale(1.08); border-color: var(--purple); }
.mdt-node[aria-pressed="true"] { background: var(--purple); color: #fff; border-color: var(--purple); }
.mdt-node[aria-pressed="true"] .icon { color: var(--sun); }
.mdt-panel { min-height: 320px; }
.mdt-panel h3 { font-size: 1.6rem; display: flex; align-items: center; gap: .5em; }
.mdt-panel h3 .ic-badge { margin: 0; }
@media (max-width: 520px) { .mdt-node { font-size: .62rem; } .mdt-node .icon { width: 1.3rem; height: 1.3rem; } .mdt-you { font-size: 1.05rem; } }

/* ---------- Cycle (Feedback, Review, Improve) ---------- */
.cycle { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.cycle-step { background: var(--bg); border-radius: 22px; padding: 1.2rem 1.4rem; text-align: center; min-width: 170px; border: 2px solid var(--line); box-shadow: var(--shadow-sm); animation: glow 4.5s infinite; }
.cycle-step:nth-of-type(2) { animation-delay: 1.5s; } .cycle-step:nth-of-type(3) { animation-delay: 3s; }
@keyframes glow { 0%, 30%, 100% { border-color: var(--line); transform: none; } 10%, 20% { border-color: var(--purple); transform: translateY(-4px); } }
.cycle-step .ic-badge { margin: 0 auto .6rem; }
.cycle-arrow { color: var(--purple); }
.faces { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0; }
.face { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .8rem; min-width: 104px; border-radius: 20px; border: 3px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.face .icon { width: 3rem; height: 3rem; }
.face[aria-pressed="true"] { border-color: var(--purple); background: var(--lilac); }
.f1 .icon { color: #2f7d32; } .f2 .icon { color: #0b7a75; } .f3 .icon { color: #b34e08; } .f4 .icon { color: #c8324a; } .f5 .icon { color: #8b1a2b; }
.face-reply { max-width: 680px; margin: 0 auto; text-align: center; }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; }
.t-track { display: grid; }
.t-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .4s; text-align: center; max-width: 820px; margin: 0 auto; padding: 0 1rem; }
.t-slide.active { opacity: 1; visibility: visible; }
.t-slide blockquote { margin: 0; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.85rem); font-weight: 500; line-height: 1.45; color: var(--ink); }
.t-slide blockquote::before { content: '“'; display: block; font-size: 5rem; line-height: .6; color: var(--magenta); font-weight: 800; margin-bottom: .2rem; }
.t-slide cite { display: block; font-style: normal; font-weight: 700; color: var(--purple); margin-top: 1rem; font-size: 1.1rem; }
.t-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.t-dots { display: flex; gap: .5rem; }
.t-dots button { width: 32px; height: 32px; border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; }
.t-dots button::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--purple); }
.t-dots button[aria-current="true"]::after { background: var(--purple); }

/* ---------- Flip cards ---------- */
.flip { perspective: 1200px; min-height: 250px; border: 0; padding: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; width: 100%; }
.flip-inner { position: relative; width: 100%; height: 100%; min-height: 250px; transition: transform .6s; transform-style: preserve-3d; }
.flip[aria-pressed="true"] .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow-sm); }
.flip-face h3 { font-size: 1.2rem; }
.flip-back { transform: rotateY(180deg); background: var(--purple-xdk); color: #fff; }
.flip-back p { color: #fff; }
.flip-hint { margin-top: auto; font-size: .85rem; font-weight: 650; color: var(--purple); display: inline-flex; align-items: center; gap: .3em; }
.flip-back .flip-hint { color: var(--sun); }
html[data-motion="reduce"] .flip[aria-pressed="true"] .flip-inner { transform: none; }
html[data-motion="reduce"] .flip[aria-pressed="true"] .flip-front { visibility: hidden; }
html[data-motion="reduce"] .flip-back { transform: none; visibility: hidden; }
html[data-motion="reduce"] .flip[aria-pressed="true"] .flip-back { visibility: visible; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; counter-reset: s; }
.steps li { counter-increment: s; position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.3rem 1.3rem; margin: 0; box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(s); position: absolute; top: -16px; left: 1.2rem; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps h3 { font-size: 1.1rem; margin-top: .4rem; }

/* ---------- Accordions ---------- */
.acc { border: 1px solid var(--line); border-radius: 18px; background: var(--bg); margin-bottom: .8rem; overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 650; font-size: 1.08rem; display: flex; align-items: center; gap: .8rem; min-height: 60px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary { flex-wrap: wrap; }
.acc summary > span:nth-child(2) { flex: 1 1 8rem; min-width: 0; }
.acc summary .chev { margin-left: auto; transition: transform .2s; color: var(--purple); }
.acc[open] summary .chev { transform: rotate(180deg); }
.acc summary .ic-badge { margin: 0; width: 2.6rem; height: 2.6rem; border-radius: 12px; }
.acc .acc-body { padding: 0 1.3rem 1.3rem; }
.status { display: inline-flex; align-items: center; gap: .35em; font-size: .8rem; font-weight: 700; padding: .25em .7em; border-radius: 99px; }
.status-done { background: var(--leaf-lt); color: var(--leaf); }
.status-going { background: var(--sky-lt); color: var(--sky); }

/* ---------- Team ---------- */
.team-card { text-align: center; padding: 0; overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 20%; background: #f4f1f8; }
.team-card .card-body { padding: 1.1rem 1rem 1.4rem; }
.team-card .role { color: var(--magenta); font-weight: 650; font-size: .92rem; margin-bottom: .2rem; }
.team-card h3 { margin: 0; font-size: 1.2rem; }

/* ---------- Personal care: day tabs, service cards, who we support ---------- */
.photo-wrap { position: relative; }
.photo-badge { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .5em; max-width: calc(100% - 2rem); padding: .6em 1.05em; border-radius: 99px; background: var(--bg); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; font-size: .95rem; text-decoration: none; }
.photo-badge:hover { color: var(--purple-dk); }
.photo-badge .icon { flex: none; color: var(--leaf); width: 1.3em; height: 1.3em; }
.promise { text-align: center; }
.promise .ic-badge { margin-inline: auto; }
.day-tabs { max-width: 1000px; margin-inline: auto; }
.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1.4rem; }
.tab-list [role="tab"] { display: inline-flex; align-items: center; gap: .5em; min-height: 56px; padding: .5em 1.35em; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 1.08rem; font-weight: 700; cursor: pointer; }
.tab-list [role="tab"] .icon { width: 1.45em; height: 1.45em; color: var(--purple); }
.tab-list [role="tab"]:hover { border-color: var(--purple); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.tab-list [role="tab"][aria-selected="true"] .icon { color: var(--sun); }
.day-panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.day-panel h3 { margin-top: 0; }
.day-grid { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: .8rem; }
.day-grid li { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); font-weight: 650; line-height: 1.35; }
.day-grid .ic-badge { margin: 0; width: 3rem; height: 3rem; }
.care-card { border-top: 6px solid var(--accent, var(--purple)); }
.care-card .tick-list { margin: .3rem 0 0; }
.who-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .9rem; }
.who-grid li { margin: 0; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); font-weight: 650; line-height: 1.35; }
.who-grid li > span:last-child { min-width: 0; }
.who-grid .ic-badge { margin: 0; flex: none; width: 3rem; height: 3rem; }
@media (max-width: 480px) { .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .day-grid li { padding: .85rem; font-size: .95rem; } .photo-badge { left: .6rem; bottom: .6rem; font-size: .85rem; } }

/* ---------- Perks of the job ---------- */
.perk-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.perk-grid > li { margin: 0; }
.perk h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.perk-cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--grad); border: 0; color: #fff; }
.perk-cta h3, .perk-cta p { color: #fff; }

/* Top bar: room for Easy read, My login and Staff login on small phones */
@media (max-width: 400px) { .tb-right { gap: .35rem; } .tb-item { padding-inline: .1em; } }

/* ---------- My Milford Del (people we support) ---------- */
.portal-login label .icon { width: 1.2em; height: 1.2em; margin-right: .35em; vertical-align: -.2em; color: var(--purple); }
.person-hello { margin-bottom: 1.4rem; }
.person-hello .lead { margin-bottom: .6rem; }
.person-sec .portal-h { margin-top: 0; }
.person-today { background: var(--sea-lt); border-radius: 14px; padding: .6rem .9rem; font-weight: 600; }
.person-topics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.person-topics .pick { min-height: 130px; }
@media (max-width: 480px) { .person-topics .pick { min-height: 110px; padding: .9rem .6rem; } .person-topics .ic-badge { width: 3.2rem; height: 3.2rem; } }
.person-help { display: flex; gap: .7rem; align-items: flex-start; background: var(--sun-lt); border-radius: 16px; padding: .9rem 1rem; }
.person-help .icon { flex: none; width: 1.6em; height: 1.6em; color: var(--orange); }
.person-safe-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .8rem; }
.person-safe-list li { display: flex; gap: .7rem; align-items: flex-start; margin: 0; }
.person-safe-list .icon { flex: none; width: 1.6em; height: 1.6em; color: var(--coral); }
.f-worried .icon { color: #6d28d9; }
.face-reply .listen { margin-top: .4rem; }
.inbox { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.inbox-item { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: start; margin: 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.inbox-item .ic-badge { margin: 0; width: 2.8rem; height: 2.8rem; }
.inbox-item p { margin: 0 0 .2rem; }
.inbox-item small { color: var(--ink-2); }
.inbox-item > div { min-width: 0; overflow-wrap: anywhere; }
.inbox-item.is-new { border-color: var(--purple); box-shadow: var(--shadow-sm); }
.inbox-item.is-low.is-new { border-color: var(--coral); background: var(--coral-lt); }
@media (max-width: 560px) { .inbox-item { grid-template-columns: auto 1fr; } .inbox-item > :last-child { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label, .field .label { font-weight: 650; }
.field .hint { font-size: .9rem; color: var(--ink-2); margin-top: -.2rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], textarea, select { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid #b9aed0; border-radius: 14px; padding: .8rem 1rem; min-height: 54px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--purple); outline: 3px solid var(--focus); outline-offset: 1px; }
.form-note { font-size: .9rem; color: var(--ink-2); }
.alert { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 16px; background: var(--sky-lt); color: var(--ink); margin-bottom: 1rem; }
.alert > span { min-width: 0; overflow-wrap: anywhere; }
.alert .icon { color: var(--sky); margin-top: .15em; }
.alert-warn { background: var(--orange-lt); } .alert-warn .icon { color: var(--orange); }
.alert-ok { background: var(--leaf-lt); } .alert-ok .icon { color: var(--leaf); }
.alert-err { background: var(--coral-lt); } .alert-err .icon { color: var(--coral); }

/* ---------- Help strip & footer ---------- */
.help-strip { background: var(--grad); color: #fff; padding: 2.4rem 0; }
.help-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.help-strip h2 { color: #fff; margin: 0 0 .2rem; font-size: 1.6rem; }
.help-strip p { margin: 0; opacity: .95; }
.hs-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.site-footer { background: var(--purple-xdk); color: #e9e1fb; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .f-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-light .brand-name { color: #fff; background: none; }
.brand-light .brand-sub { color: #cdbff0; }
.brand-light img { background: #fff; border-radius: 14px; padding: 4px; }
.f-about p { margin-top: 1rem; }
.f-title { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; }
.f-links { list-style: none; padding: 0; margin: 0; }
.f-links li { margin-bottom: .55rem; }
.f-links a { text-decoration: none; display: inline-block; padding: .15em 0; }
.f-links a:hover { text-decoration: underline; }
.f-contact { font-style: normal; }
.f-contact p { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; }
.f-contact .icon { color: var(--sun); margin-top: .2em; }
.f-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .82rem; color: #cdbff0; }
.cqc-pill { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; background: #fff; color: var(--ink) !important; padding: .6rem 1rem; border-radius: 16px; margin-top: .4rem; }
.cqc-pill > .icon:first-child { color: #fff; background: var(--leaf); border-radius: 10px; padding: .3rem; width: 2.2rem; height: 2.2rem; }
.cqc-pill small { display: block; font-size: .72rem; color: var(--ink-2); }
.cqc-pill strong { color: var(--leaf); font-size: 1.1rem; }
.cqc-pill .ext { width: 1em; color: var(--ink-2); }

/* ---------- Photo strip ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; }
.photo-strip img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 18px; }
.photo-strip img:nth-child(even) { margin-top: 2rem; }
@media (max-width: 760px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } .photo-strip img:nth-child(n+4) { display: none; } }

/* ---------- News ---------- */
.post-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--ink-2); font-size: .92rem; margin-bottom: .6rem; }
.post-meta span { display: inline-flex; align-items: center; gap: .35em; }

/* ---------- Bot ---------- */
.bot-launch { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 140; display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1.2rem .5rem .5rem; border-radius: 99px; border: 0; background: var(--grad); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(109, 40, 217, .65); min-height: 60px; }
.bot-launch .bot-face { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; }
.bot-launch .bot-face img { width: 30px; height: auto; }
.bot-launch:hover { transform: translateY(-2px); }
.bot-launch .wave-hand { display: inline-block; animation: wavehand 2.4s ease-in-out 1s 3; transform-origin: 70% 70%; }
@keyframes wavehand { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
.bot-panel { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 170; width: min(420px, calc(100vw - 1.5rem)); height: min(640px, calc(100vh - 2.5rem)); background: var(--bg); border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(42, 15, 92, .55); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.bot-panel[hidden] { display: none; }
.bot-head { background: var(--grad); color: #fff; padding: .9rem 1rem; display: flex; align-items: center; gap: .8rem; }
.bot-head .bot-face { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.bot-head .bot-face img { width: 30px; }
.bot-head h2 { color: #fff; font-size: 1.1rem; margin: 0; }
.bot-head p { margin: 0; font-size: .8rem; opacity: .92; }
.bot-head .icon-btn { margin-left: auto; background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.35); }
.bot-tools { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .9rem; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: .85rem; }
.bot-reset { background: var(--bg) !important; border: 2px solid var(--line) !important; margin: 0 !important; }
.bot-tools .toggle { min-height: 40px; padding: 0; gap: .5rem; font-weight: 600; }
.bot-tools .toggle-ui { width: 44px; height: 26px; }
.bot-tools .toggle-ui::after { width: 18px; height: 18px; }
.bot-tools .toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.bot-log { flex: 1; overflow-y: auto; padding: 1rem .9rem; display: flex; flex-direction: column; gap: .7rem; }
.msg { max-width: 88%; padding: .75rem .95rem; border-radius: 18px; line-height: 1.5; font-size: .98rem; position: relative; }
.msg p { margin: 0 0 .5em; } .msg p:last-child { margin: 0; }
.msg-bot { background: var(--lilac); color: var(--ink); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg-user { background: var(--purple); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
html[data-theme="contrast"] .msg-user { background: #000; border: 2px solid #ffeb3b; color: #ffeb3b; }
.msg .msg-speak { margin-top: .4rem; display: inline-flex; align-items: center; gap: .3em; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: .25em .7em; font: inherit; font-size: .8rem; font-weight: 600; color: var(--purple-dk); cursor: pointer; min-height: 36px; }
.msg-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.msg-links a { display: inline-flex; align-items: center; gap: .3em; background: var(--bg); border: 2px solid var(--purple); color: var(--purple-dk); border-radius: 99px; padding: .3em .8em; text-decoration: none; font-size: .88rem; font-weight: 650; min-height: 40px; }
.msg-links a:hover { background: var(--purple); color: #fff; }
.msg-alert { background: var(--coral-lt); border: 2px solid var(--coral); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); opacity: .5; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: 1; transform: translateY(-2px); } }
.bot-chips { display: flex; gap: .4rem; flex-wrap: wrap; padding: .5rem .9rem; border-top: 1px solid var(--line); max-height: 118px; overflow-y: auto; }
.bot-chips button { border: 2px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 99px; padding: .35em .85em; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; min-height: 42px; }
.bot-chips button:hover { border-color: var(--purple); background: var(--lilac); }
.bot-form { display: flex; gap: .5rem; padding: .7rem .9rem .9rem; border-top: 1px solid var(--line); }
.bot-form input { min-height: 50px; border-radius: 99px; padding: .6rem 1rem; }
.bot-form button { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; }
.bot-note { font-size: .74rem; color: var(--ink-2); padding: 0 1rem .7rem; margin: -.3rem 0 0; }
@media (max-width: 560px) { .bot-launch .bl-text { display: none; } .bot-launch { padding: .4rem; } .bot-panel { right: .5rem; bottom: .5rem; height: calc(100vh - 1rem); } }

/* ---------- Easy read referral ---------- */
.talk-switch { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; margin-bottom: 1.4rem; border-radius: 24px; background: var(--sun-lt); border: 3px solid var(--sun); cursor: pointer; }
.talk-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ts-box { flex: none; width: 52px; height: 52px; border-radius: 14px; border: 3px solid var(--purple-dk); background: var(--bg); display: grid; place-items: center; color: transparent; }
.ts-box .icon { width: 2rem; height: 2rem; stroke-width: 3; }
.talk-switch input:checked ~ .ts-box { background: var(--purple); border-color: var(--purple); color: #fff; }
.talk-switch input:focus-visible ~ .ts-box { outline: 4px solid var(--focus); outline-offset: 3px; }
.ts-speaker { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--purple-xdk); color: var(--sun); display: grid; place-items: center; }
.ts-speaker .icon { width: 2.2rem; height: 2.2rem; }
.talk-switch input:checked ~ .ts-speaker .icon { animation: pulse 1.2s infinite; }
.ts-text strong { display: block; font-size: 1.35rem; }
.ts-text small { display: block; font-size: 1rem; color: var(--ink-2); }
.btn-big { min-height: 60px; font-size: 1.12rem; padding: .8em 1.6em; }
.rf-count { font-weight: 700; color: var(--purple-dk); margin: -.6rem 0 .8rem; min-height: 1.2em; }
.referral .er-line { font-size: 1.12rem; }
.referral .pick { min-height: 140px; font-size: 1.05rem; }
.referral .field label, .referral .label { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: 1.1rem; }
.referral .field .speak-line, .referral .label .speak-line, .referral .toggle .speak-line { width: 44px; height: 44px; flex: none; display: inline-grid; vertical-align: middle; margin-left: .4rem; }
@media print { .page-easy-read-referral .talk-switch, .page-easy-read-referral .finder-nav, .page-easy-read-referral .finder-progress, .page-easy-read-referral .page-hero, .page-easy-read-referral .form-note { display: none !important; } .referral { box-shadow: none; border: 0; } }

/* ---------- Staff portal ---------- */
.portal-section { padding: 2.5rem 0 4rem; min-height: 60vh; }
.portal-login { max-width: 540px; margin: 1rem auto; padding: clamp(1.4rem, 4vw, 2.4rem); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 4rem; }
.pw-wrap .pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; }
.portal-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: .7rem .9rem; margin-bottom: 1.6rem; }
.pb-who { display: flex; align-items: center; gap: .8rem; }
.pb-who small { display: block; color: var(--ink-2); font-size: .85rem; }
.pb-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.pb-nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.pb-nav a, .pb-nav button { display: inline-flex; align-items: center; gap: .4em; min-height: 46px; padding: .4em .9em; border-radius: 12px; border: 2px solid transparent; background: none; color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.pb-nav a:hover, .pb-nav button:hover { background: var(--lilac); }
.pb-nav a[aria-current="page"] { background: var(--purple); color: #fff; }
.portal-hello { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin-bottom: .2rem; }
.portal-h { display: flex; align-items: center; gap: .5em; font-size: 1.3rem; margin: 1.6rem 0 1rem; }
.card > .portal-h:first-child { margin-top: 0; }
.portal-h .icon { color: var(--purple); }
.portal-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .9rem; }
.ptile { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem; border-radius: 20px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; min-height: 140px; transition: transform .15s, border-color .15s; }
a.ptile:hover { transform: translateY(-3px); border-color: var(--purple); color: var(--ink); }
.ptile .ic-badge { margin-bottom: .4rem; }
.ptile small { color: var(--ink-2); font-size: .85rem; }
.ptile-ext { position: absolute; top: .8rem; right: .8rem; color: var(--ink-2); }
.ptile-off { opacity: .65; border-style: dashed; }
.ptile-off .ic-badge { background: var(--line); color: var(--ink-2); }
.portal-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; margin-top: 1.6rem; align-items: start; }
@media (max-width: 900px) { .portal-grid { grid-template-columns: 1fr; } }
.notice { border-bottom: 1px solid var(--line); padding: .4rem 0 1rem; margin-bottom: 1rem; }
.notice:last-child { border: 0; margin: 0; padding-bottom: 0; }
.notice h3 { margin: 0; font-size: 1.1rem; }
.notice-meta { font-size: .85rem; color: var(--ink-2); margin: .2rem 0 .5rem; }
.mydl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.mydl dt { font-weight: 650; color: var(--ink-2); }
.mydl dd { margin: 0; word-break: break-word; }
.ask-dialog { border: 0; border-radius: 20px; padding: 1.5rem; max-width: min(28rem, calc(100vw - 2rem)); background: var(--bg); color: var(--ink); box-shadow: var(--shadow); }
.ask-dialog::backdrop { background: rgba(20, 10, 40, .55); }
.ask-dialog p { font-size: 1.15rem; font-weight: 600; margin: 0 0 1.2rem; }
.ask-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; }
.preview-ribbon { background: var(--sun); color: #1a1033; text-align: center; font-weight: 700; padding: .45rem 1rem; font-size: .95rem; line-height: 1.35; }
.secret-box { background: var(--sun-lt); border: 3px solid var(--sun); border-radius: 20px; padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; }
.secret-box h2 { font-size: 1.2rem; display: flex; gap: .5em; align-items: center; }
.secret { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.secret code { font-size: 1.6rem; font-weight: 700; letter-spacing: .08em; background: var(--bg); padding: .3em .7em; border-radius: 12px; border: 2px dashed var(--purple); }
.table-wrap { overflow-x: auto; }
.staff-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.staff-table th { text-align: left; padding: .6rem; border-bottom: 2px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.staff-table td { padding: .8rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.staff-table small { color: var(--ink-2); }
.row-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.link-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0 .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.link-row .field { margin-bottom: .6rem; }
.lr-actions { display: flex; gap: .5rem; align-items: end; padding-bottom: .6rem; }
@media (max-width: 600px) { .link-row { grid-template-columns: 1fr; } .staff-table thead { display: none; } .staff-table tr { display: block; border-bottom: 2px solid var(--line); padding: .5rem 0; } .staff-table td { display: block; border: 0; padding: .3rem 0; } .row-actions { justify-content: flex-start; } }

/* ---------- Misc ---------- */
.badge-outstanding > span { min-width: 0; }
.badge-outstanding { max-width: 100%; display: inline-flex; align-items: center; gap: 1rem; background: var(--bg); color: var(--ink); border-radius: 22px; padding: 1rem 1.3rem; box-shadow: var(--shadow); border: 1px solid var(--line); text-decoration: none; }
.badge-outstanding .icon { width: 3rem; height: 3rem; padding: .55rem; box-sizing: content-box; border-radius: 16px; background: var(--leaf); color: #fff; }
.badge-outstanding small { display: block; color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.badge-outstanding strong { font-size: 1.6rem; color: var(--leaf); line-height: 1.1; }
.kicker-card { background: var(--purple-xdk); color: #fff; border-radius: var(--radius); padding: 2rem; }
.kicker-card h2, .kicker-card h3, .kicker-card p { color: #fff; }
.img-round { border-radius: 28px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.fact-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .7rem; }
.fact-list li { display: flex; gap: .7rem; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: .75rem .9rem; margin: 0; font-weight: 600; font-size: .95rem; }
.fact-list .icon { color: var(--purple); width: 1.5em; height: 1.5em; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.embed-frame { width: 100%; min-height: 1400px; border: 0; border-radius: var(--radius); background: #fff; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
html[data-motion="reduce"] .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .beam, .mdt-circle::before, .cycle-step { animation: none; } }
@media print { .topbar, .site-header, .help-strip, .site-footer, .bot-launch, .bot-panel, .listen, .speak-line, .hero-wave { display: none !important; } .page-hero { color: #000; background: none; } .page-hero h1, .page-hero .lead { color: #000; } }
