:root {
  --ink: #121212;
  --ink-soft: #242424;
  --orange: #ff6b00;
  --orange-dark: #d94e00;
  --orange-pale: #fff0e5;
  --paper: #ffffff;
  --canvas: #f6f4f1;
  --muted: #68635d;
  --line: #ded9d2;
  --success: #16784b;
  --danger: #b42318;
  --warning: #a15c00;
  --shadow: 0 18px 48px rgba(21, 18, 14, .10);
  --radius: 20px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, .button { touch-action: manipulation; }
.shell { width: min(calc(100% - 36px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--orange); font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(17, 17, 17, .96);
  color: #fff;
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 51px; object-fit: contain; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-size: 1.02rem; letter-spacing: .01em; }
.brand small { margin-top: 5px; color: #d0cbc5; font-size: .76rem; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav > a:not(.button) { color: #ddd8d2; font-size: .92rem; font-weight: 700; text-decoration: none; }
.site-nav > a:hover { color: #fff; }
.site-header-public .site-nav { gap: 16px; }
.site-header-public .site-nav > a:not(.button) { font-size: .86rem; }
.site-nav .nav-portal-link { white-space: nowrap; }
.site-nav .nav-portal-committee { color: #ff9a55 !important; }
.site-nav .nav-portal-committee:hover { color: #ffc59d !important; }
.nav-toggle { display: none; border: 1px solid #4a4744; border-radius: 10px; background: transparent; color: #fff; padding: 8px 12px; font-weight: 750; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--orange);
  border-radius: 12px;
  background: var(--orange);
  color: #17110d;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(255, 107, 0, .18);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); background: #ff7c22; }
.button:disabled { opacity: .5; transform: none; cursor: not-allowed; box-shadow: none; }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(255,107,0,.38); outline-offset: 2px; }
.button-small { min-height: 40px; padding: 8px 14px; border-radius: 10px; font-size: .9rem; }
.button-secondary { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.button-secondary:hover { background: #333; }
.button-ghost { background: transparent; border-color: #5e5852; color: #fff; box-shadow: none; }
.button-danger { background: #fff; border-color: #d7aaa5; color: var(--danger); box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before { content: "#"; position: absolute; right: -40px; top: -175px; color: rgba(255,107,0,.09); font-weight: 950; font-size: clamp(26rem, 58vw, 47rem); line-height: 1; transform: rotate(-7deg); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); min-height: 620px; align-items: center; gap: 70px; padding-block: 82px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--orange); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 22px; font-size: clamp(3rem, 8vw, 6.8rem); line-height: .93; letter-spacing: -.065em; }
h1 em { color: var(--orange); font-style: normal; }
.hero-copy > p { max-width: 680px; margin-bottom: 30px; color: #d4d0cc; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.hero-note { margin-top: 24px; color: #aaa39b; font-size: .9rem; }
.crest-stage { position: relative; display: grid; place-items: center; min-height: 430px; }
.crest-stage::before { content: ""; position: absolute; inset: 6% 0; border: 1px solid rgba(255,107,0,.38); border-radius: 50%; transform: rotate(8deg); }
.crest-stage::after { content: ""; position: absolute; width: 310px; height: 310px; border-radius: 50%; background: var(--orange); filter: blur(70px); opacity: .18; }
.crest-stage img { position: relative; z-index: 2; width: min(360px, 90%); filter: drop-shadow(0 22px 26px rgba(0,0,0,.44)); }

.number-strip { background: var(--orange); }
.number-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.number-item { min-height: 125px; padding: 24px; border-left: 1px solid rgba(0,0,0,.17); display: flex; flex-direction: column; justify-content: center; }
.number-item:last-child { border-right: 1px solid rgba(0,0,0,.17); }
.number-item strong { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.05; }
.number-item span { margin-top: 5px; font-weight: 720; font-size: .84rem; }

.section { padding-block: 92px; }
.section-dark { background: var(--ink); color: #fff; }
.section-heading { max-width: 710px; margin-bottom: 38px; }
.section-heading h2 { margin: 9px 0 14px; font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -.045em; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-heading p { color: #bdb7b0; }
.membership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price-card, .info-card, .panel, .auth-card, .stat-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.price-card { position: relative; overflow: hidden; padding: 34px; }
.price-card.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-card .kicker { color: var(--orange-dark); font-size: .76rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.price-card.featured .kicker { color: var(--orange); }
.price-card h3 { margin: 12px 0 4px; font-size: 1.45rem; }
.price { margin: 20px 0; display: flex; align-items: baseline; gap: 7px; }
.price strong { font-size: 3.7rem; line-height: 1; letter-spacing: -.05em; }
.price span { color: var(--muted); }
.featured .price span { color: #bcb5ae; }
.split-list { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.split-list li { display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.featured .split-list li { border-color: #363230; }
.split-list span { color: var(--muted); }
.featured .split-list span { color: #c6c0ba; }
.fine-print { margin: 22px 0 0; color: var(--muted); font-size: .88rem; }
.featured .fine-print { color: #aaa39d; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.step { min-height: 235px; padding: 25px; border: 1px solid #363230; border-radius: 16px; background: #1b1a19; }
.step-num { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 34px; border-radius: 50%; background: var(--orange); color: var(--ink); font-weight: 900; }
.step h3 { margin-bottom: 9px; font-size: 1.08rem; }
.step p { color: #bdb7b0; font-size: .92rem; }
.committee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.committee-card { padding: 22px; border-top: 4px solid var(--orange); background: #fff; box-shadow: 0 10px 26px rgba(20,15,10,.07); }
.committee-card strong { display: block; font-size: 1.02rem; }
.committee-card span { color: var(--muted); font-size: .88rem; }

.page-hero { padding-block: 58px 42px; background: var(--ink); color: #fff; }
.page-hero .shell { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.page-hero h1 { max-width: 780px; margin: 8px 0 0; font-size: clamp(2.6rem, 6vw, 5rem); }
.page-hero p { max-width: 560px; margin: 0 0 8px; color: #c4beb8; }
.content-section { padding-block: 48px 82px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr); gap: 24px; align-items: start; }
.panel { padding: 28px; box-shadow: 0 10px 30px rgba(21,18,14,.07); }
.panel + .panel { margin-top: 18px; }
.panel h2 { margin-bottom: 18px; font-size: 1.55rem; }
.panel h3 { margin-bottom: 12px; font-size: 1.08rem; }
.panel-muted { background: #eeeae5; box-shadow: none; }
.accent-panel { border: 0; background: var(--orange); box-shadow: none; }
.stack { display: grid; gap: 16px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: var(--ink); font-weight: 760; }
label > span { font-size: .88rem; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfc9c1;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 11px 13px;
}
textarea { min-height: 118px; resize: vertical; }
input[type="file"] { padding: 10px; background: #faf9f7; }
input[type="checkbox"], input[type="radio"] { width: 20px; min-height: 20px; accent-color: var(--orange); }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.check-row > span { font-size: .93rem; line-height: 1.45; }
.form-help { color: var(--muted); font-size: .82rem; font-weight: 500; }
.fieldset { margin: 0; padding: 0; border: 0; }
.fieldset + .fieldset { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.fieldset legend { width: 100%; margin-bottom: 18px; font-size: 1.25rem; font-weight: 900; }
.dependant-row { position: relative; margin-bottom: 14px; padding: 16px 52px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: #faf9f7; }
.remove-row { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; color: var(--danger); font-size: .78rem; font-weight: 800; cursor: pointer; }
.error-list { margin: 0 0 22px; padding: 16px 18px 16px 38px; border-left: 4px solid var(--danger); background: #fff0ef; color: #7d2119; }

.auth-shell { min-height: calc(100vh - 78px); padding-block: 60px 90px; display: grid; place-items: center; }
.auth-card { width: min(100%, 520px); padding: clamp(25px, 5vw, 44px); }
.auth-card h1 { margin: 7px 0 10px; color: var(--ink); font-size: clamp(2.25rem, 7vw, 3.6rem); }
.auth-card > p { color: var(--muted); }
.auth-card form { margin-top: 25px; }
.auth-foot { margin: 20px 0 0; text-align: center; color: var(--muted); }

.flash { margin-top: 18px; padding: 13px 16px; border-radius: 11px; font-weight: 720; }
.flash-success { background: #e5f5ed; color: #125a3b; border: 1px solid #a5dac0; }
.flash-error { background: #ffedeb; color: #89241c; border: 1px solid #efb2ac; }
.flash-info { background: #fff2df; color: #7a4600; border: 1px solid #f2c47e; }

.dashboard-head { padding-block: 42px 28px; }
.dashboard-head h1 { margin: 5px 0 4px; color: var(--ink); font-size: clamp(2.4rem, 6vw, 4.3rem); }
.dashboard-head p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { padding: 20px; box-shadow: none; }
.stat-card span { display: block; color: var(--muted); font-size: .78rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 8px; font-size: 1.55rem; line-height: 1.2; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; background: #eeeae5; color: #4d4944; font-size: .76rem; font-weight: 850; }
.status-approved, .status-verified, .status-paid { background: #dbf2e6; color: #12643f; }
.status-submitted, .status-under_review, .status-pending, .status-referred_to_provider { background: #fff0d8; color: #8a5000; }
.status-declined, .status-rejected { background: #fde5e2; color: #98291f; }
.status-lapsed { background: #eee5f6; color: #652b7c; }
.notice { padding: 16px; border-left: 4px solid var(--orange); background: var(--orange-pale); }
.notice strong { display: block; }
.notification { padding: 16px 0; border-bottom: 1px solid var(--line); }
.notification:last-child { border: 0; padding-bottom: 0; }
.notification h3 { margin: 0 0 3px; font-size: 1rem; }
.notification p { margin: 0; color: var(--muted); }
.notification time { color: #8a847d; font-size: .78rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f0ede9; color: #49443f; font-size: .73rem; letter-spacing: .05em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.table-actions form { display: inline-flex; gap: 6px; align-items: center; }
.table-actions input, .table-actions select { min-height: 36px; padding: 6px 8px; font-size: .82rem; }
.mini-button { min-height: 35px; padding: 6px 10px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: #fff; font-size: .76rem; font-weight: 800; cursor: pointer; }
.mini-button.orange { border-color: var(--orange); background: var(--orange); color: var(--ink); }
.mini-button.danger { border-color: #d7aaa5; background: #fff; color: var(--danger); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.admin-nav a { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-weight: 800; text-decoration: none; }
.admin-section { scroll-margin-top: 105px; }
.empty { padding: 28px; color: var(--muted); text-align: center; }
.document-link { font-weight: 750; color: var(--orange-dark); }
.definition-list { display: grid; grid-template-columns: 160px 1fr; margin: 0; }
.definition-list dt, .definition-list dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.definition-list dt { color: var(--muted); font-weight: 700; }
.definition-list dd { font-weight: 650; }
details { margin-top: 10px; }
summary { color: var(--orange-dark); font-size: .82rem; font-weight: 850; cursor: pointer; }
.record-detail { min-width: 260px; padding: 12px; border-radius: 10px; background: #f5f2ee; }
.record-detail p { margin: 3px 0 10px; }
.record-detail ul { margin: 5px 0 0; padding-left: 18px; }

.legal { max-width: 850px; }
.legal h2 { margin-top: 34px; font-size: 1.55rem; }
.legal li + li { margin-top: 8px; }
.legal p, .legal li { color: #504b46; }
.setup-banner { margin-bottom: 22px; padding: 16px; border-radius: 12px; background: #fff0df; color: #754400; }
.code-value { overflow-wrap: anywhere; padding: 3px 7px; border-radius: 6px; background: #eae6e1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; }

.site-footer { padding-block: 46px 22px; background: #0d0d0d; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 32px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-grid strong { margin-bottom: 5px; }
.footer-grid a, .footer-grid span { color: #aaa49e; font-size: .87rem; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-brand { flex-direction: row !important; align-items: center !important; gap: 12px !important; }
.footer-brand div { display: grid; }
.footer-brand img { width: 48px; height: 51px; object-fit: contain; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 18px; border-top: 1px solid #2a2826; color: #827c76; font-size: .78rem; }
.footer-powered { color: #c7a35b; text-decoration: none; letter-spacing: .02em; }
.footer-powered:hover { color: #fff; }

@media (min-width: 1121px) and (max-width: 1200px) {
  .site-header-public .nav-toggle { display: inline-flex; }
  .site-header-public .site-nav { display: none; position: absolute; inset: 78px 0 auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 18px 20px; border-top: 1px solid #333; background: #111; }
  .site-header-public .site-nav.is-open { display: flex; }
  .site-header-public .site-nav a { padding: 10px; }
  .site-header-public .site-nav .button { width: 100%; }
}

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; inset: 78px 0 auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 18px 20px; border-top: 1px solid #333; background: #111; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px; }
  .site-nav .button { width: 100%; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; min-height: auto; }
  .crest-stage { min-height: 320px; }
  .crest-stage img { width: min(300px, 80%); }
  .steps, .committee-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 26px), var(--shell)); }
  .header-inner { min-height: 70px; }
  .brand img { width: 42px; height: 45px; }
  .site-nav { inset-block-start: 70px; }
  .hero-grid { padding-block: 58px; }
  .crest-stage { min-height: 270px; }
  .number-grid { grid-template-columns: repeat(2, 1fr); }
  .number-item { min-height: 105px; border-bottom: 1px solid rgba(0,0,0,.17); }
  .section { padding-block: 64px; }
  .membership-grid, .steps, .committee-grid, .stats, .footer-grid, .form-grid, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
  .page-hero .shell { display: block; }
  .page-hero p { margin-top: 18px; }
  .price-card, .panel { padding: 22px; }
  .dependant-row { padding-right: 16px; padding-top: 45px; }
  .definition-list { grid-template-columns: 1fr; }
  .definition-list dt { padding-bottom: 0; border-bottom: 0; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Planned upgrade notice: informational only; the system remains online until the maintenance window. */
.planned-maintenance-banner { background: #fff0d8; border-bottom: 1px solid #f0c982; color: #5f3900; }
.planned-maintenance-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: 11px; }
.planned-maintenance-inner > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.planned-maintenance-inner strong { color: #111; font-size: .9rem; }
.planned-maintenance-inner span, .planned-maintenance-inner small { font-size: .82rem; line-height: 1.4; }
.planned-maintenance-inner small { font-weight: 750; white-space: nowrap; }
@media (max-width: 760px) { .planned-maintenance-inner { align-items: flex-start; flex-direction: column; gap: 5px; } .planned-maintenance-inner small { white-space: normal; } }

/* Hide the informational maintenance notice on phone-sized screens. */
@media (max-width: 760px) {
    .planned-maintenance-banner { display: none !important; }
}
