/* Machangs design system: tropical teal, warm cream, mango, deep navy.
   Tokens follow brief/02_DESIGN_SYSTEM.md. Fonts are self-hosted (SIL OFL; licenses in /assets/fonts). */

@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url(../fonts/outfit-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url(../fonts/outfit-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url(../fonts/outfit-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-display: swap; src: url(../fonts/outfit-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Sans"; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Noto Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/noto-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 500; font-display: swap; src: url(../fonts/noto-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 700; font-display: swap; src: url(../fonts/noto-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans Sinhala"; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-sinhala-sinhala-400-normal.woff2) format("woff2"); unicode-range: U+0964-0965,U+0D81-0DF4,U+1CF2,U+200C-200D,U+25CC,U+111E1-111F4; }
@font-face { font-family: "Noto Sans Sinhala"; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-sinhala-sinhala-600-normal.woff2) format("woff2"); unicode-range: U+0964-0965,U+0D81-0DF4,U+1CF2,U+200C-200D,U+25CC,U+111E1-111F4; }
@font-face { font-family: "Noto Sans Tamil"; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-tamil-tamil-400-normal.woff2) format("woff2"); unicode-range: U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC; }
@font-face { font-family: "Noto Sans Tamil"; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-tamil-tamil-600-normal.woff2) format("woff2"); unicode-range: U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC; }

:root {
  --brand: #007f78; --brand-600: #006b65; --brand-700: #00564f; --brand-050: #e4f3ee;
  --canvas: #fff9f0; --canvas-2: #fdf1df; --ink: #142d36; --ink-2: #1e3e4a;
  --mango: #ffc857; --mango-200: #ffe3a1; --mango-050: #fff4d9;
  --mint: #e4f3ee; --mint-200: #c9e8de; --surface: #ffffff;
  --border: #d8e4e0; --border-strong: #8aa3a4; --muted: #53666b;
  --error: #b42318; --error-bg: #fdecea; --success: #0b6b3a; --success-bg: #e6f4ec; --warning-bg: #fff4d9; --coral: #f07c5a;
  --font-head: "Outfit", "Noto Sans", system-ui, sans-serif;
  --font-body: "Noto Sans", "Noto Sans Sinhala", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-card: 24px; --r-lg: 32px; --r-control: 14px; --r-pill: 999px;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s6: 1.5rem; --s8: 2rem; --s12: 3rem; --s16: 4rem; --s24: 6rem;
  --max: 78rem; --read: 46rem;
  --shadow-sm: 0 1px 2px rgba(20,45,54,.06), 0 1px 1px rgba(20,45,54,.04);
  --shadow: 0 10px 30px -12px rgba(20,45,54,.22), 0 2px 6px rgba(20,45,54,.05);
  --shadow-lg: 0 30px 60px -24px rgba(20,45,54,.35);
  --focus: 0 0 0 3px var(--canvas), 0 0 0 6px var(--ink);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
:lang(si) body, body:lang(si) { font-family: "Noto Sans Sinhala", var(--font-body); line-height: 1.8; }
:lang(ta) body, body:lang(ta) { font-family: "Noto Sans Tamil", var(--font-body); line-height: 1.8; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.1rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 3.1rem); font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
small, .small { font-size: .9rem; }
.muted { color: var(--muted); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-footer :focus-visible, .signup :focus-visible { outline-color: var(--mango); }
::selection { background: var(--mango); color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 12px; font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 1rem; color: #fff; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.reading { max-width: var(--read); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s4); }
.flow > * + * { margin-top: 1em; }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: var(--s4); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: var(--s6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; }
.icon-lg { width: 1.6rem; height: 1.6rem; }
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section-sm { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s6); flex-wrap: wrap; margin-bottom: var(--s8); }
.section-head p { max-width: 38rem; margin: 0; color: var(--muted); font-size: 1.1rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 700 .82rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); margin-bottom: var(--s4); }
.eyebrow::before { content: ""; width: 1.6rem; height: .8rem; border: 3px solid currentColor; border-bottom: 0; border-radius: 1rem 1rem 0 0; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 38rem; }
.hl { background: linear-gradient(transparent 60%, var(--mango) 60%, var(--mango) 90%, transparent 90%); border-radius: 2px; }

/* Buttons */
.btn { --bg: var(--surface); --fg: var(--ink); --bd: var(--border-strong); display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.3rem; border-radius: var(--r-control); border: 2px solid var(--bd); background: var(--bg); color: var(--fg); font: 700 1rem/1.15 var(--font-head); letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: transform .14s var(--ease), background-color .14s, box-shadow .14s; white-space: nowrap; }
.btn:hover { color: var(--fg); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--brand); --fg: #fff; --bd: var(--brand); }
.btn--primary:hover { --bg: var(--brand-600); --bd: var(--brand-600); }
.btn--mango { --bg: var(--mango); --fg: var(--ink); --bd: var(--mango); }
.btn--mango:hover { --bg: #ffbd38; --bd: #ffbd38; }
.btn--ink { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn--ghost { --bg: transparent; --bd: transparent; --fg: var(--brand-600); padding-inline: .6rem; }
.btn--ghost:hover { --bg: var(--mint); box-shadow: none; }
.btn--danger { --bg: var(--surface); --fg: var(--error); --bd: var(--error); }
.btn--sm { min-height: 40px; padding: .45rem .9rem; font-size: .92rem; border-radius: 12px; }
.btn--lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.07rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { --bg: #e9eeed; --fg: #5b6d71; --bd: #c9d5d3; cursor: not-allowed; transform: none; box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font: 700 1rem var(--font-head); text-decoration: none; color: var(--brand-600); }
.link-arrow .icon { transition: transform .15s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,249,240,.9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header__bar { display: flex; align-items: center; gap: var(--s6); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--brand); flex: none; }
.brand img { height: 30px; width: auto; }
.brand:hover { color: var(--brand); }
.nav-primary { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav-primary a { padding: .55rem .85rem; border-radius: 12px; text-decoration: none; color: var(--ink); font: 600 .98rem var(--font-head); }
.nav-primary a:hover, .nav-primary a[aria-current="page"] { background: var(--mint); color: var(--brand-700); }
.nav-actions { display: flex; gap: .5rem; align-items: center; }
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile summary { list-style: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem .9rem; border-radius: 12px; border: 2px solid var(--border-strong); font: 700 .95rem var(--font-head); cursor: pointer; background: var(--surface); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-mobile__panel { position: absolute; left: 0; right: 0; top: 72px; background: var(--canvas); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: var(--s4) clamp(1rem,4vw,2rem) var(--s6); display: grid; gap: .25rem; max-height: calc(100vh - 72px); overflow: auto; }
.nav-mobile__panel a:not(.btn) { padding: .8rem .5rem; font: 700 1.15rem var(--font-head); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border); }
.nav-mobile__panel .row { margin-top: var(--s4); }
@media (max-width: 960px) { .nav-primary, .nav-actions { display: none; } .nav-mobile { display: block; } }

/* Hero */
.hero { position: relative; padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(3rem, 2rem + 5vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: var(--s6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s8) 0 var(--s4); }
.hero__note { font-size: .95rem; color: var(--muted); display: flex; gap: .5rem; align-items: center; }
.hero__art { position: relative; aspect-ratio: 4 / 4.2; }
.hero__photo { position: absolute; inset: 0 0 0 8%; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--mint); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.hero__arch { position: absolute; left: -2%; bottom: -6%; width: 46%; aspect-ratio: 1; border: 22px solid var(--mango); border-bottom: 0; border-radius: 999px 999px 0 0; z-index: -1; }
.hero__dot { position: absolute; right: -2%; top: 6%; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--mango); z-index: -1; }
.chip-float { position: absolute; display: inline-flex; gap: .5rem; align-items: center; padding: .6rem .95rem .6rem .6rem; background: var(--surface); border-radius: var(--r-pill); box-shadow: var(--shadow); font: 700 .92rem var(--font-head); color: var(--ink); animation: floaty 6s var(--ease) infinite alternate; }
.chip-float span.dot { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--brand); }
.chip-float--a { left: -2%; top: 18%; }
.chip-float--b { right: -4%; top: 52%; animation-delay: -2s; }
.chip-float--c { left: 10%; bottom: 6%; animation-delay: -4s; }
.chip-float--b span.dot { background: var(--mango-200); color: var(--ink); }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.hero__caption { position: absolute; right: 0; bottom: -2rem; font-size: .78rem; color: var(--muted); background: var(--canvas); padding: .1rem .4rem; border-radius: 6px; z-index: 2; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__art { max-width: 32rem; width: 100%; margin-inline: auto; aspect-ratio: 1 / 1; } .chip-float--b { right: 0; } }

/* Discovery strip */
.discover { position: relative; z-index: 2; margin-top: calc(-1 * clamp(1.5rem, 3vw, 2.75rem)); }
.discover__card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); display: grid; grid-template-columns: 1.1fr 2fr; gap: var(--s6); align-items: center; border: 1px solid var(--border); }
.discover__card h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: .3rem; }
.discover__card p { color: var(--muted); margin: 0; }
.discover__form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: var(--s3); align-items: end; }
@media (max-width: 1000px) { .discover__card { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .discover__form { grid-template-columns: 1fr; } }

/* Forms */
.field { display: grid; gap: .4rem; }
.field + .field, .field + .fieldset, .fieldset + .field { margin-top: var(--s4); }
label, .label { font: 700 .95rem/1.3 var(--font-head); color: var(--ink); }
.hint { font-size: .9rem; color: var(--muted); margin: 0; }
.input, select.input, textarea.input { width: 100%; min-height: 50px; padding: .7rem .9rem; border: 2px solid var(--border-strong); border-radius: var(--r-control); background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--font-body); transition: border-color .12s, box-shadow .12s; }
textarea.input { min-height: 8rem; resize: vertical; line-height: 1.55; }
.input:hover { border-color: #6b8587; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,127,120,.18); outline: none; }
.input[aria-invalid="true"] { border-color: var(--error); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23142D36' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem; padding-right: 2.6rem; }
.field-error { display: flex; gap: .4rem; align-items: start; color: var(--error); font-weight: 600; font-size: .93rem; margin: 0; }
.fieldset { border: 0; margin: 0; padding: 0; }
.fieldset legend { font: 800 1.2rem var(--font-head); margin-bottom: var(--s3); padding: 0; }
.check { display: flex; gap: .7rem; align-items: flex-start; font: 400 1rem/1.5 var(--font-body); cursor: pointer; padding: .2rem 0; }
.check input { width: 1.35rem; height: 1.35rem; margin-top: .12rem; accent-color: var(--brand); flex: none; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice span { display: flex; align-items: center; gap: .55rem; min-height: 52px; padding: .65rem .9rem; border: 2px solid var(--border-strong); border-radius: var(--r-control); background: var(--surface); font: 600 .97rem/1.25 var(--font-head); }
.choice input:checked + span { border-color: var(--brand); background: var(--mint); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input:checked + span::after { content: "✓"; margin-left: auto; color: var(--brand); font-weight: 800; }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.error-summary { border: 2px solid var(--error); background: var(--error-bg); border-radius: var(--r-control); padding: var(--s4) var(--s6); margin-bottom: var(--s6); }
.error-summary h2 { font-size: 1.1rem; color: var(--error); margin-bottom: .4rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.form-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s6); align-items: center; }
.form-section + .form-section { margin-top: var(--s8); padding-top: var(--s8); border-top: 1px dashed var(--border); }
.form-section h2 { font-size: 1.35rem; display: flex; gap: .7rem; align-items: center; }
.step-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--mango); font: 800 .95rem var(--font-head); flex: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.two-col .field + .field, .three-col .field + .field { margin-top: 0; }
@media (max-width: 640px) { .two-col, .three-col { grid-template-columns: 1fr; } .two-col .field + .field, .three-col .field + .field { margin-top: var(--s4); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Cards & plan cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s6); box-shadow: var(--shadow-sm); }
.card--flat { box-shadow: none; }
.card--mint { background: var(--mint); border-color: var(--mint-200); }
.card--mango { background: var(--mango-050); border-color: var(--mango-200); }
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease); height: 100%; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--mint); overflow: hidden; }
.plan-card__media img { width: 100%; height: 100%; object-fit: cover; }
.plan-card__body { display: flex; flex-direction: column; gap: .55rem; padding: var(--s4) var(--s6) var(--s6); flex: 1; }
.plan-card h3 { margin: .2rem 0 0; font-size: 1.22rem; }
.plan-card h3 a { color: var(--ink); text-decoration: none; }
.plan-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.plan-card h3 a:focus-visible { outline: none; }
.plan-card:has(h3 a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.plan-card__meta { display: grid; gap: .3rem; font-size: .94rem; color: var(--ink-2); margin: .2rem 0 .4rem; }
.plan-card__meta span { display: flex; gap: .45rem; align-items: center; }
.plan-card__meta .icon { color: var(--brand); }
.plan-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding-top: var(--s3); border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.date-badge { position: absolute; left: 1rem; top: 1rem; z-index: 2; display: grid; place-items: center; width: 4rem; padding: .45rem 0 .5rem; border-radius: 16px; background: var(--mango); color: var(--ink); box-shadow: var(--shadow-sm); font-family: var(--font-head); line-height: 1; text-align: center; }
.date-badge b { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }
.date-badge small { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.date-badge em { font-style: normal; font-size: .68rem; font-weight: 700; opacity: .8; margin-top: .15rem; }
.example-ribbon { position: absolute; right: .75rem; top: .75rem; z-index: 2; background: var(--ink); color: #fff; font: 800 .72rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; padding: .45rem .65rem; border-radius: 999px; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--mint); color: var(--brand-700); font: 700 .8rem/1.2 var(--font-head); letter-spacing: .01em; white-space: nowrap; }
.pill--mango { background: var(--mango-200); color: var(--ink); }
.pill--ink { background: var(--ink); color: #fff; }
.pill--outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--ink); }
.pill--error { background: var(--error-bg); color: var(--error); }
.pill--ok { background: var(--success-bg); color: var(--success); }
.status { display: inline-flex; align-items: center; gap: .4rem; font: 700 .85rem var(--font-head); }
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }
.status--open { color: var(--success); } .status--full { color: #8a5a00; } .status--cancelled { color: var(--error); } .status--completed, .status--draft { color: var(--muted); }

/* Ideas & interest tiles */
.ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--s4); }
.idea { position: relative; background: var(--surface); border: 2px dashed var(--border-strong); border-radius: var(--r-card); padding: var(--s4); display: grid; gap: .6rem; }
.idea img { border-radius: 16px; aspect-ratio: 16/10; object-fit: cover; }
.idea strong { font: 700 1.05rem var(--font-head); }
.empty { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) var(--s6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.empty__art { width: 7rem; height: 3.6rem; margin: 0 auto var(--s4); color: var(--brand); }
.empty h3 { margin-bottom: .4rem; }
.empty p { color: var(--muted); max-width: 34rem; margin-inline: auto; }
.empty .row { justify-content: center; margin-top: var(--s4); }
.interest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
@media (max-width: 1000px) { .interest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .interest-grid { grid-template-columns: 1fr; } }
.interest-tile { position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--border); transition: transform .18s var(--ease), box-shadow .18s; }
.interest-tile:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); color: var(--ink); }
.interest-tile img { aspect-ratio: 400/260; object-fit: cover; width: 100%; }
.interest-tile div { padding: var(--s4) var(--s4) var(--s6); }
.interest-tile h3 { font-size: 1.2rem; margin-bottom: .35rem; display: flex; justify-content: space-between; gap: .5rem; }
.interest-tile p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: var(--s8) var(--s6) var(--s6); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.step__num { display: grid; place-items: center; width: 4.2rem; height: 3.3rem; border: 5px solid var(--brand); border-bottom: 0; border-radius: 999px 999px 0 0; font: 800 1.6rem var(--font-head); color: var(--brand); margin-bottom: var(--s4); padding-top: .4rem; }
.step:nth-child(2) .step__num { border-color: var(--mango); color: #8a5a00; }
.step:nth-child(3) .step__num { border-color: var(--ink); color: var(--ink); }
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); margin: 0; }

/* Panels */
.panel-kandy { background: var(--mint); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.panel-kandy__copy { padding: clamp(1.75rem, 4vw, 3.5rem); align-self: center; }
.panel-kandy__img { position: relative; min-height: 22rem; }
.panel-kandy__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-kandy__img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--mint) 0, transparent 18%); z-index: 1; }
@media (max-width: 860px) { .panel-kandy { grid-template-columns: 1fr; } .panel-kandy__img { min-height: 15rem; order: -1; } .panel-kandy__img::before { background: linear-gradient(0deg, var(--mint) 0, transparent 22%); } }
.panel-safety { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s8); align-items: center; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.panel-safety__icon { width: 5rem; height: 5rem; border-radius: 1.6rem; background: var(--ink); color: var(--mango); display: grid; place-items: center; }
.panel-safety__icon .icon { width: 2.6rem; height: 2.6rem; }
@media (max-width: 760px) { .panel-safety { grid-template-columns: 1fr; } }
.signup { position: relative; overflow: hidden; background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; isolation: isolate; }
.signup h2 { color: var(--canvas); font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); }
.signup p { color: #e6f6f3; font-size: 1.15rem; max-width: 34rem; margin: 0 auto var(--s8); }
.signup__arches { position: absolute; inset: auto 0 -1px 0; height: 60%; z-index: -1; opacity: .9; }
.signup .accent { color: var(--mango); }
.signup::before { content: ""; position: absolute; right: 7%; top: 14%; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--mango); z-index: -1; }
.signup::after { content: ""; position: absolute; left: 6%; top: 12%; width: 3rem; height: 1.5rem; border: 6px solid var(--mango); border-bottom: 0; border-radius: 3rem 3rem 0 0; z-index: -1; }

/* Circle cards & blog cards */
.circle-card { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s4); align-items: start; background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--border); padding: var(--s4); position: relative; transition: transform .18s var(--ease), box-shadow .18s; }
.circle-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.circle-card img { width: 5.5rem; height: 5.5rem; border-radius: 999px 999px 18px 18px; object-fit: cover; background: var(--mint); }
.circle-card h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.circle-card h3 a { color: var(--ink); text-decoration: none; }
.circle-card h3 a::after { content: ""; position: absolute; inset: 0; }
.circle-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--border); overflow: hidden; position: relative; transition: transform .18s var(--ease), box-shadow .18s; height: 100%; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { padding: var(--s6); display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card h3 { margin: 0; font-size: 1.25rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { color: var(--muted); margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .86rem; color: var(--muted); margin-top: auto; }
.post-card--feature { display: grid; grid-template-columns: 1.2fr 1fr; }
.post-card--feature .post-card__media { aspect-ratio: auto; min-height: 20rem; }
.post-card--feature h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
@media (max-width: 860px) { .post-card--feature { grid-template-columns: 1fr; } .post-card--feature .post-card__media { min-height: 14rem; } }

/* Page hero (inner) */
.page-hero { position: relative; padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(2rem, 1.5rem + 3vw, 3.5rem); overflow: hidden; }
.page-hero__inner { display: grid; grid-template-columns: 1.4fr .9fr; gap: var(--s12); align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); }
.page-hero__art { position: relative; aspect-ratio: 1.15; }
.page-hero__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px var(--r-card) var(--r-card); box-shadow: var(--shadow); }
.page-hero__art::after { content: ""; position: absolute; right: -6%; bottom: -6%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--mango); z-index: -1; }
@media (max-width: 860px) { .page-hero__inner { grid-template-columns: 1fr; } .page-hero__art { max-width: 24rem; } }
.page-hero--plain .page-hero__inner { grid-template-columns: 1fr; }
.deco-arches { position: absolute; right: -4rem; top: -3rem; width: 22rem; opacity: .55; pointer-events: none; z-index: -1; color: var(--mint-200); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 var(--s4); display: flex; flex-wrap: wrap; gap: .35rem; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--border-strong); }
.breadcrumb a { color: var(--muted); }

/* Prose */
.prose { font-size: 1.1rem; line-height: 1.75; max-width: var(--read); }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.6em 0; padding: 1rem 1.4rem; border-left: 5px solid var(--mango); background: var(--mango-050); border-radius: 0 16px 16px 0; font-size: 1.15rem; }
.prose blockquote footer { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.prose .callout { margin: 1.6em 0; padding: 1.1rem 1.3rem; border-radius: 16px; background: var(--mint); border: 1px solid var(--mint-200); }
.prose .callout > :last-child { margin-bottom: 0; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r-card); }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.prose .table-wrap { overflow-x: auto; margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--border); }
.prose th { font-family: var(--font-head); background: var(--mint); }
.prose strong { color: var(--ink); }
.editorial-section { display: grid; grid-template-columns: 15rem 1fr; gap: var(--s8); padding-block: var(--s8); border-top: 1px solid var(--border); }
.editorial-section h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); position: sticky; top: 6rem; align-self: start; }
.editorial-section .prose { font-size: 1.08rem; }
@media (max-width: 860px) { .editorial-section { grid-template-columns: 1fr; gap: var(--s3); } .editorial-section h2 { position: static; } }
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--s4); }
.value { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s6); }
.value h3 { display: flex; gap: .6rem; align-items: start; font-size: 1.15rem; }
.value h3::before { content: ""; flex: none; width: 1.3rem; height: .75rem; margin-top: .3rem; border: 4px solid var(--brand); border-bottom: 0; border-radius: 1rem 1rem 0 0; }
.value:nth-child(3n+2) h3::before { border-color: var(--mango); }
.value:nth-child(3n) h3::before { border-color: var(--ink); }
.value p { color: var(--muted); margin: 0; }
.action-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }
.note { display: flex; gap: .75rem; align-items: flex-start; padding: var(--s4) var(--s6); border-radius: 16px; background: var(--mango-050); border: 1px solid var(--mango-200); font-size: .97rem; }
.note .icon { color: #8a5a00; margin-top: .15rem; }
.note--mint { background: var(--mint); border-color: var(--mint-200); }
.note--mint .icon { color: var(--brand); }
.note--error { background: var(--error-bg); border-color: #f3b8b2; }
.note--error .icon { color: var(--error); }
.note p:last-child { margin-bottom: 0; }

/* Article */
.article-head { padding-block: clamp(2rem, 2rem + 3vw, 4rem) var(--s8); }
.article-head .post-meta { margin-top: var(--s4); font-size: .95rem; gap: .5rem 1.25rem; }
.article-cover { margin-block: 0 var(--s12); }
.article-cover img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16/8; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 1fr 18rem; gap: var(--s12); align-items: start; }
.article-aside { position: sticky; top: 6rem; display: grid; gap: var(--s4); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }
.byline { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.byline__mark { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.byline__mark .icon { width: 1.4rem; height: .8rem; }
.preview-banner { position: sticky; top: 0; z-index: 60; background: var(--ink); color: var(--mango); text-align: center; font: 800 .9rem var(--font-head); padding: .6rem; letter-spacing: .02em; }

/* Plan detail */
.plan-hero { padding-top: var(--s8); }
.plan-hero__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s8); align-items: start; }
@media (max-width: 960px) { .plan-hero__grid { grid-template-columns: 1fr; } }
.plan-cover { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8.5; background: var(--mint); }
.plan-cover img { width: 100%; height: 100%; object-fit: cover; }
.plan-cover .date-badge { width: 5rem; left: 1.25rem; top: 1.25rem; }
.plan-cover .date-badge b { font-size: 2rem; }
.plan-title { margin: var(--s6) 0 var(--s3); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin: var(--s6) 0; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }
.fact { display: flex; gap: .85rem; align-items: flex-start; padding: var(--s4); border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.fact__icon { width: 2.6rem; height: 2.6rem; border-radius: 14px; background: var(--mint); color: var(--brand); display: grid; place-items: center; flex: none; }
.fact h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 .2rem; }
.fact p { margin: 0; font-weight: 600; }
.fact p small { display: block; font-weight: 400; color: var(--muted); }
.action-panel { position: sticky; top: 6rem; background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--border); box-shadow: var(--shadow); padding: var(--s6); display: grid; gap: var(--s4); }
.action-panel__price { font: 800 1.5rem var(--font-head); }
.action-panel form { margin: 0; }
.capacity { height: .6rem; border-radius: 999px; background: var(--mint); overflow: hidden; }
.capacity span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.mobile-action { display: none; }
@media (max-width: 960px) {
  .action-panel { position: static; }
  .mobile-action { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; gap: var(--s3); justify-content: space-between; align-items: center; background: var(--surface); border-top: 1px solid var(--border); padding: .75rem clamp(1rem, 4vw, 2rem) calc(.75rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -16px rgba(20,45,54,.35); }
  .page-plan main { padding-bottom: 6rem; }
}
.host-card { display: flex; gap: var(--s4); align-items: center; }
.avatar { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font: 800 1rem var(--font-head); flex: none; overflow: hidden; }
.avatar--lg { width: 6.5rem; height: 6.5rem; font-size: 2rem; border: 5px solid var(--canvas); box-shadow: var(--shadow); }
.avatar--sm { width: 2.25rem; height: 2.25rem; font-size: .8rem; }
.avatar-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.timeline li { padding-left: 1.4rem; position: relative; font-size: .95rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--mango); }

/* Explore */
.tabs { display: flex; gap: .35rem; padding: .35rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs a { padding: .6rem 1.1rem; border-radius: 13px; text-decoration: none; color: var(--ink); font: 700 .97rem var(--font-head); white-space: nowrap; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s6); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: var(--s4); align-items: end; }
.filters .field + .field { margin-top: 0; }
.filters__toggles { display: flex; gap: var(--s4); flex-wrap: wrap; grid-column: 1 / -1; align-items: center; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: var(--s12); flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 46px; min-height: 46px; display: inline-grid; place-items: center; padding: 0 .9rem; border-radius: 12px; border: 2px solid var(--border-strong); text-decoration: none; color: var(--ink); font: 700 .95rem var(--font-head); background: var(--surface); }
.pagination [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Toasts */
.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: grid; gap: .5rem; max-width: min(28rem, calc(100vw - 2rem)); }
.toast { display: flex; gap: .7rem; align-items: start; background: var(--ink); color: #fff; padding: .9rem 1rem; border-radius: 16px; box-shadow: var(--shadow-lg); font-weight: 500; animation: toastIn .22s var(--ease); }
.toast .icon { color: var(--mango); margin-top: .1rem; }
.toast--error { background: var(--error); }
.toast--error .icon { color: #fff; }
.toast button { margin-left: auto; background: transparent; border: 0; color: inherit; cursor: pointer; padding: .1rem; min-width: 32px; min-height: 32px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 960px) { .app .toast-region { bottom: 5.5rem; } .page-plan .toast-region { bottom: 6rem; } }

/* Footer */
.site-footer { background: var(--ink); color: #c8d6d8; margin-top: var(--s16); position: relative; overflow: hidden; }
.site-footer a { color: #eef6f5; text-decoration: none; }
.site-footer a:hover { color: var(--mango); text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: var(--s8) var(--s6); padding-block: var(--s16) var(--s12); }
@media (max-width: 1100px) { .footer-top { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 34px; width: auto; margin-bottom: var(--s4); }
.footer-brand p { margin: 0 0 .4rem; color: #c8d6d8; }
.footer-brand .tagline { font: 800 1.35rem/1.2 var(--font-head); color: #fff; margin-bottom: var(--s3); }
.footer-col h2 { font: 800 .82rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--mango); margin-bottom: var(--s4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .97rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--s6); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: .9rem; }
.footer-bottom ul { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-arches { position: absolute; right: -3rem; top: -2rem; width: 30rem; height: auto; color: rgba(255,255,255,.045); pointer-events: none; }

/* Member app */
.app-shell { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); min-height: 100vh; }
.app-nav { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--border); background: var(--surface); padding: var(--s6) var(--s4); display: flex; flex-direction: column; gap: var(--s6); }
.app-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.app-nav a.nav-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .85rem; border-radius: 14px; text-decoration: none; color: var(--ink); font: 700 1rem var(--font-head); position: relative; }
.app-nav a.nav-item:hover { background: var(--canvas); }
.app-nav a.nav-item[aria-current="page"] { background: var(--mint); color: var(--brand-700); }
.app-nav a.nav-item .icon { width: 1.35rem; height: 1.35rem; }
.badge-count { margin-left: auto; min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem; border-radius: 999px; background: var(--mango); color: var(--ink); font: 800 .75rem/1.5rem var(--font-head); text-align: center; }
.app-main { min-width: 0; }
.app-top { position: sticky; top: 0; z-index: 30; display: flex; gap: var(--s4); align-items: center; padding: .8rem clamp(1rem, 3vw, 2rem); background: rgba(255,249,240,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.app-top form { flex: 1; max-width: 34rem; }
.app-top .search-input { display: flex; align-items: center; gap: .5rem; padding: 0 .9rem; border: 2px solid var(--border-strong); border-radius: 999px; background: var(--surface); min-height: 46px; }
.app-top .search-input input { border: 0; outline: 0; flex: 1; font: inherit; background: transparent; min-width: 0; color: var(--ink); }
.app-top .search-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,127,120,.18); }
.app-content { padding: clamp(1rem, 3vw, 2rem); display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s8); align-items: start; max-width: 76rem; }
.app-content--single { grid-template-columns: minmax(0, 1fr); max-width: 56rem; }
.app-content--wide { grid-template-columns: minmax(0, 1fr); max-width: 76rem; }
.app-aside { position: sticky; top: 5.5rem; display: grid; gap: var(--s4); }
.app-mobile-nav { display: none; }
@media (max-width: 1180px) { .app-content { grid-template-columns: minmax(0, 1fr); } .app-aside { position: static; } }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-nav { display: none; }
  .app-main { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .app-mobile-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -16px rgba(20,45,54,.4); }
  .app-mobile-nav a { display: grid; justify-items: center; gap: .15rem; padding: .35rem 0; min-height: 52px; text-decoration: none; color: var(--muted); font: 700 .74rem var(--font-head); position: relative; }
  .app-mobile-nav a .icon { width: 1.45rem; height: 1.45rem; }
  .app-mobile-nav a[aria-current="page"] { color: var(--brand); }
  .app-mobile-nav a.create .icon { background: var(--brand); color: #fff; border-radius: 12px; width: 2.6rem; height: 1.9rem; padding: .3rem; }
  .app-mobile-nav .dot { position: absolute; top: .3rem; right: calc(50% - 1rem); width: .55rem; height: .55rem; border-radius: 50%; background: var(--coral); }
}
.app-brand { padding: 0 .5rem; }
.app-brand img { height: 28px; width: auto; }
.app-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s6); }
.app-head h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); margin: 0; }
.composer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s4); box-shadow: var(--shadow-sm); }
.composer summary { list-style: none; cursor: pointer; display: flex; gap: .8rem; align-items: center; color: var(--muted); font-size: 1.02rem; padding: .3rem; }
.composer summary::-webkit-details-marker { display: none; }
.composer summary span.fake { flex: 1; padding: .8rem 1rem; border-radius: 999px; background: var(--canvas); border: 1px solid var(--border); }
.composer[open] summary { margin-bottom: var(--s4); }
.feed { display: grid; gap: var(--s4); }
.post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s6); }
.post__head { display: flex; gap: .8rem; align-items: center; margin-bottom: var(--s3); }
.post__head a { color: var(--ink); font-weight: 700; text-decoration: none; }
.post__head small { display: block; color: var(--muted); }
.post__body { font-size: 1.04rem; white-space: normal; overflow-wrap: anywhere; }
.post__media { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .5rem; margin: var(--s3) 0; }
.post__media img { border-radius: 16px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post__actions { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--border); }
.post__actions form { margin: 0; }
.why { font-size: .88rem; color: var(--muted); background: var(--canvas); border-radius: 12px; padding: .5rem .8rem; margin-bottom: var(--s3); display: flex; gap: .5rem; align-items: start; }
.poll-option { position: relative; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 2px solid var(--border); border-radius: 14px; margin-bottom: .45rem; overflow: hidden; }
.poll-option .bar { position: absolute; inset: 0 auto 0 0; background: var(--mint); z-index: 0; }
.poll-option > *:not(.bar) { position: relative; z-index: 1; }
.poll-option .pct { margin-left: auto; font-weight: 700; }
.comments { margin-top: var(--s3); display: grid; gap: .5rem; }
.comment { background: var(--canvas); border-radius: 14px; padding: .6rem .9rem; font-size: .96rem; }
.comment b { font-family: var(--font-head); }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.mini-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.mini-list a:hover { color: var(--brand); text-decoration: underline; }
.mini-list small { display: block; color: var(--muted); font-weight: 400; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s6); }
.aside-card h2 { font-size: 1.1rem; margin-bottom: var(--s4); }
.list-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border); }
.list-table th, .list-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: .95rem; }
.list-table th { font: 700 .82rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--canvas); }
.list-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border-radius: var(--r-card); }

/* Profile */
.profile-cover { height: 11rem; border-radius: var(--r-lg); background: radial-gradient(circle at 85% 30%, var(--mango) 0 3.5rem, transparent 3.6rem), linear-gradient(120deg, var(--brand) 0%, #0b9c93 100%); position: relative; overflow: hidden; }
.profile-cover svg { position: absolute; left: 1.5rem; bottom: -.5rem; width: 14rem; color: rgba(255,255,255,.14); }
.profile-head { display: flex; gap: var(--s6); align-items: flex-start; padding-inline: var(--s6); flex-wrap: wrap; position: relative; z-index: 1; }
.profile-head > .avatar { margin-top: -3.4rem; }
.profile-head > div:not(.profile-actions) { padding-top: var(--s4); min-width: 0; }
.profile-actions { padding-top: var(--s4); }
.profile-head h1 { font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem); margin: 0 0 .2rem; }
.profile-actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.profile-actions form { margin: 0; }

/* Inbox */
.inbox { display: grid; grid-template-columns: 22rem minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; min-height: 70vh; }
.inbox__list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 78vh; }
.inbox__list a { display: grid; gap: .15rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--ink); }
.inbox__list a[aria-current="page"] { background: var(--mint); }
.inbox__list a strong { font-family: var(--font-head); display: flex; justify-content: space-between; gap: .5rem; }
.inbox__list small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { display: flex; flex-direction: column; min-height: 70vh; }
.thread__head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap; }
.thread__messages { flex: 1; padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; overflow-y: auto; max-height: 60vh; background: linear-gradient(var(--canvas), #fffdf9); }
.bubble { max-width: min(36rem, 85%); padding: .7rem 1rem; border-radius: 18px 18px 18px 6px; background: var(--surface); border: 1px solid var(--border); overflow-wrap: anywhere; }
.bubble small { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .15rem; }
.bubble--mine { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); border-radius: 18px 18px 6px 18px; }
.bubble--mine small { color: #d4efeb; }
.thread__composer { display: flex; gap: .6rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); align-items: end; }
.thread__composer textarea { min-height: 50px; height: 50px; }
@media (max-width: 860px) { .inbox { grid-template-columns: 1fr; } .inbox--thread .inbox__list { display: none; } .inbox__list { max-height: none; border-right: 0; } }

/* Settings */
.settings-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: var(--s8); align-items: start; }
.settings-nav { position: sticky; top: 5.5rem; display: grid; gap: .2rem; }
.settings-nav a { padding: .65rem .9rem; border-radius: 12px; text-decoration: none; color: var(--ink); font: 700 .97rem var(--font-head); }
.settings-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
@media (max-width: 860px) { .settings-layout { grid-template-columns: 1fr; } .settings-nav { position: static; display: flex; overflow-x: auto; } .settings-nav a { white-space: nowrap; } }

/* Auth */
.auth { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth__art { position: relative; background: var(--brand); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s12); color: #fff; isolation: isolate; }
.auth__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,45,54,0) 30%, rgba(20,45,54,.85) 100%); z-index: -1; }
.auth__art p { font: 800 clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem)/1.15 var(--font-head); max-width: 26rem; margin: 0; }
.auth__art small { margin-top: .75rem; opacity: .85; }
.auth__form { display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem); }
.auth__form > div { width: 100%; max-width: 30rem; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth__art { min-height: 13rem; padding: var(--s6); } }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; }
.admin-nav { background: var(--ink); color: #c8d6d8; padding: var(--s6) var(--s3); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-nav img { height: 26px; width: auto; margin: 0 .6rem var(--s6); }
.admin-nav a { display: flex; gap: .65rem; align-items: center; padding: .55rem .7rem; border-radius: 10px; color: #e3eceb; text-decoration: none; font: 600 .93rem var(--font-head); }
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a[aria-current="page"] { background: var(--mango); color: var(--ink); }
.admin-nav h2 { font: 800 .72rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #8fb0b2; margin: var(--s4) .7rem .4rem; }
.admin-main { padding: clamp(1rem, 3vw, 2.25rem); min-width: 0; max-width: 84rem; }
.admin-main h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: var(--s4); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: var(--s4) var(--s6); text-decoration: none; color: var(--ink); display: block; }
.stat b { display: block; font: 800 2.2rem var(--font-head); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .92rem; }
.stat--alert { border-color: var(--error); background: var(--error-bg); }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s6); align-items: start; }
@media (max-width: 1100px) { .editor-grid { grid-template-columns: 1fr; } }
.editor-body { min-height: 30rem; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .95rem; line-height: 1.6; }
.serp { border: 1px solid var(--border); border-radius: 14px; padding: 1rem; background: #fff; font-family: Arial, sans-serif; }
.serp .u { color: #202124; font-size: .82rem; }
.serp .t { color: #1a0dab; font-size: 1.15rem; margin: .2rem 0; }
.serp .d { color: #4d5156; font-size: .9rem; }
@media (max-width: 960px) { .admin-shell { grid-template-columns: 1fr; } .admin-nav { position: static; height: auto; display: flex; flex-wrap: wrap; gap: .25rem; } .admin-nav h2 { display: none; } .admin-nav img { margin: .3rem .6rem; } }
.gate { display: flex; gap: .7rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.gate .icon { width: 1.4rem; height: 1.4rem; }
.gate--ok .icon { color: var(--success); }
.gate--no .icon { color: var(--error); }

/* Error page */
.error-page { text-align: center; padding-block: clamp(3rem, 8vw, 7rem); }
.error-page__art { width: min(18rem, 70%); margin: 0 auto var(--s8); color: var(--brand); }
.error-page__code { font: 800 1rem var(--font-head); letter-spacing: .1em; color: var(--muted); }

/* Focal-point helpers (CSP-safe, no inline styles) */
.fp-10 { object-position: 10% 50%; } .fp-30 { object-position: 30% 50%; } .fp-50 { object-position: 50% 50%; } .fp-70 { object-position: 70% 50%; } .fp-90 { object-position: 90% 50%; }
.w-0 { width: 0; } .w-10 { width: 10%; } .w-20 { width: 20%; } .w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; } .w-60 { width: 60%; } .w-70 { width: 70%; } .w-80 { width: 80%; } .w-90 { width: 90%; } .w-100 { width: 100%; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--s4); } .mt-6 { margin-top: var(--s6); } .mt-8 { margin-top: var(--s8); } .mt-12 { margin-top: var(--s12); } .mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: var(--s4); } .mb-8 { margin-bottom: var(--s8); }
.hide-mobile { } @media (max-width: 640px) { .hide-mobile { display: none !important; } }
.inline-form { display: inline; margin: 0; }
details.disclosure summary { cursor: pointer; font: 700 1rem var(--font-head); color: var(--brand-600); list-style: none; display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; }
details.disclosure summary::-webkit-details-marker { display: none; }
dialog { border: 0; border-radius: var(--r-card); padding: var(--s8); max-width: min(32rem, calc(100vw - 2rem)); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog::backdrop { background: rgba(20,45,54,.55); }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .mobile-action, .app-nav, .app-mobile-nav { display: none !important; } body { background: #fff; } }
.mx-auto { margin-inline: auto; } .justify-center { justify-content: center; }
.h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.push-bottom { margin-top: auto; }
[hidden] { display: none !important; }
.m-2 { margin: .5rem; } .m-4 { margin: 1rem; } .p-4 { padding: 1rem; }
.hide-desktop { display: none; } @media (max-width: 860px) { .hide-desktop { display: inline-flex; } }

.article-cover--art img { aspect-ratio: 16 / 6; object-fit: cover; }
.byline__mark { width: 2.4rem; height: 2.4rem; border-radius: 50%; }
.auth h1 { font-size: clamp(2.1rem, 1.5rem + 2vw, 3.3rem); }
.app-shell { background: linear-gradient(to right, var(--surface) 16.5rem, transparent 16.5rem); }
@media (max-width: 960px) { .app-shell { background: none; } }
.post__actions form.row { flex: 1 1 100%; flex-wrap: nowrap; }
.post__actions form.row .input { flex: 1; min-height: 44px; }
.post__actions .btn--ghost { min-height: 38px; padding: .35rem .6rem; font-size: .88rem; }
.admin-shell { background: linear-gradient(to right, var(--ink) 15rem, transparent 15rem); }
@media (max-width: 960px) { .admin-shell { background: none; } }
.two-col, .three-col { align-items: end; }
@media (max-width: 400px) { .site-header__bar { gap: var(--s3); } .brand img { height: 26px; } .nav-mobile summary { padding: .45rem .7rem; } }
.app-top form { min-width: 0; }
.app-top .search-input input { width: 100%; min-width: 0; }
.deco-arches { max-width: 60vw; }
