/* The Desk Plan (rowland.top) — "Ergonomic Desk Plan" visual.
   Grey-blue floor (#eaeef4) + steel-blue accent (#3d6b96) + dark slate ink (#1f2b38).
   Motif: top-down desk plan, dimension-annotation lines with end ticks, plan grid.
   Squared corners only (no rounding). Sans body + mono measurement labels. */

:root {
  --bg: #eaeef4;
  --panel: #ffffff;
  --ink: #1f2b38;
  --muted: #6b7986;
  --line: #ccd6e0;
  --line-2: #b7c3d0;
  --accent: #3d6b96;
  --accent-d: #2f5578;
  --tick: rgba(61, 107, 150, .55);
  --grid: rgba(31, 43, 56, .05);
  --dc: #34688f;
  --lt: #b5822a;
  --eq: #2f7d7a;
  --ra: #6d5f8c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); text-decoration: underline; }
.mono, .brand-tag, .tile-tag, .spec-key, .zone-more, .slot-count, .trail,
.hero-tag, .zones-label, .note-num, .spec-title, .trow .fk {
  font-family: "SFMono-Regular", "Consolas", "Roboto Mono", "Menlo", monospace;
}

/* ---- header: white bar topped by a measured tick rule ---- */
.plan-header { background: var(--panel); border-bottom: 1px solid var(--line-2); }
.plan-header::before {
  content: ""; display: block; height: 6px;
  border-top: 2px solid var(--accent);
  background: repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 22px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; }
.plan-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.plan-mark { display: inline-flex; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; letter-spacing: .2px; }
.brand-tag { font-size: 10px; color: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; }
.plan-nav { display: flex; gap: 22px; }
.plan-nav a {
  color: var(--ink); font-size: 14px; font-weight: 600; padding: 3px 0;
  border-bottom: 2px solid transparent;
}
.plan-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* ---- hero: plan grid with corner crosshairs + dimension strip ---- */
.plan-hero {
  position: relative;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--panel);
  border-bottom: 1px solid var(--line-2);
  padding: 48px 0 40px;
}
.plan-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 10px;
  background:
    linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 40px) 0 0 / 40px 10px,
    linear-gradient(90deg, var(--line-2) 0 100%) center / 100% 1px no-repeat;
}
.hero-tag { color: var(--accent); font-size: 11px; letter-spacing: 2.6px; font-weight: 700; margin-bottom: 12px; }
.plan-hero h1 { font-size: 34px; line-height: 1.14; font-weight: 700; margin-bottom: 14px; max-width: 780px; }
.hero-lede { max-width: 690px; color: var(--muted); font-size: 17px; }

/* ---- sections + zone blocks ---- */
section { padding: 28px 0; }
.zones-label {
  font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted);
  font-weight: 700; margin-bottom: 14px;
}
.zone-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.zone-head h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.zone-bar { display: inline-block; width: 13px; height: 13px; background: var(--accent); }
.zone-bar.z-lt { background: var(--lt); }
.zone-bar.z-eq { background: var(--eq); }
.zone-bar.z-ra { background: var(--ra); }
.zone-more { font-size: 12px; font-weight: 600; letter-spacing: .4px; }

/* ---- zone rail (category nav) — dimension-tagged slots ---- */
.zone-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.zone-slot {
  display: flex; flex-direction: column; gap: 5px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-2);
  border-top: 3px solid var(--accent);
  padding: 13px 15px 15px;
}
.zone-slot:hover { text-decoration: none; border-color: var(--accent); }
.zone-slot .slot-count { font-size: 11px; color: var(--muted); letter-spacing: .5px; }
.zone-slot .slot-name { font-weight: 700; font-size: 16px; }
.zone-slot.z-lt { border-top-color: var(--lt); }
.zone-slot.z-eq { border-top-color: var(--eq); }
.zone-slot.z-ra { border-top-color: var(--ra); }
.zones-inline { padding-top: 4px; }

/* ---- the setup wall + plan tiles ---- */
.setup-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.setup-tile {
  position: relative;
  display: flex; flex-direction: column; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-2);
}
.setup-tile::before,
.setup-tile::after {
  content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none;
}
.setup-tile::before { right: 6px; top: 6px; border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.setup-tile::after { left: 6px; bottom: 6px; border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.setup-tile:hover { border-color: var(--accent); text-decoration: none; }
.tile-cap { display: block; padding: 9px 12px; border-bottom: 1px dashed var(--line-2); background: #f6f8fb; }
.tile-tag { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.z-dc { color: var(--dc); }
.z-lt { color: var(--lt); }
.z-eq { color: var(--eq); }
.z-ra { color: var(--ra); }
.tile-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.tile-title { font-weight: 700; font-size: 16px; line-height: 1.32; }
.tile-facts {
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--line); padding-top: 10px;
}
.trow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.trow .fk { flex: 0 0 auto; font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.trow .fv { text-align: right; color: var(--ink); }
.tile-note { font-size: 13px; color: var(--muted); }

/* ---- page head ---- */
.leaf-head { padding: 34px 0 10px; }
.trail { font-size: 12px; color: var(--muted); margin-bottom: 8px; letter-spacing: .3px; }
.trail a { color: var(--muted); }
.leaf-head h1 { font-size: 30px; line-height: 1.2; font-weight: 700; }
.lede { color: var(--muted); margin-top: 8px; }

/* ---- entry layout: setup sheet + column ---- */
.sheet { display: grid; grid-template-columns: 310px 1fr; gap: 26px; padding-top: 22px; padding-bottom: 40px; }
.spec-card { align-self: start; background: var(--panel); border: 1px solid var(--line-2); }
.spec-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; border-bottom: 1px dashed var(--line-2); background: #f6f8fb;
}
.spec-title { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.spec-list { font-variant-numeric: tabular-nums; }
.spec-row { display: flex; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row:last-child { border-bottom: 0; }
.spec-key {
  flex: 0 0 40%; padding: 9px 14px; color: var(--muted); border-right: 1px solid var(--line);
  font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}
.spec-val { flex: 1; padding: 9px 14px; }
.spec-row.is-legend { background: rgba(61, 107, 150, .08); box-shadow: inset 4px 0 0 var(--accent); }
.spec-row.is-legend .spec-val { font-weight: 600; }

.column { background: var(--panel); border: 1px solid var(--line-2); padding: 26px 30px; }
.column-legal h2 { font-size: 18px; font-weight: 700; margin: 18px 0 8px; }
.column-legal p { margin-bottom: 12px; }
.note { margin-bottom: 24px; }
.note:last-child { margin-bottom: 0; }
.note h2 {
  display: flex; align-items: baseline; gap: 10px; font-size: 19px; font-weight: 700;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.note-num {
  font-size: 11px; font-weight: 700; color: #fff; background: var(--accent);
  padding: 2px 7px; font-variant-numeric: tabular-nums;
}
.column p { margin-bottom: 12px; color: #2c3946; }
.column p:last-child { margin-bottom: 0; }
.related-list { list-style: none; }
.related-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.related-list li:last-child { border-bottom: 0; }

/* ---- footer ---- */
.plan-footer { background: var(--panel); border-top: 1px solid var(--line-2); margin-top: 24px; }
.plan-footer::before {
  content: ""; display: block; height: 6px;
  border-top: 2px solid var(--accent);
  background: repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 22px);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding: 28px 20px; }
.footer-brand { flex: 1 1 340px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.footer-nav { display: flex; gap: 16px; }
.footer-nav a { color: var(--ink); font-size: 14px; font-weight: 600; }
.copyright { flex: 1 1 100%; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---- responsive: collapse to single column ---- */
@media (max-width: 900px) {
  .setup-wall { grid-template-columns: repeat(2, 1fr); }
  .zone-rail { grid-template-columns: repeat(2, 1fr); }
  .sheet { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .setup-wall, .zone-rail { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .plan-nav { gap: 14px; }
  .plan-hero h1 { font-size: 27px; }
  .column { padding: 20px 18px; }
}
