/* ==========================================================================
   Site styles
   Navy + orange, readable type, sharp edges, mobile-first cards.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-400.27ab01c4cb50.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/source-sans-3-400-italic.410bdda67c60.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-600.9a35cba76eda.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-700.9b13bd3653e3.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/montserrat-600.9e606da1cbeb.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/montserrat-700.1c0792ac34ef.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/montserrat-800.9e624ca74fb3.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy-950: #081326;
  --navy-900: #0c1c38;
  --navy-800: #13294b;
  --navy-700: #1d3a6b;
  --navy-600: #2c4f8a;
  --navy-200: #c9d5ea;
  --navy-100: #e6ecf6;
  --navy-50: #f2f5fb;

  --orange-500: #ff5f05;
  --orange-600: #e85400;
  --orange-700: #c84113;
  --orange-100: #ffe7d9;
  --orange-50: #fff5ef;

  --ink: #0f1b2d;
  --text: #1f2a3d;
  --muted: #56627a;
  --line: #e2e7f0;
  --line-strong: #c8d1e0;
  --bg: #f5f7fb;
  --surface: #ffffff;

  --green-700: #17693f;
  --green-100: #e3f3ea;
  --amber-700: #8a5a00;
  --amber-100: #fdf1d6;
  --red-700: #b42318;
  --red-100: #fdeceb;
  --gray-700: #4f5b70;
  --gray-100: #eef1f6;

  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .06);
  --shadow: 0 4px 14px rgba(15, 27, 45, .08), 0 1px 3px rgba(15, 27, 45, .06);
  --shadow-lg: 0 18px 40px rgba(15, 27, 45, .14);

  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Montserrat", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: 16px;
  --focus: 0 0 0 3px rgba(255, 95, 5, .45);
}
@media (min-width: 720px) { :root { --gutter: 24px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy-700); text-underline-offset: 2px; }
a:hover { color: var(--orange-700); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
small, .small { font-size: .9rem; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--orange-500); color: var(--navy-900); padding: 8px 14px; border-radius: 0; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 1.6em; height: 1.6em; }
.icon--xl { width: 2.2em; height: 2.2em; }
.icon--fill { fill: currentColor; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }
.container--mid { max-width: 960px; }
.section { padding: 32px 0; }
.section--tight { padding: 20px 0; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 28px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cluster--lg { gap: 12px; }
.spread { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--apps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.two-col { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.two-col > * { min-width: 0; }
@media (min-width: 960px) {
  .two-col { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .two-col--left { grid-template-columns: 290px minmax(0, 1fr); }
}
.sticky { position: sticky; top: 84px; }
.page-head { padding: 28px 0 8px; }
.page-head p { color: var(--muted); max-width: 70ch; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.breadcrumbs a { color: var(--muted); }
@media (max-width: 899px) { .hide-mobile { display: none !important; } }
@media (min-width: 900px) { .show-mobile { display: none !important; } }

/* ---------- Header ---------- */
.site-header { background: var(--navy-800); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 20px rgba(8,19,38,.18); }
.site-header__bar { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand__mark { width: 38px; height: 38px; border-radius: 0; background: var(--orange-500); color: var(--navy-800); display: grid; place-items: center; }
.brand__mark .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.main-nav { display: none; gap: 2px; align-items: center; }
.main-nav a, .main-nav summary { color: #dfe6f3; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 0; cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav a:hover, .main-nav summary:hover, .main-nav a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-link { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 0; color: #dfe6f3; text-decoration: none; }
.icon-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.icon-link .icon { width: 22px; height: 22px; }
.count-badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; border-radius: 0; background: var(--orange-500); color: var(--navy-900); font-size: .72rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--navy-800); }
@media (min-width: 900px) { .main-nav { display: flex; } }

.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); color: var(--text); border-radius: 0; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px; z-index: 50; }
.dropdown__menu--left { left: 0; right: auto; }
.dropdown__menu a, .dropdown__menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 0; color: var(--text); text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown__menu a:hover, .dropdown__menu button:hover { background: var(--navy-50); color: var(--navy-800); }
.dropdown__menu .icon { color: var(--navy-600); }
.dropdown__label { padding: 8px 12px 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.dropdown__sep { height: 1px; background: var(--line); margin: 6px 4px; }

.mobile-menu { display: block; }
@media (min-width: 900px) { .mobile-menu { display: none; } }
.mobile-menu > summary { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 0; color: #fff; }
.mobile-menu > summary:hover { background: rgba(255,255,255,.08); }
.mobile-menu .dropdown__menu { width: min(92vw, 340px); }

.user-chip { display: inline-flex; align-items: center; gap: 8px; color: #fff; padding: 4px 6px; border-radius: 0; }
.user-chip:hover { background: rgba(255,255,255,.08); }

/* Group application quick actions bar under the header */
.action-strip { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.06); }
.action-strip .container { display: flex; gap: 10px; align-items: center; padding-top: 8px; padding-bottom: 8px; overflow-x: auto; }
.action-strip__label { color: #aebbd3; font-size: .9rem; white-space: nowrap; margin-right: 4px; }

/* ---------- Buttons ---------- */
.btn { --btn-bg: var(--surface); --btn-fg: var(--navy-800); --btn-border: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 44px;
  border-radius: 0; border: 1.5px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-fg);
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; }
.btn:hover { color: var(--btn-fg); border-color: var(--navy-600); }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--orange-500); --btn-fg: var(--navy-900); --btn-border: var(--orange-500); box-shadow: 0 2px 0 var(--orange-700); }
.btn--primary:hover { --btn-bg: #ff7426; --btn-border: #ff7426; color: var(--navy-900); }
.btn--navy { --btn-bg: var(--navy-800); --btn-fg: #fff; --btn-border: var(--navy-800); }
.btn--navy:hover { --btn-bg: var(--navy-700); --btn-border: var(--navy-700); color: #fff; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-border: var(--navy-800); }
.btn--outline:hover { --btn-bg: var(--navy-50); }
.btn--ghost { --btn-bg: transparent; --btn-border: transparent; --btn-fg: var(--navy-700); }
.btn--ghost:hover { --btn-bg: var(--navy-50); border-color: transparent; }
.btn--light { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; --btn-border: rgba(255,255,255,.35); }
.btn--light:hover { --btn-bg: rgba(255,255,255,.18); --btn-border: #fff; color: #fff; }
.btn--danger { --btn-bg: var(--surface); --btn-fg: var(--red-700); --btn-border: #f0b8b3; }
.btn--danger:hover { --btn-bg: var(--red-100); border-color: var(--red-700); color: var(--red-700); }
.btn--sm { padding: 6px 12px; min-height: 36px; font-size: .92rem; border-radius: 0; }
.btn--xs { padding: 4px 10px; min-height: 30px; font-size: .85rem; border-radius: 0; }
.btn--lg { padding: 14px 24px; min-height: 52px; font-size: 1.08rem; border-radius: 0; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.is-on { --btn-bg: var(--orange-50); --btn-border: var(--orange-500); --btn-fg: var(--orange-700); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-700); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--orange-700); }
.inline-form { display: inline; margin: 0; }

/* ---------- Pills, tags, badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 0; font-size: .82rem; font-weight: 700; line-height: 1.4; white-space: nowrap; background: var(--gray-100); color: var(--gray-700); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 0; background: currentColor; opacity: .85; }
.pill--plain::before { display: none; }
.pill--green { background: var(--green-100); color: var(--green-700); }
.pill--amber { background: var(--amber-100); color: var(--amber-700); }
.pill--navy { background: var(--navy-100); color: var(--navy-800); }
.pill--orange { background: var(--orange-100); color: var(--orange-700); }
.pill--red { background: var(--red-100); color: var(--red-700); }
.pill--gray { background: var(--gray-100); color: var(--gray-700); }
.pill--outline { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 0; background: var(--navy-50); color: var(--navy-800); font-size: .88rem; font-weight: 600; border: 1px solid var(--navy-100); }
.tag .icon { width: 15px; height: 15px; color: var(--navy-600); }
.tag--shared { background: var(--orange-50); border-color: var(--orange-100); color: var(--orange-700); }
.tag--shared .icon { color: var(--orange-700); }
.tag--muted { background: var(--gray-100); border-color: transparent; color: var(--gray-700); }
.tag--req { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.tag--req .icon { color: var(--orange-500); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 0; text-decoration: none; white-space: nowrap; }
.badge .icon { width: 14px; height: 14px; }
.badge--uiuc { background: var(--navy-100); color: var(--navy-800); }
.badge--resident { background: var(--orange-100); color: var(--orange-700); }
.badge--demo { background: #f4e8ff; color: #6b21a8; }
.badge--community { background: var(--gray-100); color: var(--gray-700); }

/* ---------- Stars ---------- */
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; vertical-align: -1px; white-space: nowrap; }
.stars::before { content: "★★★★★"; color: #d7deea; }
.stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; }
.stars__fill::before { content: "★★★★★"; color: var(--orange-500); }
.stars--lg { font-size: 1.5rem; }
.stars--sm { font-size: .85rem; letter-spacing: 1px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.rating .muted { font-weight: 400; }

/* ---------- Cards: generic panel ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 20px; box-shadow: var(--shadow-sm); }
.panel--flush { padding: 0; overflow: hidden; }
.panel--tint { background: var(--navy-50); border-color: var(--navy-100); box-shadow: none; }
.panel--orange { background: var(--orange-50); border-color: var(--orange-100); box-shadow: none; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel__head h2, .panel__head h3 { margin: 0; }
.panel + .panel { margin-top: 18px; }

/* ---------- Housing cards (photo-first, white) ---------- */
.hcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 0; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s; }
.hcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hcard__media { position: relative; aspect-ratio: 16 / 10; background: var(--navy-100); overflow: hidden; }
.hcard__media img { width: 100%; height: 100%; object-fit: cover; }
.hcard__cat { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(8, 19, 38, .78); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 0; backdrop-filter: blur(4px); }
.hcard__cat .icon { width: 14px; height: 14px; color: var(--orange-500); }
.hcard__status { position: absolute; right: 12px; top: 12px; }
.hcard__body { padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hcard__title { font-size: 1.12rem; margin: 0; }
.hcard__title a { color: var(--ink); text-decoration: none; }
.hcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hcard__title a:hover { color: var(--navy-700); }
.hcard__meta { color: var(--muted); font-size: .93rem; display: flex; gap: 6px; align-items: center; }
.hcard__meta .icon { color: var(--navy-600); }
.hcard__price { font-family: var(--font-head); font-weight: 800; color: var(--navy-800); font-size: 1.08rem; }
.hcard__price small { font-family: var(--font-body); font-weight: 600; color: var(--muted); font-size: .85rem; }
.hcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); background: #fbfcfe; position: relative; z-index: 2; }
.hcard__foot form { margin: 0; }
.compare-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.compare-toggle input { width: 18px; height: 18px; accent-color: var(--navy-800); }
.save-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 8px; border-radius: 0; cursor: pointer; color: var(--muted); font: 600 .9rem var(--font-body); }
.save-btn:hover { background: var(--orange-50); color: var(--orange-700); }
.save-btn.is-saved { color: var(--orange-700); }
.save-btn.is-saved .icon { fill: currentColor; }

/* Generated cover when there is no photo yet */
.cover { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background:
  radial-gradient(120% 90% at 100% 0%, rgba(255,95,5,.35), transparent 55%),
  linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; }
.cover::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 22px), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 22px); }
.cover__initials { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; letter-spacing: .02em; opacity: .95; }
.cover--certified { background: radial-gradient(120% 90% at 0% 0%, rgba(255,95,5,.35), transparent 55%), linear-gradient(135deg, #1c3159, #3a5d99); }
.cover--apartment { background: radial-gradient(120% 90% at 100% 100%, rgba(255,95,5,.4), transparent 55%), linear-gradient(160deg, #13294b, #274777); }
.cover--sublease { background: radial-gradient(100% 90% at 0% 100%, rgba(255,95,5,.45), transparent 60%), linear-gradient(135deg, #182f55, #13294b); }
.cover::before { content: ""; position: absolute; inset: 0; }
.cover--v1::before { background: radial-gradient(90% 70% at 0% 100%, rgba(255,95,5,.30), transparent 60%); }
.cover--v2::before { background: radial-gradient(80% 60% at 50% 115%, rgba(255,95,5,.34), transparent 60%), linear-gradient(0deg, rgba(8,19,38,.25), transparent); }
.cover--v3::before { background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 10px, transparent 10px 20px); }
.cover--other { background: radial-gradient(100% 90% at 50% 0%, rgba(255,95,5,.35), transparent 60%), linear-gradient(135deg, #243b63, #102241); }

/* ---------- Group application cards (ticket style, orange edge) ---------- */
.acard { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 0; border: 1px solid var(--line); border-left: 6px solid var(--orange-500); box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s; }
.acard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.acard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px 0; font-size: .86rem; color: var(--muted); }
.acard__body { padding: 8px 16px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.acard__title { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.acard__title a { color: var(--ink); text-decoration: none; }
.acard__title a:hover { color: var(--navy-700); }
.acard__intro { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acard__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: .93rem; }
.acard__fact { display: flex; gap: 7px; align-items: flex-start; min-width: 0; }
.acard__fact .icon { color: var(--orange-700); margin-top: 3px; }
.acard__fact b { display: block; color: var(--ink); font-weight: 700; }
.acard__fact span { color: var(--muted); }
.acard__people { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 0; background: var(--orange-50); border: 1px dashed #ffc7a6; font-size: .93rem; }
.dots { display: inline-flex; gap: 4px; }
.fact .dots { margin-right: 6px; vertical-align: -2px; }
.dot { width: 14px; height: 14px; border-radius: 0; border: 2px solid var(--navy-800); }
.dot--filled { background: var(--navy-800); }
.dot--open { background: #fff; border-style: dashed; border-color: var(--orange-700); }
.acard__match { font-size: .93rem; color: var(--navy-800); background: var(--navy-50); border-radius: 0; padding: 8px 12px; border: 1px solid var(--navy-100); }
.acard__match b { color: var(--orange-700); }
.acard__actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px dashed var(--line-strong); flex-wrap: wrap; align-items: center; }
.acard__actions .btn { flex: 1 1 auto; }
.acard__actions form { margin: 0; display: flex; }
.acard--compact .acard__facts { grid-template-columns: 1fr; }

/* ---------- Home ---------- */
.hero { position: relative; color: #fff; background:
  radial-gradient(900px 400px at 85% -10%, rgba(255,95,5,.35), transparent 60%),
  radial-gradient(700px 360px at -10% 110%, rgba(44,79,138,.8), transparent 60%),
  var(--navy-800); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 36px), repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 36px); }
.hero .container { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 56px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--orange-500); }
.hero p.lead { color: #d6def0; font-size: 1.15rem; max-width: 58ch; }
.searchbar { display: flex; gap: 8px; background: #fff; border-radius: 0; padding: 6px; box-shadow: var(--shadow-lg); max-width: 720px; }
.searchbar input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.05rem; padding: 10px 12px; color: var(--ink); background: transparent; }
.searchbar input:focus { outline: none; box-shadow: none; }
.searchbar .icon { color: var(--navy-600); align-self: center; margin-left: 10px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero__note { margin-top: 18px; color: #aebbd3; font-size: .95rem; }
.cat-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.cat-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 18px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--orange-500); color: var(--text); }
.cat-card__icon { width: 46px; height: 46px; border-radius: 0; display: grid; place-items: center; background: var(--navy-800); color: var(--orange-500); }
.cat-card__icon .icon { width: 24px; height: 24px; }
.cat-card h3 { margin: 4px 0 0; }
.cat-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.cat-card__count { margin-top: auto; font-weight: 700; color: var(--navy-700); font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.feature-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: step; }
.step { padding: 18px; border-radius: 0; background: var(--navy-50); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -12px; left: 16px; width: 28px; height: 28px; border-radius: 0; background: var(--orange-500); color: var(--navy-900); font-weight: 800; display: grid; place-items: center; font-family: var(--font-head); }
.step h3 { margin-top: 8px; }
.step p { margin: 0; color: var(--muted); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-title h2 { margin: 0; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 800; color: var(--orange-700); margin-bottom: 6px; display: block; }
.hero .eyebrow { color: var(--orange-500); }

/* ---------- Mini review (home, dashboard) ---------- */
.mini-review { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.mini-review__place { font-weight: 700; color: var(--navy-800); text-decoration: none; }
.mini-review__text { color: var(--text); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Filters ---------- */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 16px; }
.filters details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.filters details:last-of-type { border-bottom: 0; }
.filters summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; color: var(--muted); font-weight: 700; }
.filters details[open] summary::after { content: "–"; }
.filters .filter-body { padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.filters-toggle { display: flex; }
.filters-drawer > summary { list-style: none; }
.filters-drawer > summary::-webkit-details-marker { display: none; }
.filters-drawer[open] > summary { margin-bottom: 12px; }
@media (min-width: 960px) {
  .filters-drawer > summary { display: none; }
  .filters-drawer .filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
}
.filters__actions { position: sticky; bottom: -16px; background: var(--surface); padding: 12px 0 4px; margin-top: 8px; border-top: 1px solid var(--line); }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-bar select { width: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active-filters a { text-decoration: none; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 0; background: var(--navy-800); color: #fff; font-size: .85rem; font-weight: 600; }
.chip-x:hover { background: var(--navy-700); color: #fff; }
.chip-x .icon { width: 14px; height: 14px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-weight: 700; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); font-size: .9rem; }
.help, .helptext { color: var(--muted); font-size: .92rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="month"], input[type="time"], input[type="url"], input[type="search"], input[type="tel"], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: 0; padding: 10px 12px; min-height: 44px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(44,79,138,.18); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--navy-800); width: 18px; height: 18px; }
input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; flex: none; display: inline-grid; place-content: center; border: 2px solid var(--line-strong); background: #fff; cursor: pointer; vertical-align: -3px; }
input[type="checkbox"]::before { content: ""; width: 10px; height: 10px; background: #fff; transform: scale(0); clip-path: polygon(12% 48%, 0 62%, 40% 100%, 100% 22%, 88% 8%, 40% 72%); }
input[type="checkbox"]:checked { background: var(--navy-800); border-color: var(--navy-800); }
input[type="checkbox"]:checked::before { transform: scale(1); }
input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
button, input, select, textarea { border-radius: 0; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="file"] { font: inherit; padding: 10px; border: 1.5px dashed var(--line-strong); border-radius: 0; width: 100%; background: var(--navy-50); }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--red-700); font-weight: 600; font-size: .93rem; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--red-700); }
.form-errors { display: flex; gap: 10px; align-items: flex-start; background: var(--red-100); color: var(--red-700); border: 1px solid #f5c6c1; border-radius: 0; padding: 12px 14px; font-weight: 600; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { margin-top: 3px; flex: none; }
.check span small { display: block; font-weight: 400; color: var(--muted); }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset > legend { padding: 0; margin-bottom: 6px; }
.help--legend { margin: -2px 0 8px; }
.honeypot { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Checkbox / radio lists rendered as toggle chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips > div, .chips label { margin: 0; }
.chips ul, ul.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips input[type="checkbox"], .chips input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 0; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--text); user-select: none; transition: all .12s; }
.chips label:hover { border-color: var(--navy-600); }
.chips label:has(input:checked) { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chips label:has(input:focus-visible) { box-shadow: var(--focus); }
.chips--small label { padding: 5px 10px; font-size: .88rem; }

/* Big option cards for single-choice quiz questions */
.options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.options ul, ul.options { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.options label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 0; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; font-weight: 600; min-height: 52px; }
.options label:hover { border-color: var(--navy-600); }
.options label:has(input:checked) { border-color: var(--orange-500); background: var(--orange-50); box-shadow: inset 0 0 0 1px var(--orange-500); }
.options input { flex: none; }

/* Segmented control for Required / Preferred / Flexible */
.segmented { display: inline-flex; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: 0; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segmented ul { display: contents; list-style: none; }
.segmented li { display: contents; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label { padding: 6px 12px; border-radius: 0; font-weight: 700; font-size: .9rem; color: var(--navy-700); cursor: pointer; }
.segmented label:has(input:checked) { background: var(--navy-800); color: #fff; }
.segmented label:has(input:focus-visible) { box-shadow: var(--focus); }
.segmented a { padding: 6px 12px; font-weight: 700; font-size: .9rem; color: var(--navy-700); text-decoration: none; }
.segmented a:hover { background: var(--navy-100); }
.segmented a[aria-current="page"] { background: var(--navy-800); color: #fff; }

/* Star rating input (radio buttons, no JS required) */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.9rem; line-height: 1; color: #d0d7e4; cursor: pointer; padding: 0 2px; transition: color .1s, transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--orange-500); }
.star-input label:hover { transform: scale(1.1); }
.star-input input:focus-visible + label { box-shadow: var(--focus); border-radius: 0; }
.score-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.score-row:last-child { border-bottom: 0; }
.score-row .star-input label { font-size: 1.5rem; }

/* ---------- Quiz ---------- */
.quiz { display: grid; gap: 24px; }
@media (min-width: 960px) { .quiz { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.quiz-nav-list { display: none; }
@media (min-width: 960px) { .quiz-nav-list { display: block; position: sticky; top: 90px; } }
.quiz-nav-list ol { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.quiz-nav-list li { counter-increment: q; }
.quiz-nav-list a { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 0; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.quiz-nav-list a::before { content: counter(q); width: 24px; height: 24px; border-radius: 0; display: grid; place-items: center; background: var(--gray-100); color: var(--gray-700); font-size: .8rem; font-weight: 800; flex: none; }
.quiz-nav-list a.is-current { background: var(--navy-50); color: var(--navy-800); }
.quiz-nav-list a.is-current::before { background: var(--orange-500); color: var(--navy-900); }
.quiz-nav-list a.is-done::before { background: var(--navy-800); color: #fff; }
.progress { height: 10px; background: var(--navy-100); border-radius: 0; overflow: hidden; }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--orange-500), #ff8a47); border-radius: 0; transition: width .25s; width: 0; }
.progress-label { display: flex; justify-content: space-between; font-weight: 700; color: var(--navy-800); font-size: .92rem; margin-bottom: 8px; }
.quiz-step { border: 1px solid var(--line); border-radius: 0; background: var(--surface); padding: 22px; margin: 0 0 18px; box-shadow: var(--shadow-sm); }
.quiz-step > legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.quiz-step > legend + * { clear: both; }
.quiz-step .step-kicker { display: block; clear: both; color: var(--orange-700); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin-bottom: 2px; }
.quiz-step .step-intro { color: var(--muted); margin-bottom: 16px; }
.quiz-step .q { margin-top: 18px; }
.quiz-meta { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-strong); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.quiz-meta__label { font-size: .9rem; font-weight: 700; color: var(--muted); margin-right: 8px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; color: var(--navy-800); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border: 0; border-radius: 0; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::before { content: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 0; background: #fff; box-shadow: var(--shadow-sm); transition: left .15s; }
.switch input:checked { background: var(--green-700); }
.switch input:checked::after { left: 21px; }
.quiz-buttons { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
/* University Housing notice in the quiz: shown once University Housing is picked. */
.uh-notice { display: none; margin-top: 16px; }
.uh-notice.is-open, .uh-notice.is-error { display: block; }
html:not(.js) .quiz-step:has(input[name="categories"][value="dorm"]:checked) .uh-notice { display: block; }
.uh-notice__title { font-weight: 800; margin-bottom: 6px; }
.uh-notice__text p { margin-bottom: 8px; }
.uh-notice .field { margin: 10px 0 0; }
.uh-notice .check { color: var(--ink); }
.js .uh-notice__text { display: none; }
.js .uh-notice.is-error .uh-notice__text { display: block; }
.uh-notice__reopen { margin-top: 8px; padding-left: 0; }
html:not(.js) .uh-notice__reopen { display: none; }

/* Modal dialog (native <dialog>) */
.modal { border: 0; border-top: 6px solid var(--orange-500); border-radius: 0; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(8, 19, 38, .62); }
.modal__body { padding: 22px 22px 6px; }
.modal__body p { margin-bottom: 10px; }
.modal__head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.modal__head h2 { margin: 0; font-size: 1.3rem; }
.modal__head .bang { color: var(--orange-700); font-size: 1.5rem; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 22px 22px; }
@media (max-width: 480px) { .modal__actions { flex-direction: column-reverse; } .modal__actions .btn { width: 100%; } }
.js .quiz-step[hidden] { display: none; }
html:not(.js) [data-prev], html:not(.js) [data-next] { display: none; }

/* ---------- Detail pages ---------- */
.detail-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.detail-hero .container { padding-top: 22px; padding-bottom: 22px; }
.gallery { display: grid; gap: 8px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; border-radius: 0; overflow: hidden; aspect-ratio: 21 / 9; background: var(--navy-100); }
.gallery a, .gallery .cover-wrap { position: relative; display: block; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery > :first-child { grid-row: span 2; }
.gallery--single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery--empty { aspect-ratio: auto; height: clamp(140px, 22vw, 240px); }
.gallery--single > :first-child { grid-row: auto; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 16 / 10; } .gallery > :not(:first-child) { display: none; } }
.title-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-top: 18px; }
.title-row h1 { margin-bottom: 6px; }
.facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.fact { background: var(--navy-50); border-radius: 0; padding: 12px 14px; }
.fact dt { font-size: .82rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fact dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; color: var(--ink); }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; } }
.amenities { display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); list-style: none; padding: 0; margin: 0; }
.amenities li { display: flex; gap: 8px; align-items: center; }
.amenities .icon { color: var(--green-700); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--navy-50); color: var(--navy-800); font-weight: 700; font-size: .9rem; }
.table tfoot td { font-weight: 800; color: var(--navy-800); background: var(--orange-50); }
.table .num { text-align: right; white-space: nowrap; }
.compare-table th[scope="row"] { background: var(--navy-50); color: var(--navy-800); width: 190px; font-weight: 700; }
.compare-table td { min-width: 200px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 0; background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--navy-800); }
.notice .bang { color: var(--navy-700); }
.notice--orange { background: var(--orange-50); border-color: var(--orange-100); color: #7a2e06; }
.notice--orange .bang { color: var(--orange-700); }
.notice--green { background: var(--green-100); border-color: #c4e6d2; color: var(--green-700); }
.notice--green .bang { color: var(--green-700); }
.notice--red { background: var(--red-100); border-color: #f5c6c1; color: var(--red-700); }
.notice--red .bang { color: var(--red-700); }
/* The alert mark: a plain exclamation point, no icon or circle around it. */
.bang { flex: none; width: .8em; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 1.2em; line-height: 1.2; }
.notice p:last-child { margin-bottom: 0; }

/* Rating summary */
.rating-summary { display: grid; gap: 18px; }
@media (min-width: 640px) { .rating-summary { grid-template-columns: 180px 1fr; } }
.rating-big { text-align: center; padding: 16px; background: var(--navy-800); color: #fff; border-radius: 0; }
.rating-big__num { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; }
.rating-big .stars::before { color: rgba(255,255,255,.25); }
.rating-big .muted { color: #b9c6de; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 38px; gap: 10px; align-items: center; font-size: .94rem; }
.bar { height: 10px; background: var(--navy-100); border-radius: 0; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--navy-700); border-radius: 0; }
.bar--orange > span { background: var(--orange-500); }
.bar-row b { text-align: right; color: var(--ink); }

/* Reviews */
.review { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 18px; scroll-margin-top: 90px; }
.review + .review { margin-top: 14px; }
.review__head { display: flex; gap: 12px; align-items: flex-start; }
.review__who { flex: 1; min-width: 0; }
.review__name { font-weight: 700; color: var(--ink); }
.review__sub { color: var(--muted); font-size: .9rem; }
.review__title { margin: 12px 0 6px; font-size: 1.1rem; }
.review__scores { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--muted); margin: 8px 0; }
.review__scores b { color: var(--ink); }
.review__body { white-space: pre-line; }
.review__photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.review__photos img { width: 110px; height: 110px; object-fit: cover; border-radius: 0; }
.review__foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.review__foot form { margin: 0; }
.review__circ { background: var(--orange-50); border-left: 4px solid var(--orange-500); padding: 10px 14px; border-radius: 0; margin: 10px 0; }
.review__circ b { color: var(--orange-700); }

/* Avatars */
.avatar { --size: 40px; width: var(--size); height: var(--size); border-radius: 0; display: inline-grid; place-items: center; flex: none; color: #fff; font-weight: 800; font-family: var(--font-head); font-size: calc(var(--size) * .38); background: hsl(var(--hue, 215), 45%, 36%); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.avatar--sm { --size: 30px; }
.avatar--lg { --size: 64px; }
.avatar--xl { --size: 88px; }
.avatar--anon { background: var(--gray-700); }
.avatar-stack { display: inline-flex; gap: 3px; }
.avatar-stack .avatar { margin-left: 0; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 0; overflow: hidden; min-height: 60vh; }
.chat__head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; background: #fbfcfe; }
.chat__log { flex: 1; overflow-y: auto; min-height: 360px; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 62vh; background: linear-gradient(180deg, #fbfcfe, #f5f7fb); }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 86%; }
.msg__bubble { background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 9px 13px; box-shadow: var(--shadow-sm); }
.msg__meta { font-size: .78rem; color: var(--muted); margin-bottom: 2px; }
.msg__text { white-space: pre-line; overflow-wrap: anywhere; }
.msg--mine { align-self: flex-end; flex-direction: row-reverse; }
.msg--mine .msg__bubble { background: var(--navy-800); color: #fff; border-color: var(--navy-800); border-radius: 0; }
.msg--mine .msg__meta { color: #b9c6de; }
.msg--mine a { color: #fff; }
.msg--system { align-self: center; max-width: 100%; }
.msg--system .msg__bubble { background: var(--orange-50); border: 1px dashed #ffc7a6; color: #7a2e06; font-size: .9rem; border-radius: 0; box-shadow: none; text-align: center; }
.msg__property { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 0; background: var(--navy-50); color: var(--navy-800); text-decoration: none; font-weight: 700; font-size: .92rem; }
.msg--mine .msg__property { background: rgba(255,255,255,.12); color: #fff; }
.chat__composer { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; background: #fff; }
.chat__composer textarea { min-height: 46px; max-height: 180px; }
.chat__extra { padding: 0 12px 12px; background: #fff; }
.chat__extra summary { cursor: pointer; color: var(--muted); font-size: .9rem; font-weight: 600; }
.inbox-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.inbox-item:hover { background: var(--navy-50); color: var(--text); }
.inbox-item:last-child { border-bottom: 0; }
.inbox-item__main { flex: 1; min-width: 0; }
.inbox-item__subject { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item__preview { color: var(--muted); font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item.is-unread .inbox-item__subject::after { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--orange-500); border-radius: 0; margin-left: 8px; vertical-align: middle; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.notif { display: flex; gap: 12px; align-items: flex-start; }
.notif__dot { width: 10px; height: 10px; border-radius: 0; background: transparent; margin-top: 8px; flex: none; }
.notif.is-unread .notif__dot { background: var(--orange-500); }
.notif.is-unread .notif__text { font-weight: 700; }
.task { display: flex; gap: 10px; align-items: center; }
.task.is-done .task__text { text-decoration: line-through; color: var(--muted); }
.task form { margin: 0; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; margin-bottom: 18px; }
.tabs a { padding: 10px 14px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover { color: var(--navy-800); }
.tabs a[aria-current="page"] { color: var(--navy-800); border-bottom-color: var(--orange-500); }
.tabs .count { background: var(--navy-100); color: var(--navy-800); border-radius: 0; padding: 0 8px; font-size: .8rem; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; text-decoration: none; color: var(--text); display: block; }
.stat:hover { border-color: var(--navy-600); color: var(--text); }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--navy-800); line-height: 1.1; }
.stat__label { color: var(--muted); font-weight: 600; font-size: .92rem; }
.stat--alert .stat__num { color: var(--orange-700); }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 36px 20px; border: 2px dashed var(--line-strong); border-radius: 0; background: rgba(255,255,255,.6); }
.empty .icon { width: 42px; height: 42px; color: var(--navy-600); margin-bottom: 10px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 14px; }

/* ---------- Flash messages ---------- */
.flashes { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 0; font-weight: 600; background: var(--navy-800); color: #fff; box-shadow: var(--shadow); }
.flash .bang { color: var(--orange-500); }
.flash--error { background: var(--red-700); }
.flash--error .bang { color: #fff; }
.flash--success { background: var(--green-700); }
.flash--success .bang { color: #fff; }
.flash__close { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; opacity: .8; font-size: 1.2rem; line-height: 1; }

/* ---------- Demo banner ---------- */
.demo-banner { background: #f4e8ff; color: #4c1d95; text-align: center; padding: 8px 16px; font-weight: 600; font-size: .92rem; border-bottom: 1px solid #e3cffc; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 0; text-decoration: none; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--navy-800); }
.pagination .is-current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.pagination .is-disabled { color: var(--line-strong); }

/* ---------- Compare tray ---------- */
.compare-tray { position: sticky; bottom: 12px; z-index: 30; margin-top: 18px; display: flex; justify-content: center; }
.compare-tray__inner { display: flex; gap: 12px; align-items: center; background: var(--navy-800); color: #fff; padding: 10px 12px 10px 18px; border-radius: 0; box-shadow: var(--shadow-lg); flex-wrap: wrap; }
.compare-tray[hidden] { display: none; }

/* ---------- Prose (legal and resource pages) ---------- */
.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.resource-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.resource { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.resource h3 { margin: 0; display: flex; gap: 8px; align-items: center; }
.resource h3 .icon { color: var(--orange-700); }
.resource p { margin: 0; color: var(--muted); }
.resource ul { margin: 0; padding-left: 1.1em; color: var(--text); font-size: .95rem; }
.resource__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 14px; font-weight: 700; font-size: .95rem; }
.resource__links a { display: inline-flex; gap: 4px; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #c1cbe0; margin-top: 48px; }
.site-footer .container { padding-top: 36px; padding-bottom: 28px; }
.site-footer a { color: #e6ecf6; text-decoration: none; }
.site-footer a:hover { color: var(--orange-500); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-about { margin: 0; color: #dfe6f3; max-width: 32ch; font-weight: 600; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 18px; font-size: .88rem; color: #9fb0cd; }
.footer-legal p { margin: 0 0 6px; }

/* ---------- Misc ---------- */
.kv-list { display: flex; flex-direction: column; gap: 10px; }
.kv { display: flex; gap: 10px; align-items: flex-start; }
.kv .icon { color: var(--orange-700); margin-top: 3px; }
.kv b { color: var(--ink); }
.answer-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.answer { border: 1px solid var(--line); border-radius: 0; padding: 14px; background: #fff; position: relative; }
.answer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.answer h4 { display: flex; gap: 8px; align-items: center; margin: 0; min-width: 0; }
.answer h4 .icon { color: var(--orange-700); }
.answer p { margin: 0; }
.answer__imp { flex: none; font-size: .78rem; padding: 2px 8px; }
.answer--required { border-color: var(--navy-800); box-shadow: inset 4px 0 0 var(--navy-800); }
.answer--hidden { background: var(--gray-100); border-style: dashed; color: var(--muted); }
.divider-dots { border: 0; border-top: 2px dotted var(--line-strong); margin: 18px 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.w-100 { width: 100%; }
.nowrap { white-space: nowrap; }
.pre-line { white-space: pre-line; }
.card-link { color: inherit; text-decoration: none; }
.error-page { text-align: center; padding: 60px 0; }
.error-page .big { font-family: var(--font-head); font-weight: 800; font-size: 5rem; color: var(--navy-800); line-height: 1; }
.shortlist-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shortlist-item:last-child { border-bottom: 0; }
.shortlist-item__main { flex: 1; min-width: 0; }
.thumb { width: 64px; height: 48px; border-radius: 0; overflow: hidden; position: relative; flex: none; background: var(--navy-100); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .cover__initials { font-size: 1rem; }
.member-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.member-row__main { flex: 1; min-width: 0; }
.preview-frame { border: 3px dashed var(--orange-500); border-radius: 0; padding: 16px; background: repeating-linear-gradient(45deg, #fff, #fff 12px, var(--orange-50) 12px, var(--orange-50) 24px); }
.hr-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 12px; }
.hr-label::before, .hr-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
