/* ===== Strawberry Hilltop Warehouse - site stylesheet ===== */

/* ---- Self-hosted fonts ---- */

@font-face{font-family:'Archivo';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/Archivo-400.woff2') format('woff2');}
@font-face{font-family:'Archivo';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/Archivo-500.woff2') format('woff2');}
@font-face{font-family:'Archivo';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/Archivo-600.woff2') format('woff2');}
@font-face{font-family:'Archivo';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/Archivo-700.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:500;font-display:swap;src:url('assets/fonts/Fraunces-500i.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/Fraunces-400.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/Fraunces-600.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/Fraunces-700.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:900;font-display:swap;src:url('assets/fonts/Fraunces-900.woff2') format('woff2');}
@font-face{font-family:'Saira Condensed';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/SairaCondensed-500.woff2') format('woff2');}
@font-face{font-family:'Saira Condensed';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/SairaCondensed-600.woff2') format('woff2');}
@font-face{font-family:'Saira Condensed';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/SairaCondensed-700.woff2') format('woff2');}

/* ---- Design tokens ---- */

:root {
  /* New palette (Strawberry Hilltop / old-project design language) */
  --paper: #f2ead9;
  --paper-2: #e9dec8;
  --ink: #23190f;
  --ink-soft: #4a3c2c;
  --brick: #9a3b27;
  --brick-deep: #7a2c1d;
  --ochre: #c8922f;
  --ochre-deep: #a9781f;
  --orion-blue: #39496b;
  --line: #d3c4a3;
  --shadow: rgba(35,25,15,.18);

  /* Legacy token names remapped to the new palette so functional
     component styles recolor automatically. */
  --color-bg: #f2ead9;
  --color-text: #23190f;
  --color-text-muted: #4a3c2c;
  --color-hairline: #d3c4a3;
  --color-accent: #9a3b27;

  --font-sans: 'Archivo', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-label: 'Saira Condensed', 'Archivo', sans-serif;

  --container-prose: 720px;
  --container-wide:  1240px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 6px;
  --radius-md: 9px;

  --shadow-sm: 0 1px 2px rgba(35,25,15,0.08);
}

/* ---- Reset ---- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* subtle paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
/* keep real content above the grain */
.site-header, main, .site-footer { position: relative; z-index: 2; }

@media (max-width: 768px) {
  body { font-size: 16px; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { padding-left: 1.25em; }

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.display { font-size: clamp(46px, 6.4vw, 88px); font-weight: 900; letter-spacing: -0.025em; }
h1, .h1 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 900; letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 600; }
h3, .h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; }

p { margin: 0 0 1em; }

.small { font-size: 14px; font-weight: 500; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 var(--space-3);
  display: block;
}

.subtitle {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink-soft);
  max-width: 46em;
  margin: 0;
}

/* ---- Layout containers ---- */

.container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 28px;
}
.container--prose {
  max-width: var(--container-prose);
}
.section {
  padding: 84px 0;
}
.section--alt { background: var(--paper-2); }
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(242,234,217,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(35,25,15,0.06); }

.site-header__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 768px) {
  .site-header__inner { padding: 12px 20px; }
}

/* round brick "SH" mark */
.mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--brick);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 2px rgba(242,234,217,.35);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  line-height: 1;
  text-decoration: none;
  color: inherit;
}
.wordmark__text { display: flex; flex-direction: column; }
.wordmark__main {
  font-family: var(--font-label);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.wordmark__main .dot { color: var(--brick); }
.wordmark__sub {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---- Nav ---- */

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: var(--font-label);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 13px;
  border-radius: 7px;
  position: relative;
  transition: color 150ms ease, background 150ms ease;
}
.site-nav a:hover { color: var(--ink); background: rgba(154,59,39,.08); }
.site-nav a[aria-current="page"] { color: var(--brick-deep); }
.site-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 2px;
  background: var(--ochre);
}

/* header CTA button */
.nav-cta {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--brick);
  color: var(--paper);
  border: 0;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.18s;
  box-shadow: 0 2px 0 var(--brick-deep);
}
.nav-cta:hover { background: var(--brick-deep); transform: translateY(1px); box-shadow: 0 1px 0 var(--brick-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; display: block; }

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: 100%;            /* just below the header (robust to header height) */
    left: 0;
    right: 0;
    height: 100vh;        /* size by viewport, NOT bottom:0 - the header's backdrop-filter
                             makes it the containing block, which collapsed the old overlay */
    height: 100dvh;
    z-index: 200;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 40px 24px;
    transform: translateX(100%);
    transition: transform 250ms ease;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav a[aria-current="page"]::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---- Footer ---- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
  padding: 54px 0 30px;
  margin-top: 96px;
}
.site-footer__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 700px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}
.site-footer .wordmark__main { color: var(--paper); }
.site-footer .wordmark__main .dot { color: var(--ochre); }
.site-footer .wordmark__sub { color: rgba(242,234,217,.6); }
.site-footer__contact { font-size: 14px; color: rgba(242,234,217,.7); line-height: 1.7; }
.site-footer__contact a { color: var(--paper); font-weight: 600; }
.site-footer__contact a:hover { color: var(--ochre); }
.site-footer__copyright {
  margin-top: var(--space-6);
  font-size: 12px;
  color: rgba(242,234,217,.5);
}

/* ---- Buttons ---- */

.btn,
.btn-primary,
.btn-ghost {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 0;
  transition: 0.18s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: var(--brick);
  color: var(--paper);
  box-shadow: 0 3px 0 var(--brick-deep);
}
.btn-primary:hover { background: var(--brick-deep); transform: translateY(2px); box-shadow: 0 1px 0 var(--brick-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* text / arrow link */
.btn-arrow {
  display: inline-block;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 150ms ease;
}
.btn-arrow::after {
  content: '→';
  color: var(--brick);
  margin-left: 0.4em;
  transition: transform 150ms ease;
  display: inline-block;
}
.btn-arrow:hover { border-bottom-color: var(--ink); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---- Cards (generic content cards) ---- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px var(--shadow); border-color: var(--ochre); }
.card__title { margin: 0 0 var(--space-2); font-family: var(--font-serif); font-size: 22px; font-weight: 600; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brick); }
.card__meta {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: var(--space-2);
}

/* feature card + icon (Home feature grid) */
.card__ic {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--brick);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

/* ---- Hero (editorial) ---- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}
.hero-grid { display: block; }
/* About hero: copy left, portrait right (shows the whole photo, no cropped heads) */
.about-hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center; padding: 56px 0; }
.about-hero__img img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); border: 1px solid var(--line); box-shadow: 0 14px 40px var(--shadow); }
@media (max-width: 760px) { .about-hero { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; } }
/* Building photo across the top, with the headline overlaid on it. */
.hero-photo { position: relative; width: 100%; aspect-ratio: 21 / 9; max-height: 560px; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; filter: saturate(1.05); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,14,8,.74) 0%, rgba(20,14,8,.22) 32%, rgba(20,14,8,0) 58%); }
.hero-photo__over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-width: var(--container-wide); margin: 0 auto; padding: 0 28px 34px; }
.hero-photo__over .hero__kicker { color: #f0e5cf; margin-bottom: 12px; }
.hero-photo__over .hero__kicker::before { background: var(--ochre); }
.hero-photo__over .hero__headline { color: #fff; font-size: clamp(40px, 6vw, 82px); text-shadow: 0 2px 24px rgba(0,0,0,.4); margin: 0; }
.hero-photo__over .hero__headline em { color: var(--ochre); }
.hero-copy { padding: 40px 0 52px; max-width: 760px; }
@media (max-width: 760px) { .hero-photo { aspect-ratio: 3 / 2; } .hero-copy { padding: 28px 0 40px; } }
/* History hero variant: taller crop, headline anchored to the top over a top-down scrim. */
.hero-photo--tall { aspect-ratio: 16 / 9; max-height: 620px; }
.hero-photo--toptext::after { background: linear-gradient(180deg, rgba(20,14,8,.72) 0%, rgba(20,14,8,.22) 34%, rgba(20,14,8,0) 62%); }
.hero-photo__over--top { top: 0; bottom: auto; padding: 40px 28px 0; }
.hero-photo__over .eyebrow--light { color: var(--ochre); }
.hero-photo__over--top .hero__headline { color: #fff; font-family: var(--font-serif); font-weight: 900; letter-spacing: -.02em; line-height: 1.02; font-size: clamp(38px, 5.6vw, 78px); text-shadow: 0 2px 24px rgba(0,0,0,.45); margin: 10px 0 0; }
@media (max-width: 760px) { .hero-photo--tall { aspect-ratio: 4 / 3; } }
.hero__kicker {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 14px;
  color: var(--brick);
  font-weight: 600;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__kicker::before { content: ""; width: 46px; height: 2px; background: var(--ochre); }
.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(46px, 6.6vw, 92px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
}
.hero__headline em { font-style: italic; font-weight: 500; color: var(--brick); }
.hero__subhead {
  font-size: 20px;
  color: var(--ink-soft);
  margin: 26px 0 18px;
  max-width: 46ch;
}
.hero-meta { display: flex; gap: 30px; flex-wrap: wrap; margin: 14px 0 36px; }
.hero-meta div { border-left: 2px solid var(--ochre); padding-left: 14px; }
.hero-meta .n { font-family: var(--font-serif); font-size: 30px; font-weight: 700; line-height: 1; }
.hero-meta .l {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 5px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Full-bleed horizontal band - shows the whole building edge to edge, below the copy. */
.hero-img { position: relative; overflow: hidden; width: 100vw; left: 50%; margin-left: -50vw; aspect-ratio: 12 / 5; max-height: 600px; border-top: 1px solid var(--line); }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; filter: saturate(1.04); }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(35,25,15,.30), transparent 34%); }
@media (max-width: 760px) { .hero-img { aspect-ratio: 3 / 2; } .hero-copy { padding: 44px 0 30px; } }
.hero-img .tag {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  background: rgba(35,25,15,.82);
  color: var(--paper);
  padding: 11px 16px;
  border-radius: 8px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12.5px;
  border-left: 3px solid var(--ochre);
  max-width: 80%;
}

/* Legacy hero fallbacks (compact / bg / eyebrow / subhead) used by other pages */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  z-index: 0;
}
.hero--photo { color: var(--paper); }
.hero--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35,25,15,0.15) 0%, rgba(35,25,15,0.72) 100%);
  z-index: 1;
}
.hero--photo .hero__inner { padding: 96px 28px 64px; }
.hero--photo .hero__headline,
.hero--photo .hero__subhead { color: var(--paper); }
.hero__eyebrow {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 var(--space-4);
}
.hero--compact { min-height: 320px; }
.hero--compact .hero__inner { padding: 84px 28px 48px; }

/* ---- Feature / content grids ---- */

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 54px 0 44px; }
  .hero-img { min-height: 420px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .feat-grid { grid-template-columns: 1fr; }
}

/* tenant chips */
.tenants { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 11px 20px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip b { width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); }

/* rule / lead / pullquote / note */
.rule { height: 1px; background: var(--line); max-width: var(--container-wide); margin: 0 auto; }
.lead { font-size: 20px; color: var(--ink-soft); max-width: 62ch; }
.note {
  background: var(--paper-2);
  border-left: 3px solid var(--ochre);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 70ch;
}
.note b { color: var(--ink); font-family: var(--font-label); letter-spacing: 0.05em; text-transform: uppercase; font-size: 13px; }
.pullquote { border-left: 4px solid var(--ochre); padding: 6px 0 6px 26px; margin-top: 30px; }
.pullquote p { font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--ink); }
.pullquote .by {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--brick);
  margin-top: 14px;
  font-weight: 600;
  font-style: normal;
}

/* section on dark ink background (closing CTA) */
.section--ink {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.section--ink h2 { color: var(--paper); }
.section--ink .eyebrow { color: var(--ochre); }
.section--ink p { color: rgba(242,234,217,.78); }
.section--ink .btn-primary { background: var(--ochre); color: var(--ink); box-shadow: 0 3px 0 var(--ochre-deep); }
.section--ink .btn-primary:hover { background: var(--ochre-deep); color: var(--paper); box-shadow: 0 1px 0 var(--ochre-deep); }

/* ---- Draft banner (About page placeholder) ---- */

.draft-banner {
  background: var(--paper-2);
  border: 1px solid var(--ochre);
  border-left: 3px solid var(--ochre);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.draft-banner strong {
  display: block;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: var(--space-2);
}

/* ---- Tenant card ---- */

.tenant {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.tenant__logo {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tenant__name { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin: 0; }
.tenant__desc { font-size: 14px; color: var(--ink-soft); margin: 0; }
.tenant__link { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; font-weight: 600; color: var(--brick); }

/* ---- History era ---- */

.era {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 84px 0;
  align-items: start;
}
.era:nth-child(even) { direction: rtl; }
.era:nth-child(even) > * { direction: ltr; }
@media (max-width: 768px) {
  .era, .era:nth-child(even) { grid-template-columns: 1fr; direction: ltr; gap: 24px; }
}
.era__img { aspect-ratio: 3/2; background-size: cover; background-position: center; border-radius: var(--radius-md); border: 1px solid var(--line); }
.era__year {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 var(--space-3);
}
.era__hedged {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  padding-left: var(--space-4);
  margin: var(--space-4) 0;
}

/* ---- Floor plans gate ---- */

.gate {
  max-width: 400px;
  margin: 96px auto;
  text-align: center;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.gate__title { margin: 0 0 var(--space-3); }
.gate__form { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.gate__input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  background: #fff;
}
.gate__input:focus { outline: 0; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(154,59,39,.12); }
.gate__submit {
  background: var(--brick);
  color: var(--paper);
  border: 0;
  padding: 12px 20px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 0 var(--brick-deep);
}
.gate__error { color: var(--brick-deep); font-size: 13px; margin-top: var(--space-3); min-height: 1em; }

.plans { display: none; }
.plans.is-unlocked { display: block; }
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.plan__header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-3); }
.plan__title { margin: 0; font-family: var(--font-serif); font-size: 24px; font-weight: 600; }
.plan__sf { font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brick); }
.plan__caption { font-size: 14px; color: var(--ink-soft); margin: 0 0 var(--space-4); }
.plan__embed { width: 100%; height: 600px; border: 1px solid var(--line); }
.plan__download { font-size: 13px; margin-top: var(--space-3); display: inline-block; }

/* ---- Focus outline (a11y) ---- */

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

/* ===== Floor plans & availability ===== */
:root {
  --available: #2EA043;
  --rented: #E0662E;
  --common: #9A9A9A;
}
.plans-head { margin-bottom: var(--space-6); }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--color-text); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: var(--space-6); }
.seg button { appearance: none; border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: var(--color-text-muted); padding: 10px 16px; border-right: 1px solid var(--color-hairline); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--color-text); color: var(--color-bg); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin: 0 0 var(--space-6); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat { background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-5); }
.stat .lab { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-muted); }
.stat .big { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 3px 0 1px; }
.stat .big small { font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.stat .sub { font-size: 12px; color: var(--color-text-muted); }

/* Statistics button + panel */
.seg-stats { text-decoration: none; background: var(--paper-2); cursor: pointer; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: var(--ink); padding: 10px 16px; border-left: 1px solid var(--color-hairline); display: inline-flex; align-items: center; }
.seg-stats:hover { background: var(--ochre); color: #fff; }
.report-tabbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-top: 18px; }
.report-tabbar .report-tabs { margin: 0; }
.rev-widget { text-align: right; }
.rev-seg { display: inline-flex; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); overflow: hidden; }
.rev-seg button { appearance: none; border: 0; border-right: 1px solid var(--color-hairline); background: transparent; cursor: pointer; font-weight: 600; font-size: 12px; color: var(--color-text-muted); padding: 6px 12px; font-family: inherit; }
.rev-seg button:last-child { border-right: 0; }
.rev-seg button.is-active { background: var(--brick); color: #fff; }
.rev-figure { margin-top: 8px; }
.rev-amt { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--brick-deep); }
.rev-per { font-size: 14px; color: var(--color-text-muted); margin-left: 4px; }
.rev-split { font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }
.rev-note { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; max-width: 340px; margin-left: auto; }
.report-tabs { display: inline-flex; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); overflow: hidden; margin: 18px 0 0; }
.report-tab { padding: 9px 18px; font-weight: 600; font-size: 13px; letter-spacing: .03em; color: var(--color-text-muted); text-decoration: none; border-right: 1px solid var(--color-hairline); }
.report-tab:last-child { border-right: 0; }
.report-tab.is-active { background: var(--color-text); color: var(--color-bg); }
.report-tab.is-soon { opacity: .5; cursor: default; }
.report-tab.is-soon::after { content: " · soon"; font-size: 11px; }
.paid-ok { color: #2e7d32; font-weight: 600; font-size: 12px; }
.mtm-badge { display: inline-block; background: var(--ochre); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
/* Mobile access/keys quick-reference */
.container--narrow { max-width: 640px; }
.ac-search { width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 16px; font-family: inherit; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); margin: 16px 0 20px; background: #fff; }
.ac-controls { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 16px 0 20px; }
.ac-controls .ac-search { margin: 0; flex: 1 1 240px; }
.ac-showall { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; white-space: nowrap; cursor: pointer; }
.ac-table td, .ac-table th { white-space: normal; vertical-align: top; }
.ac-t-unit { font-weight: 700; white-space: nowrap; }
.ac-t-type { white-space: nowrap; }
.ac-t-details { font-size: 15px; font-weight: 600; }
.ac-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px; background: var(--paper); }
.ac-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ac-unit { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--ink); }
.ac-floor { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); white-space: nowrap; }
.ac-tenant { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.ac-tenant--none { opacity: .55; }
.ac-type { margin-top: 8px; font-weight: 600; font-size: 15px; }
.ac-notes { margin-top: 8px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.ac-notes__l { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 3px; }
.ac-notes__v { font-size: 17px; font-weight: 600; line-height: 1.4; word-break: break-word; }
.ac-notes--empty { margin-top: 8px; color: var(--ink-soft); font-style: italic; font-size: 13px; }
.ac-login { max-width: 340px; }
.ac-login .btn { width: 100%; margin-top: 6px; }
.ac-login__err { color: var(--brick); font-size: 13px; margin-top: 8px; min-height: 1em; }
.mobile-hint { font-size: 14px; color: var(--color-text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.mobile-hint__icon { font-size: 28px; line-height: 1; }
.mobile-url { font-weight: 700; color: var(--brick-deep); text-decoration: underline; word-break: break-all; }
.rent-row { cursor: pointer; }
.rent-row:hover td { background: var(--paper-2); }
.lp-title { font-family: var(--font-serif); font-size: 22px; margin: 0 0 4px; }
.lp-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lp-select { padding: 8px 10px; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; min-width: 260px; background: #fff; }
.letter-box { max-width: 660px; }
.lp-textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; padding: 12px; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); resize: vertical; }
.lp-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lp-tokens code { background: var(--paper-2); border: 1px solid var(--color-hairline); border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.f-lterm.is-off { opacity: .45; background: var(--paper-2); }
.lease-end { font-size: 13.5px; color: var(--brick-deep); font-weight: 600; }
.lease-end:empty::before { content: "- set a start date and term"; color: var(--ink-soft); font-weight: 400; }
.ud-list { display: flex; flex-direction: column; gap: 2px; }
.ud-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--color-hairline); align-items: center; }
.ud-row:last-child { border-bottom: 0; }
.ud-k { color: var(--color-text-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.ud-v { font-size: 15px; }
.ud-v .priv { color: var(--ochre); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-style: normal; margin-left: 6px; }
.urec--flash { outline: 2px solid var(--ochre); outline-offset: 2px; border-radius: 6px; }
.greet-box { max-width: 420px; text-align: center; }
.greet-box h3 { justify-content: center; }
.greet-box .confirm-actions { display: flex; justify-content: center; }
.greet-quote { color: var(--ochre); font-size: 16px; font-style: italic; line-height: 1.5; }
.common-parent td:first-child { font-weight: 600; }
.common-child td { color: var(--color-text-muted); }
/* WMS login: a small lock card, the password and its arrow button on one line. */
.confirm-box.login-box { max-width: 320px; padding: 26px 24px 16px; border-radius: 16px; text-align: center; }
.confirm-box.login-box h3 { display: block; margin: 0 0 16px; font-size: 21px; font-weight: 500; }
.login-box h3 em { color: var(--brick); }
.login-box form { display: block; }
.login-lock { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: var(--brick); color: var(--paper); display: grid; place-items: center; }
.login-line { display: flex; }
.login-pw { position: relative; flex: 1; min-width: 0; }
.login-pw input { width: 100%; box-sizing: border-box; font: 16px var(--font-sans); padding: 11px 52px 11px 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: #fffdf8; color: var(--ink); }
.login-pw input:focus { outline: 2px solid var(--ochre); outline-offset: -2px; }
.login-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 6px; cursor: pointer; font: 600 12px var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.login-go { width: 50px; flex: none; border: 0; border-radius: 0 8px 8px 0; background: var(--ink); color: var(--paper); font-size: 22px; cursor: pointer; }
.login-go:hover { background: var(--brick); }
.login-err { margin: 12px 0 0 !important; padding: 9px 12px; border: 2px solid #b91c1c; border-radius: 8px; background: #fdecec; color: #991b1b !important; font-weight: 700; font-size: 14px !important; text-align: center; }
.login-cancel { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--ink-soft); font: 13px var(--font-sans); text-decoration: underline; cursor: pointer; }
/* Stop the browser autofill highlight from drawing a colored box over password/text fields. */
.fld input:-webkit-autofill,
.fld input:-webkit-autofill:hover,
.fld input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
.stats-box { max-width: 580px; }
.stats-scroll { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats-table th, .stats-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: right; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.stats-table th { font-family: var(--font-label); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; color: var(--ink-soft); }
.stats-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.stats-table .stats-total td { font-weight: 700; border-top: 2px solid var(--line); }
.dim { position: relative; height: 30px; margin: 14px 2px 4px; }
.dim .rail { position: absolute; top: 13px; left: 0; right: 0; height: 8px; border-radius: 1px; background: var(--available); overflow: hidden; border: 1px solid rgba(0,0,0,.12); }
.dim .fill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--rented); transition: width .45s cubic-bezier(.4,0,.2,1); }
.dim .cap { position: absolute; top: 8px; width: 2px; height: 18px; background: var(--color-text); }
.dim .cap.l { left: 0; } .dim .cap.r { right: 0; }
.dim .ticks { position: absolute; top: 9px; left: 0; right: 0; height: 6px; }
.dim .tk { position: absolute; top: 0; width: 1px; height: 6px; background: rgba(0,0,0,.30); }

.grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: start; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.plan { position: relative; background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); padding: 10px; }
.plan svg { display: block; width: 100%; height: auto; }
.plan-zoom { position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(35,25,15,0.85); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.plan-zoom:hover { background: var(--ink); }

/* crisp vector unit labels (shown in the enlarged view) */
/* NOTE: font-size and stroke-width are set inline (scaled per-floor in
   plans-app.js) so labels stay a consistent on-screen size across floors.
   Do NOT set font-size here via the `font` shorthand - it would override
   the scaled inline size and render the numbers microscopically small. */
.ulabel-id { font-family: var(--font-sans); font-weight: 800; fill: #14331d; paint-order: stroke; stroke: rgba(255,255,255,0.92); stroke-linejoin: round; }
.ulabel-sf { font-family: var(--font-sans); font-weight: 600; fill: #33403a; paint-order: stroke; stroke: rgba(255,255,255,0.92); stroke-linejoin: round; }
.ulabel-tn { font-family: var(--font-sans); font-weight: 600; font-style: italic; fill: #7a2c1d; paint-order: stroke; stroke: rgba(255,255,255,0.92); stroke-linejoin: round; }
.dimlabel { font-family: var(--font-sans); pointer-events: none; fill: #6b7280; font-weight: 500; paint-order: stroke; stroke: #fff; stroke-width: 2; }
.dimlabel--measured { font-style: italic; }

/* enlarge lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20,14,8,0.92); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox__inner { position: relative; background: #fff; border-radius: var(--radius-sm); max-width: 96vw; max-height: 94vh; overflow: auto; padding: 16px; }
.lightbox__close { position: absolute; top: 6px; right: 12px; z-index: 2; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--color-text); cursor: pointer; }
.lightbox__stage svg { display: block; width: min(90vw, 1300px); height: auto; }
.plan-empty { padding: 48px 24px; text-align: center; color: var(--color-text-muted); display: flex; flex-direction: column; gap: 8px; }
.plan-empty b { color: var(--color-text); font-size: 16px; }
.unit { transition: opacity .15s; }
.unit.is-editable { cursor: pointer; }
/* Available-only mode: non-available rooms are dimmed and non-interactive for customers. */
.unit.is-inert { opacity: 0.4; cursor: default; pointer-events: none; }
.unit.is-editable:hover { opacity: .78; }
.unit-out { fill: none; pointer-events: none; }
.ulabel { pointer-events: none; font-family: var(--font-sans); font-weight: 700; fill: #444; paint-order: stroke; stroke: rgba(255,255,255,0.85); stroke-linejoin: round; }

aside { position: static; display: flex; flex-direction: column; gap: var(--space-4); }
/* Under the full-width plan, legend + admin sit side by side to save vertical space */
.plans-underplan { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .plans-underplan { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); padding: var(--space-4) var(--space-5); }
.card h2 { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 var(--space-4); }
.card h2 .muted { color: var(--color-hairline); }
.legend { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.legend-row { display: flex; align-items: center; gap: 10px; }
.legend--top { padding: 10px 14px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: var(--space-6); font-size: 13.5px; }

/* Floor selector (left) + admin controls (right) above the plan */
.plan-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 16px; flex-wrap: wrap; margin-bottom: var(--space-4); }
.plan-topbar .seg { margin-bottom: 0; }
.admin-controls { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.admin-controls:empty { display: none; }

/* When signed in to the WMS, hide the public title + big footer to keep a clean working view */
body.is-admin .plans-head { display: none; }
/* WMS: the floor tabs, legend and toolbar stay pinned under the site header while the plan scrolls. */
/* Floor plans page: the title sits close under the menu, and the floor tabs + legend pin under
   the site header for visitors too, so the floor being shown stays in view while the plan scrolls. */
.section--plans { padding-top: 28px; }
.section--plans .plans-head { margin-bottom: var(--space-4); }
.section--plans .plan-topbar { position: sticky; top: var(--site-header-h, 0px); z-index: 90; align-items: center; background: var(--paper); padding: 8px 0; border-bottom: 1px solid var(--line); }
.section--plans .legend--top { display: none; }
.section--plans .legend--bar { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; padding: 6px 12px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legend--bar { display: none; }
body.is-admin .legend--top { display: none; }
body.is-admin .plan-topbar { position: sticky; top: var(--site-header-h, 0px); z-index: 90; align-items: center; background: var(--paper); padding: 10px 0; border-bottom: 1px solid var(--line); }
body.is-admin .legend--bar { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; padding: 5px 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
body.is-admin .legend--bar .legend-row { gap: 6px; }
body.is-admin .legend--bar .sw { width: 12px; height: 12px; }
/* A slimmer pinned bar: smaller floor tabs and buttons, so it takes less of the screen. */
body.is-admin .plan-topbar { padding: 6px 0; gap: 6px 12px; }
body.is-admin .plan-topbar .seg button, body.is-admin .plan-topbar .seg-stats { padding: 6px 11px; font-size: 12px; }
body.is-admin .plan-topbar .admin-controls { gap: 5px; }
body.is-admin .plan-topbar .admin-btn { padding: 5px 10px; font-size: 12px; min-height: 0; }
body.is-admin .site-footer { display: none; }
/* Tidy WMS toolbar: no empty band above it, one button size, one accent (brick) for "on",
   red kept for Reset only, and the buttons split into an Admin group and a View group. */
body.is-admin main > .section:first-child { padding-top: 12px; }
body.is-admin .plan-topbar .admin-controls { flex-basis: 100%; justify-content: space-between; gap: 6px 16px; }
body.is-admin .plan-topbar .admin-btn { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; font-size: 12px; line-height: 1; background: #fff; color: var(--color-text); border: 1px solid var(--color-hairline); text-decoration: none; white-space: nowrap; }
body.is-admin .plan-topbar .admin-btn:hover { border-color: var(--brick); }
body.is-admin .plan-topbar .admin-btn--active { background: var(--brick); color: #fff; border-color: var(--brick); }
body.is-admin .plan-topbar .admin-btn--danger { background: #fff; color: #c0392b; border-color: rgba(192,57,43,.45); }
body.is-admin .plan-topbar .admin-btn--danger:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.admin-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.admin-group__l { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; color: var(--ink-soft); margin-right: 3px; }
.admin-group__sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }

/* "Signed in to the WMS" badge in the header */
/* Pill sits on the menu line; version floats just beneath it (absolute) so it doesn't push the pill up. */
.wms-badge-wrap { position: relative; display: inline-flex; align-items: center; align-self: center; }
.wms-badge-ver { position: absolute; top: 100%; right: 10px; margin-top: 3px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; color: var(--ink-soft); white-space: nowrap; }
.wms-badge { display: inline-flex; align-items: center; gap: 6px; background: #1f7a33; color: #fff; padding: 5px 6px 5px 12px; border-radius: 100px; font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.wms-badge__link { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.wms-badge__link:hover { text-decoration: underline; }
.wms-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #8ef0a6; box-shadow: 0 0 0 3px rgba(142,240,166,.3); flex: none; }
.wms-badge__out { background: rgba(255,255,255,.22); color: #fff; border: 0; border-radius: 100px; padding: 4px 11px; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.wms-badge__out:hover { background: rgba(255,255,255,.38); }
.sw { width: 16px; height: 16px; border-radius: 2px; }
.sw--avail { background: var(--available); opacity: .55; }
.sw--rented { background: var(--rented); opacity: .55; }
.sw--common { background: radial-gradient(circle, #a9a99f 1px, transparent 1.4px) 0 0 / 5px 5px, #f7f7f4; border: 1px solid rgba(154,154,154,.55); }

.list { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; }
.list .hint { padding: 8px 4px; color: var(--color-text-muted); font-size: 14px; }
.row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; background: transparent; border: 0; border-bottom: 1px solid var(--color-hairline); padding: 8px 2px; text-align: left; font-family: inherit; cursor: default; }
body.is-admin .row { cursor: pointer; }
.row .rid { font-weight: 700; font-size: 14px; }
.row .rsf { font-size: 12px; color: var(--color-text-muted); }
.pill { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; }
.pill.available { background: rgba(46,160,67,.16); color: #1f7a33; }
.pill.rented { background: rgba(224,102,46,.18); color: #b8481c; }

.admin-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-login { display: flex; gap: 8px; width: 100%; }
.admin-input { flex: 1; padding: 9px 11px; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; }
.admin-input:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent); }
.admin-btn { background: var(--color-text); color: var(--color-bg); border: 0; padding: 9px 14px; font-weight: 600; font-size: 13px; border-radius: var(--radius-sm); cursor: pointer; }
.admin-btn--ghost { background: transparent; color: var(--color-text); border: 1px solid var(--color-hairline); }
.admin-note { font-size: 13px; color: var(--color-text-muted); }
.admin-note--on { color: #1f7a33; font-weight: 600; }
.admin-hint { font-size: 13px; color: #8a1c1c; min-height: 1em; margin: 8px 0 0; opacity: 0; transition: opacity .2s; }
.admin-hint.show { opacity: 1; }

/* full-building plans gallery */
.plan-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--space-5); }
.plan-tile { margin: 0; }
.plan-tile__btn { display: block; width: 100%; padding: 8px; background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 150ms ease; }
.plan-tile__btn:hover { border-color: var(--ochre); }
.plan-tile__btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.plan-tile__btn img { display: block; width: 100%; height: 200px; object-fit: contain; background: #fff; }
.plan-tile figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 15px; font-weight: 600; }
.plan-tile figcaption a { font-size: 12px; font-weight: 600; color: var(--color-accent); white-space: nowrap; }
.plan-tile figcaption a:hover { text-decoration: underline; }
.lightbox__stage img { display: block; width: auto; max-width: min(92vw, 1400px); max-height: 86vh; height: auto; }

/* common-status pill + swatch */
.pill.common { background: rgba(154,154,154,.18); color: #5a5a52; }
.unit.is-common { cursor: default; }
body.is-admin .unit.is-common.is-editable { cursor: pointer; }

/* ---------- Shape editor (admin only) ---------- */
.admin-btn--active { background: var(--brick); color: #fff; border-color: var(--brick); }
.admin-btn--danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.admin-btn--danger:hover { background: #a5301f; }
body.editing .grid { grid-template-columns: 1fr; }
body.editing .unit { cursor: pointer; }
.shape-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--paper-2);
  font-family: var(--font-sans); font-size: 14px;
}
.shape-toolbar .st-room { font-weight: 700; }
.shape-toolbar .st-dirty { color: var(--brick); font-weight: 700; }
.shape-toolbar .st-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.shape-toolbar .st-hint { flex: 1 1 260px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.4; }
.st-save { background: var(--brick); border-color: var(--brick); }
.st-saved { color: #1f7a33; font-weight: 700; font-size: 12.5px; }
.shape-toolbar .st-close { margin-left: auto; }
.edit-poly { fill: rgba(154,59,39,0.12); stroke: var(--brick); cursor: move; }
.edit-handle { fill: #fff; stroke: var(--brick); cursor: grab; }
.edit-handle:hover { fill: #ffe9c8; }
.edit-handle.is-active { fill: none; stroke: var(--ink); }
/* while arming Auto-fill, let the click reach the drawing */
body.fill-arming #planBox svg, body.fill-arming #planBox svg * { cursor: crosshair; }
body.fill-arming .unit, body.fill-arming .edit-layer { pointer-events: none; }
/* draw-box tool */
body.box-arming #planBox svg, body.box-arming #planBox svg * { cursor: crosshair; }
body.box-arming .unit, body.box-arming .edit-layer { pointer-events: none; }
.box-preview { fill: rgba(154,59,39,0.14); stroke: var(--brick); stroke-dasharray: 6 5; }
.box-hint { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 6; background: var(--brick); color: #fff; padding: 10px 14px; border-radius: 8px; font-family: var(--font-sans); font-size: 14px; font-weight: 600; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,0.25); }

/* Delete-room confirmation dialog */
.confirm-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(20,14,8,0.55); z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.confirm-box { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; max-width: 440px; width: 100%; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0,0,0,0.4); font-family: var(--font-sans); }
.confirm-box h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 22px; flex: none; display: flex; align-items: center; gap: 8px; }
.confirm-box p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; flex: none; }
.confirm-box .add-fields { overflow-y: auto; flex: 1 1 auto; min-height: 0; padding-right: 2px; }
.confirm-box .confirm-actions { flex: none; padding-top: 14px; }
.add-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.aa-unit-row { display: flex; align-items: center; gap: 12px; }
.aa-unit-row input[type="text"] { flex: 1; }
.aa-common { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12.5px; color: var(--ink-soft); }
.aa-common input { width: auto; }

/* Casey's welcome toast */
.welcome-toast { position: fixed; top: 24px; left: 50%; z-index: 400; transform: translateX(-50%) translateY(-14px); background: var(--ink); color: var(--paper); padding: 16px 24px; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,0.45); max-width: 460px; text-align: center; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); opacity: 0; transition: opacity .4s ease, transform .4s ease; }
.welcome-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.welcome-toast strong { font-family: var(--font-serif); font-size: 19px; }
.welcome-toast span { font-size: 14.5px; color: var(--ochre); line-height: 1.45; }
.confirm-chk { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; margin-bottom: 20px; }
.confirm-chk input { margin-top: 2px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.confirm-box #cfDelete { background: var(--brick); color: #fff; border-color: var(--brick); }
.confirm-box #cfDelete:hover { background: var(--brick-deep); }
/* hollow "add a corner" dots at each edge midpoint */
.edit-midhandle { fill: rgba(255,255,255,0.6); stroke: var(--orion-blue); stroke-dasharray: 3 3; cursor: copy; }
.edit-midhandle:hover { fill: var(--orion-blue); }

/* big editing view (Enlarge while in shape-edit mode) */
#planBox.plan--zoomed { position: fixed; inset: 12px; z-index: 150; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.45); overflow: auto; padding: 48px 14px 14px; }
#planBox.plan--zoomed svg { width: 100%; height: auto; }
#planBox.plan--zoomed .plan-zoom { position: fixed; top: 20px; right: 26px; z-index: 151; font-size: 15px; padding: 10px 16px; background: var(--brick); }
.plan-zoom--done { background: var(--brick) !important; color: #fff; font-weight: 700; }
#planBox.plan--zoomed .plan-zoom--done { box-shadow: 0 4px 16px rgba(0,0,0,0.35); }
#planBox.plan--zoomed .shape-toolbar { position: sticky; bottom: 0; }
body.plan-zoomed { overflow: hidden; }
.zoom-hint { display: none; }
#planBox.plan--zoomed .zoom-hint { display: block; position: fixed; top: 22px; left: 26px; z-index: 151; background: rgba(35,25,15,0.86); color: #fff; padding: 9px 13px; border-radius: 7px; font-family: var(--font-sans); font-size: 13px; }
#planBox.plan--zoomed .zoom-hint b { color: var(--ochre); }

/* per-unit private record cards (admin) */
.fp-version { display: inline-flex; align-items: center; align-self: center; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line); border-radius: 100px; padding: 3px 12px; }
.rent-total { font-family: var(--font-sans); font-size: 13.5px; padding: 8px 10px; margin-bottom: 8px; background: var(--paper-2); border-radius: var(--radius-sm); }
.rent-total b { color: var(--brick-deep); }
.rent-due { color: var(--brick); font-weight: 600; }
.urec { border-bottom: 1px solid var(--color-hairline); }
/* shared 5-column layout for the header row and every unit row */
.urec-head, .urec-row { display: grid; grid-template-columns: 46px minmax(0,1fr) 46px 78px 58px; gap: 8px; align-items: center; }
.urec-row { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--color-hairline); background: transparent; cursor: pointer; padding: 10px 4px; font: inherit; font-size: 13.5px; }
.urec-row:hover { background: var(--paper-2); }
.urec-row:focus-visible { outline: 2px solid var(--ochre); outline-offset: -2px; }
.uedit-box { max-width: 640px; }
/* Two-column field layout keeps the unit editor compact; falls back to scrolling
   (rather than overlapping the Close/Save bar) if content still exceeds the modal height. */
.uedit-box .add-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; overflow-y: auto; }
.uedit-box .add-fields .fld--wide { grid-column: 1 / -1; }
/* Fields with an inline checkbox (deposit, lease start) get the full width so nothing crowds. */
.uedit-box .add-fields .fld:has(.dep) { grid-column: 1 / -1; }
@media (max-width: 560px) { .uedit-box .add-fields { grid-template-columns: 1fr; } }
.urec-head { padding: 8px 4px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .05em; font-size: 10px; color: var(--ink-soft); border-bottom: 1px solid var(--line); background: var(--paper); }
/* No inner scroll - the units list shows in full and the page scrolls if needed. */
#list { max-height: none; overflow: visible; }
.urec-head span:nth-child(3), .urec-head span:nth-child(5) { text-align: right; }
.urec__sum { padding: 9px 4px; cursor: pointer; list-style: none; font-size: 13.5px; }
.urec__sum::-webkit-details-marker { display: none; }
.urec__sum::marker { content: ''; }
.urec__id { font-weight: 700; }
.urec__nm { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urec__sf { font-family: var(--font-serif); font-size: 12.5px; color: var(--ink-soft); text-align: right; }
.urec__rent { font-family: var(--font-serif); font-weight: 600; color: var(--brick-deep); font-size: 13px; text-align: right; }
.urec__body { display: grid; grid-template-columns: 1fr; gap: 11px; padding: 8px 4px 16px; }
.urec__foot { display: flex; gap: 8px; margin-top: 4px; }
.urec__foot .admin-btn { flex: 1; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.fld--wide { grid-column: 1 / -1; }
.fld__l { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--ink-soft); }
.fld__l em { text-transform: none; letter-spacing: 0; font-style: italic; color: var(--brick); }
.fld input, .fld select, .fld textarea { padding: 7px 9px; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; background: #fff; width: 100%; }
.fld textarea { resize: vertical; }
.dep { display: flex; gap: 8px; align-items: center; }
.dep input[type=number] { flex: 1; min-width: 0; }
.dep__chk { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12px; }
.dep__chk input { width: auto; }

/* ---------- Safety markers (admin) ---------- */
body.marking .unit { pointer-events: none; }
body.marking.has-tool #planBox svg, body.marking.has-tool #planBox svg * { cursor: crosshair; }
.mk-icon { cursor: pointer; }
.mk-icon.is-sel circle { stroke: var(--ink); }
.marker-bar { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-2); font-family: var(--font-sans); font-size: 13px; display: flex; flex-direction: column; gap: 12px; }
.mk-section { display: flex; flex-direction: column; gap: 6px; }
.mk-title { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--ink-soft); }
.marker-bar--lb { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 1001; width: min(1100px, 94vw); max-height: 42vh; overflow-y: auto; margin-top: 0; background: var(--paper); box-shadow: 0 -6px 30px rgba(0,0,0,.35); }
.lightbox--markers .lightbox__stage { padding-bottom: 46vh; }
.mk-layers { display: flex; flex-wrap: wrap; gap: 14px; }
.mk-layer { display: inline-flex; align-items: center; gap: 6px; }
.mk-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-tool { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 100px; background: #fff; cursor: pointer; font-size: 12.5px; font-family: inherit; }
.mk-tool.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.mk-swatch { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.mk-swatch--sm { width: 16px; height: 16px; font-size: 10px; }
.mk-tip { background: rgba(200,146,47,.14); border: 1px solid rgba(200,146,47,.4); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12.5px; color: var(--ink); line-height: 1.5; }
.mk-tip b { color: var(--brick-deep); }
.mk-layers { gap: 10px 18px; }
.mk-foot { flex-direction: row; align-items: center; gap: 10px; }
.mk-editor { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mk-editor label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--ink-soft); }
.mk-editor input { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; }
.mk-loc { font-size: 12px; color: var(--ink-soft); }
.mk-sizewrap { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }

/* Print / export a safety plan */
#printSheet { display: none; }
@media print {
  @page { margin: 12mm; }
  html, body { height: auto !important; margin: 0 !important; background: #fff !important; }
  /* Remove everything else from the layout (not just hide it) so no blank pages trail the plan. */
  body > *:not(#printSheet) { display: none !important; }
  #printSheet { display: block; position: static; width: 100%; padding: 0; color: #000; }
  /* Force full-saturation colors/backgrounds - browsers otherwise wash them out when printing. */
  #printSheet, #printSheet * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  #printSheet svg { width: 100%; height: auto; max-height: 84vh; page-break-inside: avoid; break-inside: avoid; }
  .pl-title { font-family: var(--font-serif); font-size: 20px; margin: 0 0 8px; page-break-after: avoid; }
  .pl-legend { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); font-size: 12px; page-break-inside: avoid; break-inside: avoid; }
  .pl-row { display: flex; align-items: center; gap: 6px; }
  .pl-sw { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 11px; margin-right: 4px; }
  .pl-foot { margin-top: 16px; padding-top: 10px; border-top: 1px solid #999; font-family: var(--font-sans); font-size: 11px; line-height: 1.5; color: #222; page-break-inside: avoid; }
  .pl-foot__meta { color: #666; margin-top: 2px; }
}

/* admin unit editor rows (Units panel when logged in) */
.erow { display: grid; grid-template-columns: auto 1fr 76px auto; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--color-hairline); }
.erow__id { font-weight: 700; font-size: 13px; min-width: 42px; color: var(--color-text); }
.erow__name, .erow__sf { padding: 6px 8px; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; background: #fff; width: 100%; }
.erow__sf { text-align: right; }
.erow__name:focus, .erow__sf:focus, .erow__status:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent); }
.pill-select { appearance: none; -webkit-appearance: none; border: 1px solid var(--color-hairline); border-radius: 999px; padding: 4px 22px 4px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; font-family: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath d='M0 0h8L4 6z' fill='%23888'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.pill-select.available { background-color: rgba(46,160,67,.16); color: #1f7a33; }
.pill-select.rented { background-color: rgba(224,102,46,.18); color: #b8481c; }
.pill-select.common { background-color: rgba(154,154,154,.18); color: #5a5a52; }
.admin-hint.admin-hint--ok { color: #1f7a33; }

/* ===== Inquiry form (contact.html) ===== */

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.form-row {
  display: grid;
  gap: var(--space-5);
}
.form-row--2col { grid-template-columns: 1fr 1fr; }
.form-row--3col { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) {
  .form-row--2col,
  .form-row--3col { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-field label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text);
  background: var(--paper);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a3c2c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(154,59,39,.12);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-required { color: var(--color-accent); margin-left: 2px; }

.form-checkboxes {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.form-checkboxes legend {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.form-field--required-check .form-check {
  font-size: 14px;
  color: var(--color-text-muted);
}

.form-submit { margin-top: var(--space-2); }

/* Status messages */
.inquiry-status {
  font-size: 15px;
  padding: 0;
  min-height: 0;
}
.inquiry-status:empty { display: none; }
.inquiry-status--success {
  background: #edfbf0;
  border: 1px solid #2EA043;
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  color: #1f7a33;
  font-weight: 600;
}
.inquiry-status--error {
  background: #fef2f2;
  border: 1px solid #e0a0a0;
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  color: #8a1c1c;
}
.inquiry-status--error a { color: #8a1c1c; font-weight: 600; text-decoration: underline; }

/* ===== History timeline ===== */

/*
  Vertical timeline - a left-rail line with dot markers and year labels.
  Each stop (.tl__stop) has a left column (.tl__marker) and a right content
  column (.tl__body). On mobile it collapses to a single column with the
  marker inline above the body.
*/

.tl {
  position: relative;
  padding-left: 0;
  margin-top: var(--space-7);
}

/* Vertical line running along the left edge of all markers */
.tl::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100px; /* aligns with center of dot column */
  width: 2px;
  background: var(--line);
}

.tl__stop {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  position: relative;
  scroll-margin-top: 90px;   /* land below the sticky header when jumped to */
}

/* History milestone graphic (clickable dates → jump to each era) */
.milestones { margin: 0 0 24px; }
.milestones__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.milestones svg { width: 100%; min-width: 720px; max-width: 820px; height: auto; margin: 0 auto; display: block; font-family: var(--font-sans); }
.ms-link { cursor: pointer; }
.ms-year { font-family: var(--font-serif); font-weight: 700; font-size: 30px; fill: #23190f; }
.ms-label { font-size: 13.5px; fill: #4a3c2c; }
.ms-card { transition: transform .16s ease; }
.ms-card-bg { transition: fill .16s ease, stroke-width .16s ease; }
.ms-link:hover .ms-card { transform: translateY(-4px); }
.ms-link:hover .ms-card-bg { fill: #fff; stroke-width: 2.5; }
.ms-link:focus-visible .ms-card-bg { stroke-width: 3; }
.ms-legend { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--ink-soft); margin-top: 14px; }
.ms-legend span { display: flex; align-items: center; gap: 7px; }
.ms-legend i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
/* History hero (survey map) + shared full-width feature photo */
.history-hero, .feature-photo { margin: 0; }
.history-hero img, .feature-photo img { width: 100%; display: block; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: 0 10px 30px var(--shadow); }
.history-hero figcaption, .feature-photo figcaption { margin-top: 12px; font-style: italic; color: var(--ink-soft); text-align: center; max-width: 68ch; margin-left: auto; margin-right: auto; }

/* Spotlight-on-hover photo: the same image, dimmed + softened, with a clear
   elliptical spotlight over the subject. Set --spot-img and the focus vars on
   the .spot-frame element. Desktop uses :hover; tap/keyboard toggle .is-focused. */
.spot-frame { position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 10px 30px var(--shadow); background: #2b2823; cursor: pointer; }
.spot-frame img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.spot-frame::after {
  content: ""; position: absolute; inset: -8px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(rgba(20,16,12,var(--dim-amount,0.62)), rgba(20,16,12,var(--dim-amount,0.62))),
    var(--spot-img) center / calc(100% - 16px) auto no-repeat;
  filter: sepia(0.22) contrast(0.92) brightness(0.72) blur(var(--blur-amount,3px));
  opacity: 0;
  -webkit-mask-image: radial-gradient(ellipse var(--focus-width,34%) var(--focus-height,23%) at var(--focus-x,53%) var(--focus-y,61%), transparent 0%, transparent 54%, rgba(0,0,0,0.35) 68%, black 82%);
  mask-image: radial-gradient(ellipse var(--focus-width,34%) var(--focus-height,23%) at var(--focus-x,53%) var(--focus-y,61%), transparent 0%, transparent 54%, rgba(0,0,0,0.35) 68%, black 82%);
  transition: opacity var(--transition-speed,500ms) ease;
}
.spot-frame:hover::after, .spot-frame:focus-within::after, .spot-frame.is-focused::after { opacity: 1; }
/* Delay the darkening on hover-in so a passing cursor (e.g. while scrolling)
   doesn't trigger it; fade-out stays instant (base rule has no delay). */
.spot-frame:hover::after { transition-delay: var(--hover-delay, 1200ms); }
.spot-frame button { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.spot-frame button:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
@media (prefers-reduced-motion: reduce) { .spot-frame::after { transition: none; } }
.tl__stop:last-child {
  border-bottom: 1px solid var(--line);
}

/* Light/transitional stops get muted treatment */
.tl__stop--light {
  opacity: 0.75;
}

/* "Now" stop gets a subtle warm highlight */
.tl__stop--now {
  background: rgba(154,59,39,.04);
  margin-left: -28px;
  margin-right: -28px;
  padding-left: 28px;
  padding-right: 28px;
  border-radius: var(--radius-md);
  border-top-color: transparent;
  border-bottom-color: transparent;
}

/* Marker column - holds the dot + year label, centered at the rail */
.tl__marker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 32px;
  padding-top: 6px;
  position: relative;
}

/* The circular dot on the rail */
.tl__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ochre);
  border: 3px solid var(--paper-2);
  box-shadow: 0 0 0 2px var(--ochre);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.tl__dot--muted {
  background: var(--line);
  box-shadow: 0 0 0 2px var(--line);
}
.tl__dot--orion {
  background: var(--orion-blue);
  box-shadow: 0 0 0 2px var(--orion-blue);
}
.tl__dot--brick {
  background: var(--brick);
  box-shadow: 0 0 0 2px var(--brick);
}

/* Year label below the dot */
.tl__year {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 28px;
  color: var(--brick);
  line-height: 1;
  margin-top: 10px;
  text-align: right;
}
.tl__year--muted {
  color: var(--ink-soft);
  font-size: 22px;
}

/* Body column */
.tl__body {
  padding-top: 6px;
}

/* Era label (the date range sub-header) */
.tl__era-label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 var(--space-3);
}
.tl__stop--light .tl__era-label {
  color: var(--ink-soft);
}
.tl__stop--now .tl__era-label {
  color: var(--ochre-deep);
}

/* Section heading inside timeline */
.tl__heading {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--space-5);
  line-height: 1.08;
}

/* Media block (photo) inside a stop */
.tl__media {
  margin: 0 0 var(--space-5);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 560px;
}
.tl__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* Hedged / sourced note inside a stop */
.tl__hedged {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  padding-left: var(--space-4);
  margin: var(--space-4) 0 0;
}

/* ---- Timeline responsive ---- */

@media (max-width: 760px) {
  .tl::before {
    left: 9px; /* dot width/2 */
  }

  .tl__stop {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-left: 36px; /* room for the dot rail */
  }

  .tl__stop--now {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 52px;
    padding-right: 20px;
  }

  .tl__marker {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
    padding-right: 0;
    padding-top: 0;
    /* Pull marker to the left rail */
    position: absolute;
    left: -36px;
    top: 48px;
    flex-direction: column;
    align-items: center;
  }

  .tl__year {
    display: none; /* year shown in era-label on mobile */
  }

  .tl__dot {
    width: 14px;
    height: 14px;
  }
}

/* discreet admin entry in the footer */
.footer-admin { display:inline-block; margin-top:10px; font-family:'Saira Condensed',sans-serif; text-transform:uppercase; letter-spacing:.14em; font-size:11px; font-weight:600; color:rgba(242,234,217,.38); transition:color .15s; }
.footer-admin:hover { color:var(--ochre); }

/* A lease group's rooms, after its name in the unit lists. */
.rooms-note { color: var(--color-text-muted); font-weight: 400; font-size: 12px; }

/* Picking rooms to group: the picked rooms' outline, and the bar under the plan. */
.unit.is-picked .unit-out { stroke: #1d4ed8; stroke-width: 4; stroke-opacity: 1; }
.pick-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 -2px 10px rgba(0,0,0,.08); }
.pick-bar__count { font-weight: 700; }
.pick-bar__hint { color: var(--color-text-muted); font-size: 13px; flex: 1 1 auto; }
.pick-bar .admin-btn:first-of-type { margin-left: auto; }

/* Room hover box, and the (i) marker on a room whose label is too small to read at full view. */
.plan-tip { position: fixed; z-index: 200; pointer-events: none; display: flex; flex-direction: column; gap: 2px; max-width: 260px; padding: 8px 11px; background: #fff; color: var(--color-text); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 4px 14px rgba(20,14,8,.16); font-family: var(--font-sans); font-size: 12.5px; line-height: 1.35; }
.plan-tip[hidden] { display: none; }
.plan-tip strong { font-size: 13.5px; }
.plan-tip em { margin-top: 3px; color: var(--brick); font-size: 11.5px; }
.ucramped circle { fill: #1f5fa8; stroke: #fff; stroke-width: 1.5; }
.ucramped text { fill: #fff; font-family: Georgia, serif; font-style: italic; font-weight: 700; }
