/*
Theme Name: SUMIATO Theme
Theme URI: https://sumiato.jp/
Author: SUMIATO
Description: 東京23区単身向け賃貸の欠点レビューDB専用テーマ
Version: 2.0.0
License: Proprietary
Text Domain: sumiato
*/

/* =========================================
   0. Design Tokens
   ========================================= */
:root {
  --bg:           #FAFAF7;
  --surface:      #FFFFFF;
  --ink:          #1A1D1A;
  --muted:        #6F7570;
  --subtle:       #9AA099;
  --line:         #E8E8E3;
  --line-soft:    #F0F0EC;

  --brand:        #2F6E4F;
  --brand-deep:   #1F4A36;
  --brand-soft:   #E6F0EA;
  --accent:       #4B8C6B;

  --warn-soft:    #F4ECDB;
  --warn-ink:     #8A6A2C;

  /* Score gradient (NOT red) */
  --score-5: #2F6E4F;
  --score-4: #5A9073;
  --score-3: #8AA890;
  --score-2: #AAB8AA;
  --score-1: #C8CEC8;
  --score-0: #D7DAD4;

  --shadow:       0 1px 2px rgba(20,30,20,0.04), 0 2px 8px rgba(20,30,20,0.04);
  --shadow-cta:   0 1px 2px rgba(47,110,79,0.15);
  --shadow-float: 0 10px 40px rgba(0,0,0,0.12);

  --font-sans: "Hiragino Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --radius-pill: 999px;
  --radius-xs:   6px;
  --radius-sm:   8px;
  --radius-md:   10px;
  --radius-lg:   12px;
  --radius-xl:   14px;
  --radius-2xl:  16px;

  --space-4:  4px;
  --space-6:  6px;
  --space-8:  8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-20: 20px;
  --space-22: 22px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;

  --container-max: 1080px;
  --header-h:      52px;
}

/* =========================================
   1. Reset & Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); font-weight: 800; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.num, .score-num { font-variant-numeric: tabular-nums; }

.site-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-16);
}
@media (min-width: 768px) {
  .site-container { padding: var(--space-24); }
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* =========================================
   2. Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  box-shadow: var(--shadow-cta);
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, transform 100ms ease;
}
.btn:hover { background: var(--brand-deep); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--line);
  color: var(--subtle);
  box-shadow: none;
  cursor: not-allowed;
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 13px 20px;
  font-weight: 600;
  font-size: 14px;
}
.btn--secondary:hover { background: var(--bg); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
}

.btn--full { width: 100%; }

.btn--pill {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
}

/* =========================================
   3. Header (sticky)
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-header__logo:hover { text-decoration: none; }
.site-header__logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-header__logo-text { line-height: 1; }

.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  white-space: nowrap;
}
.site-header__cta:hover { background: var(--brand-deep); color: #fff; text-decoration: none; }
.site-header__cta-label-short { display: none; }
@media (max-width: 479px) {
  .site-header__cta-label-long { display: none; }
  .site-header__cta-label-short { display: inline; }
}

/* =========================================
   4. Footer
   ========================================= */
.site-footer {
  background: #F0F0EB;
  margin-top: 48px;
  padding: 28px 0 40px;
  color: var(--ink);
}
.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-20);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}
@media (min-width: 640px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer__section h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.site-footer__section a {
  display: block;
  color: var(--ink);
  font-size: 13px;
  padding: 4px 0;
  text-decoration: none;
}
.site-footer__section a:hover { color: var(--brand); text-decoration: none; }
.site-footer__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 800; color: var(--ink); }
.site-footer__brand-mark {
  width: 24px; height: 24px; border-radius: 6px; background: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.site-footer__desc {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.7;
}
.site-footer__copyright {
  max-width: var(--container-max);
  margin: 24px auto 0;
  padding: 16px var(--space-20) 0;
  border-top: 1px solid #E0E0DB;
  font-size: 11.5px;
  color: var(--muted);
}

/* =========================================
   5. Breadcrumb
   ========================================= */
.breadcrumb {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: var(--space-14);
  overflow-x: auto;
  white-space: nowrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb__separator { margin: 0 6px; color: var(--subtle); }

/* =========================================
   6. Section helpers
   ========================================= */
.section { margin-bottom: var(--space-32); }
.section__title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 var(--space-14);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section__title-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* =========================================
   7. Hero (top page)
   ========================================= */
.hero {
  background: linear-gradient(180deg, #EEF5F0 0%, var(--bg) 100%);
  border-radius: var(--radius-2xl);
  padding: 28px 20px 32px;
  margin-bottom: var(--space-28);
  text-align: left;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--brand);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  margin-bottom: 12px;
}
.hero__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0 0 10px;
}
.hero__title strong { color: var(--brand); font-weight: 800; }
.hero__sub {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 18px;
  max-width: 34em;
}
.hero__search {
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 4px 4px 4px 14px;
  align-items: center;
  box-shadow: var(--shadow);
  max-width: 540px;
}
.hero__search svg { flex-shrink: 0; color: var(--muted); }
.hero__search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 4px;
  font-size: 14px;
}
.hero__search-btn {
  border: none;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13.5px;
}
.hero__search-btn:hover { background: var(--brand-deep); }

/* =========================================
   8. Property card
   ========================================= */
.card-scroll {
  display: flex;
  gap: var(--space-12);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-8);
  margin: 0 calc(-1 * var(--space-16));
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}
.card-scroll::-webkit-scrollbar { height: 4px; }
.card-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.card-scroll > * {
  scroll-snap-align: start;
  flex: 0 0 260px;
}

.pcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 150ms, transform 100ms;
}
.pcard:hover { border-color: var(--accent); text-decoration: none; color: var(--ink); }
.pcard:active { transform: translateY(1px); }

.pcard__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.pcard__name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}
.pcard__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}
.pcard__meta-dot { color: var(--subtle); }
.pcard__badge {
  white-space: nowrap;
  padding: 2px 8px;
  background: var(--bg);
  border-radius: var(--radius-xs);
  font-size: 11px;
  color: var(--muted);
  height: fit-content;
}
.pcard__tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.pcard__scores {
  display: flex;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}
.pcard__score-cell {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.pcard__score-cell--highlight {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.pcard__score-label { font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.pcard__score-value {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* =========================================
   9. Score: badge / bar
   ========================================= */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}
.score-badge--sm { width: 32px; height: 32px; font-size: 13px; border-radius: var(--radius-sm); }

.score-badge--5 { color: var(--score-5); background: rgba(47,110,79,0.09);  border-color: rgba(47,110,79,0.25); }
.score-badge--4 { color: var(--score-4); background: rgba(90,144,115,0.09); border-color: rgba(90,144,115,0.25); }
.score-badge--3 { color: var(--score-3); background: rgba(138,168,144,0.12); border-color: rgba(138,168,144,0.3); }
.score-badge--2 { color: var(--score-2); background: rgba(170,184,170,0.12); border-color: rgba(170,184,170,0.3); }
.score-badge--1 { color: var(--score-1); background: rgba(200,206,200,0.18); border-color: rgba(200,206,200,0.4); }
.score-badge--na {
  color: var(--subtle);
  background: #F3F3EF;
  border-color: var(--line);
}

.score-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}
.score-bar__label {
  width: 90px;
  font-size: 13px;
  color: var(--ink);
  flex-shrink: 0;
}
.score-bar__track {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: var(--line-soft);
  overflow: hidden;
  position: relative;
}
.score-bar__fill {
  height: 100%;
  border-radius: 4px;
  transition: width 300ms ease;
}
.score-bar__value {
  width: 32px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.score-bar__value--na { color: var(--subtle); }

/* =========================================
   10. Issue tag (warnSoft chip)
   ========================================= */
.issue-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--warn-soft);
  color: var(--warn-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid var(--warn-soft);
  text-decoration: none;
  white-space: nowrap;
}
.issue-tag:hover { filter: brightness(0.97); text-decoration: none; color: var(--warn-ink); }
.issue-tag--sm { padding: 3px 8px; font-size: 11px; gap: 4px; }

.issue-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--warn-soft);
  color: var(--warn-ink);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.issue-chip:hover { color: var(--warn-ink); text-decoration: none; }

/* =========================================
   11. Chip (filter / location)
   ========================================= */
.chip, .location-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover, .location-chip:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.chip--active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 600;
}
.chip--active:hover { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); }

.location-chip--plain { color: var(--muted); background: var(--bg); }

/* =========================================
   12. Ward grid / station chips
   ========================================= */
.ward-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 640px) { .ward-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .ward-grid { grid-template-columns: repeat(4, 1fr); } }

.ward-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 150ms;
}
.ward-card:hover { border-color: var(--accent); text-decoration: none; color: var(--ink); }
.ward-card__name { font-weight: 600; font-size: 13.5px; }
.ward-card__count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.station-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.station-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}
.station-chip:hover { border-color: var(--accent); text-decoration: none; color: var(--ink); }
.station-chip__count {
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

/* =========================================
   13. Issue grid (problem types)
   ========================================= */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 640px) { .issue-grid { grid-template-columns: repeat(3, 1fr); } }
.issue-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 150ms, background 150ms;
}
.issue-tile:hover { border-color: var(--accent); background: var(--bg); text-decoration: none; color: var(--ink); }
.issue-tile__icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  color: var(--warn-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.issue-tile__name { font-weight: 600; font-size: 13.5px; }
.issue-tile__count { font-size: 11.5px; color: var(--muted); }

/* =========================================
   14. How it works (3 steps)
   ========================================= */
.how-it-works {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
}
.how-step { display: flex; gap: 12px; align-items: flex-start; }
.how-step__num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.how-step__title { font-weight: 700; font-size: 13.5px; margin-bottom: 2px; }
.how-step__desc { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin: 0; }

/* =========================================
   15. CTA banner (top page bottom)
   ========================================= */
.top-cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  color: #fff;
  text-align: center;
}
.top-cta__title {
  font-weight: 800;
  font-size: 17px;
  margin: 0 0 6px;
  color: #fff;
}
.top-cta__text {
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  margin: 0 0 16px;
}
.top-cta .btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.top-cta .btn-cta-white:hover { background: #F5F5F1; text-decoration: none; color: var(--brand); }

/* =========================================
   16. Property page - hero
   ========================================= */
.property-hero { margin-bottom: var(--space-20); }
.property-hero__verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand);
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 8px;
}
.property-hero__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  line-height: 1.35;
}
.property-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.property-hero__meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  text-decoration: none;
}
.property-hero__meta a.meta-item:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }

/* =========================================
   17. Verdict / summary card
   ========================================= */
.verdict-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: var(--space-20);
  box-shadow: var(--shadow);
}
.verdict-box__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.verdict-box__summary {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 12px;
}
.verdict-box__issues {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.verdict-box__issues-heading {
  font-size: 11.5px;
  color: var(--muted);
  margin-right: 4px;
  align-self: center;
}
.verdict-box__trust {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

/* =========================================
   18. Score section card
   ========================================= */
.section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: var(--space-20);
  box-shadow: var(--shadow);
}
.section-card__title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
}
.section-card__legend {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 14px;
}
.score-bars-section, .score-bars { display: flex; flex-direction: column; gap: 2px; }
.score-unevaluated {
  font-size: 11.5px;
  color: var(--subtle);
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.radar-chart-wrap { margin-top: 14px; display: flex; justify-content: center; }
.radar-chart { display: block; }

/* =========================================
   19. Review card
   ========================================= */
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: var(--space-12);
}
.review-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.review-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--bg);
  border-radius: var(--radius-xs);
  font-size: 11px;
  color: var(--muted);
}
.review-tag--verified { color: var(--brand); background: var(--brand-soft); }
.review-tag--source { color: var(--warn-ink); background: var(--warn-soft); }

.review-card__body {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 12px;
}
.review-card__body p { margin: 0; }
.review-card__body--truncated {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-card__body--expanded { display: block; }
.review-card__readmore {
  background: transparent;
  border: none;
  color: var(--brand);
  font-weight: 600;
  font-size: 12.5px;
  padding: 0;
  margin: -4px 0 12px;
}

.review-card__scores {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.review-card__score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 52px;
}
.review-card__score-label { font-size: 10.5px; color: var(--muted); }

.review-card__caution {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--warn-soft);
  color: var(--warn-ink);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.65;
}

/* =========================================
   20. Reviews header (sort)
   ========================================= */
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
.reviews-header__count { font-size: 16px; font-weight: 800; }
.reviews-header__sort {
  font-size: 12.5px;
  color: var(--muted);
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* =========================================
   21. Empty state
   ========================================= */
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.empty-state__title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.empty-state__desc { font-size: 13px; color: var(--muted); margin: 0 0 18px; line-height: 1.7; }

/* =========================================
   22. Review end CTA
   ========================================= */
.review-end-cta {
  background: var(--surface);
  border: 1px dashed var(--brand);
  border-radius: var(--radius-xl);
  padding: 22px 18px;
  text-align: center;
  color: var(--ink);
  margin-top: var(--space-24);
}
.review-end-cta p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--muted);
}

/* =========================================
   23. Archive list
   ========================================= */
.archive-header { margin-bottom: var(--space-20); }
.archive-header__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.archive-header__sub { font-size: 12.5px; color: var(--muted); margin: 0; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-16);
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.filter-bar__select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink);
  min-width: 160px;
  cursor: pointer;
}
.filter-bar__submit {
  padding: 8px 16px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.filter-bar__submit:hover { background: var(--brand-deep); }

.property-list { display: flex; flex-direction: column; gap: 10px; }

.plistcard {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 150ms;
}
.plistcard:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.plistcard__name { font-weight: 700; font-size: 15px; margin-bottom: 4px; line-height: 1.3; }
.plistcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.plistcard__meta span { display: inline-flex; align-items: center; gap: 3px; }
.plistcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.plistcard__scores {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  justify-content: center;
}
.plistcard__score-inline {
  display: flex;
  gap: 8px;
}

/* Pagination */
.pagination, .site-pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--space-24);
}
.page-numbers { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; }
.page-numbers li { list-style: none; }
.page-numbers a, .page-numbers span, a.page-numbers, span.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.page-numbers a:hover { border-color: var(--accent); text-decoration: none; }
.page-numbers .current {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 700;
}

/* =========================================
   24. Submit form
   ========================================= */
.submit-form-page { max-width: 640px; margin: 0 auto; }
.sumiato-submit-form-wrapper { max-width: 640px; margin: 0 auto; }
.form-header { margin-bottom: 18px; }
.form-header h1 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.form-header .form-duration {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--brand); font-weight: 600;
  background: var(--brand-soft);
  padding: 4px 10px; border-radius: var(--radius-pill);
  margin: 0;
}
.form-header .localStorage-notice {
  font-size: 11.5px;
  color: var(--subtle);
  margin: 10px 0 0;
}

.progress-container { margin-bottom: 22px; }
.step-indicators {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 11.5px; color: var(--muted); margin-bottom: 10px;
}
.step-indicator { flex: 1; text-align: center; white-space: nowrap; }
.step-indicator.current { color: var(--brand); font-weight: 700; }
.step-indicator.done { color: var(--brand); }
.progress-bar-track {
  height: 4px;
  background: var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--brand);
  transition: width 200ms ease;
  border-radius: 4px;
}

.form-step { display: none; }
.form-step.active { display: block; }
.form-step h2 { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.form-step h3 { font-size: 14px; font-weight: 700; margin: 20px 0 10px; }
.step-desc { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; line-height: 1.7; }

.form-group { margin-bottom: 16px; }
.form-group > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group .required { color: var(--brand); font-weight: 700; margin-left: 4px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: -1px;
  border-color: var(--brand);
}
.form-group textarea { min-height: 120px; line-height: 1.7; resize: vertical; }
.field-hint {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.6;
}
.score-desc {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-hint-box {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--brand-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.7;
}
.form-hint-box__icon { flex-shrink: 0; color: var(--brand); }

.star-rating {
  display: inline-flex;
  gap: 6px;
  margin-top: 4px;
  align-items: center;
}
.star-rating .star {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: all 120ms;
}
.star-rating .star:hover,
.star-rating .star.hover-active { color: var(--accent); border-color: var(--accent); }
.star-rating .star.active {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}
.star-score-text {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.floor-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.floor-chips label {
  position: relative;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  background: var(--surface);
  cursor: pointer;
  user-select: none;
}
.floor-chips input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.floor-chips label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 700; }

.file-dropzone {
  display: block;
  padding: 22px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  background: var(--bg);
}
.file-dropzone:hover { border-color: var(--accent); color: var(--ink); }
.file-dropzone input[type="file"] { display: none; }
.file-dropzone__icon { color: var(--brand); margin-bottom: 6px; display: inline-flex; }

.consent-group {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--line);
}
.consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  margin: 2px 0 0;
  width: 18px; height: 18px;
  accent-color: var(--brand);
}
.consent-list {
  margin: 8px 0 0 30px;
  padding: 0;
  list-style: disc;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}
.consent-list li { margin-bottom: 2px; }
.consent-list a { color: var(--brand); text-decoration: underline; }

.form-navigation {
  display: flex;
  gap: 10px;
  position: sticky;
  bottom: 0;
  padding: 14px 0 18px;
  background: linear-gradient(to top, var(--bg) 80%, rgba(250,250,247,0));
  margin-top: 20px;
  z-index: 10;
}
.btn-nav {
  flex: 1;
  padding: 13px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms;
}
.btn-prev {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-prev:hover { background: var(--bg); }
.btn-prev .si { transform: scaleX(-1); }
.btn-next, .btn-submit {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-next:hover, .btn-submit:hover { background: var(--brand-deep); }
.btn-next:disabled, .btn-submit:disabled {
  background: var(--line);
  color: var(--subtle);
  box-shadow: none;
  cursor: not-allowed;
}

.error-summary {
  background: #FCE9E9;
  border: 1px solid #E8BFBF;
  color: #8A2A2A;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 16px;
}
.form-message { padding: 12px 14px; border-radius: var(--radius-md); margin-bottom: 16px; font-size: 13px; }
.form-message--success { background: var(--brand-soft); color: var(--brand-deep); border: 1px solid var(--brand); }

.field-error {
  display: block;
  margin-top: 4px;
  color: #8A2A2A;
  font-size: 12px;
}

.submit-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.75;
}
.submit-aside h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.submit-aside ul { margin: 0; padding-left: 18px; }
.submit-aside li { margin-bottom: 4px; }

/* Submit completion */
.submit-complete {
  text-align: center;
  padding: 24px 0;
}
.submit-complete__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.submit-complete h2 { font-size: 20px; margin: 0 0 8px; }
.submit-complete__note { font-size: 13px; color: var(--muted); max-width: 36em; margin: 0 auto 20px; line-height: 1.75; }
.submit-complete__summary {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}
.submit-complete__actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.submit-complete__share {
  display: flex; gap: 10px; justify-content: center; margin-top: 20px;
}

/* =========================================
   25. Utility
   ========================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
}

.is-hidden { display: none !important; }

/* =========================================
   26. Template consistency (override/append)
   — keeps final templates fully styled without touching sections above
   ========================================= */

/* -- Container & utilities -- */
.site-container--narrow { max-width: 720px; }
.only-sm { display: none; }
@media (max-width: 640px) { .only-sm { display: initial; } }

/* -- Button primary / large -- */
.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--lg { padding: 14px 24px; font-size: 15px; border-radius: var(--radius-pill); }

/* -- Header (final markup) -- */
.site-header__nav {
  display: none;
  gap: 20px;
  align-items: center;
  margin-left: auto;
}
@media (min-width: 900px) { .site-header__nav { display: inline-flex; } }
.site-header__nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.site-header__nav a:hover { color: var(--ink); background: var(--line-soft); text-decoration: none; }

.site-header__mark {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-cta);
}
.site-header__brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.site-header__hamburger {
  display: inline-flex;
  flex-direction: column; justify-content: center; gap: 4px;
  width: 36px; height: 36px;
  background: transparent; border: 0; padding: 0;
  margin-left: 8px;
}
.site-header__hamburger span {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
@media (min-width: 900px) { .site-header__hamburger { display: none; } }

.site-header__mobile-menu {
  position: fixed; top: var(--header-h); right: 0; bottom: 0;
  width: min(320px, 80vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform 220ms ease;
  padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-float);
  z-index: 1000;
  overflow-y: auto;
}
.site-header__mobile-menu.open { transform: translateX(0); }
.site-header__mobile-menu a {
  display: inline-flex; gap: 10px; align-items: center;
  padding: 12px 14px;
  color: var(--ink);
  border-radius: var(--radius-md);
  font-weight: 600;
}
.site-header__mobile-menu a:hover { background: var(--line-soft); text-decoration: none; }
.site-header__mobile-cta {
  margin-top: 8px;
  background: var(--brand); color: #fff !important;
}
.site-header__mobile-cta:hover { background: var(--brand-deep); }

.site-header.scrolled {
  background: rgba(250,250,247,0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
}

.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(20,30,20,0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 999;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* -- Footer (final markup) -- */
.site-footer__bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
  text-align: center;
}
.site-footer__brand-block { grid-column: span 2; }
.site-footer__brand-text { font-weight: 800; letter-spacing: 0.04em; }
.site-footer__mark {
  display: inline-flex; width: 24px; height: 24px;
  align-items: center; justify-content: center;
  background: var(--brand);
  border-radius: 6px;
  margin-right: 8px;
}
@media (max-width: 640px) { .site-footer__brand-block { grid-column: span 1; } }

/* -- Hero additions -- */
.hero__search-icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); padding-left: 14px;
}
.hero__stats {
  display: flex; gap: 18px; justify-content: center;
  margin-top: 20px;
}
.hero__stat {
  display: flex; flex-direction: column; align-items: center;
  min-width: 72px;
}
.hero__stat-num {
  font-size: 20px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero__stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* -- Section head/sub -- */
.section__head { margin-bottom: 14px; }
.section__sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.section--scroll { overflow: hidden; }

/* -- Property card (final markup) -- */
.pcard__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pcard__img-wrap { position: relative; aspect-ratio: 16 / 10; background: var(--line-soft); overflow: hidden; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; }
.pcard__score-row { display: grid; grid-template-columns: 64px 1fr 36px; align-items: center; gap: 8px; }
.pcard__score-val {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-align: right; font-variant-numeric: tabular-nums;
}

/* -- Issue tile uses __label in template -- */
.issue-tile__label { font-size: 13px; font-weight: 600; color: var(--ink); }

/* -- Station chip name -- */
.station-chip__name { font-weight: 600; }

/* -- How-it-works grid -- */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.how-step__icon {
  color: var(--brand);
  margin: 2px 0 8px;
}

/* -- Top CTA inner -- */
.top-cta__inner {
  max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

/* -- Property-hero additions -- */
.property-hero__top {
  display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap;
}
.property-hero__title-wrap { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.property-hero__overall {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.property-hero__overall-label { font-size: 11px; color: var(--muted); }

.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid rgba(47,110,79,0.18);
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
}

.score-badge--lg { width: 56px; height: 56px; font-size: 20px; border-radius: var(--radius-xl); }

/* -- Verdict issues (template uses .verdict-issues not .verdict-box__issues) -- */
.verdict-issues { margin-top: 14px; }
.verdict-issues__heading {
  display: block; font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 8px;
}
.verdict-issues__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* -- Section-card head (template wraps title+legend) -- */
.section-card__head { margin-bottom: 14px; }

/* -- Score row (single-property 8-item bars) -- */
.score-row {
  display: grid;
  grid-template-columns: 110px 1fr 52px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.score-row:last-child { border-bottom: 0; }
.score-row__label { font-size: 13px; color: var(--ink); }
.score-row__value {
  font-size: 13px; font-weight: 700; color: var(--ink);
  text-align: right; font-variant-numeric: tabular-nums;
}
.score-row__value--na { color: var(--subtle); font-weight: 500; font-size: 11px; }
@media (max-width: 520px) {
  .score-row { grid-template-columns: 90px 1fr 48px; }
}

/* -- Reviews section head -- */
.reviews-section { margin-top: var(--space-28); }
.reviews-section__head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 14px;
}
.reviews-section__count {
  font-size: 12px; color: var(--muted);
}

.review-card__head { margin-bottom: 10px; }
.review-card__readmore-text { font-weight: 600; }

.review-end-cta__text { margin: 0; color: var(--muted); font-size: 13px; }

/* -- Archive hero (taxonomy pages) -- */
.archive-hero { margin: 8px 0 20px; }
.archive-hero__title {
  font-size: 22px; font-weight: 800; line-height: 1.3;
  display: inline-flex; align-items: center; gap: 10px;
}
.archive-hero__icon {
  display: inline-flex; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  border-radius: var(--radius-md);
}
.archive-hero__icon--issue { background: var(--warn-soft); color: var(--warn-ink); }
.archive-hero__sub { color: var(--muted); margin-top: 6px; font-size: 13px; }

/* -- Filter bar extras -- */
.filter-bar__field { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.filter-bar__label { font-size: 11px; color: var(--muted); font-weight: 600; }

/* -- plist / plistcard (final markup) -- */
.plist { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--space-28); }

.plistcard {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 14px 12px 14px 16px;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.plistcard:hover { border-color: var(--accent); text-decoration: none; color: var(--ink); }
.plistcard__body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.plistcard__head { display: flex; align-items: flex-start; gap: 10px; }
.plistcard__head .plistcard__name { flex: 1; }
.plistcard__name {
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin: 0;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.plistcard__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.plistcard__issues { display: flex; flex-wrap: wrap; gap: 4px; }
.plistcard__scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}
.plistcard__score {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px;
  background: var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: 11px;
}
.plistcard__score-label { color: var(--muted); font-weight: 600; }
.plistcard__issue-focus {
  display: grid;
  grid-template-columns: 1fr minmax(80px, 140px) 44px;
  align-items: center; gap: 8px;
  padding: 8px 10px;
  background: var(--warn-soft);
  color: var(--warn-ink);
  border-radius: var(--radius-md);
  font-size: 12px;
}
.plistcard__issue-focus-label { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.plistcard__arrow {
  display: flex; align-items: center;
  color: var(--subtle);
  flex-shrink: 0;
}
.plistcard:hover .plistcard__arrow { color: var(--brand); }

/* -- Post list (index.php fallback) -- */
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 16px;
}
.post-item__title { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.post-item__title a { color: var(--ink); }
.post-item__title a:hover { color: var(--brand); text-decoration: none; }
.post-item__excerpt { color: var(--muted); font-size: 13px; margin: 0; }

/* -- Submit form: step indicator sub-elements -- */
.step-indicator__num {
  display: inline-flex; width: 22px; height: 22px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--line-soft); color: var(--muted);
  font-size: 12px; font-weight: 700;
  margin-right: 4px;
}
.step-indicator.current .step-indicator__num { background: var(--brand); color: #fff; }
.step-indicator.completed .step-indicator__num { background: var(--accent); color: #fff; }
.step-indicator__label { font-weight: 600; }

/* -- Submit form: header pieces -- */
.form-header__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: var(--brand-soft); color: var(--brand);
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
  margin-bottom: 10px;
}
.form-header__title { font-size: 22px; font-weight: 800; }
.form-header__sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.form-header__notice {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 11px;
  margin-top: 10px;
}

/* -- Form labels / inputs -- */
.form-label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 13px; }
.form-label .required { color: #B84A36; font-size: 10px; margin-left: 4px; }
.form-label .optional {
  color: var(--muted); font-size: 10px; margin-left: 4px; font-weight: 600;
  background: var(--line-soft);
  padding: 2px 6px; border-radius: var(--radius-pill);
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 120ms;
}
.form-input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,110,79,0.12); }
.form-input--short { max-width: 200px; }
.form-textarea { min-height: 140px; resize: vertical; font-family: inherit; line-height: 1.7; }

/* -- Form step header -- */
.form-step__head { margin-bottom: 16px; }
.form-step__title { font-size: 17px; font-weight: 800; }
.form-step__desc { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* -- Floor chips (radio-label variant) -- */
.floor-chip {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px; color: var(--ink); cursor: pointer;
}
.floor-chip:hover { border-color: var(--accent); }
.floor-chip input { position: absolute; opacity: 0; pointer-events: none; }
.floor-chip:has(input:checked) {
  background: var(--brand); color: #fff; border-color: var(--brand);
}

/* -- Star-rating group wrapper (group + head) -- */
.star-rating-group { margin-bottom: 18px; }
.star-rating-group__head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.star-rating-group.invalid .star-rating { outline: 2px solid rgba(184,74,54,0.35); outline-offset: 4px; border-radius: var(--radius-sm); }

/* -- Optional group (details element) -- */
.form-optional-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0 14px;
  margin: 18px 0;
  background: var(--surface);
}
.form-optional-group > summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  font-weight: 700; color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.form-optional-group > summary::-webkit-details-marker { display: none; }
.form-optional-group[open] > summary { border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.form-optional-group[open] > summary svg { transform: rotate(180deg); }
.form-optional-group > summary svg { transition: transform 180ms; }

/* -- File dropzone extras -- */
.file-dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.file-dropzone__label { font-weight: 600; color: var(--ink); }
.file-dropzone__hint { color: var(--muted); font-size: 11px; }
.file-dropzone__input { position: absolute; opacity: 0; width: 0; height: 0; }

/* -- Consent label text -- */
.consent-label__text { font-weight: 600; color: var(--ink); }

/* -- Cloudflare Turnstile container spacing -- */
.cf-turnstile { margin: 14px 0; }

/* -- Submit aside (info panel) -- */
.submit-aside { margin-top: 24px; }
.submit-aside__card {
  background: var(--brand-soft);
  border: 1px solid rgba(47,110,79,0.18);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
}
.submit-aside__head {
  display: flex; align-items: center; gap: 8px;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 8px;
}
.submit-aside__head h3 { font-size: 14px; font-weight: 700; color: var(--brand); }
.submit-aside__list {
  margin: 0; padding-left: 20px;
  color: var(--ink); font-size: 13px;
}
.submit-aside__list li { margin: 4px 0; }

/* -- Submit complete inner text -- */
.submit-complete__title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.submit-complete__desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* -- JS-driven states shared across form/star-rating -- */
.star.selected { color: var(--brand); }
.star.hover { color: var(--accent); }
.star-rating .star { color: var(--line); transition: color 120ms; }

/* Field-level invalid highlight */
.form-input.invalid, input.invalid, select.invalid, textarea.invalid {
  border-color: #B84A36;
  box-shadow: 0 0 0 3px rgba(184,74,54,0.12);
}

/* -- site-header__cta icon layout (button from header.php) -- */
.site-header__cta {
  display: none;
  align-items: center; gap: 6px;
}
@media (min-width: 900px) {
  .site-header__cta { display: inline-flex; }
}

/* -- JS-generated completion screen (submit-form.js) -- */
.submission-complete {
  max-width: 540px; margin: 40px auto;
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow);
}
.submission-complete .complete-icon {
  display: inline-flex; width: 64px; height: 64px;
  align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 50%; font-size: 30px;
  margin-bottom: 14px;
}
.submission-complete h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.submission-complete p { color: var(--muted); font-size: 13px; }
.reference-code {
  margin: 18px auto; padding: 14px;
  background: var(--bg); border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  max-width: 280px;
}
.reference-code p { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.reference-code strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 18px; color: var(--brand); letter-spacing: 0.1em;
}
.share-buttons { margin: 18px 0; }
.share-buttons p { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--ink); color: #fff !important;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
}
.share-btn:hover { background: #000; text-decoration: none; }
.share-x { background: #0f1419; }
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink) !important; background: var(--surface);
  font-weight: 600;
}
.btn-back:hover { border-color: var(--brand); color: var(--brand) !important; text-decoration: none; }

/* -- Postal-code autofill flash (postal-code.js) -- */
.auto-filled {
  animation: sumiato-autofill 1.8s ease;
}
@keyframes sumiato-autofill {
  0%   { background: var(--brand-soft); }
  100% { background: var(--surface); }
}

/* -- Icon base class (from icons.php) -- */
.si { flex-shrink: 0; }
