/* The Flour Mill — residential owners site
   Visible copy avoids hyphens and dashes; class names may use them. */

:root {
  --cream: #f4efe6;
  --cream-deep: #e8dfd0;
  --paper: #fffaf3;
  --ink: #2b2118;
  --ink-soft: #5a4e43;
  --muted: #7a6e62;
  --brick: #7a3b2e;
  --brick-deep: #5c2c22;
  --brick-soft: #a05646;
  --gold: #b08a4e;
  --gold-soft: #d4b483;
  --gold-line: #c9b48a;
  --line: #e2d5c3;
  --high: #7a3b2e;
  --medium: #8a5a22;
  --low: #6a6158;
  --ok: #3f5c3a;
  --header-h: 66px;
  --measure: 1120px;
  --narrow: 720px;
  --shadow: 0 18px 40px rgba(43, 33, 24, 0.08);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 18px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brick);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--brick-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.28em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 0.65em; }

p:last-child { margin-bottom: 0; }

.wrap {
  width: min(var(--measure), calc(100% - 48px));
  margin: 0 auto;
}

.wrap.narrow { width: min(var(--narrow), calc(100% - 48px)); }

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  left: 16px;
  top: 0;
}

.skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  padding: 8px 14px;
  top: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--gold-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.wordmark:hover { color: var(--brick); }

.wordmark span {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brick);
  border-bottom-color: var(--gold);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  margin: 7px 0;
  transition: 0.2s;
}

/* Hero */

.hero {
  position: relative;
  width: 100%;
  min-width: 100%;
  max-width: none;
  height: min(62vh, 640px);
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(28, 18, 14, 0.15) 0%, rgba(28, 18, 14, 0.55) 55%, rgba(22, 14, 10, 0.88) 100%),
    linear-gradient(135deg, #3a241c 0%, #6b3a2c 38%, #8a5a3a 68%, #c4a574 100%);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(28, 18, 14, 0.2) 0%, rgba(28, 18, 14, 0.45) 50%, rgba(22, 14, 10, 0.86) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 0 44px;
  width: min(var(--measure), calc(100% - 48px));
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.hero h1 {
  color: #fffaf3;
  margin: 0 0 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-rule {
  width: 72px;
  height: 1px;
  background: var(--gold-soft);
  margin: 0 0 18px;
  border: 0;
}

.hero-lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 250, 243, 0.9);
  max-width: 16em;
  margin: 0;
}

.hero-placeholder-note {
  display: none;
  margin-top: 28px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(255, 250, 243, 0.72);
  max-width: 40ch;
}

.hero.is-placeholder .hero-placeholder-note { display: block; }

/* Page hero (interior pages) */

.page-hero {
  background:
    linear-gradient(180deg, rgba(44, 26, 20, 0.55), rgba(44, 26, 20, 0.7)),
    linear-gradient(135deg, #3a241c, #7a3b2e 60%, #b08a4e);
  color: var(--paper);
  padding: 44px 0 36px;
}

.page-hero h1 { color: #fffaf3; margin-bottom: 12px; }

.page-hero .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(255, 250, 243, 0.88);
  max-width: 38ch;
  margin: 0;
}

.page-hero .eyebrow {
  color: var(--gold-soft);
}

.private-note {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-soft);
  border: 1px solid rgba(212, 180, 131, 0.45);
  padding: 6px 12px;
}

/* Sections */

.section { padding: 48px 0; }

.section.alt { background: var(--paper); }

.section.tight { padding: 36px 0; }

.eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 6px;
}

.rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0 0 14px;
}

.lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.placeholder-note {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
  background: var(--cream-deep);
  border-left: 2px solid var(--gold);
  padding: 12px 16px;
  margin-bottom: 20px;
}

/* History + announcements split */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.history-body { color: var(--ink-soft); font-size: 1.15rem; }

/* Cards and lists */

.announce-list,
.doc-list,
.meeting-list,
.vendor-list,
.report-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.announce-list li,
.doc-group,
.meeting-card,
.vendor-list li,
.report-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 24px;
  margin: 0 0 14px;
}

.announce-date,
.meta {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.empty-state {
  color: var(--ink-soft);
  padding: 8px 0 0;
}

/* REC cards */

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.rec-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px 20px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.rec-card .role {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brick);
  margin-bottom: 10px;
}

.rec-card h3 {
  font-size: 1.7rem;
  margin: 0;
}

.keymont-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
  margin-top: 16px;
}

/* Forms */

.guidance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0 0;
}

.guide-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 20px 16px;
}

.guide-card h3 { margin-bottom: 12px; }

.guide-card ul {
  margin: 0;
  padding: 0 0 0 1.1em;
  color: var(--ink-soft);
}

.guide-card li { margin: 0 0 0.55em; }

.guide-card.emergency {
  grid-column: 1 / -1;
  background: var(--ink);
  color: var(--paper);
  border: 0;
}

.guide-card.emergency h3 { color: var(--gold-soft); }

.guide-card.emergency p { color: rgba(255, 250, 243, 0.9); margin: 0; }

form.complaint {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field.wide { grid-column: 1 / -1; }

.field label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 0;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
  background: #fff;
}

.field textarea { min-height: 140px; resize: vertical; }

.field .hint {
  font-size: 0.85rem;
  color: var(--muted);
}

[hidden] { display: none !important; }

.btn {
  display: inline-block;
  background: var(--brick);
  color: #fffaf3;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover { background: var(--brick-deep); color: #fffaf3; }

.btn.ghost {
  background: transparent;
  color: var(--brick);
  border: 1px solid var(--brick);
}

.btn.ghost:hover { background: var(--brick); color: #fffaf3; }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.form-status {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--brick); }

/* Tracker */

.tracker-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 0 0 20px;
}

.tracker-toolbar .field { min-width: 160px; }

.tracker-toolbar input[type="search"] {
  min-width: 220px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 8px 12px;
  cursor: pointer;
}

.chip[aria-pressed="true"],
.chip:hover {
  border-color: var(--brick);
  color: var(--brick);
  background: #fff;
}

.tracker-count {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 8px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
}

table.tracker {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 820px;
}

table.tracker th,
table.tracker td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

table.tracker th {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  background: var(--cream);
  position: sticky;
  top: 0;
  cursor: pointer;
  white-space: nowrap;
}

table.tracker th:hover { color: var(--brick); }

table.tracker th .sort {
  display: inline-block;
  margin-left: 4px;
  color: var(--gold);
}

table.tracker tbody tr:hover { background: var(--cream); }

table.tracker td:nth-child(3) { white-space: nowrap; }


table.tracker .task-name {
  font-weight: 600;
  color: var(--ink);
}

table.tracker .task-meta {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid currentColor;
}

.badge.high { color: var(--high); }
.badge.medium { color: var(--medium); }
.badge.low { color: var(--low); }
.badge.open { color: var(--ok); }
.badge.progress { color: var(--medium); }
.badge.done { color: var(--ink-soft); }

.task-add-form { margin: 0 0 28px; }
.task-add-form textarea { min-height: 72px; }
table.tracker tbody tr.is-done { opacity: 0.72; }
.task-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.task-tools .link-btn { font-size: 0.8rem; }

table.tracker .status-select,
.task-card .status-select {
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  max-width: 100%;
}

.due-soon { color: var(--brick); font-weight: 600; }

/* Mobile card layout for tracker */
.tracker-cards { display: none; }

.task-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 18px 14px;
  margin-bottom: 12px;
}

.task-card h3 { font-size: 1.2rem; margin: 8px 0 10px; }

.task-card dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 10px;
  margin: 0;
  font-size: 0.95rem;
}

.task-card dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  padding-top: 3px;
}

.task-card dd { margin: 0; }

/* Complaint log */

.log-table { width: 100%; border-collapse: collapse; background: var(--paper); }

.log-table th,
.log-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.log-table th {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream);
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(255, 250, 243, 0.82);
  padding: 36px 0 28px;
  margin-top: 0;
}

.site-footer .wordmark { color: #fffaf3; }

.site-footer .wordmark span { color: var(--gold-soft); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: start;
  flex-wrap: wrap;
}

.site-footer a { color: var(--gold-soft); }

.site-footer p { margin: 0 0 0.4em; }

.footer-meta { font-size: 1.05rem; }

/* 404 */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

/* Responsive */

@media (max-width: 900px) {
  .menu-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease, visibility 0.25s ease;
    visibility: hidden;
    z-index: 60;
    overflow: auto;
  }

  .site-nav.open {
    transform: none;
    visibility: visible;
  }

  .site-nav a {
    font-size: 1.05rem;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.12em;
  }

  body.menu-open { overflow: hidden; }

  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  .split,
  .rec-grid,
  .guidance,
  form.complaint {
    grid-template-columns: 1fr;
  }

  .guide-card.emergency { grid-column: auto; }

  .section { padding: 40px 0; }

  .hero-inner,
  .page-hero { padding-bottom: 36px; }

  .hero { height: min(54vh, 560px); min-height: 380px; }

  form.complaint { padding: 24px; }

  .tracker-count { margin-left: 0; width: 100%; }

  table.tracker { display: none; }
  .table-wrap { border: 0; background: transparent; }
  .tracker-cards { display: block; }
}

@media (max-width: 600px) {
  .wrap,
  .wrap.narrow,
  .hero-inner { width: calc(100% - 32px); }

  .header-inner { height: 66px; }
  :root { --header-h: 66px; }

  .wordmark { font-size: 1.3rem; }

  .section { padding: 32px 0; }

  .page-hero { padding: 32px 0 28px; }
}

/* Home: portals, historic significance, timeline, accents */

.hero-photo,
.hero picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture { z-index: 0; display: block; }

.hero-photo {
  object-fit: cover;
  object-position: 50% 58%;
  display: block;
}

.hero:not(.is-placeholder)::before {
  background: linear-gradient(
    180deg,
    rgba(22, 14, 10, 0.12) 0%,
    rgba(22, 14, 10, 0.28) 42%,
    rgba(16, 10, 8, 0.78) 100%
  );
}

.portals {
  padding-top: 40px;
  padding-bottom: 40px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}

.portal-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 32px 32px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portal-card:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: 0 22px 48px rgba(43, 33, 24, 0.12);
}

.portal-kicker {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 12px;
}

.portal-card h3 {
  font-size: 1.85rem;
  margin: 0 0 12px;
}

.portal-card p {
  color: var(--ink-soft);
  margin: 0 0 28px;
  font-size: 1.02rem;
}

.portal-go {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brick);
}

.history-intro { max-width: 760px; }

.history-intro .lead {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 0.7em;
}

.history-prose {
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.history-prose p { margin-bottom: 0.7em; }

.history-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px 28px;
  align-items: start;
  margin: 20px auto 0;
}

.history-one { margin: 0; }

.history-one img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--cream-deep);
  border: 1px solid var(--line);
}

.history-one figcaption,
.history-figures figcaption,
.accent-figure figcaption,
.sources-note {
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 8px;
}

.history-one figcaption {
  font-style: italic;
  max-width: 42em;
}

.accent-figure {
  margin: 8px 0 28px;
  max-width: 200px;
}

.accent-figure img {
  width: 200px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--cream-deep);
  /* Keep these at native size; do not upscale. */
  image-rendering: auto;
}

.accent-canal { float: right; margin: 4px 0 20px 36px; }

.accent-plaza { float: left; margin: 4px 36px 20px 0; }

.history-prose::after {
  content: "";
  display: block;
  clear: both;
}

.timeline-heading {
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--gold-line);
}

.timeline li {
  display: grid;
  grid-template-columns: 3.1em 1fr;
  gap: 10px;
  padding: 0 0 5px 16px;
  position: relative;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brick);
  box-shadow: 0 0 0 3px var(--paper);
}

.timeline time {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--brick);
  line-height: 1.4;
}

.timeline span {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.4;
}

.sources-note {
  clear: both;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 8px;
  font-style: italic;
  max-width: 62em;
}

.announce-block { padding-top: 8px; }

@media (max-width: 900px) {
  .portal-grid,
  .history-media {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .history-media { margin: 16px auto 0; }

  .hero-photo { object-position: 48% 60%; }

  .accent-canal,
  .accent-plaza {
    float: none;
    margin: 12px 0 24px;
  }
}

@media (max-width: 600px) {
  .portal-card { padding: 28px 24px 24px; }
  .timeline li {
    grid-template-columns: 3.1em 1fr;
    gap: 8px;
    padding-left: 16px;
  }
  .portals { padding-top: 56px; padding-bottom: 56px; }
}

/* v7: public face, owner login, REC workspace */

.site-nav a.nav-login {
  border: 1px solid var(--brick);
  color: var(--brick);
  margin-left: 10px;
  padding: 9px 16px;
}
.site-nav a.nav-login:hover { background: var(--brick); color: var(--paper); border-bottom-color: var(--brick); }

.notice-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.notice-grid .guide-card.emergency { grid-column: auto; }
.notice-grid .guide-card p { margin: 0; }

.owner-band-inner, .contact-block { text-align: center; }
.owner-band-inner .rule, .contact-block .rule { margin-left: auto; margin-right: auto; }
.owner-band-inner .lead { margin-left: auto; margin-right: auto; margin-bottom: 0.65em; font-size: 1.3rem; }
.owner-band-inner .login-hint {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.owner-band-inner .login-hint + .login-hint { margin-top: 0.15em; }

.contact-card {
  font-style: normal;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 24px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}
.contact-card .contact-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--brick-deep);
  margin-bottom: 10px;
}

.page-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
}
.page-jump a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brick);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 2px;
}

.item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.item-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 24px;
}
.item-card h3 { margin: 0 0 6px; }
.item-card p:last-child { margin-bottom: 0; }
.item-date {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 6px;
}
.doc-list { display: grid; gap: 8px; margin-top: 8px; }
.doc-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.doc-list .meta { display: inline; margin: 0; }

.admin-panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}
.admin-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.admin-form input, .admin-form select, .admin-form textarea,
.report-actions select, .report-actions textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.admin-form textarea, .report-actions textarea { min-height: 96px; resize: vertical; }
.admin-list { max-height: 640px; overflow: auto; }
.item-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.item-tools .meta { margin: 0; font-size: 0.7rem; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 0.85rem; color: var(--brick); text-decoration: underline;
}

.report-filters { margin: 22px 0 18px; }
.report-inbox { display: grid; gap: 18px; }
.report-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 24px 26px;
}
.report-card.status-new { border-left-color: var(--brick); }
.report-card.status-resolved, .report-card.status-closed { border-left-color: var(--ok); opacity: 0.92; }
.report-card h3 { margin: 0 0 6px; }
.report-card .meta { text-transform: none; letter-spacing: 0.02em; font-size: 0.9rem; }
.report-desc { white-space: normal; }
.report-actions {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px 18px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

@media (max-width: 900px) {
  .site-nav a.nav-login { margin: 14px 0 0; text-align: center; border: 1px solid var(--brick); }
  .notice-grid { grid-template-columns: 1fr; }
  .admin-panel { grid-template-columns: 1fr; }
  .admin-list { max-height: none; }
}
@media (max-width: 600px) {
  .admin-form { grid-template-columns: 1fr; padding: 20px; }
  .report-actions { grid-template-columns: 1fr; }
  .report-card { padding: 20px; }
}

.guide-card.emergency a { color: var(--gold-soft); }
.page-hero .page-jump a { color: var(--gold-soft); border-bottom-color: rgba(212, 180, 131, 0.5); }
.page-hero .page-jump a:hover { color: #fffaf3; }

.owner-login-form {
  text-align: left;
  max-width: 440px;
  margin: 18px auto 0;
  display: grid;
  gap: 16px;
}
.owner-login-form .form-actions { margin-top: 0; }

.owner-login-form .field-float {
  position: relative;
  gap: 0;
}
.owner-login-form .field-float input {
  padding: 1.4rem 14px 0.55rem;
  font-size: 1.15rem;
  min-height: 3.5rem;
  background: #fff;
}
.owner-login-form .field-float label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}
.owner-login-form .field-float input:focus + label,
.owner-login-form .field-float input:not(:placeholder-shown) + label {
  top: 0.35rem;
  transform: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.owner-login-form .field-float input::placeholder {
  color: transparent;
}

.owner-login-form .form-status a { color: inherit; }

.owners-table input,
.owners-table select {
  font: inherit;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}
.owners-table th:nth-child(1),
.owners-table td:nth-child(1) {
  width: 10.75rem;
  min-width: 10.75rem;
  max-width: 10.75rem;
  white-space: nowrap;
}
.owners-table input[name="units"] {
  width: 100%;
}
.owners-table tr.has-note td {
  border-bottom: 0;
  padding-bottom: 4px;
}
.owners-table .owners-note-row td {
  padding-top: 0;
  padding-bottom: 12px;
  white-space: normal;
}
.owners-table .owners-note {
  margin: 0;
  max-width: 46rem;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 400;
  color: var(--ink-soft);
  white-space: normal;
}
.owners-table tr.has-note:hover,
.owners-table tr.has-note:hover + .owners-note-row,
.owners-table .owners-note-row:hover {
  background: var(--cream);
}
.owners-table th:nth-child(4),
.owners-table td:nth-child(4) {
  width: 8.5rem;
  min-width: 8.5rem;
  max-width: 8.5rem;
  white-space: nowrap;
}
.owners-table select[name="status"],
#new-status {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 8px 1.85rem 8px 10px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232c2416' d='M1.2 1.2L6 6l4.8-4.8' stroke='%232c2416' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 12px 8px;
}
.owners-table td:last-child { white-space: nowrap; }
.owners-table td.task-tools {
  margin-top: 0;
  padding-top: 8px;
  vertical-align: middle;
}
[data-message-from] { margin: 0 0 8px; }

.page-hero .hero-actions { margin: 22px 0 0; }
.page-hero .hero-actions .btn { margin-right: 12px; }

.rec-view-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.rec-view-inner p { margin: 0; max-width: 70ch; }
.rec-view-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px !important;
}
.rec-view-links .btn { padding: 10px 16px; font-size: 0.8rem; }

/* REC workspace: compact tool layout, still readable */
body.rec-workspace {
  font-size: 17px;
  line-height: 1.4;
}
body.rec-workspace .site-header { --header-h: 52px; }
body.rec-workspace .wordmark { font-size: 1.25rem; }
body.rec-workspace h1 {
  font-size: 1.85rem;
  letter-spacing: 0;
  margin: 0 0 4px;
}
body.rec-workspace h2 {
  font-size: 1.35rem;
  margin: 0 0 2px;
}
body.rec-workspace h3 { font-size: 1.05rem; margin: 0 0 2px; }
body.rec-workspace .page-hero { padding: 14px 0 12px; }
body.rec-workspace .page-hero h1 { margin-bottom: 4px; }
body.rec-workspace .page-hero .lead {
  font-family: var(--sans);
  font-style: normal;
  font-size: 1rem;
  max-width: 54rem;
  line-height: 1.35;
}
body.rec-workspace .page-hero .eyebrow { margin: 0 0 2px; font-size: 0.7rem; }
body.rec-workspace .private-note {
  margin-top: 8px;
  padding: 3px 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
body.rec-workspace .page-hero .hero-actions { margin: 8px 0 0; }
body.rec-workspace .page-hero .hero-actions .btn,
body.rec-workspace .btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
body.rec-workspace .page-jump { margin-top: 8px; gap: 4px 12px; }
body.rec-workspace .page-jump a {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding-bottom: 0;
}
body.rec-workspace .section,
body.rec-workspace .section.tight,
body.rec-workspace #access.section { padding: 12px 0; }
body.rec-workspace .eyebrow { font-size: 0.68rem; letter-spacing: 0.08em; margin: 0 0 1px; }
body.rec-workspace .rule { width: 40px; margin: 0 0 6px; }
body.rec-workspace .lead { font-size: 0.95rem; margin-bottom: 0.35em; line-height: 1.35; }
body.rec-workspace .admin-panel { gap: 10px; margin-top: 8px; }
body.rec-workspace .admin-form { padding: 10px 12px; gap: 8px 12px; }
body.rec-workspace .admin-form input,
body.rec-workspace .admin-form select,
body.rec-workspace .admin-form textarea,
body.rec-workspace .report-actions select,
body.rec-workspace .report-actions textarea { padding: 6px 8px; }
body.rec-workspace .admin-form textarea,
body.rec-workspace .report-actions textarea { min-height: 64px; }
body.rec-workspace .report-filters { margin: 6px 0 8px; }
body.rec-workspace .chip { padding: 4px 8px; font-size: 0.72rem; }
body.rec-workspace .report-inbox { gap: 6px; }
body.rec-workspace .report-card { padding: 8px 10px; }
body.rec-workspace .report-card h3 { margin: 0 0 2px; }
body.rec-workspace .report-actions { margin-top: 6px; padding-top: 6px; gap: 6px 10px; }
body.rec-workspace .item-card { padding: 8px 10px; }
body.rec-workspace .item-list { gap: 6px; }
body.rec-workspace .item-tools { margin-top: 6px; }
body.rec-workspace .announce-list li,
body.rec-workspace .doc-group,
body.rec-workspace .meeting-card,
body.rec-workspace .vendor-list li,
body.rec-workspace .report-list li { padding: 8px 10px; margin: 0 0 6px; }
body.rec-workspace .task-add-form { margin: 0 0 8px; }
body.rec-workspace .task-add-form textarea { min-height: 56px; }
body.rec-workspace table.tracker { min-width: 720px; font-size: 0.95rem; }
body.rec-workspace table.tracker th,
body.rec-workspace table.tracker td { padding: 5px 8px; }
body.rec-workspace table.tracker th { font-size: 0.7rem; letter-spacing: 0.06em; }
body.rec-workspace .owners-table input,
body.rec-workspace .owners-table select { padding: 5px 8px; }
body.rec-workspace .owners-table select[name="status"],
body.rec-workspace #new-status { padding: 5px 1.85rem 5px 8px; }
body.rec-workspace .owners-table td.task-tools { padding-top: 5px; }
body.rec-workspace .task-card { padding: 8px 10px; margin-bottom: 6px; }
body.rec-workspace .task-card h3 { margin: 2px 0 4px; }
body.rec-workspace .task-card dt { font-size: 0.8rem; }
body.rec-workspace .rec-grid { margin-top: 8px; gap: 8px; }
body.rec-workspace .rec-card { padding: 8px 10px; }
body.rec-workspace .tracker-toolbar { margin: 6px 0; gap: 8px; }
body.rec-workspace .form-actions { margin-top: 2px; gap: 8px; }
body.rec-workspace .field-hint {
  margin: 4px 0 0;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
body.rec-workspace .badge { font-size: 0.75rem; }
body.rec-workspace .table-wrap { margin-top: 8px; }
body.rec-workspace .login-unit-bar { padding: 8px 0; }
body.rec-workspace .login-unit-form { margin-top: 6px; gap: 8px; }
body.rec-workspace .login-unit-form label { font-size: 0.95rem; }
body.rec-workspace .login-unit-form input { font-size: 1rem; padding: 6px 8px; min-width: 6rem; }
body.rec-workspace .access-note { font-size: 0.9rem; margin: 0 0 6px; }
body.rec-workspace .access-head { margin: 0 0 4px; }
@media (max-width: 600px) {
  body.rec-workspace .section,
  body.rec-workspace .section.tight,
  body.rec-workspace #access.section { padding: 12px 0; }
  body.rec-workspace .page-hero { padding: 12px 0 10px; }
  body.rec-workspace .admin-form { padding: 8px 10px; }
  body.rec-workspace .wrap { width: min(var(--measure), calc(100% - 24px)); }
}

.login-unit-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.login-unit-inner p { margin: 0; max-width: 54rem; }
.login-unit-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
}
.login-unit-form label {
  font-size: 1.05rem;
  font-weight: 600;
}
.login-unit-form input {
  font-size: 1.15rem;
  min-width: 8rem;
  padding: 10px 12px;
}
.login-unit-form .form-status { margin: 0; flex-basis: 100%; }

.table-wrap { overflow-x: auto; margin-top: 16px; }
.access-head {
  display: flex;
  align-items: baseline;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin: 0 0 6px;
}
.access-head h2 { margin: 0; }
.access-note {
  margin: 0 0 8px;
  max-width: 52rem;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.access-table-wrap {
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
table.access-list {
  width: auto;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 1rem;
}
table.access-list th,
table.access-list td {
  text-align: left;
  padding: 5px 14px 5px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
table.access-list tbody tr:last-child th,
table.access-list tbody tr:last-child td { border-bottom: 0; }
table.access-list thead th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  padding-top: 6px;
  padding-bottom: 4px;
}
table.access-list tbody th {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
table.access-list .access-highlight th,
table.access-list .access-highlight td {
  background: color-mix(in srgb, var(--brick) 8%, var(--paper));
  font-weight: 700;
}
body.rec-workspace .access-list th,
body.rec-workspace .access-list td { padding: 5px 14px 5px 10px; }

.access-count {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.access-head .access-count { margin: 0; }
.tracker-toolbar .access-count {
  margin: 0;
  font-size: 1.15rem;
}
