/* ==========================================================================
   Arba Living - Pre-Launch Ad Review
   Quiet, premium, operational. Warm-paper neutral base with restrained
   clay / moss / brass accents. 8px max radius. Hairlines, not shadows.
   ========================================================================== */

:root {
  /* paper + ink */
  --paper:        #f1ece1;
  --paper-2:      #e8e2d3;
  --paper-3:      #f7f3e9;
  --paper-4:      #fbf8f0;
  --card:         #fbf8f1;
  --ink:          #1a1815;
  --ink-2:        #45413a;
  --ink-3:        #7a756a;
  --ink-4:        #aea899;
  --rule:         #d8d1bf;
  --rule-strong:  #b9b29c;

  /* restrained accents */
  --clay:         #a8462f;
  --clay-2:       #8b3a26;
  --clay-soft:    #f0d7cc;
  --clay-tint:    #faeae3;

  --moss:         #4f6243;
  --moss-2:       #3e4f33;
  --moss-soft:    #d7dec8;
  --moss-tint:    #ebefd9;

  --brass:        #8d6b1f;
  --brass-2:      #72561a;
  --brass-soft:   #e8dab8;
  --brass-tint:   #f3eada;

  --slate:        #565a5e;
  --slate-soft:   #d8d8d1;

  /* type */
  --f-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* layout */
  --max-w: 1180px;
  --gutter: 32px;
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius:    6px;
  --radius-lg: 8px;

  --top-h: 60px;
  --sub-h: 52px;
}

/* ===== reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + var(--sub-h) + 8px); }
body {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "cv11" on, "calt" on;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color .15s ease, color .15s ease;
}
a:hover { border-bottom-color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: 3px;
}

.num, .mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--f-mono); font-size: 0.92em; letter-spacing: -0.01em; }

/* ===== skip link ===== */
.skip {
  position: fixed;
  left: 16px;
  top: -200px;
  background: var(--ink);
  color: var(--paper-3);
  padding: 8px 14px;
  border-radius: var(--radius);
  border: none;
  font-size: 13px;
  z-index: 1000;
  transition: top .15s ease;
}
.skip:focus { top: 16px; }

/* ===== topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(241, 236, 225, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.topbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 12px var(--gutter);
  min-height: var(--top-h);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper-4);
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.02em;
  font-feature-settings: "ss01" 0;
}
.brand-meta { line-height: 1.1; }
.brand-name { font-weight: 600; font-size: 13.5px; letter-spacing: -0.005em; }
.brand-sub {
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 3px;
}

.topbar__nav {
  display: flex;
  gap: 2px;
  justify-self: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar__nav::-webkit-scrollbar { display: none; }
.topbar__nav a {
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: var(--radius);
  border: none;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
  font-weight: 500;
}
.topbar__nav a:hover { color: var(--ink); background: var(--paper-2); }

.topbar__actions { display: flex; gap: 8px; }

.btn {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  background: transparent;
  color: var(--ink);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--paper-4); }
.btn--primary:hover { background: #28241f; }
.btn--ghost { border-color: var(--rule); background: transparent; }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--rule-strong); }
.btn--sm { padding: 5px 10px; font-size: 12px; min-height: 28px; }

.caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  display: inline-block;
  margin-left: 2px;
  transform: translateY(1px);
}
.caret--down { transform: translateY(1px); }
.disclosure[open] summary .caret { transform: rotate(180deg) translateY(-1px); }

/* ===== subbar (status + segmented control) ===== */
.subbar {
  position: sticky;
  top: var(--top-h);
  z-index: 29;
  background: var(--paper-3);
  border-bottom: 1px solid var(--rule);
}
.subbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px var(--gutter);
  min-height: var(--sub-h);
}
.subbar__group { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.subbar__label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 600;
  font-size: 10.5px;
}
.subbar__value { color: var(--ink); font-weight: 500; }
.subbar__divider {
  width: 1px;
  height: 20px;
  background: var(--rule);
}
.subbar__spacer { flex: 1; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot--hold    { background: var(--clay); box-shadow: 0 0 0 3px var(--clay-tint); }
.status-dot--ready   { background: var(--moss); box-shadow: 0 0 0 3px var(--moss-tint); }
.status-dot--pending { background: var(--brass); box-shadow: 0 0 0 3px var(--brass-tint); }

/* ===== segmented control ===== */
.segmented {
  display: inline-flex;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2px;
}
.segmented__btn {
  background: transparent;
  border: 0;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--ink-2);
  transition: all .15s ease;
  min-width: 88px;
  text-align: center;
  letter-spacing: 0.005em;
}
.segmented__btn:hover { color: var(--ink); }
.segmented__btn.is-active {
  background: var(--paper-4);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule-strong), 0 1px 0 rgba(0,0,0,0.03);
}

/* ===== section scaffolding ===== */
.section {
  border-bottom: 1px solid var(--rule);
}
.section--hero {
  background:
    linear-gradient(to bottom, var(--paper-3), var(--paper)) ,
    var(--paper-3);
}
.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 18px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass-2);
}
.eyebrow__num {
  background: var(--brass-tint);
  color: var(--brass-2);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.08em;
}
.section-meta {
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
  font-weight: 500;
}
.section-title {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.014em;
  margin-bottom: 32px;
  max-width: 760px;
  color: var(--ink);
}
.display {
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin: 14px 0 36px;
  max-width: 820px;
  color: var(--ink);
}

/* ===== KPI grid ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}
.kpi {
  padding: 18px 18px 20px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi:last-child { border-right: none; }
.kpi__label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.kpi__value {
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.022em;
}
.kpi__unit {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 4px;
  letter-spacing: 0;
}
.kpi__sub { font-size: 11.5px; color: var(--ink-3); }

/* ===== checklist ===== */
.checklist {}
.checklist__title {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.checks { display: flex; flex-direction: column; }
.check {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.check:last-child { border-bottom: 1px solid var(--rule); }
.check__mark {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-4);
  background: transparent;
  position: relative;
  display: inline-block;
}
.check--done .check__mark { background: var(--moss); border-color: var(--moss); }
.check--done .check__mark::after {
  content: "";
  position: absolute;
  left: 3.5px; top: 1px;
  width: 4px; height: 7px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(42deg);
}
.check--review .check__mark { background: var(--brass); border-color: var(--brass); }
.check--review .check__mark::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 4px; height: 4px;
  background: var(--paper-4);
  border-radius: 50%;
}
.check--pending .check__mark {
  border-color: var(--brass);
  border-style: dashed;
}
.check--deferred .check__mark {
  border-color: var(--ink-4);
  background: var(--paper-2);
}
.check__label { color: var(--ink); font-weight: 500; }
.check__meta { color: var(--ink-3); font-size: 12px; text-align: right; }

/* ===== flight strip ===== */
.flight { margin-bottom: 28px; }
.flight__legend {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.flight__legend-item { display: inline-flex; align-items: center; gap: 6px; }
.flight__legend-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--paper-4);
  border: 1px solid var(--rule-strong);
}
.flight__legend-dot--start { background: var(--clay); border-color: var(--clay); }
.flight__legend-dot--end   { background: var(--moss); border-color: var(--moss); }
.flight__legend-dot--weekend { background: var(--paper-2); border-color: var(--rule-strong); }

.flight__strip {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.flight-cell {
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  min-height: 76px;
  transition: border-color .15s ease;
}
.flight-cell--weekend { background: var(--paper-2); }
.flight-cell--start { border-color: var(--clay); }
.flight-cell--start::before {
  content: "Start";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clay);
  color: white;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}
.flight-cell--end { border-color: var(--moss); }
.flight-cell--end::before {
  content: "End";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--moss);
  color: white;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}
.flight-cell__dow {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.flight-cell__day {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.flight-cell__mo {
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== tables ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.budget-table-wrap { margin-bottom: 24px; overflow-x: auto; }
.table thead th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  padding: 12px 14px;
  background: var(--paper-3);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.table thead th.num { text-align: right; }
.table tbody td, .table tbody th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
  text-align: left;
  color: var(--ink-2);
  vertical-align: middle;
}
.table tbody td.num, .table tbody th.num { text-align: right; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th[scope="row"] { font-weight: 500; color: var(--ink); }
.table__total td, .table__total th {
  background: var(--paper-3);
  border-top: 1px solid var(--rule-strong);
  color: var(--ink);
  font-weight: 500;
}

/* ===== callout ===== */
.callout {
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 8px;
}
.callout--review {
  background: var(--clay-tint);
  border-color: var(--clay-soft);
}
.callout__label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass-2);
  margin-bottom: 6px;
}
.callout--review .callout__label { color: var(--clay-2); }
.callout p { font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 86ch; }
.callout--review p { color: var(--ink); }

/* ===== property cards ===== */
.property-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.property-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.property-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--rule);
  gap: 16px;
}
.property-card__meta { display: flex; align-items: center; gap: 12px; }
.prop-mark {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.prop-mark--hob {
  background: var(--clay-tint);
  color: var(--clay-2);
  box-shadow: inset 0 0 0 1px var(--clay-soft);
}
.prop-mark--oasis {
  background: var(--moss-tint);
  color: var(--moss-2);
  box-shadow: inset 0 0 0 1px var(--moss-soft);
}
.property-card__name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--ink);
}
.property-card__sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* status pill */
.status-pill {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-pill--paused {
  background: var(--paper-3);
  color: var(--ink-2);
  border-color: var(--rule);
}
.status-pill--paused .status-pill__dot {
  background: var(--slate);
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status-pill--live {
  background: var(--moss-tint);
  color: var(--moss-2);
  border-color: var(--moss-soft);
}
.status-pill--live .status-pill__dot {
  background: var(--moss);
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* KV list */
.kv { padding: 8px 22px 12px; }
.kv__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.kv__row:last-child { border-bottom: 0; }
.kv dt {
  color: var(--ink-3);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  align-self: center;
}
.kv dd { color: var(--ink); margin: 0; }
.kv dd.num { font-weight: 500; font-variant-numeric: tabular-nums; }

.property-card__notes {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--rule);
  background: var(--paper-3);
}
.property-card__notes-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.property-card__notes p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ===== structure ===== */
.structure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.structure-col {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
.structure-col__head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--rule);
}
.structure-col__head .prop-mark { width: 32px; height: 32px; font-size: 13px; }
.structure-col__title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.structure-col__sub {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.ag-list { padding: 4px 22px 16px; }
.ag { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ag:last-child { border-bottom: 0; }
.ag__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.ag__name { font-size: 15px; font-weight: 500; color: var(--ink); }
.ag__counts { display: flex; gap: 6px; }
.count-chip {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.count-chip__num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}
.ag__themes {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.ag__sample {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.5;
  letter-spacing: 0;
}

/* global rules block */
.rules {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.rules__title {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.rules__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
}
.rules__list li {
  font-size: 13.5px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}
.rules__list li:last-child,
.rules__list li:nth-last-child(2) { border-bottom: 0; }
.rules__num {
  font-size: 10.5px;
  color: var(--brass-2);
  background: var(--brass-tint);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ===== RSA preview ===== */
.rsa-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.rsa-tabs {
  display: inline-flex;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2px;
}
.rsa-tab {
  background: transparent;
  border: 0;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--ink-2);
  transition: all .15s ease;
  min-width: 100px;
}
.rsa-tab:hover { color: var(--ink); }
.rsa-tab.is-active {
  background: var(--paper-4);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule-strong), 0 1px 0 rgba(0,0,0,.03);
}
.rsa-controls__right { display: flex; align-items: center; gap: 14px; }
.rsa-variant-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.rsa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.rsa-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rsa-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rsa-col__sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 600;
}

.ad-preview {
  background: var(--paper-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}
.ad-preview__tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}
.ad-preview__site {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.ad-preview__favicon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  border: 1px solid var(--rule);
  font-feature-settings: "ss01" 0;
}
.ad-preview__site-meta { display: flex; flex-direction: column; gap: 1px; }
.ad-preview__display-url { font-size: 13px; color: var(--ink); font-weight: 500; }
.ad-preview__breadcrumb { font-size: 11.5px; color: var(--ink-3); font-family: var(--f-mono); letter-spacing: -0.005em; }
.ad-preview__headline {
  font-size: 19px;
  font-weight: 500;
  color: #1a4fa3;
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-family: var(--f-sans);
  margin: 4px 0 2px;
}
.ad-preview__headline span { color: inherit; }
.ad-preview__sep { color: var(--ink-3); margin: 0 4px; font-weight: 400; }
.ad-preview__desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.ad-preview__sitelinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.ad-preview__sitelink {
  font-size: 12.5px;
  color: #1a4fa3;
  font-weight: 500;
}
.ad-preview__callouts {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.rsa-meta {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 6px 16px;
}
.rsa-meta__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
}
.rsa-meta__row:last-child { border-bottom: 0; }
.rsa-meta dt { color: var(--ink-3); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.1em; font-weight: 600; align-self: center; }
.rsa-meta dd { color: var(--ink); margin: 0; }

/* disclosure */
.disclosure {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 24px;
}
.disclosure summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure[open] summary { border-bottom: 1px solid var(--rule); }
.disclosure__body { padding: 16px 20px 20px; }
.rsa-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.rsa-full__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rsa-full__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.rsa-full__group { display: flex; flex-direction: column; gap: 4px; }
.rsa-full__label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.rsa-full__list { display: flex; flex-direction: column; gap: 3px; }
.rsa-full__item {
  font-size: 12.5px;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--paper-4);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.rsa-full__item .idx {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: 22px;
  flex-shrink: 0;
}
.rsa-full__item.is-pinned {
  background: var(--brass-tint);
  border-color: var(--brass-soft);
}
.rsa-full__item.is-pinned .idx { color: var(--brass-2); }
.rsa-full__item.is-pinned::after {
  content: "Pin H1";
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-2);
  background: var(--brass-soft);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}
.rsa-full__desc {
  font-size: 13px;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--paper-4);
  line-height: 1.5;
}

/* ===== keywords ===== */
.keyword-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.keyword-col {}
.keyword-col__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.keyword-col__count {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.keyword-tables { display: flex; flex-direction: column; gap: 18px; }
.kw-ag {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.kw-ag__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}
.kw-ag__name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kw-ag__meta {
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.kw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.kw-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  padding: 9px 14px 7px;
  background: var(--paper-3);
  border-bottom: 1px solid var(--rule);
}
.kw-table th.num { text-align: right; }
.kw-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: -0.005em;
}
.kw-table tr:last-child td { border-bottom: 0; }
.kw-table td.num { text-align: right; font-family: var(--f-sans); font-size: 12px; font-variant-numeric: tabular-nums; }
.match-tags { display: inline-flex; gap: 4px; }
.match-tag {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-family: var(--f-sans);
}
.match-tag--exact { background: var(--moss-tint); color: var(--moss-2); }
.match-tag--phrase { background: var(--brass-tint); color: var(--brass-2); }

/* ===== negatives ===== */
.neg-shared {
  margin-bottom: 28px;
}
.neg-shared__head { margin-bottom: 18px; }
.neg-shared__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.neg-shared__count {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.neg-shared__sub {
  font-size: 13px;
  color: var(--ink-2);
  max-width: 78ch;
}
.neg-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.neg-group {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px 16px 14px;
}
.neg-group__label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.neg-group__count {
  color: var(--brass-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.chip {
  font-size: 11.5px;
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-weight: 400;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.chip--neg {
  background: var(--paper-3);
  color: var(--ink-2);
  border-color: var(--rule);
}
.chip--exact {
  background: var(--moss-tint);
  border-color: var(--moss-soft);
  color: var(--moss-2);
}
.chip-grid--brass .chip {
  background: var(--brass-tint);
  border-color: var(--brass-soft);
  color: var(--brass-2);
  font-weight: 500;
}

.neg-property-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.neg-property {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 18px 22px 22px;
}
.neg-property__head { margin-bottom: 14px; }
.neg-property__title {
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.neg-property__count {
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-left: auto;
}
.neg-property__sub {
  font-size: 12.5px;
  color: var(--ink-2);
}

/* prop tag */
.prop-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.prop-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.prop-tag--hob {
  background: var(--clay-tint);
  color: var(--clay-2);
  border-color: var(--clay-soft);
}
.prop-tag--hob::before { background: var(--clay); }
.prop-tag--oasis {
  background: var(--moss-tint);
  color: var(--moss-2);
  border-color: var(--moss-soft);
}
.prop-tag--oasis::before { background: var(--moss); }

/* ===== assets ===== */
.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.asset-col {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
.asset-col__head { padding: 16px 22px; border-bottom: 1px solid var(--rule); }
.asset-block { padding: 16px 22px; border-bottom: 1px solid var(--rule); }
.asset-block:last-child { border-bottom: 0; }
.asset-block__label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.asset-block__count {
  font-size: 10.5px;
  color: var(--brass-2);
  font-variant-numeric: tabular-nums;
  background: var(--brass-tint);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
}
.sitelinks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.sitelinks li {
  padding: 8px 10px;
  border: 1px solid var(--rule);
  background: var(--paper-4);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sitelink__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.sitelink__url {
  font-size: 11px;
  font-family: var(--f-mono);
  color: var(--ink-3);
  letter-spacing: -0.005em;
}

.snippet {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--paper-4);
}
.snippet__header {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass-2);
  margin-bottom: 4px;
}
.snippet__values { font-size: 13px; color: var(--ink); }

/* ===== holds ===== */
.holds { display: flex; flex-direction: column; gap: 12px; }
.hold {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 18px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}
.hold__num {
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-4);
  letter-spacing: -0.02em;
  font-feature-settings: "ss01" 0;
  line-height: 1;
  padding-top: 2px;
}
.hold__title { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.005em; }
.hold__detail { font-size: 13px; color: var(--ink-2); line-height: 1.55; max-width: 78ch; }
.hold__tag {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
}
.hold__tag--done      { background: var(--moss-tint); color: var(--moss-2); border-color: var(--moss-soft); }
.hold__tag--scheduled { background: var(--brass-tint); color: var(--brass-2); border-color: var(--brass-soft); }
.hold__tag--pending   { background: var(--clay-tint); color: var(--clay-2); border-color: var(--clay-soft); }
.hold__tag--deferred  { background: var(--slate-soft); color: var(--slate); border-color: var(--rule-strong); }
.hold__tag--manual    { background: var(--paper-3); color: var(--ink); border-color: var(--rule-strong); }

/* ===== actions / next ===== */
.section--next { background: var(--paper-3); }
.actions {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
  border-top: 1px solid var(--rule);
}
.action {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--rule);
}
.action__step {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-2);
  background: var(--brass-tint);
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 24px;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.action__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.008em;
  margin-bottom: 6px;
}
.action__body p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 80ch;
  margin-bottom: 8px;
}
.action__meta {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.signoff {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 28px 4px 8px;
}
.signoff__col { display: flex; flex-direction: column; gap: 6px; }
.signoff__label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.signoff__line {
  height: 1px;
  background: var(--ink-3);
  margin: 32px 0 4px;
}
.signoff__name { font-size: 12px; color: var(--ink-2); }

/* ===== footer ===== */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-3);
}
.footer__left { text-align: left; }
.footer__center { text-align: center; }
.footer__right { text-align: right; }

/* ===== toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 80px);
  background: var(--ink);
  color: var(--paper-4);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  z-index: 100;
  transition: transform .3s ease, opacity .3s ease;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-width: 480px;
  text-align: center;
  line-height: 1.5;
}
.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ===== property-focus filter ===== */
body[data-view="hob"] [data-property="oasis"],
body[data-view="oasis"] [data-property="hob"] {
  display: none !important;
}
body[data-view="hob"] .property-grid,
body[data-view="hob"] .structure-grid,
body[data-view="hob"] .rsa-grid,
body[data-view="hob"] .keyword-grid,
body[data-view="hob"] .neg-property-grid,
body[data-view="hob"] .asset-grid,
body[data-view="oasis"] .property-grid,
body[data-view="oasis"] .structure-grid,
body[data-view="oasis"] .rsa-grid,
body[data-view="oasis"] .keyword-grid,
body[data-view="oasis"] .neg-property-grid,
body[data-view="oasis"] .asset-grid {
  grid-template-columns: 1fr;
  max-width: 760px;
}

/* ===== responsive ===== */
@media (max-width: 1100px) {
  .topbar__nav { gap: 0; }
  .topbar__nav a { padding: 6px 8px; font-size: 12px; }
}
@media (max-width: 960px) {
  :root { --gutter: 20px; --top-h: 56px; --sub-h: 96px; }
  .topbar__inner { grid-template-columns: auto 1fr; }
  .topbar__nav { display: none; }
  .subbar__inner { flex-wrap: wrap; gap: 12px; padding: 10px var(--gutter); }
  .subbar__divider, .subbar__divider--hide-md { display: none; }
  .subbar__group--hide-md { display: none; }
  .subbar__spacer { display: none; }
  .segmented { width: 100%; }
  .segmented__btn { flex: 1; min-width: 0; }

  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(3n) { border-right: 0; }
  .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--rule); }

  .property-grid, .structure-grid, .rsa-grid, .keyword-grid, .neg-property-grid, .asset-grid {
    grid-template-columns: 1fr;
  }
  .rules__list { grid-template-columns: 1fr; }
  .rules__list li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .flight__strip { grid-template-columns: repeat(7, 1fr); }
  .rsa-full { grid-template-columns: 1fr; gap: 24px; }
  .signoff { grid-template-columns: 1fr; gap: 24px; }
  .section__inner { padding: 40px var(--gutter) 48px; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .display { font-size: 26px; margin: 8px 0 28px; }
  .section-title { font-size: 22px; margin-bottom: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-meta { text-align: left; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi { padding: 14px; }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi:nth-child(-n+4) { border-bottom: 1px solid var(--rule); }
  .kpi__value { font-size: 22px; }
  .flight__strip { grid-template-columns: repeat(4, 1fr); }
  .hold { grid-template-columns: 40px 1fr; gap: 14px; }
  .hold__tag { grid-column: 2; justify-self: start; margin-top: 4px; }
  .check { grid-template-columns: 22px 1fr; gap: 10px; }
  .check__meta { grid-column: 2; text-align: left; }
  .topbar__brand .brand-meta { display: none; }
  .topbar__inner { padding: 10px var(--gutter); }
  .footer__inner { grid-template-columns: 1fr; gap: 4px; text-align: center; }
  .footer__left, .footer__right { text-align: center; }
  .sitelinks { grid-template-columns: 1fr; }
  .rsa-controls { flex-direction: column; align-items: stretch; gap: 12px; }
  .rsa-tabs { width: 100%; }
  .rsa-tab { flex: 1; min-width: 0; }
  .rsa-controls__right { justify-content: space-between; }
}

/* ===== print / share-ready ===== */
@media print {
  :root { --max-w: 100%; --gutter: 0; }
  html, body { background: white; color: black; }
  body { font-size: 11pt; line-height: 1.45; }
  .topbar, .subbar, .toast, .topbar__actions, .skip { display: none !important; }
  .section { border-bottom: 1px solid #cfc8b6; break-inside: avoid; page-break-inside: avoid; }
  .section--hero, .section--next { background: white; }
  .section__inner { padding: 24px 0 28px; max-width: 100%; }
  .kpi-grid { grid-template-columns: repeat(6, 1fr); }
  .property-grid, .structure-grid, .rsa-grid, .keyword-grid, .neg-property-grid, .asset-grid {
    grid-template-columns: 1fr 1fr !important;
    max-width: 100% !important;
  }
  .ad-preview { background: white; }
  .callout, .property-card, .structure-col, .neg-property, .asset-col, .hold, .rsa-meta,
  .table, .kw-ag, .disclosure, .neg-group { box-shadow: none; }
  .display { font-size: 22pt; }
  .section-title { font-size: 16pt; }
  .footer { border-top: 1px solid #cfc8b6; }
  a { color: black; border-bottom: 0; }
  .btn { display: none !important; }
  .disclosure[open] .disclosure__body { display: block; }
  .disclosure summary { display: none; }
  .disclosure { border: 0; }
  .toast { display: none !important; }
  body[data-view] [data-property] { display: block !important; }
}
