/* Nabe Beat: shared styles.
   Very clean system. White ground, hairline rules, one accent.
   System fonts only. The accent lives in a single variable: --accent. */

:root {
  --accent: #0E6B5C;
  --accent-hover: #0A5548;
  --paper: #FFFFFF;
  --panel: #F7F6F3;
  --ink: #191919;
  --body: #2B2B2B;
  --secondary: #5C5A57;
  --muted: #8A8782;
  --rule: #E6E3DD;
  --track: #ECEAE5;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; }

::selection { background: var(--panel); }

/* Header */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-lockup:hover { text-decoration: none; }
.logo-lockup img { width: 26px; height: 26px; }
.logo-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.logo-name::after { content: "."; color: var(--accent); }
.logo-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 7px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 24px 14px;
  max-width: 1360px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.site-nav a {
  display: block;
  padding: 2px 0;
  color: var(--secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* Layout */

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.page { padding: 44px 0 72px; }

.kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.kicker a { color: var(--accent); }
.kicker a:hover { color: var(--accent-hover); }

h1, h2, h3 { font-family: var(--sans); color: var(--ink); line-height: 1.2; }
h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 52px 0 14px;
  border-top: 1px solid var(--rule);
  padding-top: 30px;
}
h2:first-of-type { border-top: none; padding-top: 0; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 8px; }

.lede { font-size: 19px; line-height: 1.6; color: var(--secondary); max-width: 46em; }

/* Category labels: small caps accent text, never a filled badge */

.badge {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.badge.plain {
  background: none;
  border: none;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 15px;
  font-weight: 600;
  white-space: normal;
}

/* Hero: title, lede, one row of key figures between hairlines. No panel. */

.hero-type {
  background: none;
  border: none;
  padding: 10px 0 4px;
  margin: 8px 0 20px;
  text-align: left;
}
.hero-type .hero-place {
  font-family: var(--sans);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin: 10px 0 14px;
}
.hero-type .hero-verdict {
  font-family: var(--sans);
  font-size: 19px;
  font-style: normal;
  line-height: 1.6;
  color: var(--secondary);
  max-width: 44em;
  margin: 0 0 22px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 13px 0;
}
.hero-meta > * { padding: 2px 18px; border-left: 1px solid var(--rule); }
.hero-meta > *:first-child { padding-left: 0; border-left: none; }
.hero-meta a { font-size: 15px; font-weight: 600; }

/* Photographs: full column heroes, the home feature photo, card thumbnails.
   Captions sit small and muted under the image, one quiet line. */

.hero-photo img { display: block; width: 100%; height: auto; }
.hero-photo.portrait img { max-width: 520px; margin-left: auto; margin-right: auto; }
.feature-photo { margin: 24px 0; }
.feature-photo img { display: block; width: 100%; height: auto; }
.feature-photo figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.card-thumb { display: block; margin-bottom: 12px; }
.card-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-credit { font-size: 12px; color: var(--muted); }

/* Cards and grids: open lists with hairline tops, no boxes */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px 36px;
  margin: 20px 0 8px;
}
.card {
  background: none;
  border: none;
  border-top: 1px solid var(--rule);
  padding: 18px 0 10px;
}
.card h3 { margin-top: 2px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card p { margin: 6px 0; color: var(--secondary); font-size: 15.5px; line-height: 1.6; }
.card .card-meta { font-size: 13px; color: var(--muted); }
.card a.card-link { font-weight: 600; }

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px 36px;
  margin: 20px 0 8px;
}
.state-tile {
  border: none;
  border-top: 1px solid var(--rule);
  background: none;
  padding: 14px 0 12px;
}
.state-tile .st-name { font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.state-tile .st-status { font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.state-tile.live .st-status { color: var(--accent); }
.state-tile a { text-decoration: none; color: var(--ink); }
.state-tile a:hover { text-decoration: none; }
.state-tile a:hover .st-name { color: var(--accent); }

/* Post layout */

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 72px;
  align-items: stretch;
}
.article-col { max-width: 760px; }
.article-col p { margin: 0 0 18px; }
.article-col ul { margin: 0 0 18px; padding-left: 22px; }
.article-col li { margin-bottom: 9px; }
.article-col figure { margin: 32px 0; }
.article-col figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

.post-head { margin-bottom: 6px; }
.post-head h1 { font-size: 44px; }
.post-meta {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  font-size: 14px;
  color: var(--secondary);
}

/* Table of contents: a plain list under a hairline, no box */

.toc {
  border: none;
  border-top: 1px solid var(--rule);
  background: none;
  padding: 20px 0 4px;
  margin: 26px 0 6px;
}
.toc h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); border: none; margin: 0 0 10px; padding: 0; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 36px; }
.toc li { margin-bottom: 6px; font-size: 15px; }
.toc a { color: var(--secondary); }
.toc a:hover { color: var(--accent); }
.toc a.active { color: var(--accent); font-weight: 600; }

/* Data table: row hairlines only */

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15.5px;
  background: none;
}
table.data th, table.data td {
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 14px 10px 0;
  text-align: left;
  vertical-align: top;
}
table.data th {
  background: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  border-bottom: 1px solid var(--ink);
}
table.data td.figure { font-weight: 600; color: var(--ink); white-space: normal; }

/* Scores: clean rows over a hairline, with a thin bar in the accent */

.scores { display: grid; gap: 0; margin: 16px 0 24px; }
.score-row {
  position: relative;
  display: grid;
  grid-template-columns: 150px 54px 1fr;
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0 15px;
}
.score-row::before,
.score-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
}
.score-row::before { width: 100%; background: var(--track); }
.score-row::after { width: calc(var(--score, 0) * 1%); background: var(--accent); }
.score-name { font-family: var(--sans); font-weight: 600; color: var(--ink); }
.score-value { font-family: var(--sans); font-size: 19px; color: var(--accent); font-weight: 600; }
.score-why { color: var(--secondary); font-size: 15.5px; }

/* Timeline: a single hairline, dates in ink */

.timeline { list-style: none; margin: 18px 0 22px; padding: 0; border-left: 1px solid var(--rule); }
.timeline li { padding: 3px 0 12px 20px; position: relative; }
.timeline .t-date { font-family: var(--sans); font-weight: 600; color: var(--ink); }

/* Property entries: open list items separated by hairlines */

.property {
  border: none;
  border-top: 1px solid var(--rule);
  background: none;
  padding: 22px 0 8px;
  margin: 0 0 6px;
}
.property .p-price { font-family: var(--sans); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.property .p-addr { font-family: var(--sans); font-size: 17.5px; font-weight: 600; color: var(--ink); margin: 2px 0 6px; }
.property .p-specs { color: var(--secondary); font-size: 15px; margin-bottom: 8px; }
.property p { margin: 0 0 8px; }
.property .p-verify { font-size: 13.5px; color: var(--muted); }
.link-pending { font-size: 13.5px; color: var(--muted); }

/* Ads: reserved space at standard sizes, hairline outline, muted label.
   Min heights reserve the footprint per breakpoint so real units
   load with zero layout shift. */

.ad-slot {
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  margin: 36px auto;
  padding: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  width: 100%;
}
.ad-slot .ad-label {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* In content leaderboard: 728x90 desktop, 320x100 mobile */
.ad-leaderboard { max-width: 728px; min-height: 90px; }

/* In feed unit between rails: responsive, 300x250 footprint class */
.ad-infeed { max-width: 728px; min-height: 250px; }

/* Sidebar rail: half page up top, medium rectangle lower (sticky) */
.ad-rail-tall { width: 300px; max-width: 300px; min-height: 600px; margin: 0 auto 28px; }
.ad-rail { width: 300px; max-width: 300px; min-height: 250px; margin: 28px auto 0; }

/* Sidebar */

/* The whole rail is a sticky stack: it travels with the reader instead of
   ending early and leaving a long empty column. On viewports too short for
   the full stack, only the final rail unit sticks, so no module is ever
   stranded out of reach. */
.sidebar { position: sticky; top: 24px; align-self: start; }
@media (max-height: 1200px) {
  .sidebar { position: static; }
  .sidebar .ad-rail { position: sticky; top: 24px; }
}
.sidebar .side-box {
  border: none;
  border-top: 1px solid var(--rule);
  background: none;
  padding: 16px 0 2px;
  margin-bottom: 18px;
}
.sidebar h3 { margin-top: 0; font-size: 16px; }
.sidebar ul { margin: 0; padding-left: 18px; }
.sidebar li { margin-bottom: 6px; font-size: 15px; }


/* Post footer nav */

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  margin-top: 48px;
  padding-top: 20px;
  font-size: 15px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 56px;
  padding: 34px 0 48px;
  color: var(--secondary);
  font-size: 14.5px;
}
.site-footer nav ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 26px; flex-wrap: wrap; }
.site-footer a { color: var(--secondary); }
.site-footer a:hover { color: var(--accent); }

.note-box {
  border: none;
  border-top: 1px solid var(--rule);
  background: none;
  padding: 18px 0 2px;
  margin: 22px 0;
}
.note-box p { margin: 0; color: var(--secondary); }

.sources-list { font-size: 14.5px; color: var(--secondary); }
.sources-list li { margin-bottom: 7px; word-break: break-word; }

/* Responsive */

@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; }
  .sidebar .ad-rail { position: static; }
  /* Rail units move in content once the rail stacks */
  .ad-rail-tall { min-height: 250px; }
}

@media (max-width: 900px) {
  .hero-type .hero-place { font-size: 36px; }
  .post-head h1, h1 { font-size: 33px; }
  h2 { font-size: 23px; margin-top: 42px; }
  .toc ol { columns: 1; }
}

@media (max-width: 760px) {
  /* Leaderboard collapses to the mobile banner footprint */
  .ad-leaderboard { max-width: 320px; min-height: 100px; }
  .ad-infeed { min-height: 250px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; padding-bottom: 14px; }
  .site-nav a { padding: 7px 0; }
  .score-row { grid-template-columns: 1fr; gap: 2px; }
  .hero-type { padding: 4px 0 0; }
  .wrap { padding: 0 18px; }
  .header-inner { padding: 18px 18px 12px; }
  .site-nav ul { padding-left: 18px; padding-right: 18px; }
}
