/* PCM NNUC Portal — shared styles. Colours come from the PCM shield (blue → violet → purple → pink-red). */
:root {
  --blue: #1ca6f6;
  --blue-deep: #2f74e6;
  --violet: #6a3fdc;
  --purple: #8a12cc;
  --magenta: #c2188f;
  --red: #d50056;
  --gradient: linear-gradient(135deg, #1ca6f6 0%, #6a3fdc 38%, #9307cd 64%, #d50056 100%);
  --gradient-soft: linear-gradient(135deg, rgba(28,166,246,.10), rgba(106,63,220,.10) 45%, rgba(213,0,86,.08));
  --ink: #1b1530;
  --ink-2: #3d3757;
  --muted: #645e7c;
  --line: #e7e3f1;
  --soft: #f6f4fb;
  --white: #ffffff;
  --deep: #170c30;
  --ok: #128a52;
  --warn: #b26a00;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(35, 16, 80, .10);
  --shadow-sm: 0 3px 12px rgba(35, 16, 80, .08);
  --wrap: 1160px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 16px; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section.alt { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem/1 var(--font); padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 22px rgba(106, 63, 220, .30); }
.btn-outline { background: #fff; color: var(--violet); border-color: var(--violet); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 3px; background: var(--gradient); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 54px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; margin-right: auto; }
.brand img { width: 30px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-size: .98rem; font-weight: 700; letter-spacing: -.01em; }
.brand-name span { font-size: .7rem; color: var(--muted); font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a, .nav-drop > button { font: 500 .9rem var(--font); color: var(--ink-2); padding: 10px 10px; white-space: nowrap; border-radius: 10px; background: none; border: 0; cursor: pointer; text-decoration: none !important; display: inline-flex; align-items: center; gap: 4px; }
.main-nav > a:hover, .nav-drop > button:hover, .nav-drop.open > button { background: var(--soft); color: var(--violet); }
.main-nav a[aria-current="page"], .nav-drop.current > button { color: var(--violet); font-weight: 600; }
.nav-drop { position: relative; }
.nav-drop > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: 4px; }
.drop-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: none; }
.nav-drop.open .drop-menu { display: block; }
.drop-menu a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink); font-size: .92rem; text-decoration: none !important; }
.drop-menu a small { display: block; color: var(--muted); font-size: .78rem; }
.drop-menu a:hover, .drop-menu a[aria-current="page"] { background: var(--soft); color: var(--violet); }
.header-actions { display: flex; gap: 8px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; border-radius: 2px; transition: .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 58px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 32px; overflow-y: auto; display: none; gap: 0; border-top: 1px solid var(--line); }
  .nav-open .main-nav { display: flex; }
  .main-nav > a, .nav-drop > button { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .drop-menu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; }
  .main-nav .mobile-actions { display: flex; gap: 10px; padding-top: 18px; }
  .header-actions { display: none; }
}
@media (min-width: 1181px) { .main-nav .mobile-actions { display: none; } }

/* ---------- hero (home slideshow) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--deep); }
.hero-carousel { display: grid; }
.hero-carousel .slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.hero-carousel .slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s ease; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center var(--pos-d, var(--pos-m, 40%)); transform: scale(1.08); transform-origin: center var(--pos-d, var(--pos-m, 40%)); transition: transform 8s ease-out; will-change: transform; }
.slide.is-active .hero-media img { transform: scale(1); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.42) 38%, rgba(0,0,0,0) 68%); }
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .hero-carousel .slide { background: var(--deep); }
  .hero-media { bottom: auto; height: 300px; }
  .hero-media img { object-position: center var(--pos-m, 50%); }
  .hero-media::after { display: none; }
}
.hero-inner { position: relative; z-index: 1; padding: 88px 0 132px; max-width: 640px; min-height: max(560px, calc(100vh - 58px)); min-height: max(560px, calc(100svh - 58px)); display: flex; flex-direction: column; justify-content: center; }
.hero-inner > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.slide.is-active .hero-inner > * { opacity: 1; transform: none; }
.slide.is-active .hero-inner > :nth-child(2) { transition-delay: .08s; }
.slide.is-active .hero-inner > :nth-child(3) { transition-delay: .16s; }
.slide.is-active .hero-inner > :nth-child(4) { transition-delay: .24s; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,.9); max-width: 560px; }
.hero .eyebrow { background: none; color: #9fd8ff; -webkit-text-fill-color: #9fd8ff; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 28px; pointer-events: none; }
.hero-controls > * { pointer-events: auto; }
.hero-badges { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.85); font-size: .85rem; }
.hero-badges img { height: 34px; width: auto; }
.hero-nav { display: flex; align-items: center; gap: 12px; }
.hero-dots { display: flex; gap: 8px; align-items: center; }
.hero-dot { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.42); cursor: pointer; overflow: hidden; transition: width .4s ease, background .3s; }
.hero-dot.is-active { width: 34px; background: rgba(255,255,255,.35); }
.hero-dot::after { content: ""; position: absolute; inset: 0; background: #fff; border-radius: inherit; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active::after { animation: heroDot var(--slide-ms, 6000ms) linear forwards; }
.hero-carousel.is-paused .hero-dot.is-active::after, .hero-carousel.no-auto .hero-dot.is-active::after { animation: none; transform: scaleX(1); }
@keyframes heroDot { to { transform: scaleX(1); } }
.hero-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s; }
.hero-arrow:hover { background: rgba(255,255,255,.26); }
.hero-arrow svg { width: 20px; height: 20px; }
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .hero-inner { padding: 320px 0 28px; min-height: 0; justify-content: flex-start; }
  .hero-carousel .slide { background: var(--deep); }
  .hero h1 { font-size: 1.7rem; margin-bottom: .35em; }
  .hero p.lead { font-size: .98rem; margin-bottom: 16px; }
  .hero .btn-row { flex-wrap: nowrap; gap: 10px; }
  .hero .btn-row .btn { padding: 11px 18px; font-size: .9rem; }
  .hero-arrow { display: none; }
  .hero-badges { display: none; }
  /* dots sit on the bottom edge of the photo, always on screen */
  .hero-controls { top: 300px; bottom: auto; transform: translateY(-100%); padding: 0 16px 12px; justify-content: flex-start; }
  .hero-dot { box-shadow: 0 1px 4px rgba(0,0,0,.45); background: rgba(255,255,255,.7); }
  .hero-dot.is-active { background: rgba(255,255,255,.5); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img, .slide.is-active .hero-media img { transform: none; transition: none; }
  .hero-inner > * { transition: none; }
}

.page-hero { background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--gradient); opacity: .92; }
.page-hero .wrap { position: relative; padding-top: 52px; padding-bottom: 52px; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.92); max-width: 700px; margin: 0; font-size: 1.05rem; }
.crumbs { font-size: .82rem; margin-bottom: 10px; color: rgba(255,255,255,.85); }
.crumbs a { color: #fff; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
a.card { color: inherit; text-decoration: none !important; display: block; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d7cff0; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .9rem; color: var(--violet); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--gradient-soft); color: var(--violet); margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }
.photo-card { padding: 0; overflow: hidden; }
.photo-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.photo-card .body { padding: 20px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--violet); }
.tag.red { background: #fde8f0; color: var(--red); }
.tag.blue { background: #e4f4fe; color: #0b6fb0; }
.tag.green { background: #e3f5ec; color: var(--ok); }

/* ---------- feature split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.reverse > :first-child { order: 0; } }
.split img.rounded, .rounded { border-radius: var(--radius); box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--gradient); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-size: 1.9rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------- programme spotlight ---------- */
.spotlight { background: linear-gradient(135deg, #24105a, #4a1a8c 55%, #8a0f5f); color: #fff; border-radius: 22px; padding: 36px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; box-shadow: var(--shadow); }
.spotlight h2, .spotlight h3 { color: #fff; }
.spotlight p { color: rgba(255,255,255,.88); }
.spotlight .gold { color: #f1c56b; }
.spotlight video, .spotlight img { border-radius: 16px; width: 100%; }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; padding: 24px; } }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.fact { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 14px; }
.fact small { display: block; color: rgba(255,255,255,.75); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.fact strong { font-size: 1.02rem; }

/* ---------- lists: news & events ---------- */
.news-list { display: grid; gap: 18px; }
.news-item { display: grid; grid-template-columns: 220px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.news-item img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.news-item .body { padding: 18px 20px 18px 0; }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; } .news-item .body { padding: 0 18px 18px; } }
.meta { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.date-box { border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid var(--line); }
.date-box .m { background: var(--gradient); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .1em; padding: 4px 0; }
.date-box .d { font-size: 1.7rem; font-weight: 700; padding: 4px 0 0; }
.date-box .y { font-size: .72rem; color: var(--muted); padding-bottom: 6px; }

/* ---------- empty state & notices ---------- */
.empty { text-align: center; padding: 48px 20px; border: 2px dashed var(--line); border-radius: var(--radius); background: #fff; }
.empty .icon { margin: 0 auto 14px; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #eef6ff; border: 1px solid #cfe5fb; color: #154a7a; font-size: .92rem; margin-bottom: 18px; }
.notice.warn { background: #fff6e6; border-color: #f5dcae; color: #7a4b00; }
.notice.safe { background: #f3eefe; border-color: #ddd0fb; color: #43237f; }
.notice strong { display: block; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; color: var(--ink-2); }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: 400 1rem var(--font); color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(106,63,220,.12); }
textarea { min-height: 130px; resize: vertical; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-sm); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.choice-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 620px) { .choice-cards { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 14px 14px 44px; cursor: pointer; font-weight: 400; }
.choice input { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; }
.choice strong { display: block; font-size: .95rem; color: var(--ink); }
.choice span { font-size: .82rem; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--violet); background: #f6f2ff; }

/* ---------- search / find asf ---------- */
.searchbar { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin-bottom: 18px; }
@media (max-width: 620px) { .searchbar { grid-template-columns: 1fr; } }
.result-list { display: grid; gap: 10px; }
.result { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.result h4 { margin: 0 0 2px; font-size: 1rem; }
.result p { margin: 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) { .result { flex-direction: column; align-items: flex-start; } }

/* ---------- zones ---------- */
.zone-card { border-top: 4px solid transparent; border-image: var(--gradient) 1; }
.leader { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }

/* ---------- prose pages ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gradient); color: #fff; border-radius: 22px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.92); }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,.78); margin-top: 0; }
.site-footer::before { content: ""; display: block; height: 4px; background: var(--gradient); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 44px; }
.footer-brand strong { color: #fff; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom .sda { display: flex; align-items: center; gap: 10px; }
.footer-bottom .sda img { height: 26px; width: auto; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.book-card { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
@media (max-width: 480px) { .book-card { grid-template-columns: 1fr; } .book-card img { max-width: 120px; } .btn { white-space: normal; text-align: center; } }

.split > *, .grid > * { min-width: 0; }
.split img.rounded { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .split img.rounded { aspect-ratio: 4 / 3; object-position: center 30%; } }
.split img.rounded.banner-img { aspect-ratio: auto; object-fit: contain; }

/* ---------- account ---------- */
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px 14px; margin: 0 0 16px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.result .btn-row .btn { white-space: nowrap; }

/* Phone held sideways (wide and short): text on the left, photo on the right, nothing over the faces */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-carousel .slide { background: var(--deep); }
  .hero-media { left: 46%; }
  .hero-media::after { display: none; }
  .hero-inner { max-width: 44%; min-height: calc(100vh - 58px); min-height: calc(100svh - 58px); padding: 18px 0 20px; justify-content: center; }
  .hero h1 { font-size: 1.55rem; margin-bottom: .3em; }
  .hero h1 br { display: none; }
  .hero p.lead { font-size: .9rem; margin-bottom: 12px; }
  .hero .btn-row .btn { padding: 9px 14px; font-size: .85rem; }
  .hero .eyebrow { font-size: .68rem; margin-bottom: 4px; }
  .hero-controls { left: 46%; right: 0; width: auto; max-width: none; padding: 0 12px 10px; justify-content: center; }
  .hero-dot { box-shadow: 0 1px 4px rgba(0,0,0,.45); background: rgba(255,255,255,.7); }
  .hero-badges, .hero-arrow { display: none; }
}
