/*
 * Cult Watchdog — shared site shell.
 * Loaded after each page's legacy stylesheet so one navigation, one type
 * scale, one colour system and one responsive rhythm cover the whole site.
 */

:root {
  --cw-bg: #090c10;
  --cw-bg-soft: #0d1218;
  --cw-panel: #111820;
  --cw-panel-soft: #0e141a;
  --cw-line: #24313c;
  --cw-line-soft: #1a242d;
  --cw-text: #edf2f7;
  --cw-muted: #9eacb8;
  --cw-faint: #6d7e8b;
  --cw-brass: #d7a34d;
  --cw-brass-bright: #f0c477;
  --cw-blue: #7aa2f7;
  --cw-green: #65c982;
  --cw-red: #ed766c;
  --cw-page-accent: #d7a34d;
  --cw-max: 1240px;
  --cw-bar-h: 64px;
  --cw-radius: 14px;
}

html {
  scroll-behavior: smooth;
  background: var(--cw-bg);
}

body {
  margin: 0;
  background-color: var(--cw-bg);
  background-image:
    radial-gradient(1100px 620px at 72% -160px, rgba(44, 65, 82, .34), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .012), transparent 360px);
  background-repeat: no-repeat;
  color: var(--cw-text);
  font: 16px/1.72 'Source Serif 4', 'Charter', 'Iowan Old Style', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(215, 163, 77, .28);
  color: #fff7e9;
}

a {
  color: var(--cw-blue);
  text-decoration-thickness: .055em;
  text-underline-offset: .17em;
}

a:hover {
  color: #a8c2ff;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--cw-brass-bright);
  outline-offset: 3px;
}

/* Keep anchors clear of the sticky header and section bar. */
[id] {
  scroll-margin-top: calc(var(--cw-bar-h) + 72px);
}

.cw-skip {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 3000;
  transform: translateY(-160%);
  border: 1px solid var(--cw-brass);
  border-radius: 8px;
  background: #10161d;
  color: var(--cw-text);
  padding: 10px 15px;
  font: 600 12px/1 'Inter', 'Segoe UI', Arial, sans-serif;
  text-decoration: none;
  transition: transform .16s ease;
}

.cw-skip:focus {
  transform: translateY(0);
  color: var(--cw-text);
}

/* ---------------------------------------------------------------- site bar */

.cw-sitebar {
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(64, 82, 96, .56);
  background: rgba(9, 12, 16, .93);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.cw-sitebar-inner {
  width: 100%;
  max-width: var(--cw-max);
  height: var(--cw-bar-h);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cw-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--cw-text);
  text-decoration: none;
}

.cw-brand:hover {
  color: var(--cw-text);
  text-decoration: none;
}

.cw-mark {
  position: relative;
  width: 29px;
  height: 29px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 163, 77, .44);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(215, 163, 77, .13), transparent 68%);
}

.cw-mark::before {
  content: '';
  width: 13px;
  height: 13px;
  border: 1px solid rgba(240, 196, 119, .86);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(215, 163, 77, .18);
}

.cw-mark::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cw-brass-bright);
  box-shadow: 0 0 10px rgba(240, 196, 119, .7);
}

.cw-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cw-brand-text b {
  font: 650 14px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .025em;
}

.cw-brand-text small {
  color: var(--cw-faint);
  font: 500 8.5px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.cw-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.cw-navlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--cw-muted);
  font: 550 12.5px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.cw-navlink:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--cw-text);
  text-decoration: none;
}

.cw-navlink.is-current {
  background: rgba(255, 255, 255, .045);
  color: var(--cw-text);
}

.cw-navlink.is-current::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 1px;
  background: var(--cw-brass);
}

.cw-navlink .cw-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(215, 163, 77, .32);
  border-radius: 999px;
  color: var(--cw-brass-bright);
  font-size: 9px;
  line-height: 1;
}

.cw-chevron {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 1px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.cw-menu {
  position: relative;
}

.cw-menu > summary {
  list-style: none;
}

.cw-menu > summary::-webkit-details-marker {
  display: none;
}

.cw-menu[open] > summary {
  background: rgba(255, 255, 255, .055);
  color: var(--cw-text);
}

.cw-menu[open] .cw-chevron {
  transform: rotate(225deg);
  margin-top: 3px;
}

.cw-mega {
  position: absolute;
  top: calc(100% + 13px);
  left: -14px;
  z-index: 1100;
  width: min(880px, calc(100vw - 48px));
  padding: 22px;
  border: 1px solid #2b3945;
  border-radius: 17px;
  background:
    radial-gradient(600px 260px at 88% -20%, rgba(215, 163, 77, .08), transparent 65%),
    #0f151c;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .58), 0 2px 0 rgba(255, 255, 255, .03) inset;
  animation: cw-menu-in .15s ease-out;
}

@keyframes cw-menu-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.cw-mega-head {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 20px;
  padding: 1px 4px 18px;
  border-bottom: 1px solid var(--cw-line-soft);
}

.cw-mega-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--cw-brass);
  font: 650 9px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.cw-mega-head strong {
  display: block;
  color: var(--cw-text);
  font: 600 22px/1.18 'Source Serif 4', Georgia, serif;
  letter-spacing: -.025em;
}

.cw-mega-head p {
  max-width: 520px;
  margin: 0;
  color: var(--cw-faint);
  font: 11.8px/1.65 'Inter', 'Segoe UI', Arial, sans-serif;
}

.cw-mega-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr .9fr;
  gap: 20px;
}

.cw-mega-col + .cw-mega-col {
  padding-left: 20px;
  border-left: 1px solid var(--cw-line-soft);
}

.cw-mega-label {
  margin: 2px 8px 8px;
  color: var(--cw-faint);
  font: 650 9px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.cw-mega-link {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 9px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--cw-muted);
  text-decoration: none;
}

.cw-mega-link:hover {
  border-color: var(--cw-line);
  background: rgba(255, 255, 255, .035);
  color: var(--cw-text);
  text-decoration: none;
}

.cw-mega-link.is-current {
  border-color: rgba(215, 163, 77, .3);
  background: rgba(215, 163, 77, .065);
}

.cw-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--dot, var(--cw-brass));
  box-shadow: 0 0 9px color-mix(in srgb, var(--dot, var(--cw-brass)) 50%, transparent);
}

.cw-mega-link-text {
  min-width: 0;
}

.cw-mega-link strong {
  display: block;
  color: var(--cw-text);
  font: 600 12.2px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
}

.cw-mega-link small {
  display: block;
  margin-top: 3px;
  color: var(--cw-faint);
  font: 10.5px/1.45 'Inter', 'Segoe UI', Arial, sans-serif;
}

.cw-burger {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid var(--cw-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: var(--cw-text);
  font: 600 11.5px/1 'Inter', 'Segoe UI', Arial, sans-serif;
  cursor: pointer;
}

.cw-burger-lines {
  display: grid;
  gap: 3px;
}

.cw-burger-lines i {
  display: block;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

.cw-mobile {
  position: fixed;
  inset: var(--cw-bar-h) 0 0;
  z-index: 990;
  overflow: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--cw-line);
  background:
    radial-gradient(700px 380px at 90% 0, rgba(215, 163, 77, .07), transparent 65%),
    #0a0e12;
}

.cw-mobile[hidden] {
  display: none;
}

.cw-mobile-inner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 22px 20px 54px;
}

.cw-mobile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 4px 6px 16px;
  border-bottom: 1px solid var(--cw-line);
}

.cw-mobile-head strong {
  color: var(--cw-text);
  font: 600 20px/1.2 'Source Serif 4', Georgia, serif;
}

.cw-mobile-head span {
  color: var(--cw-faint);
  font: 10px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cw-mobile-group {
  padding: 16px 6px 7px;
}

.cw-mobile-group + .cw-mobile-group {
  border-top: 1px solid var(--cw-line-soft);
}

.cw-mobile-label {
  margin: 0 0 6px;
  color: var(--cw-brass);
  font: 650 9px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cw-mobile-link {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--cw-muted);
  text-decoration: none;
}

.cw-mobile-link:hover,
.cw-mobile-link.is-current {
  border-color: var(--cw-line);
  background: rgba(255, 255, 255, .035);
  color: var(--cw-text);
  text-decoration: none;
}

.cw-mobile-link strong {
  font: 550 13px/1.35 'Inter', 'Segoe UI', Arial, sans-serif;
}

.cw-mobile-link small {
  display: block;
  margin-top: 2px;
  color: var(--cw-faint);
  font: 10.5px/1.4 'Inter', 'Segoe UI', Arial, sans-serif;
}

.cw-mobile-arrow {
  color: var(--cw-faint);
  font-size: 14px;
}

body.cw-menu-open {
  overflow: hidden;
}

/* -------------------------------------------------------------- page hero */

.cw-pagehead {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(42px, 5.4vw, 76px) 28px clamp(32px, 4vw, 48px);
  border: 0;
  border-bottom: 1px solid var(--cw-line-soft);
  background:
    radial-gradient(760px 360px at 80% -20%, color-mix(in srgb, var(--cw-page-accent) 9%, transparent), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, .014), transparent 85%);
}

.cw-pagehead::after {
  content: '';
  position: absolute;
  top: -165px;
  right: -125px;
  width: 480px;
  height: 480px;
  border: 1px solid color-mix(in srgb, var(--cw-page-accent) 12%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 66px color-mix(in srgb, var(--cw-page-accent) 3.3%, transparent),
    0 0 0 132px color-mix(in srgb, var(--cw-page-accent) 1.7%, transparent);
  pointer-events: none;
}

.cw-pagehead-inner {
  position: relative;
  z-index: 1;
  max-width: var(--cw-max);
  margin: 0 auto;
}

.cw-pagehead--inset {
  overflow: visible;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--cw-line-soft);
  background: none;
}

.cw-pagehead--inset::after {
  display: none;
}

.cw-pagehead--inset .cw-page-title {
  font-size: clamp(40px, 5.6vw, 64px);
}

.cw-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--cw-faint);
  font: 650 9.5px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cw-eyebrow-group {
  flex: none;
  color: var(--cw-page-accent);
  white-space: nowrap;
}

.cw-eyebrow-rule {
  width: 24px;
  height: 1px;
  background: var(--cw-line);
}

.cw-page-title {
  max-width: 920px;
  margin: 0;
  color: var(--cw-text);
  font: 600 clamp(43px, 6.3vw, 78px)/.98 'Source Serif 4', 'Charter', Georgia, serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.cw-pagehead .back {
  margin: 0 0 12px;
  color: var(--cw-muted);
  font: 600 11px/1.4 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.cw-pagehead .back a {
  display: inline;
  margin: 0;
  color: var(--cw-muted);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.cw-pagehead .back + .brand .tagline,
.cw-pagehead .back + .tagline {
  margin-top: 0;
}

.cw-pagehead .brand {
  display: block;
  max-width: 900px;
  margin: 0;
  padding: 0;
  gap: 0;
}

.cw-pagehead .brand > h1,
.cw-pagehead .brand > div > h1,
.cw-pagehead .brand .sub-org {
  display: none;
}

.cw-pagehead .brand .tagline,
.cw-pagehead .tagline {
  display: block;
  max-width: 790px;
  margin: 20px 0 0;
  color: var(--cw-muted);
  font-size: 17.2px;
  line-height: 1.72;
}

.cw-pagehead .tagline.cw-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cw-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cw-brass-bright);
  font: 600 10.5px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.cw-readmore::after {
  content: '+';
  font-size: 13px;
  line-height: 1;
}

.cw-readmore[aria-expanded="true"]::after {
  content: '−';
}

.cw-pagehead .kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
}

.cw-pagehead .kpi {
  flex: 1 1 128px;
  min-width: 0;
  margin: 0;
  padding: 9px 13px 8px;
  border: 1px solid var(--cw-line-soft);
  border-radius: 9px;
  background: rgba(255, 255, 255, .024);
  text-align: left;
}

.cw-pagehead .kpi .n {
  color: var(--cw-text);
  font: 600 17px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.cw-pagehead .kpi .l {
  margin-top: 2px;
  color: var(--cw-faint);
  font: 500 8.6px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* -------------------------------------------------------- section tab bar */

body .tabs {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 14px max(20px, calc((100vw - var(--cw-max)) / 2 + 28px));
  border: 0;
  border-bottom: 1px solid var(--cw-line);
  background: rgba(9, 12, 16, .76);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}

body .tabs::before {
  content: 'Sections';
  flex: none;
  margin: 0 7px 0 0;
  color: var(--cw-faint);
  font: 650 8.5px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

body[data-page="index"] .tabs::before,
body[data-page="Dashboard"] .tabs::before {
  content: 'Views';
}

body .itab,
body .tab {
  flex: 0 1 auto;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--cw-muted);
  box-shadow: none;
  font: 550 12px/1.25 'Inter', 'Segoe UI', Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

body .itab:hover,
body .tab:hover {
  border-color: var(--cw-line);
  background: rgba(255, 255, 255, .035);
  color: var(--cw-text);
}

body .itab.active,
body .tab.active {
  border-color: var(--cw-line);
  background: rgba(255, 255, 255, .065);
  color: var(--cw-text);
  box-shadow: inset 0 -2px var(--cw-page-accent);
}

body .tabs .home {
  display: none;
}

.cw-tabselect {
  display: none;
}

.cw-tabselect select {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--cw-line);
  border-radius: 8px;
  background: #10171e;
  color: var(--cw-text);
  padding: 8px 34px 8px 11px;
  font: 550 12px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Search sits below the section list, never on top of it. */
.cw-searchbar {
  max-width: var(--cw-max);
  margin: 0 auto;
  padding: 17px 28px 19px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 410px);
  gap: 10px 30px;
  align-items: center;
  border-bottom: 1px solid var(--cw-line-soft);
  background: rgba(255, 255, 255, .012);
}

.cw-searchbar[hidden] {
  display: none;
}

.cw-searchbar label {
  display: block;
  color: var(--cw-text);
  font: 600 13px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
}

.cw-search-copy p {
  max-width: 620px;
  margin: 4px 0 0;
  color: var(--cw-faint);
  font: 10.5px/1.5 'Inter', 'Segoe UI', Arial, sans-serif;
}

.cw-search-status {
  min-height: 1em;
  color: var(--cw-brass-bright) !important;
}

.cw-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cw-search-field input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 38px;
  border: 1px solid var(--cw-line);
  border-radius: 9px;
  background: #10171e;
  color: var(--cw-text);
  padding: 8px 11px;
  font: 500 12px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
}

.cw-search-field input::placeholder {
  color: var(--cw-faint);
}

.cw-clear {
  flex: none;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--cw-line);
  border-radius: 9px;
  background: transparent;
  color: var(--cw-muted);
  font: 600 10px/1 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}

.cw-clear:hover {
  border-color: var(--cw-brass);
  color: var(--cw-text);
}

/* Dashboard organisation picker. Only the two live datasets sit on the bar;
   the other traditions live in a compact disclosure, not a sideways rail. */
body .pickrow {
  position: relative;
  max-width: var(--cw-max);
  margin: 0 auto;
  padding: 15px 28px 0;
  gap: 6px;
  flex-wrap: wrap;
  overflow: visible;
}

body .picklbl {
  flex: none;
  margin-right: 2px;
  color: var(--cw-faint);
  font: 650 8.5px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .14em;
}

body .pick {
  flex: none;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--cw-muted);
  font: 500 11.5px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
}

body a.pick {
  text-decoration: none;
}

body .pick:hover {
  border-color: var(--cw-line);
  background: rgba(255, 255, 255, .035);
  color: var(--cw-text);
  text-decoration: none;
}

body .pick.active {
  border-color: var(--cw-line);
  background: rgba(255, 255, 255, .065);
  box-shadow: inset 0 -2px var(--cw-page-accent);
  color: var(--cw-text);
}

.cw-pickmore {
  position: static;
  margin-left: auto;
}

.cw-pickmore > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--cw-line);
  border-radius: 7px;
  color: var(--cw-muted);
  font: 500 11.5px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
  list-style: none;
  cursor: pointer;
}

.cw-pickmore > summary::-webkit-details-marker {
  display: none;
}

.cw-pickmore > summary:hover,
.cw-pickmore[open] > summary {
  border-color: rgba(215, 163, 77, .45);
  background: rgba(255, 255, 255, .035);
  color: var(--cw-text);
}

.cw-pickcount {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(215, 163, 77, .3);
  border-radius: 999px;
  color: var(--cw-brass-bright);
  font-size: 9px;
  line-height: 1;
}

.cw-picklist {
  position: absolute;
  top: calc(100% + 8px);
  right: 28px;
  z-index: 130;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px 16px;
  width: min(560px, calc(100% - 56px));
  padding: 15px 17px;
  border: 1px solid #2b3945;
  border-radius: 14px;
  background: #0f151c;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .55);
}

.cw-picklink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--cw-muted);
  font: 500 11.5px/1.35 'Inter', 'Segoe UI', Arial, sans-serif;
  text-decoration: none;
}

.cw-picklink:hover {
  border-color: var(--cw-line);
  background: rgba(255, 255, 255, .035);
  color: var(--cw-text);
  text-decoration: none;
}

body .trinitybar {
  display: none;
}

/* ------------------------------------------------------------------- main */

/* Original-language quotations and citation URLs can contain very long
   unbroken runs. Let them wrap before they widen the page. */
body p,
body li,
body td,
body th,
body dd {
  overflow-wrap: anywhere;
}

body > main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 28px 88px;
}

body .sub {
  max-width: 850px;
  margin: 0 0 22px;
  color: var(--cw-muted);
  font-size: 16.2px;
  line-height: 1.7;
}

body .intro,
body .blede,
body .panel {
  border-color: var(--cw-line);
  border-radius: var(--cw-radius);
  background: var(--cw-panel-soft);
}

body .dsec {
  max-width: 980px;
}

body .dtitle {
  margin: 44px 0 12px;
  color: var(--cw-text);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.02em;
}

body .dsec > .dtitle:first-child {
  margin-top: 4px;
}

body .dtitle .num {
  color: var(--cw-page-accent);
}

body .dtitle .criterion-ref {
  margin-left: 9px;
  padding: 3px 9px;
  border: 1px solid rgba(232, 178, 58, .32);
  border-radius: 999px;
  color: var(--cw-brass-bright);
  font: 600 9.5px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .045em;
  vertical-align: 3px;
}

body .qblock {
  margin: 15px 0;
  padding: 16px 20px 13px;
  border: 1px solid var(--cw-line);
  border-left: 3px solid var(--cw-page-accent);
  border-radius: 0 12px 12px 0;
  background: #0b1117;
}

body .qblock p {
  margin: 0 0 7px;
  color: var(--cw-text);
  font-size: 16.4px;
  line-height: 1.76;
}

body .qblock p.ar {
  padding-top: 11px;
  margin-top: 11px;
  font-size: 18px;
  line-height: 2.05;
}

body .qblock p.wfw {
  margin-bottom: 9px;
  padding-bottom: 9px;
  color: var(--cw-faint);
  font-size: 11.6px;
  line-height: 1.72;
}

body .vref {
  color: var(--cw-faint);
  font-size: 10.3px;
  letter-spacing: .085em;
}

body p.ex {
  margin: 13px 0;
  color: var(--cw-muted);
  font-size: 16px;
  line-height: 1.78;
}

body .danger,
body .defense,
body .crit-def {
  margin: 18px 0;
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 15.1px;
  line-height: 1.7;
}

body .danger b,
body .defense b,
body .crit-def b {
  font-size: 9.7px;
  letter-spacing: .09em;
}

body .verdict {
  margin: 18px 0;
  padding: 4px 0 4px 15px;
  border-left: 3px solid var(--cw-red);
  color: var(--cw-text);
  font-size: 16px;
  line-height: 1.72;
}

body .verdict b {
  color: #f28b82;
}

body .card {
  max-width: 980px;
  margin: 11px 0;
  border: 1px solid var(--cw-line);
  border-radius: var(--cw-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .017), transparent 70%), var(--cw-panel);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .12);
  transition: border-color .15s ease, transform .15s ease;
}

body .card:hover {
  border-color: #324352;
}

body .card .row {
  padding: 15px 18px;
  gap: 13px;
  align-items: flex-start;
}

body .card .title {
  font-size: 16px;
  line-height: 1.55;
}

body .card .date {
  margin-top: 1px;
  padding: 2px 7px;
  border-color: var(--cw-line);
  border-radius: 6px;
  color: var(--cw-faint);
  font-size: 10.5px;
}

body .card .detail {
  padding: 0 20px 18px;
  border-top-color: var(--cw-line-soft);
}

body .card.open {
  border-color: rgba(122, 162, 247, .32);
}

body .card.open .detail {
  padding-top: 14px;
}

body .card .detail p {
  margin: 9px 0;
  font-size: 15.2px;
  line-height: 1.72;
}

body .lbl {
  margin-top: 15px;
  color: var(--cw-faint);
  font-size: 8.8px;
  letter-spacing: .14em;
}

body .year {
  margin: 28px 0 9px;
  color: var(--cw-faint);
  font-size: 10.5px;
  letter-spacing: .19em;
}

body .era {
  margin: 30px 0 9px;
  font-size: 10.5px;
  letter-spacing: .16em;
}

body p.srcs {
  margin-top: 10px;
  color: var(--cw-faint);
  font-size: 10.6px;
  line-height: 1.65;
}

body p.srcs b {
  color: var(--cw-muted);
  font-size: 9px;
  letter-spacing: .1em;
}

body .cmpwrap {
  max-width: 100%;
  margin: 12px 0 26px;
  border-color: var(--cw-line);
  border-radius: var(--cw-radius);
  background: var(--cw-panel-soft);
}

/* The dashboard redraws the scatter at the container's width, so the chart
   stays readable without a sideways swipe. */
.cw-chartwrap {
  width: 100%;
  max-width: 100%;
  margin: 0 0 9px;
  overflow: visible;
}

.cw-chartwrap > svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

body table.cmp caption {
  padding: 15px 17px 7px;
  color: var(--cw-muted);
  font-size: 11px;
}

body table.cmp th,
body table.cmp td {
  padding: 11px 14px;
}

body .branchfull,
body .branchcard {
  border-color: var(--cw-line);
  border-radius: var(--cw-radius);
  background: var(--cw-panel);
}

body .branchfull {
  padding: 21px 22px;
}

body .branchcard {
  background: var(--cw-panel-soft);
}

body .maplist li {
  color: var(--cw-muted);
  font-size: 15.2px;
  line-height: 1.65;
}

body .gosp {
  max-width: 980px;
  margin: 18px 0;
  padding: 13px 17px 9px;
  border: 1px solid rgba(101, 201, 130, .22);
  border-left: 3px solid var(--cw-green);
  border-radius: 0 12px 12px 0;
  background: rgba(101, 201, 130, .035);
}

body .gosp > b {
  font-size: 10px;
  letter-spacing: .11em;
}

body .gosp p {
  margin: 9px 0;
  font-size: 15.2px;
  line-height: 1.72;
}

body .g5 {
  max-width: 980px;
  padding: 18px 21px 10px;
  border-radius: var(--cw-radius);
  background: var(--cw-panel-soft);
}

body .g5 > b {
  font-size: 11px;
}

body .g5 li,
body .g5 .g5end {
  font-size: 15px;
  line-height: 1.72;
}

body .crit-def {
  border-color: rgba(122, 162, 247, .24);
  background: rgba(122, 162, 247, .045);
}

body .defense {
  border-color: rgba(122, 162, 247, .24);
  background: rgba(122, 162, 247, .045);
}

body .danger {
  border-color: rgba(237, 118, 108, .28);
  background: rgba(237, 118, 108, .045);
}

/* About & methodology reads as a long-form report, not a dashboard. */
body[data-page="about"] .wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 44px 28px 86px;
}

body[data-page="about"] .wrap > h1 {
  display: none;
}

body[data-page="about"] .wrap > .tagline {
  max-width: 760px;
  margin: 20px 0 38px;
  color: var(--cw-muted);
  font-size: 17px;
  line-height: 1.72;
}

body[data-page="about"] h2 {
  margin: 46px 0 13px;
  padding-top: 26px;
  border-top: 1px solid var(--cw-line-soft);
  color: var(--cw-text);
  font: 600 24px/1.3 'Source Serif 4', Georgia, serif;
  letter-spacing: -.02em;
  text-transform: none;
}

body[data-page="about"] .panel {
  padding: 20px 22px;
  margin: 20px 0;
}

body[data-page="about"] .kpi-row {
  gap: 8px;
  margin: 26px 0;
  flex-wrap: wrap;
  overflow: visible;
}

body[data-page="about"] .kpi {
  flex: none;
  padding: 10px 14px;
  border-color: var(--cw-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
}

body[data-page="about"] .kpi .n {
  font-size: 18px;
}

body[data-page="about"] .kpi .l {
  color: var(--cw-faint);
  font-size: 8.5px;
}

body[data-page="about"] table {
  width: 100%;
  border: 1px solid var(--cw-line);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

body[data-page="about"] th,
body[data-page="about"] td {
  padding: 9px 12px;
}

body[data-page="about"] table tr:last-child td {
  border-bottom: 0;
}

/* Dashboard-only refinements. */
body[data-page="index"] .timeline,
body[data-page="index"] .tl {
  margin-left: 7px;
}

body[data-page="index"] .ev .row {
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
}

body[data-page="index"] .ev .row:hover {
  border-color: var(--cw-line-soft);
  background: rgba(255, 255, 255, .035);
}

body[data-page="index"] .detail {
  margin: 9px 0 6px 86px;
  padding: 17px 20px;
  border: 1px solid var(--cw-line);
  border-radius: 13px;
  background: var(--cw-panel);
}

body[data-page="index"] .essay .criterion {
  border-color: var(--cw-line);
  border-radius: var(--cw-radius);
  background: var(--cw-panel-soft);
}

body[data-page="index"] .essay .blede {
  border-radius: var(--cw-radius);
  background: var(--cw-panel-soft);
}

/* The protected 404 falls back gracefully. */
body[data-page="404"] main {
  min-height: 52vh;
  padding-top: 110px;
}

body[data-page="404"] h1 {
  font-size: clamp(44px, 8vw, 82px);
  letter-spacing: -.04em;
}

/* --------------------------------------------------------------- site foot */

.cw-footer {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--cw-line);
  background:
    radial-gradient(900px 420px at 15% 0, rgba(215, 163, 77, .045), transparent 65%),
    #070a0d;
  color: var(--cw-faint);
  font-size: 12px;
}

.cw-footer-inner {
  width: 100%;
  max-width: var(--cw-max);
  margin: 0 auto;
  padding: 48px 28px 28px;
}

.cw-footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(0, 2fr);
  gap: 56px;
}

.cw-footer .cw-brand {
  color: var(--cw-text);
}

.cw-footer-blurb {
  max-width: 335px;
  margin: 15px 0 0;
  color: var(--cw-faint);
  font-size: 12.2px;
  line-height: 1.7;
}

.cw-footer-feed {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  color: var(--cw-brass);
  font: 600 10px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.cw-footer-feed:hover {
  color: var(--cw-brass-bright);
  text-decoration: none;
}

.cw-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.cw-footer h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: var(--cw-brass);
  font: 650 9px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.cw-footer-links a {
  display: block;
  width: fit-content;
  margin: 7px 0;
  color: var(--cw-muted);
  font: 500 11.8px/1.45 'Inter', 'Segoe UI', Arial, sans-serif;
  text-decoration: none;
}

.cw-footer-links a:hover {
  color: var(--cw-text);
  text-decoration: underline;
}

.cw-footer-note {
  max-width: 1040px;
  margin: 37px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--cw-line-soft);
  color: #6f7f8b;
  font: 10.5px/1.7 'Inter', 'Segoe UI', Arial, sans-serif;
}

.cw-footer-note b {
  color: var(--cw-muted);
  font-weight: 600;
}

.cw-footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  color: #5f6e79;
  font: 9.7px/1.45 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .02em;
}

.cw-footer-base a {
  color: #7f8f9b;
  text-decoration: none;
}

.cw-footer-base a:hover {
  color: var(--cw-text);
}

.cw-footer-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .cw-sitebar-inner {
    gap: 14px;
  }

  .cw-navlink {
    padding-left: 8px;
    padding-right: 8px;
  }

  .cw-mega {
    left: -200px;
  }
}

@media (max-width: 980px) {
  .cw-nav {
    display: none;
  }

  .cw-burger {
    display: inline-flex;
  }

  .cw-pagehead {
    padding: 47px 22px 35px;
  }

  .cw-pagehead .tagline {
    font-size: 16.4px;
  }

  body .tabs {
    padding-left: 22px;
    padding-right: 22px;
  }

  .cw-searchbar {
    padding-left: 22px;
    padding-right: 22px;
  }

  body .pickrow {
    padding-left: 22px;
    padding-right: 22px;
  }

  body > main {
    padding: 32px 22px 74px;
  }

  .cw-footer-inner {
    padding-left: 22px;
    padding-right: 22px;
  }

  .cw-footer-top {
    gap: 34px;
  }

  .cw-footer-links {
    gap: 16px;
  }
}

@media (max-width: 720px) {
  :root {
    --cw-bar-h: 60px;
  }

  .cw-sitebar-inner {
    padding: 0 16px;
  }

  .cw-brand-text small {
    display: none;
  }

  .cw-brand-text b {
    font-size: 13px;
  }

  .cw-mark {
    width: 27px;
    height: 27px;
  }

  .cw-pagehead {
    padding: 37px 18px 30px;
  }

  .cw-pagehead::after {
    right: -245px;
    top: -205px;
  }

  .cw-eyebrow {
    gap: 8px;
    margin-bottom: 13px;
    font-size: 8.6px;
  }

  body .dtitle .badge,
  body .dtitle .criterion-ref {
    box-sizing: border-box;
    max-width: calc(100% - 10px);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .cw-page-title {
    font-size: clamp(37px, 12vw, 54px);
  }

  .cw-pagehead .back {
    margin: 10px 0 6px;
  }

  .cw-pagehead .back a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    margin-left: -4px;
    white-space: nowrap;
  }

  .cw-pagehead .tagline {
    margin-top: 16px;
    font-size: 15.7px;
    line-height: 1.68;
  }

  .cw-pagehead .kpis {
    margin-top: 23px;
  }

  .cw-pagehead .kpi {
    flex-basis: calc(50% - 4px);
    min-width: 0;
    padding: 8px 11px;
  }

  .cw-pagehead .kpi .n {
    font-size: 15.5px;
  }

  .cw-pagehead .kpi .l {
    font-size: 8px;
  }

  body .tabs {
    padding: 11px 18px;
    gap: 4px;
  }

  body .tabs::before {
    display: none;
  }

  body .tabs .tab {
    display: none;
  }

  body .itab {
    padding: 7px 10px;
    font-size: 11.4px;
  }

  .cw-tabselect {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .cw-tabselect span {
    flex: none;
    color: var(--cw-faint);
    font: 650 8.5px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .cw-tabselect select {
    flex: 1;
    width: 100%;
  }

  .cw-searchbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 13px 18px 15px;
  }

  .cw-search-field input {
    height: 40px;
  }

  body .pickrow {
    padding: 12px 18px 0;
  }

  .cw-pickmore {
    margin-left: 0;
  }

  .cw-picklist {
    left: 18px;
    right: 18px;
    width: auto;
    grid-template-columns: 1fr 1fr;
  }

  body #pairTable,
  body #finances {
    display: block;
    max-width: 100%;
  }

  body #pairTable tr:first-child,
  body #finances tr:first-child {
    display: none;
  }

  body #pairTable tr,
  body #finances tr {
    display: block;
    margin: 0 0 10px;
    padding: 11px 13px;
    border: 1px solid var(--cw-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .018);
  }

  body #pairTable td,
  body #finances td {
    display: block;
    padding: 3px 0;
    border: 0;
    font-size: 12.5px;
  }

  body #pairTable td::before,
  body #finances td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 1px;
    color: var(--cw-faint);
    font: 650 8px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  body #pairTable td.num,
  body #finances td.num {
    text-align: left;
  }

  body .cmpwrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  body .essay .tblwrap {
    overflow-x: visible;
  }

  body .cw-stacktable {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body .cw-stacktable thead,
  body .cw-stacktable .cw-stackhead {
    display: none;
  }

  body .cw-stacktable tbody {
    display: block;
  }

  body .cw-stacktable tr {
    display: block;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--cw-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .018);
  }

  body .cw-stacktable th,
  body .cw-stacktable td {
    display: block;
    width: auto;
    padding: 4px 0;
    border: 0;
    min-width: 0;
  }

  /* A table-specific width (for example the comparison table's 16% row
     header) can otherwise outrank the generic stack rule above. */
  body .cw-stacktable tbody th,
  body .cw-stacktable tbody td {
    width: auto;
  }

  body .cw-stacktable th[scope="row"] {
    padding-top: 0;
    padding-bottom: 7px;
    font-size: 14.5px;
    line-height: 1.5;
  }

  body .cw-stacktable td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 1px;
    color: var(--cw-faint);
    font: 650 8px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  body .cw-stacktable td[data-label=""]::before {
    display: none;
  }

  body .cw-stacktable caption {
    display: block;
    padding: 0 0 9px;
    color: var(--cw-muted);
    font-size: 12px;
  }

  .cw-chartwrap svg text {
    font-size: 9px;
  }

  body > main,
  body[data-page="about"] .wrap {
    padding: 27px 18px 64px;
  }

  body .sub {
    font-size: 15.4px;
  }

  body .dtitle {
    margin-top: 36px;
    font-size: 23px;
  }

  body .qblock {
    padding: 14px 15px 11px;
  }

  body .qblock p {
    font-size: 15.6px;
  }

  body .card .row {
    padding: 13px 14px;
    gap: 9px;
    flex-wrap: wrap;
  }

  body .card .title {
    flex-basis: calc(100% - 4px);
    order: 3;
    font-size: 15.2px;
  }

  body .card .date {
    order: 1;
  }

  body .card .detail {
    padding-left: 16px;
    padding-right: 16px;
  }

  body[data-page="index"] .detail {
    margin-left: 0;
    padding: 15px 16px;
  }

  body[data-page="about"] .wrap > .tagline {
    font-size: 16px;
  }

  body[data-page="about"] h2 {
    margin-top: 38px;
    padding-top: 22px;
    font-size: 22px;
  }

  .cw-footer-inner {
    padding: 38px 18px 24px;
  }

  .cw-footer-top {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .cw-footer-links {
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 13px;
  }

  .cw-footer-blurb {
    max-width: 430px;
  }

  .cw-footer-note {
    margin-top: 29px;
  }

  .cw-footer-base {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }
}

@media (max-width: 480px) {
  .cw-burger {
    padding: 8px 10px;
  }

  .cw-pagehead {
    padding-top: 32px;
  }

  .cw-eyebrow-rule {
    width: 15px;
  }

  .cw-footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .cw-footer-links > div:last-child {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid var(--cw-line-soft);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ------------------------------------------------ navigation/search pass */
.cw-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* A narrow, vertically scrolling Traditions panel instead of a wide sheet. */
.cw-mega {
  left: auto;
  right: 0;
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
  padding: 15px;
}
.cw-mega-head {
  display: block;
  margin-bottom: 10px;
  padding: 0 4px 11px;
}
.cw-mega-head strong { font-size: 17px; }
.cw-mega-head p { display: none; }
.cw-mega-cols { grid-template-columns: 1fr; gap: 0; }
.cw-mega-col + .cw-mega-col {
  margin-top: 9px;
  padding-top: 9px;
  padding-left: 0;
  border-top: 1px solid var(--cw-line-soft);
  border-left: 0;
}
.cw-mega-link { padding: 7px 8px; }

/* Dashboard selectors above the sections. */
.cw-orgbar {
  max-width: var(--cw-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 18px;
  padding: 14px 28px 0;
}
.cw-orgselect { display: flex; align-items: center; gap: 10px; }
.cw-orgselect > span {
  color: var(--cw-faint);
  font: 650 8.5px/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cw-orgselect select,
.cw-scope select {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--cw-line);
  border-radius: 9px;
  background: #10171e;
  color: var(--cw-text);
  padding: 8px 34px 8px 11px;
  font: 550 12px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
}
.cw-orgselect select { width: min(360px, 100%); }

/* Search is one input and two scope dropdowns, with no explanatory copy. */
.cw-searchbar {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
}
.cw-search-field { flex: 1 1 280px; }
.cw-search-scopes { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-scope { display: block; }
.cw-search-status {
  flex: 1 1 auto;
  margin: 0;
  text-align: right;
  font: 550 10.5px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .02em;
}
.cw-search-results { display: grid; gap: 9px; margin-top: 16px; }
.cw-search-results[hidden] { display: none; }
.cw-result {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--cw-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  color: var(--cw-text);
  text-decoration: none;
}
.cw-result:hover {
  border-color: rgba(215, 163, 77, .5);
  background: rgba(255, 255, 255, .035);
  color: var(--cw-text);
  text-decoration: none;
}
.cw-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--cw-faint);
  font: 600 9px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cw-result strong {
  display: block;
  margin-top: 5px;
  color: var(--cw-text);
  font: 600 16px/1.35 'Source Serif 4', Georgia, serif;
}
.cw-result p {
  margin: 4px 0 0;
  color: var(--cw-muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.cw-result-section { border-left: 2px solid var(--cw-brass); }

@media (max-width: 1080px) {
  .cw-mega { left: auto; right: 0; }
}
@media (max-width: 980px) {
  .cw-orgbar { padding-left: 22px; padding-right: 22px; }
  .cw-searchbar { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 720px) {
  .cw-orgbar { flex-direction: column; align-items: stretch; padding: 12px 18px 0; }
  .cw-orgselect { width: 100%; }
  .cw-orgselect select { flex: 1; width: 100%; }
  .cw-searchbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 13px 18px 15px;
  }
  .cw-search-field { flex: none; }
  .cw-search-scopes { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .cw-scope select { width: 100%; }
  .cw-search-status { min-height: 1.2em; text-align: left; }
}
