:root {
  color-scheme: light;
  --bg: #f7f1e6;
  --bg-2: #ede0c8;
  --panel: rgba(251, 247, 238, 0.92);
  --text: #2a2118;
  --muted: #6b5f4d;
  --accent: #a8763a;
  --accent-2: #1c2f4a;
  --navy-panel: #223a5c;
  --line: rgba(42, 33, 24, 0.14);
  --shadow: 0 20px 48px rgba(28, 47, 74, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

/* Author-level display rules (e.g. .split-layout { display: grid }) otherwise
   beat the UA's [hidden] { display: none }, since same-specificity author
   rules always win over UA rules regardless of source order -- this made
   hidden sections keep rendering. Force hidden to always win. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "PT Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(168, 118, 58, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(28, 47, 74, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url("assets/logo.png");
  background-repeat: no-repeat;
  background-position: center 45%;
  background-size: min(45vw, 520px);
  opacity: 0.04;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-shell {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: start;
  min-height: 100vh;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

/* ---- Left sidebar: the site's structural anchor (navy, not the page's
   warm cream) on every page, public and staff portal alike. ---- */
.site-sidebar {
  background: var(--accent-2);
  color: var(--bg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
}

.site-main {
  padding: 32px 32px 72px;
  min-width: 0;
}

.org-banner {
  margin-bottom: 22px;
  padding: 11px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff9f2;
  font-family: "Fraunces", "Georgia", "Times New Roman", serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 120ms ease;
}

a.brand-lockup:hover {
  opacity: 0.85;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--bg);
  padding: 4px;
}

.brand-lockup h1,
.brand-lockup .brand-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--bg);
}

.brand-lockup .eyebrow {
  color: #d9a75c;
  margin-bottom: 0;
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
}

.sidebar-backdrop {
  display: none;
}

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

h1,
h2,
h3,
h4,
.eyebrow,
.feature-kicker,
.stat strong {
  font-family: "Fraunces", "Georgia", "Times New Roman", serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  line-height: 1.05;
}

.eyebrow {
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: var(--accent);
}

.brand-copy,
.hero-copy p,
.intro-card p,
.property-meta,
.review-source,
.feature-card p {
  color: var(--muted);
  line-height: 1.65;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(247, 241, 230, 0.5);
  margin: 0 0 8px 12px;
}

.nav-link,
.nav-group a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-decoration: none;
  color: rgba(247, 241, 230, 0.86);
  transition: background 120ms ease, color 120ms ease;
}

.nav-link:hover,
.nav-group a:hover {
  background: rgba(247, 241, 230, 0.08);
}

.nav-link.active,
.nav-group a.active {
  background: var(--navy-panel);
  color: #d9a75c;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #d9a75c;
}

.sidebar-divider {
  height: 1px;
  background: rgba(247, 241, 230, 0.14);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.78rem;
  color: rgba(247, 241, 230, 0.5);
  line-height: 1.5;
}

.sidebar-footer a {
  color: rgba(247, 241, 230, 0.7);
}

.site-sidebar .button {
  width: 100%;
  justify-content: center;
}

.about-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.about-subnav a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 13px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.55);
}

.about-subnav a.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff9f2;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  padding: 28px;
  margin-bottom: 28px;
  animation: float-in 700ms ease-out both;
}

.hero-copy p {
  max-width: 64ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #fff9f2;
  border-color: transparent;
}

.button.secondary {
  color: var(--accent-2);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.feature-card,
.intro-card,
.review-card,
.property-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 18px;
}

.feature-card-large {
  min-height: 220px;
  background: linear-gradient(145deg, rgba(168, 118, 58, 0.16), rgba(28, 47, 74, 0.12));
}

.image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.image-row .image-block {
  min-height: 110px;
}

.feature-copy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.logo-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 16px;
}

.logo-showcase img {
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}

.feature-kicker,
.property-badge,
.review-source {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(28, 47, 74, 0.08);
  margin-bottom: 10px;
}

.property-badge-soon {
  background: rgba(168, 118, 58, 0.14);
  color: var(--accent);
  font-weight: 600;
}

/* Factual trust statements (About page) -- three short claims side by side,
   separated by hairlines rather than icon cards. */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 16px;
}

.trust-item {
  padding: 4px 18px;
  border-left: 1px solid var(--line);
}

.trust-item:first-child {
  padding-left: 0;
  border-left: none;
}

.trust-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.trust-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 700px) {
  .trust-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .trust-item {
    padding-left: 0;
    border-left: none;
  }
}

.section {
  margin-top: 30px;
}

.signup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.signup-card h3 {
  margin-top: 4px;
}

.signup-card form {
  margin-top: 16px;
}

@media (max-width: 860px) {
  .signup-grid {
    grid-template-columns: 1fr;
  }
}

.section-head {
  margin-bottom: 16px;
}

.split-layout {
  display: grid;
  gap: 16px;
}

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

.about-panels .intro-card {
  display: grid;
  gap: 14px;
}

.about-panels {
  display: grid;
  gap: 16px;
}

.image-block {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(168, 118, 58, 0.12), rgba(28, 47, 74, 0.12));
  min-height: 210px;
}

.photo-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.photo-card .image-block {
  min-height: 160px;
}

.photo-rename-form {
  display: flex;
  gap: 8px;
}

.photo-rename-form input {
  flex: 1;
  min-width: 0;
}

.image-block-tall {
  min-height: 278px;
}

.property-card {
  display: grid;
  gap: 10px;
}

.property-card-highlight {
  animation: property-card-flash 2.6s ease-out;
}

@keyframes property-card-flash {
  0%,
  35% {
    box-shadow: 0 0 0 3px var(--accent);
  }
  100% {
    box-shadow: none;
  }
}

.property-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(168, 118, 58, 0.14), rgba(28, 47, 74, 0.14));
  cursor: pointer;
}

.property-image-hint {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff9f2;
  background: linear-gradient(0deg, rgba(10, 16, 10, 0.65), transparent);
  opacity: 0;
  transition: opacity 160ms ease;
}

.property-image:hover .property-image-hint,
.property-image:focus-visible .property-image-hint {
  opacity: 1;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 10, 6, 0.88);
}

.lightbox-backdrop[hidden] {
  display: none;
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-image {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: #fff9f2;
  font-size: 0.9rem;
}

.lightbox-counter {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 16, 10, 0.5);
  color: #fff9f2;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: -18px;
  right: -18px;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  font-size: 1.1rem;
}

.lightbox-prev {
  left: -20px;
}

.lightbox-next {
  right: -20px;
}

@media (max-width: 640px) {
  .lightbox-close {
    top: -46px;
    right: 0;
  }

  .lightbox-prev {
    left: 0;
  }

  .lightbox-next {
    right: 0;
  }
}

.property-map {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.property-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.contact-status {
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-status.success {
  color: var(--accent);
}

.contact-status.error {
  color: #a1372f;
}

.stack {
  display: grid;
  gap: 14px;
}

.property-card h3,
.review-card h3,
.intro-card h3,
.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.property-card p:last-child,
.review-card p:last-child,
.intro-card p:last-child,
.feature-card p:last-child {
  margin-bottom: 0;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.property-form {
  padding: 20px;
  margin-bottom: 20px;
}

.property-picker {
  max-width: 360px;
}

.publish-calendar-row {
  margin-top: 4px;
}

.publish-calendar-input-row {
  display: flex;
  gap: 8px;
}

.publish-calendar-input-row input {
  flex: 1;
  min-width: 0;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.5);
}

.channel-fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.channel-fieldset legend {
  padding: 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.channel-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.channel-checkbox input {
  width: auto;
}

.issue-form {
  display: grid;
  gap: 14px;
}

.issue-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

input,
select,
textarea {
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

.issue-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.issue-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(20, 32, 20, 0.14);
}

.issue-row-name {
  font-weight: 600;
}

.table-wrap {
  max-height: 70vh;
  overflow: auto;
  padding: 0;
}

.issues-table {
  width: 100%;
  border-collapse: collapse;
}

.issues-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  text-align: left;
  padding: 14px 18px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-bottom: 2px solid var(--line);
  font-family: "Fraunces", "Georgia", "Times New Roman", serif;
}

.issues-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.issue-tr {
  cursor: pointer;
  transition: background 120ms ease;
}

.issue-tr:hover {
  background: rgba(168, 118, 58, 0.08);
}

.issue-tr-done {
  background: rgba(90, 90, 90, 0.1);
  color: var(--muted);
  opacity: 0.7;
}

.issue-tr-done:hover {
  background: rgba(90, 90, 90, 0.16);
  opacity: 0.9;
}

.issue-tr-name {
  font-weight: 600;
}

.cell-severity {
  text-transform: capitalize;
}

.cell-severity-high {
  color: #fff;
  background: #b3261e;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}

.status-check {
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}

.status-select {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.issue-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.issue-list-foot {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-content {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 16px;
}

.calendar-head h3 {
  min-width: 180px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  overflow: hidden;
}

.calendar-weekday {
  padding: 10px;
  text-align: center;
  font-family: "Fraunces", "Georgia", "Times New Roman", serif;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
}

.calendar-day {
  min-height: 96px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-day-empty {
  background: transparent;
}

.calendar-day-number {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.calendar-chip {
  font: inherit;
  font-size: 0.75rem;
  text-align: left;
  padding: 4px 6px;
  border-radius: 6px;
  border: none;
  background: rgba(168, 118, 58, 0.16);
  color: var(--text);
  cursor: pointer;
}

.calendar-chip:hover {
  background: rgba(168, 118, 58, 0.28);
}

@media (max-width: 640px) {
  .issue-form-row,
  .issue-row {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 64px;
  }

  .calendar-weekday {
    font-size: 0.7rem;
    padding: 6px 4px;
  }
}

@media (max-width: 960px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .image-row,
  .feature-copy-row {
    grid-template-columns: 1fr;
  }
}

/* Below 860px the persistent sidebar becomes an off-canvas drawer, opened by
   the hamburger toggle (fixed top-left) and closed by its own backdrop. */
@media (max-width: 860px) {
  .site-shell {
    display: block;
  }

  .site-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    max-width: 82vw;
    transform: translateX(-100%);
    transition: transform 200ms ease;
  }

  .site-sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(16, 28, 44, 0.55);
  }

  .site-main {
    padding: 76px 20px 56px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 20px;
  }
}

.site-footer {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: var(--accent-2);
  font-weight: 600;
}