:root {
  color-scheme: light;
  --ink: #102436;
  --muted: #5d6973;
  --paper: #f7f8f6;
  --card: #ffffff;
  --navy: #0b1f33;
  --navy-2: #18364f;
  --line: #d8dee2;
  --gold: #f3bd63;
  --orange: #e66d3f;
  --red: #bd3344;
  --green: #2d745d;
  --shadow: 0 24px 70px rgba(11, 31, 51, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: smooth; }

body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; }

a { color: inherit; }

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 76px);
  color: #fff;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(245,194,107,.7); border-radius: 10px; color: var(--gold); font-weight: 800; letter-spacing: -.04em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .95rem; letter-spacing: .01em; }
.brand small { color: #aebbc5; font-size: .76rem; }
.privacy-badge { border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 12px; color: #dbe5eb; font-size: .78rem; }

main { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }

.intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 48px; align-items: end; padding: clamp(48px, 8vw, 96px) 0 42px; }
.eyebrow { margin: 0 0 14px; color: #a7462d; font-size: .79rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
h1 { max-width: 770px; margin: 0; font-size: clamp(2.45rem, 5.2vw, 5rem); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.intro-copy { max-width: 540px; margin: 0 0 4px; color: var(--muted); font-size: 1.08rem; }

.property-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 32px; }
.property-card { min-width: 0; display: grid; grid-template-columns: 175px minmax(0, 1fr); overflow: hidden; color: inherit; background: var(--card); border: 1px solid #dce1e4; border-radius: 18px; text-decoration: none; box-shadow: 0 10px 32px rgba(11,31,51,.06); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.property-card:hover, .property-card:focus-visible { transform: translateY(-3px); border-color: #9babb7; box-shadow: var(--shadow); outline: none; }
.document-preview { position: relative; margin: 0; min-height: 360px; overflow: hidden; background: #d9dfe1; }
.document-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,31,51,.76)); pointer-events: none; }
.document-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.78) contrast(.98); transition: transform .25s ease; }
.property-card:hover img { transform: scale(1.02); }
.document-preview figcaption { position: absolute; z-index: 1; left: 14px; bottom: 13px; color: #fff; font-size: .76rem; font-weight: 700; }
.property-card-body { display: flex; flex-direction: column; padding: 24px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: #71808a; font-size: .73rem; text-transform: uppercase; letter-spacing: .08em; }
.property-card h2 { margin: 15px 0 8px; font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.05; font-weight: 500; }
.decision-line { margin: 0 0 18px; color: #44535e; }
.decision-line strong { color: var(--red); }
.signal-list { list-style: none; padding: 0; margin: 0 0 24px; }
.signal-list li { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-top: 1px solid #edf0f1; color: #32434f; font-size: .91rem; }
.signal { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--orange); }
.signal.critical { background: var(--red); }
.signal.high { background: var(--orange); }
.open-label { margin-top: auto; color: #154e76; font-weight: 800; font-size: .88rem; }

.evidence-note { display: flex; gap: 14px; align-items: flex-start; max-width: 920px; margin: 20px 0 72px; padding: 18px 20px; color: #41515c; background: #e9eef1; border-radius: 12px; }
.evidence-note p { margin: 0; }
.note-icon { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--navy-2); font-weight: 800; font-family: Georgia, serif; }

footer { padding: 24px clamp(20px, 5vw, 76px) 38px; color: #687680; border-top: 1px solid var(--line); font-size: .82rem; }
footer p { max-width: 900px; margin: 0; }

@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .property-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar { padding: 14px 18px; }
  .privacy-badge { display: none; }
  main { width: min(100% - 28px, 1280px); }
  .intro { padding-top: 42px; }
  .property-card { grid-template-columns: 1fr; }
  .document-preview { min-height: 210px; max-height: 240px; }
  .document-preview img { object-position: center 12%; }
  .card-meta { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Property review */
.property-page main { width: 100%; }
.property-hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(32px, 7vw, 90px); align-items: center; padding: clamp(44px, 7vw, 86px) max(20px, calc((100vw - 1180px) / 2)); background: linear-gradient(132deg, #0b1f33 0%, #14344e 67%, #1d465b 100%); color: #fff; }
.property-hero-copy { min-width: 0; }
.property-hero .eyebrow { color: var(--gold); margin-top: 28px; }
.property-hero .back-link { display: inline-block; margin-bottom: 24px; color: #c9d7df; text-decoration: none; font-size: .86rem; }
.property-hero h1 { max-width: 840px; font-size: clamp(3rem, 7.2vw, 6.8rem); }
.property-hero .location { margin: 12px 0 0; color: #b8c8d1; font-size: 1rem; }
.status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; color: #d9e2e7; font-size: .86rem; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 12px; font-weight: 800; color: #fff; background: var(--orange); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.critical { background: var(--red); }
.hero-lede { max-width: 800px; margin: 0; color: #e0e8ec; font-size: clamp(1.02rem, 1.8vw, 1.22rem); line-height: 1.65; }
.hero-document { position: relative; margin: 0; aspect-ratio: 4/5; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.34); transform: rotate(2deg); }
.hero-document::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.3); border-radius: inherit; pointer-events: none; }
.hero-document img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-document figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: #fff; background: linear-gradient(transparent, rgba(11,31,51,.78)); font-size: .75rem; }
.section-nav { position: sticky; z-index: 5; top: 0; display: flex; gap: 6px; overflow-x: auto; padding: 12px max(20px, calc((100vw - 1180px) / 2)); background: rgba(247,248,246,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); scrollbar-width: none; }
.section-nav a { white-space: nowrap; padding: 7px 11px; color: #4b5b66; border-radius: 999px; text-decoration: none; font-size: .8rem; font-weight: 700; }
.section-nav a:hover, .section-nav a:focus-visible { color: var(--navy); background: #e5eaed; outline: none; }
.review-layout { display: grid; grid-template-columns: 210px minmax(0, 860px); gap: clamp(36px, 7vw, 90px); width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 96px; }
.review-rail { align-self: start; position: sticky; top: 76px; display: grid; gap: 16px; }
.rail-card { padding: 18px; background: #eef1f2; border: 1px solid #dbe1e4; border-radius: 12px; }
.rail-card > div { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 0; border-top: 1px solid #d8dfe2; }
.rail-card > div strong { font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.rail-card > div span { color: var(--muted); font-size: .8rem; }
.rail-label { margin: 0 0 10px !important; color: #7a4a2e !important; font-size: .72rem !important; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.evidence-key p { margin: 9px 0 0; color: #53636d; font-size: .78rem; line-height: 1.5; }
.evidence-key strong { color: var(--ink); }
.review-article { min-width: 0; }
.review-section { scroll-margin-top: 80px; padding: 0 0 66px; margin-bottom: 66px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.section-heading > span { color: #a94b31; font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.04; font-weight: 500; letter-spacing: -.03em; }
.section-intro { max-width: 720px; margin: -10px 0 30px; color: var(--muted); }
.decision-panel { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; margin: 0 0 18px; padding: 26px; color: #fff; background: #a94b31; border-radius: 14px; }
.decision-panel.critical { background: #852c3c; }
.decision-panel > div strong, .decision-kicker { display: block; }
.decision-panel > div strong { font-family: Georgia, serif; font-size: 1.75rem; line-height: 1.05; }
.decision-kicker { margin-bottom: 7px; color: rgba(255,255,255,.72); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.decision-panel p { margin: 0; color: rgba(255,255,255,.9); }
.urgent-note { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px; padding: 18px 20px; margin: 0 0 32px; border: 1px solid #e7cf9d; border-left: 5px solid var(--gold); border-radius: 9px; background: #fff8e9; }
.urgent-note strong { color: #7b5422; }
.urgent-note p { margin: 0; color: #564d40; }
.review-section > h3 { margin: 32px 0 12px; font-size: 1.3rem; }
.check-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 13px 16px 13px 42px; background: #fff; border: 1px solid #dfe4e7; border-radius: 10px; }
.check-list li::before { content: ""; position: absolute; left: 17px; top: 20px; width: 9px; height: 9px; border-radius: 2px; background: #9b4b37; }
.positive-list li::before { background: var(--green); border-radius: 50%; }
.missing-list li::before { background: var(--gold); }
.issue-stack { display: grid; gap: 18px; }
.issue-card { padding: clamp(20px, 4vw, 30px); background: #fff; border: 1px solid #dce2e5; border-radius: 14px; box-shadow: 0 8px 28px rgba(11,31,51,.04); }
.issue-card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.severity { display: inline-flex; padding: 6px 9px; border-radius: 6px; color: #7d3324; background: #fde5db; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.severity.critical { color: #fff; background: var(--red); }
.severity.medium, .severity.medium-high { color: #624c24; background: #f7e8bf; }
.severity.low-medium { color: #445d69; background: #e2ebef; }
.severity.high-procedural-risk { color: #fff; background: #8b3948; }
.issue-number { color: #b8c1c7; font-family: Georgia, serif; font-size: 1.25rem; }
.issue-card h3 { margin: 16px 0 9px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.15; font-weight: 500; }
.issue-card > p { margin: 0; color: #44545f; }
.required-action { margin: 20px 0 16px; padding: 15px 17px; background: #eef3f5; border-radius: 9px; }
.required-action strong { display: block; margin-bottom: 4px; color: #1d5069; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.required-action p { margin: 0; color: #344a57; }
.source-row { display: flex; flex-wrap: wrap; gap: 7px; }
.source-chip { padding: 6px 9px; color: #425968; background: #f6f7f7; border: 1px solid #d8dfe3; border-radius: 999px; text-decoration: none; font-size: .74rem; font-weight: 700; }
.source-chip:hover, .source-chip:focus-visible { color: #fff; background: var(--navy-2); border-color: var(--navy-2); outline: none; }
.numbered-list { counter-reset: q; display: grid; gap: 1px; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.numbered-list li { counter-increment: q; display: grid; grid-template-columns: 42px minmax(0, 1fr); padding: 15px 0; border-bottom: 1px solid var(--line); }
.numbered-list li::before { content: counter(q, decimal-leading-zero); color: #a94b31; font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.plan-list { border-top: 1px solid var(--line); }
.plan-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.plan-item > span { color: #a94b31; font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.plan-item h3 { margin: -4px 0 3px; font-size: 1.12rem; }
.plan-item p { margin: 0; color: var(--muted); }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.document-link { display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; gap: 12px; align-items: center; min-width: 0; padding: 14px; color: inherit; background: #fff; border: 1px solid #dce2e5; border-radius: 10px; text-decoration: none; }
.document-link:hover, .document-link:focus-visible { border-color: #8fa2af; box-shadow: 0 8px 22px rgba(11,31,51,.08); outline: none; }
.pdf-icon { display: grid; place-items: center; width: 38px; height: 42px; color: #fff; background: #b84042; border-radius: 5px; font-size: .63rem; font-weight: 900; letter-spacing: .06em; }
.document-link small, .document-link strong { display: block; min-width: 0; }
.document-link small { color: #7b8890; font-size: .67rem; text-transform: uppercase; letter-spacing: .07em; }
.document-link strong { overflow: hidden; margin-top: 2px; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.doc-arrow { color: #71838e; }
.final-limitation { padding: 22px 24px; color: #dfe8ed; background: var(--navy); border-radius: 12px; }
.final-limitation strong { color: var(--gold); }
.final-limitation p { margin: 6px 0 0; }

@media (max-width: 880px) {
  .property-hero { grid-template-columns: minmax(0, 1fr) 190px; }
  .review-layout { grid-template-columns: 1fr; }
  .review-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .property-hero { grid-template-columns: 1fr; padding-top: 34px; }
  .property-hero .eyebrow { margin-top: 18px; }
  .hero-document { width: min(70vw, 240px); margin: 4px auto 0; transform: rotate(1.5deg); }
  .review-layout { width: min(100% - 28px, 1180px); padding-top: 38px; }
  .review-rail { grid-template-columns: 1fr; }
  .decision-panel { grid-template-columns: 1fr; gap: 12px; }
  .urgent-note { grid-template-columns: 1fr; gap: 5px; }
  .section-heading { gap: 9px; }
  .review-section { padding-bottom: 48px; margin-bottom: 48px; }
  .document-link strong { white-space: normal; overflow-wrap: anywhere; }
}
