/* Coastlands Community Outreach Centre: design system.
   Brand: Coastlands flame (ember -> orange -> gold) on warm charcoal, with coastal teal and sand. */
:root {
  --ink: #1f1b1a; --ink-2: #2b2522; --ink-3: #3a322e;
  --text: #2b2522; --muted: #6b6159; --line: #e8ddd0; --line-2: #d9ccbc;
  --sand: #fbf7f1; --sand-2: #f4ece1; --sand-3: #ecdfcd; --white: #fff;
  --ember: #d8401f; --flame: #ef7d22; --flame-ink: #b3470f; --gold: #f6b53b; --gold-soft: #fff1cf;
  --sea: #0f6b78; --sea-deep: #0b4c56; --sea-2: #2a9aa6; --sea-soft: #e4f3f3; --foam: #bfe9ea;
  --ok: #1d7a4c; --ok-soft: #e3f4ea; --err: #b4231b; --err-soft: #fde8e5; --info-soft: #e7f1fb; --info: #1d5e9e;
  --flame-grad: linear-gradient(90deg, var(--ember), var(--flame) 55%, var(--gold));
  --radius: 14px; --radius-sm: 9px; --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(45, 30, 20, .06), 0 8px 24px -10px rgba(45, 30, 20, .18);
  --shadow-lg: 0 2px 4px rgba(45, 30, 20, .06), 0 22px 48px -18px rgba(45, 30, 20, .32);
  --font-head: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--sand); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--flame-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ember); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.ic-sm { width: .9em; height: .9em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 1rem/1 var(--font-head); letter-spacing: .01em; padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s, color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-flame { background: linear-gradient(135deg, var(--flame), var(--ember)); color: #fff; box-shadow: 0 6px 18px -6px rgba(216, 64, 31, .55); }
.btn-flame:hover { color: #fff; box-shadow: 0 10px 24px -8px rgba(216, 64, 31, .65); }
.btn-sea { background: var(--sea); color: #fff; }
.btn-sea:hover { background: var(--sea-deep); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ember); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { padding: .65em 1.1em; font-size: .92rem; }
.btn-lg { padding: 1.1em 1.9em; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; font-family: var(--font-head); }
.link-arrow .ic { transition: transform .15s; }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ---------- top bar, header, nav ---------- */
.topbar { background: var(--ink); color: #d9cfc5; font-size: .86rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar-in { display: flex; gap: 22px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #d9cfc5; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.tb-item { display: inline-flex; align-items: center; gap: 7px; }
.tb-item .ic { color: var(--gold); }
.tb-social { margin-left: auto; display: flex; gap: 12px; }
.tb-social .si { width: 16px; height: 16px; }
.site-header { background: radial-gradient(120% 140% at 10% 0%, #352b27 0%, var(--ink-2) 45%, var(--ink) 100%); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 82px; }
.flame-rule { height: 3px; background: var(--flame-grad); }
.brand { text-decoration: none; display: inline-flex; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; letter-spacing: .16em; background: linear-gradient(90deg, #f8c14a, #ef7d22 60%, #e4572a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-sub { font-family: var(--font-head); font-weight: 500; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: #efe6dc; margin-top: 6px; }
.logo-colour .logo-sub { color: var(--sea-deep); }
.logo-colour .logo-name { background: linear-gradient(90deg, #d8401f, #ef7d22 55%, #e09a1c); -webkit-background-clip: text; background-clip: text; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav ul a { display: block; padding: 10px 12px; color: #efe6dc; text-decoration: none; font: 600 .98rem var(--font-head); border-radius: 8px; position: relative; }
.site-nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav ul a[aria-current="page"] { color: #fff; }
.site-nav ul a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--flame-grad); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-account { color: #efe6dc; text-decoration: none; font: 600 .95rem var(--font-head); display: inline-flex; align-items: center; gap: 6px; }
.nav-account:hover { color: var(--gold); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 8px; }
.nav-toggle .ic { width: 28px; height: 28px; }
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 120px 0 auto 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; max-height: calc(100vh - 120px); overflow: auto; box-shadow: var(--shadow-lg); display: none; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .07); border-radius: 0; }
  .site-nav ul a[aria-current="page"]::after { left: 8px; right: auto; width: 40px; }
  .nav-actions { padding-top: 18px; justify-content: space-between; }
  .tb-hide-sm { display: none; }
}
@media (max-width: 560px) { .logo-name { font-size: 1.2rem; } .logo-sub { font-size: .56rem; letter-spacing: .18em; } .header-in { min-height: 70px; } .site-nav { inset: 108px 0 auto 0; } .topbar-in { gap: 14px; } .tb-social { display: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-sm { padding: 44px 0; }
.section-alt { background: var(--sand-2); }
.section-white { background: #fff; }
.section-dark { background: var(--ink); color: #e9e0d6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-sea { background: linear-gradient(160deg, var(--sea-deep), var(--sea)); color: #e4f3f3; }
.section-sea h2, .section-sea h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-head p, .section-sea .section-head p { color: inherit; opacity: .85; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--flame-ink); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 26px; height: 3px; border-radius: 3px; background: var(--flame-grad); }
.section-dark .eyebrow, .section-sea .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--gold); }

/* ---------- hero (home) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(25, 20, 18, .94) 0%, rgba(25, 20, 18, .78) 45%, rgba(25, 20, 18, .25) 100%); }
.hero-in { padding: clamp(70px, 10vw, 140px) 0 clamp(90px, 12vw, 170px); max-width: 660px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold), var(--flame)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: #efe6dc; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; display: block; }
.open-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); padding: 7px 14px; border-radius: 999px; font-size: .9rem; margin-bottom: 22px; backdrop-filter: blur(6px); }
.open-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #5bd38a; box-shadow: 0 0 0 4px rgba(91, 211, 138, .2); }
.open-pill.closed .dot { background: #f08a6a; box-shadow: 0 0 0 4px rgba(240, 138, 106, .2); }

/* ---------- inner page header ---------- */
.page-head { position: relative; background: radial-gradient(90% 160% at 85% 0%, #3a2e29 0%, var(--ink-2) 50%, var(--ink) 100%); color: #e9e0d6; padding: clamp(48px, 6vw, 84px) 0 clamp(70px, 8vw, 110px); overflow: hidden; }
.page-head h1 { color: #fff; max-width: 820px; }
.page-head p { font-size: 1.15rem; max-width: 680px; opacity: .9; margin: 0; }
.page-head .crumbs { font-size: .88rem; margin-bottom: 18px; opacity: .8; }
.page-head .crumbs a { color: inherit; }
.page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; background: var(--sand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 28c120 0 180-22 300-22s180 22 300 22 180-22 300-22 180 22 300 22 180-22 240-22v50H0Z'/%3E%3C/svg%3E") center/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 28c120 0 180-22 300-22s180 22 300 22 180-22 300-22 180 22 300 22 180-22 240-22v50H0Z'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.page-head-flame { position: absolute; right: -40px; top: -30px; width: 340px; opacity: .08; pointer-events: none; }

/* ---------- grids and cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.split.flip { grid-template-columns: .9fr 1.1fr; }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); color: inherit; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #fff3e2, #ffe1c2); color: var(--ember); margin-bottom: 18px; }
.icon-tile .ic { width: 26px; height: 26px; }
.icon-tile.sea { background: linear-gradient(135deg, #e7f6f6, #cdeced); color: var(--sea); }
.service-card .when { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--sea); font-weight: 700; margin-top: 14px; }
.service-card .link-arrow { margin-top: 12px; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; background: var(--sand-3); }
.media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--flame-grad); }

/* event cards */
.event-card { display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: start; }
.date-block { border-radius: 12px; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-family: var(--font-head); }
.date-block .m { display: block; background: var(--flame-grad); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 0; }
.date-block .d { display: block; font-size: 1.9rem; font-weight: 700; color: var(--ink); padding: 4px 0 0; line-height: 1.1; }
.date-block .w { display: block; font-size: .75rem; color: var(--muted); padding-bottom: 7px; text-transform: uppercase; letter-spacing: .08em; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--muted); margin: 6px 0 10px; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }

/* news cards */
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.news-card .thumb { aspect-ratio: 16 / 9; background: var(--sand-3); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.news-card:hover .thumb img { transform: scale(1.03); }
.news-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card .body p { color: var(--muted); }
.news-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); }

/* badges and pills */
.badge { display: inline-flex; align-items: center; gap: 5px; font: 700 .72rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--gold-soft); color: #8a4b05; }
.badge-sea { background: var(--sea-soft); color: var(--sea-deep); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-err { background: var(--err-soft); color: var(--err); }
.badge-grey { background: #efe9e2; color: #5d544d; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: #fff; color: var(--ink); padding: 8px 15px; border-radius: 999px; font: 600 .9rem var(--font-head); cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on, .chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* verse */
.verse { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.verse blockquote { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem); line-height: 1.4; color: #fff; }
.verse cite { display: block; margin-top: 18px; font-style: normal; font: 700 .85rem var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.verse-mark { width: 54px; margin: 0 auto 18px; display: block; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 22px 10px; }
.stat b { display: block; font: 700 2.2rem var(--font-head); background: var(--flame-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* call-to-action band */
.cta-band { border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); background: radial-gradient(120% 160% at 0% 0%, #3c2f29 0%, var(--ink) 60%); color: #e9e0d6; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band::before { content: ''; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--flame-grad); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* info list (address, hours) */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic { color: var(--flame); width: 22px; height: 22px; margin-top: 2px; }
.hours { margin: 14px 0 0; display: grid; gap: 4px; font-size: .92rem; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.hours .today { color: var(--gold); }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label, .label { display: block; font: 700 .95rem var(--font-head); color: var(--ink); margin-bottom: 7px; }
.field .hint { font-size: .86rem; color: var(--muted); margin: -3px 0 7px; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--flame); box-shadow: 0 0 0 4px rgba(239, 125, 34, .18); }
.field-err input, .field-err textarea, .field-err select { border-color: var(--err); }
.field-err .err-msg { color: var(--err); font-size: .88rem; margin-top: 6px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--flame); flex: none; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.form-note { font-size: .88rem; color: var(--muted); }

/* ---------- alerts ---------- */
.flash-wrap { padding-top: 22px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 14px; border-left: 4px solid; font-weight: 600; }
.alert-ok { background: var(--ok-soft); border-color: var(--ok); color: #135436; }
.alert-err { background: var(--err-soft); border-color: var(--err); color: #7f1610; }
.alert-info { background: var(--info-soft); border-color: var(--info); color: #16467a; }
.notice { background: var(--gold-soft); border: 1px solid #f3d999; border-radius: var(--radius); padding: 18px 20px; }
.notice-sea { background: var(--sea-soft); border-color: #bfe0e1; }
.urgent-box { background: var(--err-soft); border: 1px solid #f4c1ba; border-radius: var(--radius); padding: 18px 20px; color: #6b120c; }
.urgent-box strong { color: var(--err); }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font: 700 .8rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--sand); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); position: relative; }   /* relative: keeps hidden labels inside the scroll box */

/* ---------- article content (news, services, events) ---------- */
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose .lead { font-size: 1.22rem; color: var(--ink-3); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose ul.tick { list-style: none; padding: 0; }
.prose ul.tick li { position: relative; padding-left: 32px; }
.prose ul.tick li::before { content: ''; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--sea-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.prose ol.steps { list-style: none; counter-reset: s; padding: 0; }
.prose ol.steps li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 16px; }
.prose ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--flame-grad); color: #fff; font: 700 .95rem/32px var(--font-head); text-align: center; }
.prose .quote, .prose blockquote { margin: 1.6em 0; padding: 22px 26px; border-left: 4px solid var(--flame); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.45; color: var(--ink); box-shadow: var(--shadow); }
.prose .quote small { display: block; margin-top: 10px; font: 700 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--flame-ink); }
.prose .band { margin: 1.6em 0; padding: 24px 26px; border-radius: var(--radius); background: linear-gradient(160deg, var(--sea-deep), var(--sea)); color: #e4f3f3; }
.prose .band .bh { font: 700 1.2rem var(--font-head); color: #fff; }
.prose .gd-note { margin: 1.4em 0; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid #f3d999; }
.prose .stats4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 1.6em 0; }
.prose .stats4 .st { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.prose .stats4 .st b { display: block; font: 700 1.6rem var(--font-head); color: var(--ember); }
.prose .stats4 .st span { font-size: .92rem; color: var(--muted); }
.prose .co, .prose .box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 14px 0; }
.prose .co-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.prose .co-h h3 { margin: 0 0 8px; }
.prose .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .prose .two { grid-template-columns: 1fr; } }
.prose .ft { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 1.4em 0; }
.prose .fc { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit; }
.prose .fc .i { color: var(--flame); }
.prose .fc .i svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.prose .srcs { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2em; padding-top: 1em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfc4b9; position: relative; margin-top: 70px; font-size: .95rem; }
.wave-top { position: absolute; left: 0; right: 0; top: -40px; height: 42px; line-height: 0; }
.wave-top svg { width: 100%; height: 100%; display: block; fill: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1.2fr; gap: 40px; padding: 56px 20px 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: #f1e7dc; }
.site-footer a:hover { color: var(--gold); }
.f-brand p { margin-top: 18px; }
.f-h { font: 700 .82rem var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-links a { text-decoration: none; }
.f-social { display: flex; gap: 10px; margin-top: 16px; }
.f-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.f-social a:hover { background: var(--flame); color: #fff; }
.f-social .si { width: 18px; height: 18px; }
.f-news { display: flex; gap: 8px; margin: 14px 0; }
.f-news input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.f-news input::placeholder { color: #a59a90; }
.f-news .btn { padding: .8em 1.1em; }
.f-small { font-size: .88rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: #a59a90; }
.footer-base a { color: #a59a90; }

/* ---------- bare layout (sign in, register) ---------- */
.bare { background: radial-gradient(110% 80% at 50% 0%, #3a2e29 0%, var(--ink) 60%); min-height: 100vh; }
.bare-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; }
.bare-brand { margin-bottom: 26px; text-decoration: none; }
.bare-card { width: 100%; max-width: 460px; background: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 40px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); position: relative; overflow: hidden; }
.bare-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--flame-grad); }
.bare-card h1 { font-size: 1.7rem; }
.bare-foot { color: #a59a90; margin-top: 22px; font-size: .92rem; }
.bare-foot a { color: #e9e0d6; }
.bare-staff .bare-card::before { background: linear-gradient(90deg, var(--sea), var(--sea-2)); }

/* ---------- misc ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.divider { height: 1px; background: var(--line); margin: 28px 0; border: 0; }
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); }
.share-row a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.share-row a:hover { background: var(--ink); color: #fff; }
.share-row .si { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .site-footer, .nav-toggle { display: none !important; } body { background: #fff; } }
