:root {
  --authority-ink: #16303d;
  --authority-paper: #fbfaf6;
  --authority-rule: #d7ddd9;
  --authority-teal: #236f66;
  --authority-coral: #d95f49;
  --authority-gold: #d7a94b;
}

.authority-page {
  color: var(--authority-ink);
  background:
    linear-gradient(rgba(27, 58, 75, .035) 1px, transparent 1px),
    var(--authority-paper);
  background-size: 100% 34px;
}

.authority-skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 2000;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--authority-ink);
  border-radius: .25rem;
}

.authority-skip:focus { top: 1rem; }

.authority-mast {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(22, 48, 61, .16);
  background: rgba(251, 250, 246, .96);
}

.authority-mast__inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.authority-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--authority-ink);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -.02em;
}

.authority-brand img { width: 34px; height: 34px; border-radius: 8px; }
.authority-mast nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.authority-mast nav a { color: #425865; font-size: .88rem; font-weight: 650; }
.authority-mast nav a:hover { color: var(--authority-teal); }

.authority-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--authority-rule);
  background: linear-gradient(120deg, #eef4f0 0 58%, #f7e7df 58% 100%);
}

.authority-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -72px;
  width: 220px;
  height: 220px;
  border: 24px solid rgba(35, 111, 102, .1);
  border-radius: 50%;
}

.authority-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1060px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7.5rem) 0 clamp(3rem, 7vw, 6rem);
}

.authority-kicker {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: 1.2rem;
  color: var(--authority-teal);
  font: 800 .76rem/1.2 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.authority-kicker::before { content: ""; width: 2.5rem; height: 2px; background: currentColor; }
.authority-hero h1 { max-width: 900px; margin-bottom: 1.5rem; font-size: clamp(2.25rem, 6vw, 4.9rem); line-height: .98; letter-spacing: -.055em; }
.authority-deck { max-width: 760px; margin: 0; color: #38505d; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.65; }
.authority-meta { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; color: #5e6f77; font-size: .84rem; }

.authority-layout {
  width: min(1060px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6.5rem) 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 6rem);
}

.authority-rail { position: sticky; top: 2rem; align-self: start; font-size: .82rem; }
.authority-rail strong { display: block; margin-bottom: .8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.authority-rail a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--authority-rule); color: #50636d; }

.authority-article { min-width: 0; }
.authority-article p,
.authority-article li { color: #334b58; font-size: 1.035rem; line-height: 1.82; }
.authority-article h2 { margin: 3.5rem 0 1rem; font-size: clamp(1.55rem, 3vw, 2.35rem); letter-spacing: -.03em; }
.authority-article h3 { margin: 2rem 0 .75rem; font-size: 1.22rem; }
.authority-article ul,
.authority-article ol { margin: 0 0 1.6rem 1.25rem; }
.authority-article ul { list-style: square; }
.authority-article ol { list-style: decimal; }
.authority-article li { margin-bottom: .5rem; padding-left: .25rem; }

.authority-tool {
  margin: 2.5rem 0;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgba(35, 111, 102, .28);
  border-left: 7px solid var(--authority-teal);
  border-radius: 0 18px 18px 0;
  background: #edf5f1;
  box-shadow: 0 16px 44px rgba(22, 48, 61, .07);
}

.authority-tool h2,
.authority-tool h3 { margin-top: 0; }
.authority-tool p:last-child,
.authority-tool ul:last-child,
.authority-tool ol:last-child { margin-bottom: 0; }

.authority-note {
  margin: 2rem 0;
  padding: 1.2rem 1.35rem;
  border: 1px solid #e9c9bd;
  border-radius: 12px;
  background: #fff4ef;
}

.authority-note strong { color: #8b3d30; }

.authority-table-wrap { margin: 2rem 0; overflow-x: auto; border: 1px solid var(--authority-rule); border-radius: 14px; background: #fff; }
.authority-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.authority-table caption { padding: 1rem; text-align: left; font-weight: 800; color: var(--authority-ink); }
.authority-table th,
.authority-table td { padding: .9rem 1rem; border-top: 1px solid var(--authority-rule); text-align: left; vertical-align: top; }
.authority-table th { background: #f0f3ef; color: var(--authority-ink); font-size: .88rem; }
.authority-table td { color: #3c515c; }

.authority-sources,
.authority-related {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--authority-ink);
}

.authority-sources ol { margin-left: 1.2rem; }
.authority-sources li { margin-bottom: .85rem; font-size: .92rem; }
.authority-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.authority-related a { display: block; padding: 1rem; border: 1px solid var(--authority-rule); border-radius: 10px; background: #fff; font-weight: 700; }

.authority-footer { padding: 2.5rem 0; color: #dfe8eb; background: var(--authority-ink); }
.authority-footer__inner { width: min(1060px, calc(100% - 2rem)); margin: 0 auto; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.authority-footer a { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.authority-footer p { margin: 0; color: #dfe8eb; font-size: .88rem; }

@media (max-width: 820px) {
  .authority-mast__inner { padding: .8rem 0; align-items: flex-start; }
  .authority-mast nav { justify-content: flex-end; gap: .55rem .85rem; }
  .authority-layout { grid-template-columns: 1fr; }
  .authority-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .authority-related__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .authority-mast__inner { display: block; }
  .authority-mast nav { margin-top: .75rem; justify-content: flex-start; }
  .authority-hero { background: linear-gradient(155deg, #eef4f0 0 74%, #f7e7df 74% 100%); }
  .authority-hero h1 { letter-spacing: -.04em; }
  .authority-rail { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .authority-page { scroll-behavior: auto; }
}
