:root {
  --authority-navy: #07111f;
  --authority-blue: #0d2238;
  --authority-paper: #f3efe5;
  --authority-ink: #172231;
  --authority-muted: #5f6872;
  --authority-gold: #c5a24f;
  --authority-line: rgba(23, 34, 49, 0.16);
}

html {
  scroll-behavior: smooth;
}

body.authority-resource-page {
  background: var(--authority-paper);
  color: var(--authority-ink);
}

.authority-resource-page main {
  overflow: hidden;
}

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

.authority-hero {
  position: relative;
  padding: clamp(104px, 13vw, 164px) 0 clamp(76px, 9vw, 116px);
  background:
    radial-gradient(circle at 82% 24%, rgba(197, 162, 79, 0.16), transparent 28%),
    linear-gradient(135deg, var(--authority-navy), var(--authority-blue));
  color: #f8f8f6;
}

.authority-hero::after {
  position: absolute;
  right: clamp(24px, 7vw, 104px);
  bottom: 0;
  width: min(33vw, 420px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(229, 195, 106, 0.72));
}

.authority-hero-copy {
  max-width: 900px;
}

.authority-kicker,
.authority-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #e5c36a;
  font: 600 0.76rem/1.4 "IBM Plex Sans", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.authority-hero h1 {
  max-width: 940px;
  margin: 0;
  color: #f8f8f6;
  font: 500 clamp(3rem, 6.4vw, 6.4rem)/0.92 "Cormorant Garamond", serif;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.authority-hero h1 em {
  color: #e5c36a;
  font-weight: 400;
}

.authority-deck {
  max-width: 770px;
  margin: 30px 0 0;
  color: rgba(248, 248, 246, 0.75);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.72;
}

.authority-language-switch {
  display: flex;
  gap: 8px;
  margin-top: 34px;
}

.authority-language-switch a {
  display: inline-flex;
  min-width: 48px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(229, 195, 106, 0.42);
  color: rgba(248, 248, 246, 0.72);
  font: 600 0.78rem/1 "IBM Plex Sans", sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.authority-language-switch a[aria-current="page"],
.authority-language-switch a:hover {
  background: #e5c36a;
  color: var(--authority-navy);
}

.authority-section {
  padding: clamp(72px, 9vw, 112px) 0;
}

.authority-section--white {
  background: #fbfaf7;
}

.authority-section--navy {
  background: var(--authority-navy);
  color: #f8f8f6;
}

.authority-intro-grid,
.authority-split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}

.authority-section h2 {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--authority-ink);
  font: 500 clamp(2.15rem, 4vw, 4rem)/1.02 "Cormorant Garamond", serif;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.authority-section--navy h2 {
  color: #f8f8f6;
}

.authority-section p,
.authority-section li,
.authority-table {
  font-family: "IBM Plex Sans", sans-serif;
}

.authority-section p {
  margin: 0 0 20px;
  color: var(--authority-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.authority-section--navy p,
.authority-section--navy li {
  color: rgba(248, 248, 246, 0.75);
}

.authority-list,
.authority-number-list,
.authority-source-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.authority-list li,
.authority-source-list li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-top: 1px solid var(--authority-line);
  color: var(--authority-ink);
  line-height: 1.65;
}

.authority-list li::before,
.authority-source-list li::before {
  position: absolute;
  top: 24px;
  left: 2px;
  width: 7px;
  height: 7px;
  content: "";
  border: 1px solid var(--authority-gold);
  transform: rotate(45deg);
}

.authority-section--navy .authority-list li {
  border-color: rgba(248, 248, 246, 0.14);
  color: rgba(248, 248, 246, 0.8);
}

.authority-number-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  counter-reset: authority-question;
}

.authority-number-list li {
  position: relative;
  min-height: 150px;
  padding: 58px 24px 24px;
  border: 1px solid var(--authority-line);
  background: rgba(255, 255, 255, 0.42);
  color: var(--authority-ink);
  line-height: 1.62;
  counter-increment: authority-question;
}

.authority-number-list li::before {
  position: absolute;
  top: 20px;
  left: 24px;
  color: var(--authority-gold);
  content: "0" counter(authority-question);
  font: 600 0.78rem/1 "IBM Plex Sans", sans-serif;
  letter-spacing: 0.12em;
}

.authority-table-wrap {
  margin-top: 42px;
  overflow-x: auto;
  border: 1px solid var(--authority-line);
  background: #fbfaf7;
}

.authority-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--authority-ink);
  font-size: 0.94rem;
  line-height: 1.58;
}

.authority-table th,
.authority-table td {
  padding: 22px;
  border-right: 1px solid var(--authority-line);
  border-bottom: 1px solid var(--authority-line);
  text-align: left;
  vertical-align: top;
}

.authority-table th {
  background: var(--authority-blue);
  color: #f8f8f6;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authority-source-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #173d61;
  text-decoration-color: rgba(197, 162, 79, 0.72);
  text-underline-offset: 4px;
}

.authority-source-list a:hover {
  color: #8a681a;
}

.authority-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.authority-cta p {
  max-width: 700px;
}

.authority-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid #e5c36a;
  background: #e5c36a;
  color: var(--authority-navy);
  font: 600 0.82rem/1.2 "IBM Plex Sans", sans-serif;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.authority-button:hover {
  background: transparent;
  color: #f8f8f6;
}

.authority-legal-note {
  margin: 28px 0 0;
  color: rgba(248, 248, 246, 0.56) !important;
  font-size: 0.82rem !important;
  line-height: 1.65 !important;
}

@media (max-width: 820px) {
  .authority-intro-grid,
  .authority-split,
  .authority-cta {
    grid-template-columns: 1fr;
  }

  .authority-number-list {
    grid-template-columns: 1fr;
  }

  .authority-number-list li {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .authority-shell {
    width: min(100% - 32px, 1120px);
  }

  .authority-hero {
    padding-top: 94px;
  }

  .authority-hero h1 {
    font-size: clamp(2.72rem, 14vw, 4.1rem);
  }

  .authority-table th,
  .authority-table td {
    padding: 18px;
  }

  .authority-resource-page .site-nav a {
    min-width: 44px;
    min-height: 44px;
  }

  .authority-resource-page .cs-footer-nav a {
    min-width: 44px;
  }

  .authority-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .authority-table {
    min-width: 0;
    border: 0;
  }

  .authority-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .authority-table,
  .authority-table tbody,
  .authority-table tr,
  .authority-table td {
    display: block;
    width: 100%;
  }

  .authority-table tr {
    margin-bottom: 16px;
    border: 1px solid var(--authority-line);
    background: #fbfaf7;
  }

  .authority-table td {
    border: 0;
    border-bottom: 1px solid var(--authority-line);
  }

  .authority-table td:last-child {
    border-bottom: 0;
  }

  .authority-table td::before {
    display: block;
    margin-bottom: 8px;
    color: #8a681a;
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }
}
