/* Alaska Jobs — civic gazette.
   Paper, ink, spruce. Besley (Clarendon-adjacent ledger serif) for display,
   Public Sans (the U.S. government's open typeface) for body. Deliberately
   neither red nor blue anywhere. */

:root {
  --paper: #f6f2e8;
  --paper-deep: #efe9da;
  --ink: #1b211d;
  --ink-soft: #4c554e;
  --ink-faint: #6d756e;   /* darkened 2026-07-12 for WCAG contrast on paper */
  --spruce: #1e4d3b;
  --spruce-bright: #2c6e54;
  --brass: #8a6d2f;
  --seal: #6e2f1e;          /* wax-seal rust for the confidential module */
  --rule: #c9c0ab;
  --rule-dark: #9a917c;
  --serif: "Besley", Georgia, serif;
  --sans: "Public Sans", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  font-size: 16px;
  line-height: 1.55;
}

.sheet { max-width: 880px; margin: 0 auto; padding: 0 24px 64px; }

a { color: var(--spruce); }
a:hover { color: var(--spruce-bright); }

/* ---------------------------------------------------------- masthead */
.masthead { padding-top: 28px; text-align: center; }

.mast-top {
  display: flex; justify-content: space-between;
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: 6px; margin-bottom: 18px;
}
.mast-note {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}

.mast-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(44px, 9vw, 74px); line-height: 1;
  letter-spacing: 0.01em;
}
.mast-title a { color: var(--ink); text-decoration: none; }
.mast-title a:hover { color: var(--ink); }

.mast-tagline {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); font-size: 15px; margin-top: 8px;
}

.mast-nav {
  margin-top: 18px; padding: 10px 0;
  border-top: 3px double var(--rule-dark);
  border-bottom: 3px double var(--rule-dark);
  display: flex; justify-content: center; gap: 26px; flex-wrap: wrap;
}
.mast-nav a {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; text-decoration: none; color: var(--ink);
}
.mast-nav a:hover, .mast-nav a.on { color: var(--spruce); }
.mast-nav a.on { border-bottom: 2px solid var(--spruce); padding-bottom: 2px; }
.mast-nav a.mono { color: var(--brass); text-transform: none; letter-spacing: 0.04em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 500; }

/* ================================================================
   CAUCUS — the insiders' board (easter egg). A dark "backroom after
   hours" reskin: the same gazette, lit by a brass lamp. Achieved by
   flipping the palette variables for the whole page, then patching
   the few elements with hard-coded light surfaces.
   ================================================================ */
.caucus-mode {
  --paper: #15120d;
  --paper-deep: #1e190f;
  --ink: #ede4cd;
  --ink-soft: #b6ab8b;
  --ink-faint: #877d64;
  --rule: #322c1e;
  --rule-dark: #554d38;
  --brass: #d7ac52;
  --seal: #cf7a53;
  --spruce: #5aae84;
  --spruce-bright: #6fc79a;
}
.caucus-mode body, body.caucus-mode {
  background-color: #15120d;
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(215,172,82,0.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
/* masthead: brass wordmark + gold rules */
.caucus-mode .mast-title a { color: var(--brass); }
/* the wordmark buzzes to life like a back-room sign, then holds a faint glow */
.caucus-mode .mast-title {
  animation: sign-buzz 1.5s steps(1, end) 1 both;
}
@keyframes sign-buzz {
  0%, 6%, 13%, 19%   { opacity: 0.12; }
  3%, 9%, 16%        { opacity: 1; }
  24%                { opacity: 0.45; }
  30%, 100%          { opacity: 1; text-shadow: 0 0 20px rgba(215,172,82,0.35); }
}
/* the insiders get the "real", trademarked edition */
.mast-redact {
  font-family: var(--sans); font-size: 0.22em; font-weight: 600;
  color: var(--brass); vertical-align: super; margin-left: 0.15em;
  letter-spacing: 0; animation: redact-blink 4s steps(1) infinite;
}
@keyframes redact-blink { 0%, 92% { opacity: 0.9; } 94%, 100% { opacity: 0.2; } }
.caucus-mode .mast-tagline { color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) {
  .caucus-mode .mast-title { animation: none; }
  .mast-redact { animation: none; }
}
.caucus-mode .mast-nav { border-color: var(--rule-dark); }
.caucus-mode .mast-top { border-color: var(--rule-dark); }
/* search box + chips were hard-coded near-white */
.caucus-mode .filter-form input[type="search"] {
  background: #221c12; color: var(--ink); border-color: var(--rule-dark);
}
.caucus-mode .chip {
  background: rgba(215,172,82,0.06); border-color: var(--rule-dark); color: var(--ink-soft);
}
.caucus-mode .chip:hover { border-color: var(--brass); color: var(--brass); }
.caucus-mode .chip.on { background: var(--brass); border-color: var(--brass); color: #15120d; }
/* elections tag was a hard-coded dark blue — brighten for dark bg */
.caucus-mode .tag-elections { color: #6ea3c4; }
.caucus-mode .board-head { border-color: var(--brass); }


/* ---------------------------------------------------------- filters */
.filters { margin: 30px 0 8px; }

.filter-form { display: flex; gap: 8px; margin-bottom: 16px; }
.filter-form input[type="search"] {
  flex: 1; padding: 10px 14px; font: inherit;
  border: 1px solid var(--rule-dark); background: #fffdf7; color: var(--ink);
  border-radius: 0;
}
.filter-form input:focus { outline: 2px solid var(--spruce); outline-offset: -1px; }
.filter-form button {
  font: inherit; font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 10px 20px; cursor: pointer;
  background: var(--spruce); color: var(--paper); border: none;
}
.filter-form button:hover { background: var(--spruce-bright); }

.chip-rows {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule); margin-top: 4px;
}
.chip-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
}
.chip-label {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700;
  width: 62px; flex-shrink: 0; padding-top: 7px;
}
.chip-group { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; min-width: 0; }
.chip {
  font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: var(--ink-soft); padding: 5px 12px; line-height: 1.15;
  border: 1px solid var(--rule-dark); background: rgba(255,253,247,0.5);
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.chip:hover { border-color: var(--spruce); color: var(--spruce); background: #fffdf7; }
.chip.on { background: var(--spruce); border-color: var(--spruce); color: var(--paper); }
/* Access toggles read as switches, not one-of-many picks */
.chip-toggle::before {
  content: "+"; margin-right: 5px; color: var(--ink-faint); font-weight: 700;
}
.chip-toggle:hover::before { color: var(--spruce); }
.chip-toggle.on::before { content: "✓"; color: var(--paper); }

/* ---------------------------------------------------------- board */
.board-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 26px 0 4px; border-bottom: 2px solid var(--ink); padding-bottom: 6px;
}
.board-count { font-family: var(--serif); font-weight: 600; font-size: 18px; margin: 0; }
.board-note { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

.ledger { display: block; }
.row {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 16px 10px 15px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--rule);
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: calc(min(var(--i), 12) * 45ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .row { animation: none; } }

.row:hover { background: rgba(30, 77, 59, 0.05); }
.row h2 {
  font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.25;
}
.row:hover h2 { color: var(--spruce); }
.row-org { color: var(--ink-soft); font-size: 13.5px; margin-top: 2px; }

.row-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0; text-align: right; font-size: 12.5px; color: var(--ink-soft);
}
.row-salary { color: var(--brass); font-weight: 600; }
.row-closes { color: var(--ink-faint); font-size: 11.5px; }

.tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 8px; border: 1px solid currentColor;
}
.tag-legislative { color: var(--spruce); }
.tag-campaign { color: var(--seal); }
.tag-lobbying { color: var(--brass); }
.tag-agency_policy { color: var(--ink-soft); }
.tag-elections { color: #2f566e; }
.tag-nonprofit { color: #55632f; }
.tag-other { color: var(--ink-faint); }
.tag-session { color: var(--seal); border-style: dashed; }

.empty { padding: 48px 0; text-align: center; color: var(--ink-soft); }
.empty-sub { font-size: 13.5px; margin-top: 6px; }

/* ---------------------------------------------------------- notice (detail) */
.notice { margin-top: 30px; }
.crumbs { margin-bottom: 18px; font-size: 13px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumb-sep { color: var(--ink-faint); }

/* "More on the board" — internal-link mesh at the foot of every job page */
.more-board { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); }
.more-board h2 {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft); margin-bottom: 12px;
}
.more-jobs { list-style: none; margin: 0 0 14px; padding: 0; }
.more-jobs li { font-size: 14.5px; margin-bottom: 7px; }
.more-jobs a { font-weight: 600; text-decoration: none; }
.more-jobs a:hover { text-decoration: underline; }
.more-org { color: var(--ink-soft); font-size: 13px; }
.more-links { font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.more-links a { text-decoration: none; font-weight: 600; color: var(--spruce); }
.more-links a:hover { text-decoration: underline; }

.closed-banner {
  background: var(--paper-deep); border: 1px solid var(--rule-dark);
  padding: 10px 14px; font-size: 13.5px; margin-bottom: 18px; color: var(--ink-soft);
}

.notice-head { margin-bottom: 28px; }
.notice-head h1 { font-family: var(--serif); font-size: 32px; font-weight: 800; line-height: 1.15; margin: 8px 0 6px; }
.notice-org { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 16px; line-height: 1.45; max-width: 640px; }

.notice-facts {
  margin: 22px 0; border-top: 3px double var(--rule-dark); border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.notice-facts > div { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); }
.notice-facts dt {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700;
}
.notice-facts dd { font-size: 14px; margin-top: 2px; }
.fact-aside { color: var(--ink-faint); font-size: 12.5px; }

.notice-body { max-width: 660px; }
.notice-body p { margin-bottom: 12px; font-size: 15px; }

.apply { margin: 24px 0; }
.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 11px 22px; background: var(--spruce); color: var(--paper);
  border: none; cursor: pointer;
}
.btn:hover { background: var(--spruce-bright); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--rule-dark); }
.btn-ghost:hover { background: var(--paper-deep); color: var(--ink); }

/* ---------------------------------------------------- confidential module */
.confidential {
  margin-top: 40px; padding: 26px 28px;
  background: #f2ece0;
  border: 1px solid var(--rule-dark);
  outline: 1px solid var(--rule-dark); outline-offset: 4px;
}
.conf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.conf-seal { color: var(--seal); font-size: 22px; }
.conf-head h1, .conf-head h2 { font-family: var(--serif); font-weight: 800; font-size: 22px; }
.conf-explain { font-size: 14px; color: var(--ink-soft); max-width: 600px; margin-bottom: 18px; }

.conf-form .field { margin-bottom: 18px; }
.conf-form label {
  display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft); margin-bottom: 6px;
}
.conf-form .opt { color: var(--ink-faint); font-weight: 400; }
.conf-form input, .conf-form textarea, .conf-form select {
  width: 100%; padding: 9px 12px; font: inherit; font-size: 14.5px;
  border: 1px solid var(--rule-dark); background: #fffdf7; color: var(--ink);
  border-radius: 0;
}
.conf-form input:focus, .conf-form textarea:focus, .conf-form select:focus {
  outline: 2px solid var(--spruce); outline-offset: -1px;
}
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px 20px; }

.sealed-fields {
  border: 1px dashed var(--seal); padding: 16px 16px 4px; margin: 18px 0;
}
.sealed-fields legend {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--seal); padding: 0 8px;
}
.btn-seal { background: var(--seal); }
.btn-seal:hover { background: #8a3e28; }
.conf-fine { font-size: 12px; color: var(--ink-faint); margin-top: 10px; }
.form-error { color: var(--seal); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.req { color: var(--seal); font-weight: 700; }
.hp { position: absolute; left: -9999px; height: 1px; width: 1px; opacity: 0; }

.conf-status .notice-facts { border-top: none; }
.conf-warn {
  font-size: 13.5px; background: #f2ece0; border: 1px dashed var(--seal);
  padding: 10px 14px; margin: 16px 0; color: var(--ink-soft);
}
.conf-decision { margin-top: 20px; }
.conf-decision p { max-width: 560px; margin-bottom: 14px; }
.conf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* available ledger */
.btn-small { padding: 8px 16px; font-size: 11px; }
.conf-seal-inline { color: var(--seal); font-size: 0.85em; }
.avail-explain { font-size: 14px; color: var(--ink-soft); max-width: 640px; margin: 10px 0 4px; }
.conf-subhead { font-family: var(--serif); font-size: 19px; font-weight: 800;
  margin: 26px 0 10px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.intro-req { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.intro-req .conf-actions { margin-top: 8px; }
.conf-withdraw { margin-top: 24px; }
.state-review { color: var(--brass); }
.state-open { color: var(--spruce); font-weight: 600; }
.state-hidden { color: var(--ink-faint); }
.state-pending { color: var(--brass); }
.state-approved { color: var(--spruce); font-weight: 600; }

.state-submitted { color: var(--ink-soft); }
.state-intro_requested { color: var(--brass); font-weight: 600; }
.state-revealed { color: var(--spruce); font-weight: 600; }
.state-declined, .state-withdrawn { color: var(--ink-faint); }

/* ---------------------------------------------------------- about/admin */
.about h2 {
  font-family: var(--serif); font-size: 20px; font-weight: 800;
  margin: 26px 0 8px; padding-top: 14px; border-top: 1px solid var(--rule);
}
.about p { max-width: 640px; margin-bottom: 10px; font-size: 15px; }

.admin h2 { font-family: var(--serif); font-size: 20px; margin: 30px 0 10px;
  border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.admin-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.admin-row-tight { padding: 7px 0; font-size: 14px; }
.admin-sub { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.admin-revealed { color: var(--spruce); font-weight: 600; }
.admin-actions { display: flex; gap: 8px; align-items: flex-start; flex-shrink: 0; }
.admin-actions .btn { padding: 7px 14px; font-size: 11px; }
.btn-danger { background: var(--seal); }
.btn-danger:hover { background: #8a3e28; }
.mono-link a { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px;
  word-break: break-all; }

/* ---------------------------------------------------------- sources */
.sources { margin-top: 46px; }
.sources-title {
  font-family: var(--serif); font-size: 17px; font-weight: 800;
  border-bottom: 2px solid var(--ink); padding-bottom: 5px; margin-bottom: 2px;
}
.source-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 2px; border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.source-dot { font-size: 11px; }
.dot-ok { color: var(--spruce-bright); }
.dot-stale { color: var(--brass); }
.dot-failing { color: var(--seal); }
.source-label { font-weight: 600; }
.source-detail { color: var(--ink-soft); }
.source-when { margin-left: auto; color: var(--ink-faint); font-size: 12px; text-align: right; }
.source-empty { padding: 10px 0; color: var(--ink-soft); font-size: 13.5px; }
.sources-note { margin-top: 8px; font-size: 12px; color: var(--ink-faint); }
@media (max-width: 640px) {
  .source-row { flex-wrap: wrap; }
  .source-when { margin-left: 21px; width: 100%; text-align: left; }
}

/* ---------------------------------------------------------- economy */
.economy { margin-top: 28px; }
.econ-head h1 { font-family: var(--serif); font-size: 34px; font-weight: 800; line-height: 1.1; }
.econ-lede { font-family: var(--serif); font-style: italic; color: var(--ink-soft);
  font-size: 16px; margin-top: 8px; max-width: 640px; }

.econ-section { margin-top: 40px; }
.econ-section > h2 {
  font-family: var(--serif); font-size: 22px; font-weight: 800;
  border-bottom: 3px double var(--rule-dark); padding-bottom: 6px;
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px;
}
.econ-src { font-family: var(--sans); font-style: normal; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin: 20px 0 10px; }
.stat-card { border: 1px solid var(--rule-dark); padding: 16px 18px; background: rgba(255,253,247,0.4); }
.stat-n { display: block; font-family: var(--serif); font-size: 30px; font-weight: 800;
  color: var(--spruce); line-height: 1; }
.stat-l { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 6px; }

.chart-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px 44px; align-items: start; margin-top: 16px;
}
.chart-wide { grid-column: 1 / -1; }
.chart-block { margin: 14px 0; min-width: 0; }
.chart-block h3 { font-family: var(--serif); font-size: 15px; font-weight: 600;
  margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 6px; }
.chart { width: 100%; height: auto; overflow: visible; }
.cbar-label { font-family: var(--sans); font-size: 12px; fill: var(--ink); }
.cbar-val { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-soft); font-weight: 600; }
.chart-empty { color: var(--ink-faint); font-size: 13.5px; font-style: italic; }

.econ-lede2 { font-size: 14.5px; color: var(--ink-soft); max-width: 660px; margin: 12px 0 4px; }
.stat-card-alt .stat-n { color: var(--seal); }
.econ-cross { background: var(--paper-deep); border: 1px solid var(--rule-dark);
  padding: 20px 24px; }
.econ-cross h2 { border: none; padding: 0; margin-bottom: 10px; }
.econ-cross p { max-width: 660px; font-size: 15px; margin-bottom: 8px; }
.econ-note { font-size: 13px; color: var(--ink-faint); font-style: italic; }
.econ-foot { margin-top: 30px; font-size: 12px; color: var(--ink-faint); max-width: 680px; }

/* analytics query tables */
.q-table { border-top: 1px solid var(--rule); margin-top: 6px; }
.q-row { display: grid; grid-template-columns: 1fr 60px 60px 60px; gap: 8px;
  padding: 6px 4px; border-bottom: 1px solid var(--rule); font-size: 13px; }
.q-row span:not(:first-child) { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.q-head { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; }
.q-head span { color: var(--ink-faint) !important; }
.admin-analytics .q-table + .q-table { margin-top: 14px; }
.q-row5 { grid-template-columns: 1fr 52px 46px 52px 44px; }
.q-idx { grid-template-columns: minmax(90px, 1fr) 1.5fr 82px; }
.q-idx span:not(:first-child) { text-align: left; }
.idx-ok { color: var(--spruce) !important; font-weight: 600; }
.idx-no { color: var(--brass) !important; }
.delta { font-size: 11px; font-weight: 600; margin-left: 2px; }
.delta.up { color: var(--spruce); }
.delta.down { color: var(--seal); }
/* SEO checklist */
.seo-item { display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rule); }
.seo-main { min-width: 0; }
.seo-metric { font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-left: 6px; }
.seo-trend { margin-top: 8px; max-width: 340px; }
.seo-trend-label { font-size: 11px; color: var(--ink-faint); }
.seo-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }
.seo-badge { font-size: 11px; color: var(--brass); font-weight: 600; white-space: nowrap; }

/* ---------------------------------------------------------- landing pages */
.landing-head { margin: 26px 0 6px; }
.landing-head h1 {
  font-family: var(--serif); font-size: 30px; font-weight: 800; line-height: 1.12;
}
.landing-intro {
  font-size: 15px; color: var(--ink-soft); margin-top: 8px; max-width: 640px;
}
.landing-intro a { white-space: nowrap; font-weight: 600; }
.landing-stats {
  margin-top: 10px; font-size: 13px; color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.landing-stats strong { color: var(--spruce); font-weight: 700; }

/* "Notes on the beat" — hand-written editorial below the landing listings */
.landing-notes {
  margin: 44px auto 8px; max-width: 660px; padding: 26px 30px;
  background: #f2ece0; border: 1px solid var(--rule-dark);
}
.landing-notes h2 {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--brass); margin-bottom: 12px;
}
.landing-notes p {
  font-family: var(--serif); font-size: 15.5px; line-height: 1.62;
  margin-bottom: 12px;
}
.landing-notes a { font-weight: 600; }
.landing-notes-byline {
  font-family: var(--sans, inherit); font-size: 13px !important;
  color: var(--ink-soft); font-style: italic; margin-bottom: 0 !important;
}

/* ---------------------------------------------------------- field guides */
.guide { margin-top: 30px; }
.guide-head { margin-bottom: 26px; }
.guide-kicker {
  display: inline-block; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700; color: var(--seal);
  margin-bottom: 10px;
}
.guide-head h1 {
  font-family: var(--serif); font-size: 34px; font-weight: 800; line-height: 1.1;
  max-width: 680px;
}
.guide-byline {
  margin-top: 12px; font-size: 13.5px; color: var(--ink-soft);
  padding-bottom: 16px; border-bottom: 1px solid var(--rule-dark);
  max-width: 680px;
}
.guide-body { max-width: 680px; }
.guide-lede {
  font-family: var(--serif); font-size: 18px; line-height: 1.55;
  color: var(--ink); margin-bottom: 26px;
}
.guide-body h2 {
  font-family: var(--serif); font-size: 21px; font-weight: 800;
  margin: 32px 0 10px;
}
.guide-body p { font-size: 15.5px; line-height: 1.66; margin-bottom: 14px; }
.guide-body ul { margin: 0 0 16px 20px; }
.guide-body li { font-size: 15.5px; line-height: 1.6; margin-bottom: 10px; }
.guide-body a { font-weight: 600; }
.guide-terms dt {
  font-weight: 700; font-size: 15.5px; margin-top: 18px;
  font-family: var(--serif);
}
.guide-terms dd { font-size: 15px; line-height: 1.62; margin: 6px 0 0 0; }
.guide-list { display: grid; gap: 18px; max-width: 680px; margin-top: 8px; }
.guide-card {
  display: block; padding: 22px 26px; text-decoration: none; color: inherit;
  background: #f2ece0; border: 1px solid var(--rule-dark);
}
.guide-card:hover { outline: 1px solid var(--rule-dark); outline-offset: 3px; }
.guide-card h2 {
  font-family: var(--serif); font-size: 20px; font-weight: 800; line-height: 1.2;
}
.guide-card p { font-size: 14px; color: var(--ink-soft); margin-top: 8px; line-height: 1.55; }
.guide-more {
  display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700;
  color: var(--spruce);
}

/* ---------------------------------------------------------- salary pages */
.sal-tiles { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 26px; }
.sal-tile {
  padding: 16px 20px; background: #f2ece0; border: 1px solid var(--rule-dark);
  min-width: 150px;
}
.sal-tile-main { outline: 1px solid var(--rule-dark); outline-offset: 3px; }
.sal-num {
  display: block; font-family: var(--serif); font-size: 24px; font-weight: 800;
  color: var(--spruce);
}
.sal-tile-main .sal-num { font-size: 30px; color: var(--seal); }
.sal-label {
  display: block; margin-top: 4px; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600; color: var(--ink-soft);
}
.sal-cite {
  font-family: var(--serif); font-size: 16.5px; line-height: 1.6;
  padding: 14px 18px; background: #f2ece0; border-left: 3px solid var(--brass);
  margin-bottom: 22px;
}
.sal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
.sal-table th {
  text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 2px solid var(--rule-dark); padding: 6px 10px;
}
.sal-table td { padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.sal-table a { font-weight: 600; text-decoration: none; }
.sal-table a:hover { text-decoration: underline; }
.sal-hr { font-size: 11.5px; color: var(--ink-faint); }
.sal-index td:nth-child(2) { font-weight: 700; color: var(--spruce); }
.sal-scroll { overflow-x: auto; }
.sal-scroll .sal-table { min-width: 720px; }
.sal-note { font-size: 13px; color: var(--ink-soft); margin: 14px 0 8px; max-width: 640px; }
.sal-diff-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px; margin: 16px 0;
}
.sal-diff {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 6px 10px; font-size: 13px; border: 1px solid var(--rule);
  background: var(--paper);
}
.sal-diff-mid { background: #f2ece0; }
.sal-diff-hi { background: #ece2cc; border-color: var(--rule-dark); }
.sal-diff strong { color: var(--spruce); }

.mono-block {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px;
  background: #ece7d8; border: 1px solid var(--rule); padding: 10px 14px;
  overflow-x: auto; margin: 10px 0 16px; white-space: pre;
}

/* guide extras: live stat line + FAQ block */
.guide-statline {
  max-width: 680px; margin: 14px 0 4px; padding: 10px 14px;
  font-size: 13.5px; color: var(--ink-soft);
  background: #f2ece0; border-left: 3px solid var(--spruce);
}
.guide-statline strong { color: var(--spruce); }
.guide-faq { margin-top: 34px; border-top: 1px solid var(--rule-dark); padding-top: 8px; }
.guide-faq details { border-bottom: 1px solid var(--rule); padding: 10px 0; }
.guide-faq summary {
  cursor: pointer; font-weight: 700; font-size: 15.5px;
  font-family: var(--serif);
}
.guide-faq details p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ---------------------------------------------------------- free tools */
.tool-panel {
  margin: 22px 0; padding: 24px 26px; background: #f2ece0;
  border: 1px solid var(--rule-dark); outline: 1px solid var(--rule-dark);
  outline-offset: 4px;
}
.tool-controls { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-bottom: 20px; }
.tool-controls label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft);
}
.tool-controls select, .tool-controls input {
  font: inherit; font-size: 14.5px; padding: 8px 10px;
  border: 1px solid var(--rule-dark); background: var(--paper); min-width: 160px;
}
.tool-panel .sal-tiles { margin: 6px 0 4px; }
.tool-panel .sal-tile { background: var(--paper); }

/* ---------------------------------------------------------- footer */
.foot-directory {
  display: flex; flex-wrap: wrap; gap: 12px 60px; justify-content: center;
  text-align: left; margin: 4px auto 22px; max-width: 640px;
}
.foot-dir-col { display: flex; flex-direction: column; gap: 4px; }
.foot-dir-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin-bottom: 3px;
}
.foot-dir-col a { font-size: 13px; color: var(--ink-soft); text-decoration: none; }
.foot-dir-col a:hover { color: var(--spruce); }

.foot { margin-top: 38px; text-align: center; color: var(--ink-soft); font-size: 13.5px; }
.foot-admin { color: var(--rule-dark); text-decoration: none; margin-left: 2px; }
.foot-admin:hover { color: var(--brass); }
.foot-tagline { max-width: 640px; margin: 0 auto; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.rule-double { border-top: 3px double var(--rule-dark); margin-bottom: 16px; }
.foot-small { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 640px) {
  .row { flex-direction: column; gap: 8px; }
  .row-meta { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; }
  .mast-top { flex-direction: column; gap: 2px; align-items: center; }
  .confidential { padding: 20px 16px; }
}

/* ---------------------------------------------------------- trust layer */
.mast-note-link { color: var(--spruce); text-decoration: none; font-weight: 700; }
.mast-note-link:hover { text-decoration: underline; }
.mast-trust {
  margin-top: 10px; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 600;
}
.mast-trust a { color: var(--brass); text-decoration: none; }
.mast-trust a:hover { text-decoration: underline; }
.row-src {
  display: block; font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* sources & status page */
.src-table { margin: 8px 0 26px; border-top: 1px solid var(--rule-dark); }
.src-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.src-main { flex: 1; min-width: 0; }
.src-main strong { font-family: var(--serif); font-size: 16px; }
.src-site { font-size: 12px; margin-left: 10px; font-weight: 600; text-decoration: none; }
.src-detail { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.src-count {
  font-family: var(--serif); font-weight: 700; color: var(--spruce);
  white-space: nowrap;
}

/* 404 */
.notfound .nf-search { max-width: 560px; margin: 20px 0; }

/* ---------------------------------------------------------- accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--spruce); color: var(--paper); padding: 10px 18px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--spruce); outline-offset: 2px;
}

/* ---------------------------------------------------------- print */
.print-only { display: none; }
@media print {
  .masthead, .foot, .filters, .confidential, .more-board, .crumbs,
  .skip-link, .apply .btn { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .sheet { max-width: 100%; padding: 0; }
  .print-only {
    display: block; margin-top: 24pt; padding-top: 8pt;
    border-top: 1pt solid #000; font-size: 10pt; color: #000;
  }
  a { color: #000; text-decoration: none; }
}
