/* Tenant Rights — shared stylesheet */

:root {
  --ink:        #1e1215;
  --paper:      #fdf8f8;
  --accent:     #9b2335;
  --accent-dark:#4a1223;
  --mint:       #fce8eb;
  --sun:        #f5d0d6;
  --ink-soft:   rgba(30,18,21,0.60);
  --shadow:     0 14px 40px rgba(74,18,35,0.12);
  --radius:     20px;
}

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

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--paper), #fdf0f2 55%, #faf5f6);
  min-height: 100vh;
}

/* ── Layout ─────────────────────────────────────────────── */

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.layout-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 28px 80px;
  position: relative;
}

.layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* ── Decorative blobs ───────────────────────────────────── */

.halo {
  position: absolute;
  inset: -100px auto auto -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,208,214,.8), transparent 70%);
  opacity: .7;
  pointer-events: none;
  z-index: 0;
}

.pulse {
  position: absolute;
  right: -60px; top: 60px;
  width: 220px; height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(252,232,235,.9), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Site header ─────────────────────────────────────────── */

.site-header {
  background: var(--accent-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 16px rgba(74,18,35,.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .01em;
}

.site-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.header-search {
  flex: 1;
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin-left: auto;
}

.header-search input[type="search"] {
  flex: 1;
  padding: 8px 14px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.header-search input[type="search"]::placeholder { color: rgba(255,255,255,0.55); }

.header-search input[type="search"]:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.18);
}

.header-search button {
  padding: 8px 18px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.header-search button:hover { background: #7a1a28; }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  padding: 56px 0 36px;
  position: relative;
  z-index: 1;
}

.hero-search {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  max-width: 600px;
}

.hero-search input[type="search"] {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #e8d0d4;
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  box-shadow: 0 4px 18px rgba(27,31,59,.08);
}

.hero-search input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(91,91,214,.18);
}

.hero-search button {
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(91,91,214,.28);
}

.hero-search button:hover { background: var(--accent-dark); }

.has-hero-search .header-search { display: none; }

h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 3vw + 1.4rem, 3.8rem);
  margin: 0 0 16px;
  line-height: 1.1;
}

.lede {
  font-size: clamp(1rem, 1.3vw + .5rem, 1.4rem);
  color: var(--ink-soft);
  max-width: 680px;
  line-height: 1.55;
  margin: 0;
}

.lede p { margin: 0; }

.city-badge {
  display: inline-block;
  background: var(--mint);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ── Section headings ───────────────────────────────────── */

.section-title {
  font-size: 1.1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

/* ── Card grid ──────────────────────────────────────────── */

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card--link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}

.card--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(27,31,59,.18);
}

.card-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.card-arrow {
  font-size: 1.2rem;
  color: var(--accent);
}

/* ── Breadcrumb ─────────────────────────────────────────── */

.breadcrumb {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ── Playbook layout ─────────────────────────────────────── */

.page-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.playbook-header {
  margin-bottom: 28px;
}

.sidebar-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
}

.sidebar-label {
  display: block;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.sidebar-back {
  display: block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  margin-top: 6px;
}

.sidebar-back:hover { text-decoration: underline; }

/* ── Disclaimer box ─────────────────────────────────────── */

.disclaimer-box {
  background: #ffe6ea;
  border: 1px solid #ff5a76;
  color: #7a1025;
  padding: 16px 20px;
  border-radius: 14px;
  line-height: 1.5;
  margin-bottom: 28px;
  font-size: .95rem;
}

/* ── Statement list ─────────────────────────────────────── */

.statement-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.statement-item {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  animation: fadeUp 600ms ease-out;
}

.statement-body {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.statement-body p { margin: 0; }

.citation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Citation chips ─────────────────────────────────────── */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  transition: opacity .15s;
}

.chip:hover { opacity: .8; text-decoration: underline; }

.chip--statute       { background: #fce8eb; color: #4a1223; }
.chip--regulation    { background: #f5e8f0; color: #5a1240; }
.chip--gov           { background: #e8f5ee; color: #0a5432; }
.chip--editorial     { background: #f5f0f0; color: #5a4040; }
.chip--court-ruling  { background: #e8eef5; color: #1a3a5a; }

.chip--statute::before       { content: "§"; }
.chip--regulation::before    { content: "§"; }
.chip--gov::before           { content: "🏛 "; }
.chip--editorial::before     { content: "Ed. "; }
.chip--court-ruling::before  { content: "⚖ "; }

/* ── Prose (about, support, editorial) ─────────────────── */

.prose {
  max-width: 680px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  padding-top: 8px;
}

.prose h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  margin: 0 0 24px;
  line-height: 1.1;
}

.prose h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--ink);
}

.prose p {
  margin: 0 0 16px;
  color: var(--ink);
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Support banner (homepage strip) ───────────────────── */

.support-banner {
  background: var(--mint);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 32px;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.support-banner a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.support-banner a:hover { text-decoration: underline; }

/* ── Support CTA box (support page) ────────────────────── */

.support-cta-box {
  background: var(--mint);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0;
}

.support-cta-box p { margin: 0 0 8px; }
.support-cta-box p:last-child { margin: 0; }

/* ── Directory (resource listing) ──────────────────────── */

.directory-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.directory-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.directory-body {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.directory-body p { margin: 0 0 6px; }
.directory-body p:last-child { margin: 0; }
.directory-body strong { color: var(--ink); }

.directory-source {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.directory-source:hover { text-decoration: underline; }

/* ── FAQ ────────────────────────────────────────────────── */

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.faq-body {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.faq-body p { margin: 0 0 10px; }
.faq-body p:last-child { margin: 0; }
.faq-body strong { color: var(--ink); font-size: 1.08rem; }

/* ── Checklist ──────────────────────────────────────────── */

.checklist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist-item {
  background: white;
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: opacity .2s;
}

.checklist-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
}

.checklist-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checklist-check:checked ~ .checklist-body {
  opacity: .5;
  text-decoration-line: none;
}

.checklist-body { flex: 1; min-width: 0; }

/* ── Search ─────────────────────────────────────────────── */

.search-heading {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  margin: 40px 0 24px;
}

.search-heading em { font-style: normal; color: var(--accent-dark); }

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.search-result {
  background: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.result-title {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 4px;
}

a.result-title { color: var(--accent-dark); }
a.result-title:hover { text-decoration: underline; }

.result-meta {
  font-size: .85rem;
  color: var(--ink-soft);
  text-transform: capitalize;
}

.result-snippet {
  margin: 8px 0 0;
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid #f0dde0;
}

.disclaimer {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 8px;
}

.footer-links {
  font-size: .9rem;
  margin: 0;
}

.footer-links a { color: var(--accent); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ── Misc ───────────────────────────────────────────────── */

.empty-state {
  color: var(--ink-soft);
  font-style: italic;
  padding: 32px 0;
}

.city-section { margin-bottom: 48px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar-card {
    position: static;
  }
  .halo, .pulse { display: none; }
}

@media (max-width: 600px) {
  .wrap, .layout-wrap { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 2rem; }
  .header-search { display: none; }
}

/* Byline + related-content cross-links */
.byline { font-size: .85rem; color: var(--ink-soft); margin: .35rem 0 0; }
.byline a { color: var(--accent); text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.related-section { margin-top: 2.5rem; }
.related-more { margin-top: .9rem; font-size: .9rem; }
.related-more a { color: var(--accent); text-decoration: none; }
.related-more a:hover { text-decoration: underline; }
.empty-state-hint { margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); }
.author-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin: .5rem 0 1rem; box-shadow: var(--shadow); }
