/* Aya website — plum + brand pink */

/* ---------- fonts (self-hosted) ----------
   Poppins and Cormorant must NOT cover U+200C/U+200D (zero-width joiners):
   Sinhala conjuncts break if those characters come from a non-Sinhala font. */
@font-face { font-family: "Noto Sans Sinhala"; font-style: normal; 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-style: normal; 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 Sinhala"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/noto-sans-sinhala-sinhala-700-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: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-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-200B, U+200E-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500-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-200B, U+200E-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600-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-200B, U+200E-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700-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-200B, U+200E-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-garamond-latin-600-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-200B, U+200E-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/cormorant-garamond-latin-700-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-200B, U+200E-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --plum: #3d2147;
  --plum-ink: #2b1a33;
  --pink: #ea2172;        /* brand pink: butterflies, accents */
  --pink-btn: #d01b63;    /* buttons: white text stays readable */
  --pink-ink: #b0124f;    /* pink text on light backgrounds */
  --lavender: #efe7f4;
  --lavender-2: #d9c6e6;
  --lilac: #c9b0dd;
  --bg: #f9f6fb;
  --surface: #ffffff;
  --muted: #625470;
  --line: #e6dcec;
  --foot-head: #e4cdf0;
  --alert: #9a103f;
  --alert-bg: #fdecf2;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(43, 26, 51, 0.08);
  --font-body: "Poppins", "Noto Sans Sinhala", "Iskoola Pota", "Nirmala UI", system-ui, sans-serif;
  --font-head: "Cormorant Garamond", Georgia, "Noto Sans Sinhala", "Iskoola Pota", "Nirmala UI", serif;
  --font-si: "Noto Sans Sinhala", "Iskoola Pota", "Nirmala UI", "Poppins", sans-serif;
  --text-scale: 1;
}
html { font-size: calc(100% * var(--text-scale)); -webkit-text-size-adjust: 100%; }
html[data-text-size="small"] { --text-scale: 0.9; }
html[data-text-size="large"] { --text-scale: 1.15; }
html[data-contrast="high"] { --muted: #2b1a33; --line: #8f7a9c; --pink-ink: #8a0c3c; --lavender: #ffffff; --bg: #ffffff; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--plum-ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; }
/* Sinhala: always shape with Noto Sans Sinhala first */
:lang(si) { font-family: var(--font-si); }
html[lang="si"] body { font-family: var(--font-si); line-height: 1.85; }
[lang="en"] { font-family: var(--font-body); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { opacity: 0.88; }
:focus-visible { outline: 3px solid var(--pink-btn); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; color: var(--plum-ink); }
html[lang="si"] h1, html[lang="si"] h2, html[lang="si"] h3, h1:lang(si), h2:lang(si), h3:lang(si) { font-family: var(--font-si); font-weight: 700; line-height: 1.4; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
html[lang="si"] h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
html[lang="si"] h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.h2-sm { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 1rem; }
html[lang="si"] .h2-sm { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 10; background: var(--plum); color: #fff; padding: 10px 16px; }
.skip:focus { left: 12px; top: 12px; }
main:focus { outline: none; }
.icon { width: 1.35em; height: 1.35em; flex: 0 0 auto; }
.icon-lg { width: 30px; height: 30px; }
.icon-xl { width: 64px; height: 64px; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.2; text-align: center; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn-primary { background: var(--pink-btn); color: #fff; }
.btn-outline { border-color: var(--pink-ink); color: var(--pink-ink); background: transparent; }
.btn-dark { background: var(--plum); color: #fff; }
.btn-white { background: #fff; color: var(--plum); font-weight: 700; }
.btn-ghost-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-alert { background: var(--alert); color: #fff; font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
.btn-row-sm { margin-top: auto; padding-top: 6px; gap: 8px; align-items: center; }
.text-link { color: var(--pink-ink); font-weight: 600; text-underline-offset: 4px; }
.link-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 1.25rem; }
.eyebrow { margin: 0 0 0.75rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-ink); }
html[lang="si"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.eyebrow-light { color: var(--foot-head); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin-top: 1.25rem; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip { background: var(--plum); color: #fff; font-size: 0.875rem; line-height: 1.4; }
.strip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 8px; padding-bottom: 8px; }
.strip-msg { margin: 0; display: flex; align-items: center; gap: 10px; }
.strip-msg .icon { width: 18px; height: 18px; }
.strip a { color: #fff; font-weight: 700; }
.a11y { display: flex; align-items: center; gap: 6px; }
.a11y[hidden] { display: none; }
.a11y span { color: rgba(255,255,255,0.85); margin-right: 2px; }
.a11y button { min-width: 36px; height: 32px; padding: 0 8px; border: 1px solid rgba(255,255,255,0.45); background: transparent; color: #fff; border-radius: 8px; font: inherit; font-size: 0.8rem; cursor: pointer; }
.a11y button[aria-pressed="true"] { background: #fff; color: var(--plum); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 64px; height: 64px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.9rem; }
html[lang="si"] .brand-name { font-family: var(--font-si); font-weight: 700; font-size: 1.5rem; }
.brand-tag { font-size: 0.78rem; color: var(--muted); }
.bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.main-nav { flex: 1 1 100%; min-width: 0; border-top: 1px solid var(--line); overflow-x: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 30px; white-space: nowrap; }
.main-nav a { display: inline-flex; align-items: center; min-height: 50px; text-decoration: none; font-weight: 500; font-size: 0.97rem; border-bottom: 2.5px solid transparent; }
.main-nav a[aria-current="page"] { color: var(--pink-ink); border-bottom-color: var(--pink-btn); }

/* ---------- hero ---------- */
.hero { background: var(--lavender); padding: 56px 0 128px; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.hero-text { flex: 1 1 460px; min-width: 0; }
.hero-art { flex: 1 1 340px; min-width: 0; position: relative; max-width: 440px; margin: 0 auto; }
.arch { width: 100%; height: auto; display: block; }
.arch-bg { fill: var(--surface); }
.arch-sun { fill: var(--lavender); }
.arch-wave2 { fill: var(--lavender-2); }
.arch-wave { fill: var(--pink-btn); }
.arch-stem { fill: none; stroke: var(--pink-ink); stroke-width: 2; stroke-linecap: round; }
.arch-leaf { fill: var(--lavender-2); }
.bf .w1, .butterfly .w1 { fill: var(--pink); }
.bf .w2, .butterfly .w2 { fill: var(--lilac); }
.bf-alt .w1 { fill: var(--lilac); }
.bf-alt .w2 { fill: var(--pink); }
.bf .body, .butterfly .body { fill: var(--plum-ink); }
.hero-card { position: absolute; left: 16px; right: 16px; bottom: 28px; max-width: 300px; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border-radius: 16px; box-shadow: 0 12px 30px rgba(43,26,51,0.14); text-decoration: none; }
.hero-card-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink-ink); }
.hero-card-title { font-weight: 600; line-height: 1.35; }

/* ---------- doors ---------- */
.doors { margin-top: -84px; }
.doors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.door { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; }
.door h2 { font-size: 1.6rem; }
html[lang="si"] .door h2 { font-size: 1.25rem; }
.door p { margin: 0; color: var(--muted); font-size: 1rem; }
.more { margin-top: auto; font-weight: 600; color: var(--pink-ink); }
.icon-circle { width: 54px; height: 54px; border-radius: 50%; background: var(--lavender); color: var(--pink-ink); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 54px; }

/* ---------- sections ---------- */
.section { padding: 72px 0 0; }
.section-tight { padding-top: 40px; }
.section-last { padding-bottom: 96px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 32px; }
.section-head > div:first-child { flex: 1 1 480px; min-width: 0; max-width: 680px; }
.page-hero { background: var(--lavender); padding: 40px 0 48px; }
.page-hero-deep { background: var(--plum); color: #fff; }
.page-hero-deep h1, .page-hero-deep .lead { color: #fff; }
.crumbs { font-size: 0.875rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs-light, .crumbs-light a { color: rgba(255,255,255,0.85); }
.soft-panel { background: var(--lavender); border-radius: 28px; padding: clamp(24px, 4vw, 48px); }
.soft-white { background: var(--surface); border: 1px solid var(--line); }
.soft-row { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between; }
.soft-row p { margin: 0; flex: 1 1 360px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.two-col { display: flex; flex-wrap: wrap; gap: 24px; }
.two-col > * { flex: 1 1 340px; min-width: 0; }
.two-col-wide > :first-child { flex: 2 1 480px; }
.deep-band { background: var(--plum); color: #fff; border-radius: 24px; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.deep-band > div { flex: 1 1 440px; }
.deep-band h2 { color: #fff; }
.deep-band p { color: rgba(255,255,255,0.88); margin: 0; }

/* ---------- search ---------- */
.search { flex: 1 1 320px; min-width: 0; max-width: 460px; display: flex; flex-direction: column; gap: 6px; }
.search label { font-size: 0.9rem; font-weight: 600; }
.search-row { display: flex; gap: 8px; }
.search input { flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--plum-ink); font: inherit; }
.search .btn { min-height: 50px; padding: 0 22px; }

/* ---------- stage cards / features ---------- */
.stage-grid, .feature-grid, .lib-grid, .place-grid, .place-mini-grid, .danger-list, .pill-list, .side-links, .foot-list, .pub-list, .conf-list, .sign-list { list-style: none; margin: 0; padding: 0; }
.stage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stage-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.stage-card h3 { font-size: 1.3rem; }
html[lang="si"] .stage-card h3 { font-size: 1.05rem; }
.stage-card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.stage-count { font-size: 0.82rem; font-weight: 600; color: var(--pink-ink); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.feature-art { height: 150px; background: var(--lavender); color: var(--pink-ink); display: flex; align-items: center; justify-content: center; }
.feature-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; flex: 1; }
.feature-stage { font-size: 0.82rem; font-weight: 600; color: var(--pink-ink); }
.feature-title { font-size: 1.2rem; font-weight: 600; line-height: 1.35; }

/* ---------- danger ---------- */
.danger-band { background: var(--plum); color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 36px 56px; }
.danger-text { flex: 1 1 340px; min-width: 0; }
.danger-text h2 { color: #fff; }
.danger-text p { color: rgba(255,255,255,0.88); margin-top: 14px; }
.danger-list { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; align-content: start; }
.danger-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(255,255,255,0.08); }
.dot { flex: 0 0 10px; height: 10px; margin-top: 0.55em; border-radius: 50%; background: var(--foot-head); }
.danger-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.danger-group { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.danger-group h2 { font-size: 1.6rem; margin-bottom: 1rem; }
html[lang="si"] .danger-group h2 { font-size: 1.25rem; }
.sign-list { display: flex; flex-direction: column; gap: 12px; }
.sign-list li { display: flex; gap: 12px; align-items: flex-start; }
.sign-list .icon { color: var(--alert); margin-top: 0.2em; }

/* ---------- places ---------- */
.place-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }
.place-mini { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 20px; background: var(--surface); }
.place-mini .icon { color: var(--pink-ink); margin-top: 2px; }
.place-mini > span { display: flex; flex-direction: column; }
.place-mini-name { font-weight: 600; line-height: 1.35; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.place { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.place-head { display: flex; gap: 14px; align-items: flex-start; }
.place-head h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.place-head p { margin: 2px 0 0; }
.place-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.95rem; }
.place-facts dt { color: var(--muted); }
.place-facts dd { margin: 0; }
.place-facts a { font-weight: 600; color: var(--pink-ink); }
.place-links { margin: auto 0 0; }
.appt-note { margin-top: 18px; }
.appt-note a { color: var(--pink-ink); }
.soft-row > div { flex: 1 1 420px; min-width: 0; }
.soft-row .h2-sm { margin-bottom: 0.5rem; }
.emergency-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--alert); color: var(--alert); font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--pink-ink); }
.contact-card > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--plum-ink); }
.contact-deep { background: var(--plum); border-color: var(--plum); color: #fff; }
.contact-deep > span { color: #fff; }
.contact-label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-value { font-size: 1.25rem; font-weight: 600; word-break: break-word; }
.contact-note { font-size: 0.95rem; opacity: 0.86; }
.soft-note { margin-top: 18px; padding: 16px 20px; border-radius: 16px; background: var(--lavender); }
.official { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start; }
.official > .icon { color: var(--pink-ink); }
.official > div { flex: 1 1 460px; }
.official ul { margin: 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }

/* ---------- who / profile ---------- */
.who { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 52px); display: flex; flex-wrap: wrap; align-items: center; gap: 32px 52px; }
.who > div { flex: 1 1 420px; min-width: 0; }
.who-logo, .profile-logo { border-radius: 50%; flex: 0 0 auto; }
.who-logo { width: 168px; height: 168px; }
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 52px; margin-top: 8px; }
.profile > div { flex: 1 1 460px; min-width: 0; }
.profile-logo { width: 180px; height: 180px; }
.nameblock p { margin: 0; }
.nb-name { font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.nb-si { font-family: var(--font-si); font-weight: 600; font-size: 1.2rem; margin-top: 8px !important; }
.nb-rest { color: var(--muted); margin-top: 8px !important; line-height: 1.6; }
.who-text { margin-top: 16px; }
.quote { margin: 0 0 1rem; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.4; }
html[lang="si"] .quote { font-family: var(--font-si); font-size: 1.15rem; }
.quote p { margin: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { padding: 6px 14px; border-radius: 999px; background: var(--lavender); font-weight: 500; font-size: 0.95rem; }
.research-head { margin-bottom: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.research-head .btn-row { margin-top: 0; }
.list-head { font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-ink); margin: 32px 0 16px; }
html[lang="si"] .list-head { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.pub-list { display: flex; flex-direction: column; gap: 12px; }
.pub-list li { padding: 20px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 24px; }
.pub-date { flex: 0 0 auto; min-width: 76px; font-size: 0.88rem; font-weight: 700; color: var(--pink-ink); }
.pub-body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pub-title { font-weight: 600; line-height: 1.4; }
.pub-body .muted { font-size: 0.93rem; }
.conf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.conf-list li { padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; font-size: 0.97rem; line-height: 1.45; }
.conf-list .pub-date { min-width: 44px; }

/* ---------- library ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.chip[aria-current="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.start-here { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px 28px; border-radius: var(--radius); background: var(--plum); color: #fff; text-decoration: none; }
.start-here-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 420px; min-width: 0; }
.start-here-text .eyebrow { margin: 0; }
.start-here-title { font-family: var(--font-head); font-weight: 600; font-size: 1.8rem; line-height: 1.2; }
html[lang="si"] .start-here-title { font-family: var(--font-si); font-weight: 700; font-size: 1.35rem; }
.lib-stage-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.lib-card a { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 104px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.lib-card-title { font-weight: 600; line-height: 1.4; }
.lib-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-card-badges:empty { display: none; }
.lib-card-more { margin-top: auto; font-size: 0.88rem; font-weight: 600; color: var(--pink-ink); }
.badge { padding: 2px 10px; border-radius: 999px; background: var(--plum); color: #fff; font-size: 0.78rem; font-weight: 700; }
.badge-soft { background: var(--lavender); color: var(--pink-ink); }
.no-results { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-top: 24px; }
[hidden] { display: none !important; }
.h2-sm + .feature-grid { margin-top: 0; }

/* ---------- article ---------- */
.article-head { max-width: 860px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface); color: var(--pink-ink); font-size: 0.82rem; font-weight: 700; margin-bottom: 14px; }
.title-alt { margin: 10px 0 0; font-size: 1.15rem; font-weight: 600; color: var(--muted); }
.byline { margin: 18px 0 0; font-size: 0.93rem; color: var(--muted); }
.byline a { color: var(--plum-ink); font-weight: 600; }
.article-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; padding-top: 44px; padding-bottom: 96px; }
.article { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.article-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lang-note { padding: 16px 20px; border-radius: 16px; background: var(--lavender); }
.prose { font-size: 1.1rem; line-height: 1.9; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
.urgent { margin-top: 40px; padding: 28px; border-radius: var(--radius); background: var(--alert-bg); border: 1.5px solid var(--alert); }
.urgent h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 1.3rem; font-weight: 700; color: var(--alert); }
html[lang="si"] .urgent h2 { font-family: var(--font-si); font-size: 1.15rem; }
.urgent p { margin: 12px 0 0; }
.urgent .btn { margin-top: 18px; }
.article-disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.side-box { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.side-soft { background: var(--lavender); border-color: var(--lavender); }
.side-head { font-family: var(--font-body); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
html[lang="si"] .side-head { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share-status { margin: 10px 0 0; min-height: 1.2em; }
.side-links { display: flex; flex-direction: column; gap: 12px; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--plum); color: #fff; font-size: 0.95rem; line-height: 1.6; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 28px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.foot-grid > div { flex: 1 1 180px; min-width: 0; }
.foot-grid > .foot-brand { flex: 1.4 1 280px; }
.foot-logo { display: flex; align-items: center; gap: 14px; }
.foot-logo img { width: 76px; height: 76px; border-radius: 50%; }
.foot-name { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 2.1rem; }
html[lang="si"] .foot-name { font-family: var(--font-si); font-weight: 700; font-size: 1.6rem; }
.foot-by { margin: 10px 0 0; color: var(--foot-head); font-size: 0.88rem; }
.foot-about { margin: 16px 0 0; color: rgba(255,255,255,0.85); max-width: 340px; }
.foot-head { font-family: var(--font-body); margin: 0 0 14px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--foot-head); }
html[lang="si"] .foot-head { font-family: var(--font-si); letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.foot-list { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.foot-grid > div:not(.foot-brand) .foot-list { margin-top: 0; }
.foot-list a { color: rgba(255,255,255,0.9); text-decoration: none; }
.foot-list a:hover { text-decoration: underline; }
.foot-emergency li { display: flex; gap: 12px; align-items: baseline; }
.foot-emergency a { flex: 0 0 56px; color: #fff; font-size: 1.35rem; font-weight: 700; }
.foot-emergency span { color: rgba(255,255,255,0.85); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; font-size: 0.85rem; color: rgba(255,255,255,0.78); }
.foot-bottom p { margin: 0; max-width: 600px; }

@media (max-width: 640px) {
  .hero { padding-top: 36px; padding-bottom: 110px; }
  .hero-art { max-width: 300px; }
  .btn-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .strip, .main-nav, .bar-actions, .article-side, .site-footer, .urgent .btn { display: none !important; }
  body { background: #fff; }
}
