
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #536173;
  --line: #d9e2ec;
  --accent: #0369a1;
  --accent-dark: #0f4f78;
  --deep: #0f172a;
  --gold: #9f7a30;
  --sand: #e8edf4;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(246, 248, 251, 0.86);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
}

.site-header .shell {
  width: min(1280px, calc(100% - 28px));
}

.header-inner,
.header-actions,
.top-nav,
.brand-shell,
.header-center,
.header-side,
.button-row,
.tag-row,
.card-head,
.progress-label,
.thread-title-row,
.post-actions {
  display: flex;
  align-items: center;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  grid-template-areas:
    "brand side"
    "brand nav";
  justify-content: space-between;
  column-gap: 14px;
  row-gap: 8px;
  padding: 8px 0;
  align-items: center;
  min-height: 102px;
}

.brand-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-area: brand;
  min-width: 0;
  min-height: 88px;
}

.brand-switcher {
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.brand-switch-controls {
  display: grid;
  grid-template-columns: 44px;
  gap: 6px;
  align-items: center;
  justify-items: center;
}

.brand-switch-button,
.brand-switch-count {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
}

.brand-switch-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-dark);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.brand-switch-button:hover {
  background: #eaf4fb;
  border-color: rgba(3, 105, 161, 0.3);
}

.brand-switch-count {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.header-center {
  grid-area: nav;
  min-width: 0;
  justify-content: flex-start;
  align-self: start;
}

.header-side {
  grid-area: side;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  align-self: end;
}

.hero-panel > .brand-showcase {
  margin-bottom: 0;
}

.hero h1,
.section-heading h2,
.card h3,
.site-footer h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--deep), #2b4c70);
  color: #fff;
  font-weight: 800;
}

.brand-banner-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  aspect-ratio: var(--banner-ratio);
  height: clamp(78px, 8vw, 96px);
  min-height: 78px;
  padding: 2px 4px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.brand-banner-home:hover {
  transform: translateY(-1px);
}

.brand-banner {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-showcase {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(23, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.brand-showcase-logo {
  width: min(100%, 220px);
  max-height: 300px;
  height: auto;
  object-fit: contain;
}

.hero-brand-showcase {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: end;
  gap: 24px;
}

.brand-showcase.logo-only {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 28px 24px;
}

.hero-brand-showcase .brand-showcase-logo {
  width: min(100%, 300px);
  max-height: 380px;
  justify-self: center;
}

.hero-brand-showcase.logo-only .brand-showcase-logo {
  width: min(100%, 340px);
  max-height: 430px;
}

.about-brand-showcase.logo-only {
  padding: 24px;
}

.about-brand-showcase.logo-only .brand-showcase-logo {
  width: min(100%, 360px);
  max-height: 460px;
}

.about-brand-note {
  margin-top: 16px;
}

.footer-brand-showcase {
  margin-bottom: 18px;
}

.brand-showcase-copy {
  display: grid;
  gap: 8px;
}

.hero-brand-showcase .brand-showcase-copy {
  align-content: end;
  padding-top: 28px;
}

.brand-showcase-copy h3,
.brand-showcase-copy p {
  margin-bottom: 0;
}

.brand-lead {
  font-weight: 700;
  margin-bottom: 10px;
}

.top-nav {
  width: 100%;
  flex: 1 1 auto;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.top-nav a,
.primary-button,
.secondary-button,
.link-button {
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.top-nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.75);
}

.header-actions {
  gap: 8px;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}

.primary-button,
.secondary-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  font-weight: 700;
}

.primary-button {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.primary-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(3, 105, 161, 0.28);
}

.secondary-button:hover {
  border-color: rgba(3, 105, 161, 0.3);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.link-button {
  color: var(--accent-dark);
  background: rgba(216, 182, 123, 0.2);
}

.section-block,
.site-footer {
  padding: 32px 0 36px;
}

.hero {
  padding: 48px 0 40px;
}

.hero-grid,
.two-column,
.footer-wrap,
.grid.two,
.grid.three,
.grid.four,
.ad-slot,
.partner-strip {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 40vh;
  gap: 36px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

.hero-text {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 900px;
  margin-bottom: 28px;
}

.hero-panel,
.card,
.note-card,
.ad-slot {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

article.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(16, 32, 51, 0.12);
}

.hero-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 242, 0.84)),
    linear-gradient(135deg, rgba(43, 76, 112, 0.08), rgba(3, 105, 161, 0.08));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  align-items: start;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-metrics.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-metrics strong {
  display: block;
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  margin-bottom: 4px;
}

.hero-metrics span,
.muted,
.card .muted {
  color: var(--muted);
}

.ad-slot {
  align-items: center;
  margin-top: 20px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 236, 224, 0.88)),
    linear-gradient(120deg, rgba(16, 32, 51, 0.05), rgba(3, 105, 161, 0.1));
  border: 1px solid rgba(23, 32, 51, 0.12);
}

.ad-slot.banner,
.ad-slot.inline {
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
}

.ad-slot.video,
.ad-slot.rail,
.ad-slot.skyscraper {
  grid-template-columns: 1fr;
}

.ad-copy {
  display: grid;
  gap: 12px;
}

.ad-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.ad-badge,
.ad-size {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ad-badge {
  background: rgba(16, 32, 51, 0.08);
  color: var(--deep);
}

.ad-size {
  background: rgba(3, 105, 161, 0.12);
  color: var(--accent-dark);
}

.ad-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.ad-slot.skyscraper {
  min-height: 100%;
}

.ad-display {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.ad-visual {
  min-height: 158px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px dashed rgba(23, 32, 51, 0.2);
  background: rgba(255, 255, 255, 0.66);
  color: rgba(23, 32, 51, 0.4);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  letter-spacing: 0;
}

.page-chrome {
  display: grid;
  gap: 24px;
}

.page-layout {
  width: min(1520px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1180px) minmax(140px, 180px);
  gap: 20px;
  align-items: start;
}

.page-main {
  min-width: 0;
}

.page-rail {
  position: sticky;
  top: 104px;
}

.page-rail .ad-slot {
  margin-top: 0;
}

.ad-band .ad-slot {
  margin-top: 0;
}

.hero-panel > .ad-slot,
.section-block .ad-slot,
.forum-layout .ad-slot,
.thread-layout .ad-slot,
.balanced-columns .ad-slot {
  display: none;
}

.hero-panel:has(> .ad-slot:only-child),
.section-block:has(> .ad-slot:only-child) {
  display: none;
}



.media-block {
  min-height: 158px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #f7ead1, #fefaf2);
}

.media-block span {
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 800;
}

.media-block strong {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.18rem;
}

.media-block.cool {
  background: linear-gradient(135deg, #dcecf9, #f6fafc);
}

.media-block.ink {
  color: #fff;
  background: linear-gradient(135deg, #1a2c42, #314864);
}

.media-block.ink span {
  color: rgba(255, 255, 255, 0.7);
}

.media-block.portrait {
  min-height: 188px;
  background: linear-gradient(135deg, #fae7c4, #fbf7ef);
}

.media-banner,
.media-video,
.media-rail,
.media-inline {
  min-height: 140px;
}

.media-skyscraper {
  min-height: 220px;
}

.eyebrow,
.kicker {
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.page-note {
  padding-top: 0;
}

.note-card p {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.statement-card,
.value-card {
  height: 100%;
}

.statement-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 242, 0.92)),
    var(--surface-strong);
  border: 1px solid rgba(3, 105, 161, 0.14);
}

.statement-text {
  font-size: 1.04rem;
  line-height: 1.8;
}

.value-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 232, 0.88));
}

.value-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.proof-card {
  position: relative;
  min-width: 0;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.proof-card:first-child {
  border-left: 0;
}

.proof-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(15, 23, 42, 0.3);
  font-size: 1.5rem;
  font-weight: 900;
}

.proof-card h3 {
  margin-bottom: 10px;
}

.proof-card p:last-child {
  margin-bottom: 0;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-stack,
.progress-block,
.post-stack,
.list-card,
.form-card,
.stack-block {
  display: grid;
  gap: 16px;
}

.balanced-columns,
.forum-layout,
.thread-layout,
.split-list {
  display: grid;
  gap: 24px;
}

.balanced-columns,
.forum-layout,
.thread-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.split-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-top {
  margin-top: 20px;
}

.compact-card p:last-child,
.compact-card h3:last-child {
  margin-bottom: 0;
}

.profile-card,
.scientist-card,
.project-card {
  height: 100%;
}

.tag-row {
  gap: 8px;
  flex-wrap: wrap;
}

.tag,
.status-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.tag {
  background: rgba(16, 32, 51, 0.08);
}

.tag.soft {
  background: rgba(3, 105, 161, 0.12);
  color: var(--accent-dark);
}

.status-pill {
  background: rgba(43, 76, 112, 0.12);
  color: #274c77;
}

.status-pill.dark {
  background: rgba(16, 32, 51, 0.12);
  color: var(--deep);
}

.mini-pill {
  background: rgba(216, 182, 123, 0.24);
}

.pin-pill {
  min-width: 32px;
  justify-content: center;
  padding: 6px 8px;
  line-height: 1;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.progress-label {
  justify-content: space-between;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.08);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.thread-row,
.list-row {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

a.thread-row {
  transition: opacity 0.2s ease;
}

a.thread-row:hover {
  opacity: 0.7;
}

.thread-row:first-child,
.list-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.thread-row {
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.thread-row p,
.list-row p {
  margin-bottom: 0;
}

.thread-title-row {
  gap: 10px;
  margin-bottom: 8px;
}

.thread-meta {
  display: grid;
  gap: 8px;
  min-width: 94px;
  text-align: right;
  color: var(--muted);
}

.post-actions {
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
  flex-wrap: wrap;
}

.step-index {
  display: inline-flex;
  color: rgba(23, 32, 51, 0.26);
  font-size: 2rem;
  font-weight: 800;
}

.filter-panel,
.aside-list {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.aside-list {
  display: grid;
  gap: 12px;
}

.hero-panel .aside-list,
.hero-panel .filter-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.aside-list div {
  display: grid;
  gap: 4px;
}

.list-row strong,
.card-head h3,
.thread-row strong {
  font-size: 1rem;
}

.card-head {
  justify-content: space-between;
  gap: 12px;
}

.form-card label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
  color: var(--text);
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  align-items: start;
}

.partner-block {
  padding: 24px;
}

.partner-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.partner-strip span {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

.footer-cta {
  grid-column: 1 / -1;
  max-width: none;
}

.footer-cta p:last-of-type {
  margin-bottom: 20px;
}

@media (max-width: 1080px) {
  .page-layout {
    width: min(100% - 24px, 1180px);
    grid-template-columns: 1fr;
  }

  .page-rail {
    display: none;
  }

  .header-inner,
  .grid.two,
  .grid.three,
  .grid.four,
  .two-column,
  .partner-strip,
  .ad-slot.banner,
  .ad-slot.inline,
  .thread-row,
  .balanced-columns,
  .forum-layout,
  .thread-layout,
  .split-list {
    grid-template-columns: 1fr;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    grid-template-areas:
      "brand side"
      "nav nav";
    row-gap: 12px;
  }

  .brand-shell {
    grid-area: brand;
  }

  .header-center {
    grid-area: nav;
    justify-content: flex-start;
  }

  .header-side {
    grid-area: side;
    align-items: flex-end;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .hero-metrics,
  .hero-metrics.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thread-meta {
    text-align: left;
  }

  .language-switcher {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "side";
    min-height: auto;
    gap: 12px;
  }

  .brand-shell {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 104px;
  }

  .brand-banner-home {
    max-width: min(100%, 420px);
    height: 96px;
    min-height: 96px;
  }

  .brand-showcase {
    grid-template-columns: 1fr;
  }

  .top-nav,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: auto;
  }

  .header-side {
    align-items: flex-start;
  }

  .top-nav a,
  .link-button {
    width: 100%;
  }

  .header-actions .primary-button,
  .header-actions .secondary-button {
    width: auto;
    min-width: 118px;
  }

  .hero-panel,
  .card,
  .note-card,
  .ad-slot {
    padding: 20px;
  }

  .hero-metrics,
  .hero-metrics.compact,
  .partner-strip {
    grid-template-columns: 1fr;
  }

  .media-block {
    min-height: 132px;
  }
}




.profile-switcher {
  display: grid;
  gap: 10px;
}

.profile-switcher a,
.partner-logo,
.state-panel,
.fake-field {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.profile-switcher a {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.profile-switcher a span,
.partner-logo span,
.inline-meta,
.fake-field {
  color: var(--muted);
}

.profile-switcher a.active {
  border-color: rgba(3, 105, 161, 0.35);
  background: rgba(3, 105, 161, 0.08);
}

.partner-logo {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
}

.partner-logo strong {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.state-panel,
.fake-field {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.inline-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.role-card,
.lock-card,
.moderator-card,
.thread-list-card {
  height: 100%;
}

.role-card.role-anon,
.state-panel.role-anon,
body.role-anon .profile-switcher a.active {
  background: rgba(255, 255, 255, 0.84);
}

.role-card.role-cuong,
.state-panel.role-cuong,
body.role-cuong .profile-switcher a.active {
  background: rgba(84, 121, 145, 0.1);
}

.role-card.role-tue,
.state-panel.role-tue,
body.role-tue .profile-switcher a.active {
  background: rgba(3, 105, 161, 0.1);
}

.role-card.role-trung,
.state-panel.role-trung,
body.role-trung .profile-switcher a.active {
  background: rgba(16, 32, 51, 0.1);
}

.footer-intro {
  max-width: none;
}

.footer-intro,
.partner-strip {
  min-width: 0;
}

@media (max-width: 720px) {
  .inline-meta {
    flex-direction: column;
  }
}



body {
  overflow-x: hidden;
}

.language-switcher,
.language-switcher-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.language-switcher {
  justify-content: flex-end;
}

.language-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.language-switcher-links a {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.language-switcher-links a.active {
  background: rgba(3, 105, 161, 0.12);
  border-color: rgba(3, 105, 161, 0.32);
  color: var(--accent-dark);
}

.top-nav {
  gap: 6px;
}

.top-nav a {
  padding: 8px 10px;
  font-size: 0.88rem;
}

.primary-button,
.secondary-button,
.link-button {
  padding: 11px 16px;
  font-size: 0.9rem;
  text-align: center;
  white-space: normal;
}

.page-layout {
  width: min(1440px, calc(100% - 28px));
  grid-template-columns: minmax(112px, 148px) minmax(0, 1120px) minmax(112px, 148px);
  gap: 16px;
}

.page-rail .ad-slot {
  min-width: 0;
  padding: 16px;
  gap: 14px;
  border-radius: 20px;
}

.page-rail .ad-copy {
  min-width: 0;
  gap: 10px;
}

.page-rail .ad-copy h3 {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.page-rail .ad-meta-row {
  gap: 8px;
}

.page-rail .ad-badge,
.page-rail .ad-size {
  padding: 5px 8px;
  font-size: 0.62rem;
}

.page-rail .kicker,
.page-rail .ad-note,
.page-rail .ad-copy p,
.profile-switcher a span,
.partner-logo span,
.thread-row p,
.list-row p,
.inline-meta,
.card .muted,
.top-nav a,
.header-actions a,
.tag,
.status-pill,
.mini-pill {
  font-size: 0.88rem;
}

.page-rail .ad-copy p,
.page-rail .ad-note {
  font-size: 0.82rem;
  line-height: 1.45;
}

.page-rail .ad-display {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.page-rail .ad-visual {
  min-height: 96px;
  padding: 12px;
  font-size: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 4.3rem);
}

.section-heading h2 {
  font-size: clamp(1.85rem, 2.6vw, 2.7rem);
}

.hero-text,
.card p,
.section-block p,
.site-footer p,
label,
input,
select,
textarea,
button {
  font-size: 0.98rem;
  line-height: 1.6;
}

.card,
.note-card,
.ad-slot,
.hero-panel {
  padding: 22px;
}

.card h3,
.hero h1,
.section-heading h2,
.thread-row strong,
.profile-switcher a strong,
.partner-logo strong,
.footer-cta h3,
.ad-copy p,
.top-nav a,
.primary-button,
.secondary-button,
.link-button,
.language-switcher-links a {
  overflow-wrap: anywhere;
}


.profile-switcher a {
  padding: 13px 14px;
}

.hero-grid,
.balanced-columns,
.forum-layout,
.thread-layout {
  gap: 20px;
}

@media (max-width: 1280px) {
  .page-layout {
    grid-template-columns: minmax(96px, 132px) minmax(0, 1fr) minmax(96px, 132px);
  }

  .header-inner {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .language-switcher,
  .language-switcher-links {
    width: 100%;
    justify-content: flex-start;
  }

  .language-switcher-links a {
    flex: 1 1 calc(33.333% - 8px);
    justify-content: center;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .section-heading h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
}

/* Localization resilience: allow longer Vietnamese/French copy without overflow */
.card,
.note-card,
.ad-slot,
.hero-panel,
.state-panel,
.partner-logo,
.profile-switcher a,
.thread-row,
.list-row,
.hero-grid > *,
.page-main > *,
.grid > *,
.balanced-columns > *,
.forum-layout > *,
.thread-layout > *,
.two-column > *,
.ad-copy,
.ad-slot > * {
  min-width: 0;
}

.hero h1,
.section-heading h2,
.card h3,
.card p,
.thread-row strong,
.thread-row p,
.list-row strong,
.list-row p,
.state-panel p,
.profile-switcher a,
.hero-text,
.kicker,
.eyebrow,
.tag,
.status-pill,
.mini-pill,
.inline-meta,
.fake-field,
.progress-label,
.post-actions,
.partner-logo strong,
.partner-logo span,
.hero-metrics span,
.hero-metrics strong,
.ad-copy h3,
.ad-copy p,
.ad-note,
.ad-visual,
.ad-visual span {
  overflow-wrap: anywhere;
  word-break: normal;
}

.card,
.note-card,
.ad-slot,
.hero-panel,
.partner-logo,
.profile-switcher a,
.state-panel {
  height: auto;
}

.grid.two,
.grid.three,
.grid.four,
.two-column,
.partner-strip,
.hero-metrics,
.hero-metrics.compact {
  align-items: start;
}

.hero-metrics,
.hero-metrics.compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.thread-row,
.card-head,
.progress-label,
.inline-meta,
.post-actions,
.ad-meta-row,
.language-switcher-links,
.header-actions,
.top-nav,
.button-row,
.tag-row {
  flex-wrap: wrap;
}

.thread-row {
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
}

.thread-meta,
.profile-switcher,
.hero-panel,
.filter-panel,
.aside-list,
.brand-showcase,
.footer-cta,
.card-stack,
.progress-block,
.list-card,
.form-card,
.stack-block {
  min-width: 0;
}

.progress-block {
  width: 100%;
}

.progress-label {
  display: flex;
  gap: 8px 12px;
  align-items: baseline;
}

.progress-label span:last-child {
  margin-left: auto;
  flex: 0 0 auto;
}

.progress-bar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  overflow: clip;
  box-sizing: border-box;
}

.progress-bar span {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.status-pill,
.mini-pill,
.tag,
.language-switcher-links a,
.primary-button,
.secondary-button,
.link-button {
  white-space: normal;
  text-align: center;
}


/* hero-grid is handled globally now */

body.locale-vi .hero h1,
body.locale-fr .hero h1 {
  max-width: none;
  line-height: 1.02;
}

body.locale-vi .hero-text,
body.locale-fr .hero-text,
body.locale-vi .section-heading h2,
body.locale-fr .section-heading h2 {
  max-width: none;
}

body.locale-vi .hero h1,
body.locale-vi .section-heading h2,
body.locale-vi .card h3,
body.locale-vi .site-footer h3,
body.locale-vi .thread-row strong,
body.locale-vi .profile-switcher a strong,
body.locale-vi .partner-logo strong,
body.locale-vi .media-block strong,
body.locale-vi .brand-showcase-copy h3 {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}


body.locale-vi .balanced-columns,
body.locale-fr .balanced-columns,
body.locale-vi .forum-layout,
body.locale-fr .forum-layout,
body.locale-vi .thread-layout,
body.locale-fr .thread-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
}

body.locale-vi .ad-slot.banner,
body.locale-vi .ad-slot.inline,
body.locale-fr .ad-slot.banner,
body.locale-fr .ad-slot.inline {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.9fr);
}

body.locale-vi .thread-row,
body.locale-fr .thread-row {
  grid-template-columns: minmax(0, 1fr) minmax(124px, auto);
}

body.locale-vi .thread-meta,
body.locale-fr .thread-meta {
  min-width: 124px;
}

body.locale-vi .button-row a,
body.locale-vi .header-actions a,
body.locale-fr .button-row a,
body.locale-fr .header-actions a {
  flex: 0 0 auto;
}

body.locale-vi .language-switcher-links a,
body.locale-fr .language-switcher-links a {
  flex: 0 0 auto;
}

.site-header .header-side,
.site-header .header-actions,
.site-header .language-switcher,
.site-header .language-switcher-links {
  flex-wrap: nowrap;
}

.site-header .top-nav {
  flex-wrap: wrap;
}

.site-header .header-side {
  justify-content: flex-end;
}

.site-header .header-actions a,
.site-header .language-switcher-links a,
.site-header .top-nav a {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .site-header .top-nav,
  .site-header .header-side,
  .site-header .header-actions,
  .site-header .language-switcher,
  .site-header .language-switcher-links {
    flex-wrap: wrap;
  }
}

body.locale-vi .status-pill,
body.locale-vi .mini-pill,
body.locale-vi .tag,
body.locale-fr .status-pill,
body.locale-fr .mini-pill,
body.locale-fr .tag {
  justify-content: center;
  min-height: 40px;
}

@media (max-width: 1280px) {
  .grid.three,
  .grid.four,
  .partner-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forum-layout,
  .thread-layout {
    grid-template-columns: 1fr;
  }

  body.locale-vi .balanced-columns,
  body.locale-fr .balanced-columns,
  body.locale-vi .forum-layout,
  body.locale-fr .forum-layout,
  body.locale-vi .thread-layout,
  body.locale-fr .thread-layout,
  body.locale-vi .ad-slot.banner,
  body.locale-vi .ad-slot.inline,
  body.locale-fr .ad-slot.banner,
  body.locale-fr .ad-slot.inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .thread-row,
  .grid.two,
  .grid.three,
  .grid.four,
  .two-column,
  .partner-strip,
  .hero-metrics,
  .hero-metrics.compact,
  .balanced-columns,
  .forum-layout,
  .thread-layout,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .progress-label {
    align-items: flex-start;
  }

  .progress-label span:last-child {
    margin-left: 0;
  }
}
*,
*::before,
*::after {
  letter-spacing: 0;
}

body {
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(3, 105, 161, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: rgba(246, 248, 251, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 88px;
  grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
}

.brand-shell {
  width: 100%;
}

.brand-switcher {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 252px) auto;
  align-items: center;
  gap: 8px;
  width: min(100%, 374px);
}

.brand-banner-home {
  max-width: 100%;
  width: 100%;
}

.brand-switch-controls {
  position: static;
  display: grid;
  grid-template-columns: 32px 38px 32px;
  gap: 4px;
  justify-self: end;
}

.brand-switch-button,
.brand-switch-count {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-switch-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.hero {
  padding: 42px 0 28px;
}

.hero-grid {
  min-height: auto;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
  }
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(2.2rem, 4.2vw, 4.1rem);
  line-height: 1.04;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.45rem);
}

.hero-text {
  max-width: 760px;
  color: #405166;
}

.hero-panel,
.card,
.note-card,
.ad-slot,
.brand-showcase,
.brand-banner-home,
.media-block,
.partner-logo,
.profile-switcher a,
.state-panel,
.fake-field,
.form-card input,
.form-card select,
.form-card textarea {
  border-radius: 8px;
}

.hero-panel,
.card,
.note-card,
.ad-slot {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

article.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.primary-button,
.secondary-button,
.link-button,
.top-nav a,
.language-switcher-links a,
.tag,
.status-pill,
.mini-pill,
.ad-badge,
.ad-size {
  min-height: 40px;
  border-radius: 8px;
}

.primary-button,
.secondary-button,
.link-button {
  min-height: 44px;
}

.primary-button {
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button,
.language-switcher-links a,
.top-nav a {
  border: 1px solid transparent;
}

.top-nav a:hover,
.top-nav a.active,
.language-switcher-links a.active,
.profile-switcher a.active {
  border-color: rgba(3, 105, 161, 0.24);
  background: #eaf4fb;
  color: var(--accent-dark);
}

.brand-banner-home {
  height: clamp(64px, 7vw, 82px);
  min-height: 64px;
  background: #fff;
  border-color: var(--line);
}

.brand-showcase {
  background: #fff;
  border-color: var(--line);
}

.hero-brand-showcase.logo-only .brand-showcase-logo,
.hero-brand-showcase .brand-showcase-logo {
  width: min(100%, 260px);
  max-height: 330px;
}

.media-block {
  position: relative;
  display: grid;
  align-content: end;
  gap: 8px;
  overflow: visible;
  min-height: 168px;
  padding-bottom: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    #f8fafc;
  background-size: 24px 24px;
}

.media-block.portrait {
  min-height: 210px;
}

.media-rail,
.media-skyscraper {
  min-height: 232px;
}

.media-block::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--accent);
}

.media-block.cool::after {
  background: #2563eb;
}

.media-block.ink {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    var(--deep);
  background-size: 24px 24px;
}

.media-block.portrait::after {
  background: var(--gold);
}

.media-block span {
  color: var(--accent-dark);
  font-size: 0.76rem;
}

.media-block strong {
  position: relative;
  z-index: 1;
  max-width: 36ch;
  overflow-wrap: anywhere;
  word-break: normal;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text);
}

.media-block.ink strong {
  color: #fff;
}

.ad-slot {
  background: #fff;
  border-style: solid;
}

.ad-copy h3 {
  margin-bottom: 0;
}

.ad-note {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.ad-visual {
  min-height: 112px;
  border-style: solid;
  background:
    linear-gradient(90deg, rgba(3, 105, 161, 0.08), rgba(15, 23, 42, 0.04)),
    #f8fafc;
  color: var(--accent-dark);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  text-align: center;
  padding: 16px;
}

.ad-visual span {
  font-weight: 800;
}

.value-card,
.statement-card,
.proof-strip {
  background: #fff;
}

.value-card::after {
  background: var(--accent);
}



@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .site-header .shell,
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    padding: 10px 0 12px;
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .brand-shell {
    width: 100%;
    min-height: 0;
  }

  .brand-switcher {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand-switch-controls {
    position: static;
    grid-template-columns: repeat(3, 40px);
    grid-template-areas: "previous count next";
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .brand-switch-button[data-brand-direction="previous"] {
    grid-area: previous;
  }

  .brand-switch-button[data-brand-direction="next"] {
    grid-area: next;
  }

  .brand-switch-count {
    grid-area: count;
  }

  .brand-switch-button,
  .brand-switch-count {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .brand-switch-button {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.88);
  }

  .brand-banner-home {
    width: 100%;
    height: 58px;
    min-height: 58px;
  }

  .site-header .top-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    width: 100%;
    padding-bottom: 0;
  }

  .top-nav a {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .header-side {
    width: 100%;
    align-items: stretch;
    gap: 10px;
  }

  .language-switcher {
    display: grid;
    width: 100%;
    gap: 8px;
  }

  .language-switcher-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .language-switcher-links a {
    min-width: 0;
  }

  .header-actions,
  .header-actions .primary-button {
    width: 100%;
  }

  .hero {
    padding: 34px 0 22px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .hero-panel > *,
  .brand-showcase,
  .brand-showcase-logo {
    max-width: 100%;
  }

  .hero-brand-showcase.logo-only .brand-showcase-logo,
  .hero-brand-showcase .brand-showcase-logo {
    width: min(100%, 220px);
  }


  .profile-switcher a {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .site-header .top-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-switcher-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-panel,
  .card,
  .note-card,
  .ad-slot {
    padding: 14px;
  }

  .hero {
    padding: 26px 0 18px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.3rem);
  }

  .section-heading h2 {
    font-size: clamp(1.4rem, 6.5vw, 1.9rem);
  }

  .shell,
  .site-header .shell {
    width: min(100% - 20px, 1180px);
  }
}

.page-layout {
  width: min(1180px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr);
}

.page-rail {
  display: none;
}

.top-ad-band {
  margin-top: 6px;
}

@media (min-width: 1540px) {
  .page-layout {
    width: min(1560px, calc(100% - 32px));
    grid-template-columns: minmax(168px, 208px) minmax(0, 1080px) minmax(168px, 208px);
  }

  .page-rail {
    display: block;
  }
}

@media (max-width: 820px) {
  .ad-slot.banner,
  .ad-slot.inline {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px;
  }

  .proof-card:first-child {
    border-top: 0;
  }

  .ad-visual {
    min-height: 88px;
  }
}
/* Header profile preview control */
.profile-control {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-control-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-control-trigger:hover {
  background: #fff;
  border-color: rgba(3, 105, 161, 0.3);
}

.profile-control.open .profile-control-trigger {
  background: #fff;
  border-color: rgba(3, 105, 161, 0.4);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.12);
}

.profile-dot {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--sand);
  border: 1px solid var(--line);
}

.profile-dot.role-anon {
  background: #e4eaf1;
  border-color: #cdd8e4;
}

.profile-dot.role-cuong {
  background: #cddde6;
  border-color: #a9c4d3;
}

.profile-dot.role-tue {
  background: #bcdcf0;
  border-color: #8cc0e6;
}

.profile-dot.role-trung {
  background: #c9d2e0;
  border-color: #9fadc4;
}

.profile-control-text {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.15;
}

.profile-control-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-control-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14ch;
}

.profile-control-caret {
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.profile-control.open .profile-control-caret {
  transform: rotate(180deg);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-menu-eyebrow {
  margin: 2px 6px 8px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-menu-list {
  display: grid;
  gap: 4px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  background: var(--sand);
}

.profile-menu-text {
  display: grid;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.profile-menu-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.profile-menu-text span {
  font-size: 0.76rem;
  color: var(--muted);
}

.profile-menu-item.active {
  background: rgba(3, 105, 161, 0.08);
}

.profile-menu-check {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .profile-control-text {
    display: none;
  }
}

@media (max-width: 720px) {
  .profile-menu {
    right: auto;
    left: 0;
  }

  .profile-control-text {
    display: grid;
  }
}

/* =====================================================================
   Design polish layer (appended last so it wins the cascade).
   Goals: warmer palette tokens, hero atmosphere, section rhythm,
   stronger card hover, restored gold accent, polished primary button,
   refined typography, dark footer.
   ===================================================================== */

:root {
  --surface-tint: #fbfcfe;
  --surface-warm: #fefaf3;
  --hairline: rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 24px 60px -18px rgba(15, 23, 42, 0.22), 0 6px 14px -8px rgba(15, 23, 42, 0.08);
  --gold-soft: rgba(159, 122, 48, 0.14);
}

/* ---- Hero atmosphere ---- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 78% -10%, rgba(3, 105, 161, 0.10), transparent 62%),
    radial-gradient(ellipse 70% 55% at 0% 105%, rgba(159, 122, 48, 0.06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 105, 161, 0) 0%, rgba(3, 105, 161, 0.025) 100%);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* ---- Section rhythm: alternating tonal layers ---- */
.section-block {
  position: relative;
}

main > .page-chrome .page-main > section.section-block:nth-of-type(odd),
main .page-main > .section-block:nth-of-type(odd) {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-tint) 100%);
}

/* Underline accent on h2 — subtle gold-to-blue */
.section-heading h2 {
  position: relative;
  padding-bottom: 14px;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}

/* ---- Eyebrow / kicker letter spacing restored ---- */
.eyebrow,
.kicker {
  letter-spacing: 0.08em;
}

/* ---- Card polish ---- */
.hero-panel,
.card,
.note-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

article.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(3, 105, 161, 0.22);
}

/* Restored gold-to-accent stripe on value cards */
.value-card {
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  opacity: 0.9;
}

.value-card:hover::after {
  opacity: 1;
}

/* Statement (mission/vision) cards: a touch warmer */
.statement-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-warm) 100%);
  border-color: rgba(159, 122, 48, 0.18);
}

/* Proof strip (operating model) — restore visual identity */
.proof-strip {
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}

.proof-card .proof-index {
  color: var(--accent);
  opacity: 0.9;
}

/* ---- Primary button: lift and gradient ---- */
.primary-button {
  background: linear-gradient(180deg, #0a7ab8 0%, var(--accent) 100%);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 6px 18px rgba(3, 105, 161, 0.28);
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button:hover {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 12px 28px rgba(3, 105, 161, 0.36);
}

.primary-button:active {
  transform: translateY(0);
}

.secondary-button {
  border: 1px solid rgba(3, 105, 161, 0.32);
  color: var(--accent-dark);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.secondary-button:hover {
  background: rgba(3, 105, 161, 0.06);
  border-color: rgba(3, 105, 161, 0.5);
}

/* ---- Header: subtle highlight ---- */
.site-header {
  border-bottom: 1px solid var(--hairline);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 24px rgba(15, 23, 42, 0.04);
}

/* Active nav link as institutional underline rather than pill */
.top-nav a.active {
  background: transparent;
  border-color: transparent;
  color: var(--accent-dark);
  position: relative;
}

.top-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---- Footer: dark inverted band ---- */
.site-footer {
  background:
    linear-gradient(180deg, #122035 0%, #0c1729 100%);
  color: rgba(226, 232, 240, 0.86);
  border-top: 4px solid var(--accent);
}

.site-footer .footer-intro .eyebrow {
  color: rgba(226, 232, 240, 0.55);
}

.site-footer h3 {
  color: #ffffff;
}

.site-footer .brand-lead {
  color: rgba(226, 232, 240, 0.92);
}

.site-footer p {
  color: rgba(226, 232, 240, 0.72);
}

.site-footer .partner-logo {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.86);
}

.site-footer .partner-logo strong {
  color: #ffffff;
}

.site-footer .partner-logo span {
  color: rgba(226, 232, 240, 0.55);
}

.site-footer .footer-cta {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(226, 232, 240, 0.92);
}

.site-footer .footer-cta .kicker {
  color: rgba(226, 232, 240, 0.6);
}

.site-footer .footer-cta h3,
.site-footer .footer-cta p {
  color: #ffffff;
}

.site-footer .footer-cta .primary-button {
  background: linear-gradient(180deg, #0a7ab8 0%, var(--accent) 100%);
  color: #ffffff;
}

/* Reduced motion: disable card lift transitions */
@media (prefers-reduced-motion: reduce) {
  .hero-panel,
  .card,
  .note-card,
  article.card:hover,
  .primary-button,
  .primary-button:hover {
    transition: none;
    transform: none;
  }
}

/* Mobile: tone the polish down */
@media (max-width: 720px) {
  .hero::before {
    display: none;
  }

  .section-heading h2 {
    padding-bottom: 10px;
  }

  .section-heading h2::after {
    width: 44px;
    height: 2px;
  }
}
