:root {
  --navy: #061a33;
  --blue: #0b4f8a;
  --sky: #dbeaf5;
  --red: #b94738;
  --cream: #f7f5f0;
  --ink: #132033;
  --muted: #5b6675;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(6, 26, 51, .13);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(6,26,51,.1);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 232px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 750; font-size: .93rem; }
.nav a { position: relative; padding: 8px 0; }
.nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--red); transition: right .2s ease; }
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav-toggle { display: none; border: 0; background: none; color: var(--navy); font-size: 1.6rem; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--red); color: var(--white); font-weight: 800; box-shadow: 0 10px 24px rgba(185,71,56,.22); transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(185,71,56,.28); }
.button.secondary { background: var(--white); color: var(--navy); box-shadow: none; }
.button.outline { border: 1px solid rgba(6,26,51,.22); background: transparent; color: var(--navy); box-shadow: none; }
.button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.hero { min-height: 700px; display: grid; place-items: center; color: var(--white); background: linear-gradient(90deg, rgba(6,26,51,.9), rgba(6,26,51,.45)), url("assets/hero.webp?v=2") center/cover; }
.hero-content { padding: 110px 0; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(3.3rem, 8vw, 7.5rem); line-height: .92; letter-spacing: -.055em; }
.hero p { margin: 28px 0 34px; font-size: clamp(1.15rem, 2vw, 1.55rem); }
.hero-art { min-height: 0; display: block; background: var(--navy); }
.hero-art > img { width: 100%; height: auto; }
.hero-art-action { display: flex; justify-content: center; padding: 22px 20px 28px; background: var(--navy); }

.section { padding: 100px 0; }
.section.alt { background: var(--cream); }
.section.dark {
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.split.reverse { grid-template-columns: .95fr 1.05fr; }
.split-image { overflow: hidden; min-height: 520px; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-image img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.section h2, .page-intro h1 { margin: 0 0 24px; color: var(--navy); font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.045em; }
.dark h2, .dark .eyebrow { text-shadow: none; text-rendering: geometricPrecision; }
.dark h2 { color: var(--white); }
.stacked-headline { display: grid; gap: 2px; margin-bottom: 28px; }
.stacked-headline span { font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 900; line-height: .94; letter-spacing: -.045em; }
.stacked-headline span:nth-child(2) { color: var(--red); }
.pillar-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pillar-list span { padding: 9px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .82rem; font-weight: 750; }

.page-intro { padding: 92px 0 72px; background: linear-gradient(135deg, var(--cream), #eaf1f7); }
.page-intro .lead { max-width: 820px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { overflow: hidden; background: var(--white); border: 1px solid rgba(6,26,51,.09); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(6,26,51,.07); }
.card-image { width: 100%; height: 310px; object-fit: cover; }
.card-body { padding: 28px; }
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.3rem; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); }

.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.audience-card { position: relative; overflow: hidden; min-height: 390px; border-radius: 18px; background: var(--navy); color: var(--white); }
.audience-card img { width: 100%; height: 390px; object-fit: cover; opacity: .72; transition: transform .35s ease, opacity .35s ease; }
.audience-card:hover img { transform: scale(1.04); opacity: .56; }
.audience-copy { position: absolute; inset: auto 0 0; padding: 80px 22px 22px; background: linear-gradient(transparent, rgba(6,26,51,.96)); }
.audience-copy h3 { margin: 0 0 5px; font-size: 1.2rem; }
.audience-copy p { margin: 0; color: rgba(255,255,255,.82); font-size: .9rem; }
.audience-card--graphic { min-height: 0; aspect-ratio: 4 / 3; background: transparent; }
.audience-card--graphic img { height: 100%; object-fit: cover; opacity: 1; }
.audience-card--graphic:hover img { transform: none; opacity: 1; }
.audience-card--graphic .audience-copy { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.audience-card--officials img { position: absolute; top: -103.6%; left: -102.6%; width: 305.4%; max-width: none; height: auto; }
.audience-card--wide { grid-column: 1 / -1; aspect-ratio: 1536 / 261; }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-logo-card { overflow: hidden; padding: 14px; border: 1px solid rgba(6,26,51,.1); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 34px rgba(6,26,51,.09); transition: transform .2s ease, box-shadow .2s ease; }
.cert-logo-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(6,26,51,.14); }
.cert-logo-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; }
.cert-logo-card p { min-height: 3.2em; margin: 14px 8px 6px; color: var(--muted); font-weight: 700; line-height: 1.5; }
.cert-card { min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; overflow: hidden; position: relative; border-radius: var(--radius); color: var(--white); background: var(--navy); }
.cert-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(6,26,51,.15), rgba(6,26,51,.94)), url("assets/certifications.webp?v=2") center/cover; opacity: .82; }
.cert-card > * { position: relative; }
.cert-code { color: #ffbdc0; font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; }
.cert-card h3 { margin: 4px 0 0; font-size: 1.18rem; }

.pathway-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.pathway-step { padding: 28px 22px; border-radius: 18px; background: var(--white); border-top: 5px solid var(--red); box-shadow: 0 10px 30px rgba(6,26,51,.08); }
.pathway-step .number { color: var(--red); font-weight: 900; }
.pathway-step h3 { color: var(--navy); margin: 8px 0 10px; }
.feature-image { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 28px; margin: 28px 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 24px; }
.feature-list li::before { content: "•"; position: absolute; left: 4px; color: var(--red); font-weight: 900; }
.coming-soon { display: inline-block; margin-left: 6px; padding: 2px 8px; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; color: var(--white); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.press-release-card { display: grid; grid-template-columns: 180px 1fr; gap: 38px; align-items: center; padding: 42px; margin-bottom: 54px; border-radius: var(--radius); background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.press-release-mark { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--red); font-size: 3.4rem; font-weight: 900; letter-spacing: -.06em; }
.press-release-card .eyebrow { color: #ffbdc0; }
.press-release-card h2 { margin: 0 0 14px; color: var(--white); font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.08; letter-spacing: -.035em; }
.press-release-card p:not(.eyebrow) { margin: 0 0 24px; color: rgba(255,255,255,.78); }
.press-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.course-card { overflow: hidden; border-radius: var(--radius); background: var(--white); border: 1px solid rgba(6,26,51,.1); box-shadow: var(--shadow); }
.course-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.course-card .card-body { display: flex; min-height: 215px; flex-direction: column; }
.tag { display: inline-flex; align-self: flex-start; margin-bottom: 16px; padding: 5px 10px; border-radius: 999px; background: var(--sky); color: var(--blue); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.course-card h2 { margin: 0; font-size: 1.4rem; line-height: 1.25; }
.course-card .button { align-self: flex-start; margin-top: auto; }

.cta { padding: 76px 0; background: var(--red); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta h2 { margin: 0; max-width: 760px; color: var(--white); font-size: clamp(2.1rem, 4vw, 3.7rem); }

.site-footer { padding: 58px 0 26px; background: #031225; color: rgba(255,255,255,.78); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.footer-grid img { width: 220px; }
.footer-grid h3 { margin-top: 0; color: var(--white); }
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: var(--white); }
.copyright { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .84rem; }

.legal-page { padding: 82px 0 100px; background: var(--cream); }
.legal-shell { max-width: 920px; }
.legal-header { margin-bottom: 38px; }
.legal-header h1 { margin: 0 0 16px; color: var(--navy); font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1; letter-spacing: -.045em; }
.legal-updated { margin: 0; color: var(--muted); font-weight: 700; }
.legal-notice { margin: 28px 0 34px; padding: 20px 22px; border-left: 5px solid var(--red); border-radius: 0 14px 14px 0; background: var(--white); box-shadow: 0 8px 24px rgba(6,26,51,.06); }
.legal-content { padding: clamp(28px, 5vw, 56px); border: 1px solid rgba(6,26,51,.09); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.legal-content section + section { margin-top: 36px; padding-top: 30px; border-top: 1px solid rgba(6,26,51,.1); }
.legal-content h2 { margin: 0 0 12px; color: var(--navy); font-size: 1.45rem; line-height: 1.25; }
.legal-content h3 { margin: 22px 0 8px; color: var(--navy); font-size: 1.05rem; }
.legal-content p { margin: 0 0 14px; }
.legal-content ul { margin: 10px 0 14px; padding-left: 24px; }
.legal-content li + li { margin-top: 8px; }
.legal-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.purpose-page { overflow: hidden; }
.purpose-hero { padding: 104px 0 92px; color: var(--white); background: linear-gradient(120deg, rgba(6,26,51,.98), rgba(11,79,138,.9)); }
.purpose-hero .eyebrow { color: #ffbdc0; }
.purpose-hero h1 { max-width: 940px; margin: 0; font-size: clamp(3.1rem, 8vw, 7rem); line-height: .92; letter-spacing: -.055em; }
.purpose-hero .lead { max-width: 780px; margin: 28px 0 0; color: rgba(255,255,255,.82); }
.purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.purpose-card { position: relative; min-height: 430px; padding: clamp(32px, 5vw, 58px); overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.purpose-card::after { content: ""; position: absolute; right: -70px; bottom: -100px; width: 260px; height: 260px; border: 42px solid rgba(255,255,255,.09); border-radius: 50%; }
.purpose-card.mission { color: var(--white); background: var(--navy); }
.purpose-card.vision { color: var(--white); background: var(--red); }
.purpose-card .label { position: relative; z-index: 1; display: block; margin-bottom: 42px; font-size: .82rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.purpose-card h2 { position: relative; z-index: 1; margin: 0; color: inherit; font-size: clamp(2rem, 3.7vw, 3.65rem); line-height: 1.12; letter-spacing: -.04em; }
.purpose-card.graphic { min-height: 0; aspect-ratio: 515.5 / 1536; padding: 0; background: transparent; box-shadow: none; }
.purpose-card.graphic::after { display: none; }
.purpose-card.graphic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.purpose-values { margin-top: 70px; }
.purpose-values > h2 { max-width: 760px; }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 34px; }
.value-item { padding: 26px 22px; border-top: 5px solid var(--red); border-radius: 16px; background: var(--white); box-shadow: 0 10px 28px rgba(6,26,51,.08); }
.value-item h3 { margin: 0 0 8px; color: var(--navy); }
.value-item p { margin: 0; color: var(--muted); font-size: .92rem; }

.account-page { min-height: 70vh; padding: 72px 0 100px; background: var(--cream); }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.account-head h1 { margin: 0; color: var(--navy); font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -.045em; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 26px; align-items: start; }
.account-panel { padding: clamp(26px, 4vw, 42px); border: 1px solid rgba(6,26,51,.09); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 34px rgba(6,26,51,.08); }
.account-panel + .account-panel { margin-top: 26px; }
.account-panel h2 { margin: 0 0 8px; color: var(--navy); font-size: 1.7rem; }
.account-panel .panel-lead { margin: 0 0 24px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--navy); font-size: .88rem; font-weight: 800; }
.form-field input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid rgba(6,26,51,.22); border-radius: 10px; color: var(--ink); background: var(--white); font: inherit; }
.form-field input:focus { outline: 3px solid rgba(11,79,138,.16); border-color: var(--blue); }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.form-message { min-height: 24px; margin: 12px 0 0; color: var(--blue); font-weight: 700; }
.form-message.error { color: #a10f1a; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0; padding: 16px; border-radius: 12px; background: var(--cream); font-size: .9rem; }
.consent-row input { margin-top: 5px; }
.member-course-list { display: grid; gap: 14px; }
.member-course-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid rgba(6,26,51,.1); border-radius: 14px; }
.member-course-row > div { display: grid; gap: 4px; }
.member-course-row strong { color: var(--navy); }
.member-course-row small, .data-table small { display: block; color: var(--muted); }
.member-course-row .button { flex: 0 0 auto; }
.member-course { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center; padding: 14px; border: 1px solid rgba(6,26,51,.1); border-radius: 14px; }
.member-course img { width: 92px; height: 74px; object-fit: cover; border-radius: 10px; }
.member-course h3 { margin: 0 0 4px; color: var(--navy); font-size: 1rem; }
.member-course p { margin: 0; color: var(--muted); font-size: .86rem; }
.status-pill { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--sky); color: var(--blue); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.empty-state { padding: 28px; border: 1px dashed rgba(6,26,51,.2); border-radius: 14px; color: var(--muted); text-align: center; }
.table-wrap, .table-scroll { overflow-x: auto; }
.table-toolbar { display: grid; gap: 7px; max-width: 520px; margin-bottom: 18px; }
.table-toolbar label { color: var(--navy); font-size: .88rem; font-weight: 800; }
.table-toolbar input { min-height: 46px; padding: 10px 13px; border: 1px solid rgba(6,26,51,.22); border-radius: 10px; font: inherit; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { padding: 13px 12px; border-bottom: 1px solid rgba(6,26,51,.1); text-align: left; vertical-align: top; }
.data-table th { color: var(--navy); background: var(--cream); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.data-table select { min-height: 38px; padding: 6px 8px; border: 1px solid rgba(6,26,51,.2); border-radius: 8px; background: var(--white); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 92px; left: 0; right: 0; display: none; padding: 22px 24px 28px; flex-direction: column; align-items: flex-start; gap: 14px; background: var(--white); border-bottom: 1px solid rgba(6,26,51,.1); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 42px; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .cert-grid, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .pathway-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .container { width: min(100% - 26px, 1180px); }
  .brand img { width: 190px; }
  .header-inner { min-height: 78px; }
  .nav { top: 78px; }
  .hero { min-height: 610px; }
  .hero.hero-art { min-height: 0; }
  .hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .section { padding: 72px 0; }
  .cards, .audience-grid, .cert-grid, .course-grid, .pathway-grid, .footer-grid { grid-template-columns: 1fr; }
  .audience-card--wide { aspect-ratio: 2.5 / 1; }
  .split-image, .split-image img { min-height: 370px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .feature-list { grid-template-columns: 1fr; }
  .press-release-card { grid-template-columns: 1fr; padding: 28px; }
  .press-release-mark { width: 110px; }
  .purpose-grid, .values-grid { grid-template-columns: 1fr; }
  .purpose-card { min-height: 360px; }
  .account-head { align-items: flex-start; flex-direction: column; }
  .account-grid, .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .member-course { grid-template-columns: 72px 1fr; }
  .member-course img { width: 72px; height: 62px; }
  .member-course .button, .member-course .status-pill { grid-column: 1 / -1; justify-self: start; }
}

/* First-party staff analytics */
.analytics-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.analytics-heading .panel-lead { margin-bottom: 0; }
.analytics-range { display: grid; flex: 0 0 180px; gap: 7px; color: var(--navy); font-size: .82rem; font-weight: 800; }
.analytics-range select { min-height: 44px; padding: 8px 10px; border: 1px solid rgba(6,26,51,.2); border-radius: 9px; background: var(--white); font: inherit; }
.analytics-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 18px 0 30px; }
.analytics-stat { padding: 20px; border: 1px solid rgba(6,26,51,.09); border-radius: 14px; background: var(--cream); }
.analytics-stat span, .analytics-stat small { display: block; color: var(--muted); }
.analytics-stat span { font-size: .78rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.analytics-stat strong { display: block; margin: 6px 0 2px; color: var(--navy); font-size: clamp(1.7rem,4vw,2.6rem); line-height: 1; }
.analytics-stat small { font-size: .74rem; }
.analytics-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(240px,.6fr); gap: 28px; }
.analytics-grid h3 { margin: 0 0 12px; color: var(--navy); }
.analytics-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.analytics-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 9px; background: var(--cream); color: var(--muted); }
.analytics-list strong { color: var(--navy); }
@media (max-width: 900px) { .analytics-stats { grid-template-columns: repeat(2,1fr); } .analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .analytics-heading { flex-direction: column; } .analytics-range { width: 100%; flex-basis: auto; } .analytics-stats { grid-template-columns: 1fr; } }

/* Owner and administrator website editor */
.account-panel.codex-editor { padding: 0; overflow: hidden; }
.codex-editor-heading { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 34px 40px 24px; }
.codex-editor-heading .eyebrow { margin-bottom: 6px; }
.codex-editor-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.4rem,2.3vw,2rem); }
.codex-editor-heading > div:nth-child(2) > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .82rem; }
.codex-mark { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; background: var(--navy); color: var(--white); font-size: 1.25rem; font-weight: 850; box-shadow: inset 0 -5px 0 var(--red); }
.codex-scope-badge { border: 1px solid #b8c9d7; border-radius: 999px; padding: 8px 12px; background: var(--sky); color: var(--navy); font-size: .62rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.codex-restriction-note { display: flex; align-items: center; gap: 12px; margin: 0 40px 22px; border-left: 3px solid var(--red); padding: 7px 0 7px 14px; color: var(--muted); font-size: .78rem; }
.codex-restriction-note strong { color: var(--navy); }
.codex-conversation { display: grid; max-height: 420px; min-height: 260px; align-content: start; gap: 14px; overflow-y: auto; padding: 30px; background: #fbfcfd; }
.codex-message { max-width: 82%; border-radius: 17px; padding: 15px 17px; }
.codex-message strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: .7rem; }
.codex-message p { margin: 0; font-size: .85rem; line-height: 1.6; }
.codex-message-codex { border: 1px solid rgba(6,26,51,.13); border-bottom-left-radius: 4px; background: var(--white); }
.codex-message-owner { justify-self: end; border-bottom-right-radius: 4px; background: var(--navy); color: var(--white); }
.codex-message-owner strong { color: #d9e8f5; }
.codex-audit { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(6,26,51,.13); border-left: 4px solid #2d7a55; padding: 18px 30px; background: #eef8f2; color: var(--navy); }
.codex-audit > div { display: flex; flex-wrap: wrap; gap: 8px; }
.codex-audit span { border-radius: 999px; padding: 6px 10px; background: var(--white); color: var(--muted); font-size: .68rem; font-weight: 750; }
.codex-audit-warning { border-left-color: var(--red); background: #fff3f0; }
.codex-proposal { display: grid; gap: 20px; border-top: 1px solid rgba(6,26,51,.13); padding: 26px 30px; background: #f0f6fa; }
.codex-proposal > div:first-child > span { color: var(--red); font-size: .62rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.codex-proposal h3 { margin: 5px 0 0; color: var(--navy); font-size: 1.1rem; }
.codex-change-list { display: grid; gap: 10px; }
.codex-change-list article { border-left: 3px solid var(--red); padding: 11px 14px; background: var(--white); }
.codex-change-list strong { color: var(--navy); font-size: .7rem; }
.codex-change-list p { margin: 5px 0 0; color: var(--ink); font-size: .82rem; line-height: 1.55; overflow-wrap: anywhere; }
.codex-proposal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.codex-compose { display: grid; gap: 10px; border-top: 1px solid rgba(6,26,51,.13); padding: 25px 30px 20px; }
.codex-compose > label { color: var(--navy); font-size: .74rem; font-weight: 800; }
.codex-compose > div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 14px; }
.codex-compose textarea { display: block; box-sizing: border-box; width: 100%; min-height: 170px; resize: vertical; border: 1px solid #bac4cf; border-radius: 14px; padding: 16px 18px; background: #fafbfc; color: var(--ink); font: inherit; font-size: .96rem; line-height: 1.55; }
.codex-compose .button { min-width: 145px; }
.codex-status { min-height: 22px; margin: 0; padding: 0 30px 20px; color: var(--navy); font-size: .78rem; font-weight: 750; }
.codex-editor button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.codex-history { display: grid; gap: 16px; border-top: 1px solid rgba(6,26,51,.13); padding: 26px 30px 30px; }
.codex-history h3 { margin: 0; color: var(--navy); }
#codex-history-list { display: grid; gap: 8px; }
#codex-history-list > p { margin: 0; color: var(--muted); }
#codex-history-list article { display: flex; justify-content: space-between; gap: 20px; border-radius: 10px; padding: 12px 14px; background: var(--cream); }
#codex-history-list small { color: var(--muted); text-align: right; }
.site-managed-image { width: min(100%, 760px); height: auto; margin: 26px auto; border-radius: var(--radius); box-shadow: var(--shadow); }

@media (max-width: 650px) {
  .codex-editor-heading { grid-template-columns: auto minmax(0,1fr); padding: 24px 20px; }
  .codex-scope-badge { grid-column: 2; justify-self: start; }
  .codex-restriction-note { align-items: flex-start; flex-direction: column; margin-inline: 20px; }
  .codex-conversation, .codex-proposal, .codex-compose, .codex-history { padding-inline: 20px; }
  .codex-compose > div { grid-template-columns: 1fr; }
  .codex-message { max-width: 94%; }
  #codex-history-list article { align-items: flex-start; flex-direction: column; }
  #codex-history-list small { text-align: left; }
}

/* Official social handle shortcut */
.footer-brandline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.footer-social-link { display: inline-flex; align-items: center; gap: 7px; border-radius: 6px; color: inherit; font-weight: 700; }
.footer-social-link:hover { color: var(--white); }
.footer-social-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.footer-social-icon { width: 18px; height: 18px; flex: 0 0 auto; }
