/* ============================================================
   demir.loans: luxury design, content pages
   Suburbs, region hubs, articles, Learn, Areas and legal pages.
   Loaded after luxe.css. Styles the existing content vocabulary
   (sections, why-list, snapshot, faq-block, area-card ...) so the
   page generators keep working unchanged.
   ============================================================ */

/* ---------- page header ---------- */
.lx-pagehead { position: relative; background: var(--cream); padding: 168px 0 72px; }
.lx-pagehead .lx-wrap { max-width: 820px; }
.lx-pagehead h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.02em;
}
.lx-pagehead h1 em { font-style: italic; color: var(--rust); }
.lx-pagehead .lx-meta { margin: 24px 0 0; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.lx-pagehead .lx-standfirst { margin: 28px 0 0; max-width: 60ch; font-size: 20px; line-height: 1.6; font-weight: 300; color: var(--text); }

.lx-pagehead.has-photo {
  min-height: 64vh; min-height: 64svh; padding: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); overflow: hidden;
}
.lx-pagehead.has-photo .lx-ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.lx-pagehead.has-photo .lx-ph-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(22,18,15,0.6) 0%, rgba(22,18,15,0.3) 28%, rgba(22,18,15,0.42) 52%, rgba(22,18,15,0.86) 100%); }
.lx-pagehead.has-photo .lx-wrap { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 72px; }
.lx-pagehead.has-photo .lx-eyebrow,
.lx-pagehead.has-photo h1,
.lx-pagehead.has-photo .lx-meta,
.lx-pagehead.has-photo .lx-standfirst { color: var(--cream); }
.lx-pagehead.has-photo h1 em { color: var(--gold); }
.lx-pagehead.has-photo .lx-standfirst { max-width: 56ch; }
.lx-pagehead .lx-credit { right: var(--gutter); }

/* ---------- reading column ---------- */
.lx-main { max-width: 820px; margin: 0 auto; padding: 72px var(--gutter) 120px; }
.lx-main section { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); }
.lx-main section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.lx-main h2 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -0.01em;
  padding: 0; border: 0;
}
.lx-main h3 { margin: 40px 0 0; font-size: 18px; font-weight: 500; }
.lx-main p { margin: 24px 0 0; max-width: 64ch; font-size: 17px; line-height: 1.75; color: var(--text); }
.lx-main p:first-child { margin-top: 0; }
.lx-main h2 + p { margin-top: 20px; }
.lx-main a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lx-main a:hover { color: var(--rust); }
.lx-main ul, .lx-main ol { margin: 20px 0 0; padding-left: 22px; font-size: 17px; line-height: 1.75; color: var(--text); }
.lx-main ol > li { margin-top: 10px; }
.lx-main strong, .lx-main b { font-weight: 600; color: var(--ink); }

/* hairline lists */
.why-list, .check-list, .lx-main section > ul { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.why-list li, .check-list li, .lx-main section > ul > li { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.7; color: var(--text); background: none; border-left: 0; border-right: 0; border-top: 0; box-shadow: none; }
.why-list li b { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 500; color: var(--ink); }
.check-list li, .lx-main section > ul.check-list > li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 32px; width: 8px; height: 8px; background: var(--mustard); border-radius: 50%; }

/* numbered steps */
.steps-list { list-style: none; margin: 28px 0 0; padding: 0; border: 0; border-top: 1px solid var(--line); background: none; box-shadow: none; }
.steps-list li, .steps-list li:nth-child(even) { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); background: none; font-size: 16px; line-height: 1.7; color: var(--text); }
.steps-list li b { color: var(--ink); font-weight: 500; }

/* article tool: numbered step list and key-fact callout */
.step-list { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.step-list li { counter-increment: step; position: relative; display: block; padding: 24px 0 24px 64px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.65; color: var(--text); }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 18px; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--clay); }
.step-list li b { display: block; margin-bottom: 4px; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.25; color: var(--ink); }
.key-fact { margin: 32px 0 0; padding: 22px 26px; background: var(--butter); border-left: 3px solid var(--clay); }
.key-fact p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink); }
.key-fact .kf-label { margin-bottom: 8px; font: 500 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust); }
.lx-main section strong { font-weight: 500; color: var(--ink); }
@media (max-width: 480px) { .step-list li { padding-left: 48px; } .step-list li::before { font-size: 32px; top: 20px; } .key-fact { padding: 18px 20px; } }

/* snapshot + tables */
.snapshot { margin-top: 28px; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); background: none; box-shadow: none; }.snapshot .row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text); }
.snapshot .row:last-child { border-bottom: 0; }
.snapshot .row b { font-family: var(--sans); font-weight: 500; color: var(--rust); text-align: right; }
.median-table, .hub-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.median-table th, .hub-table th { font: 400 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); text-align: right; padding: 18px 24px 12px; border-bottom: 1px solid var(--line); }
.median-table th:first-child, .median-table td:first-child, .hub-table th:first-child, .hub-table td:first-child { text-align: left; }
.median-table td, .hub-table td { padding: 16px 24px; border-bottom: 1px solid var(--line); text-align: right; font-family: var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.median-table td.now { color: var(--ink); font-weight: 600; }
.median-table td.up, .hub-table td small.up { color: #2F6B3A; }
.median-table td.down, .hub-table td small.down { color: var(--rust); }
.hub-table td small { display: block; font-size: 12px; color: var(--faint); }
.hub-table td a { font-family: var(--serif); font-size: 20px; text-decoration: none; }
.snapshot-note { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--faint); }
/* bar chart table (article tool: table.chart) */
.bar-table td:first-child { width: 100%; white-space: normal; }
.bar-table td { vertical-align: top; }
.bar-table th { white-space: nowrap; }
.bar-table .bar { display: block; height: 6px; margin-top: 10px; background: var(--line); }
.bar-table tr.hl td { color: var(--ink); font-weight: 600; }
.bar-table tr.hl .bar { background: var(--clay); }
.bar-key { margin: 0; font-size: 13px; color: var(--muted); }
.bar-key::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--clay); vertical-align: -1px; }
@media (max-width: 480px) { .median-table th, .median-table td, .hub-table th, .hub-table td { padding-left: 12px; padding-right: 12px; font-size: 14px; } .snapshot .row { padding: 14px 16px; } }

/* faq */
.faq-block { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-block details, .faq-block details[open] { background: none; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; margin: 0; }
.faq-block summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 28px; color: var(--clay); flex: none; }
.faq-block details[open] summary::after { content: "\2212"; }
.faq-block .a { padding: 0 0 26px; max-width: 64ch; font-size: 16px; line-height: 1.75; color: var(--text); }

/* article bits */
.meta-line { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.disclaim { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--faint); }
.lx-main .disclaim { margin-top: 56px; font-size: 13px; }
.updated { margin-top: 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.tbp, .placeholder { margin-top: 28px; padding: 16px 20px; background: var(--parch); border: 0; border-left: 2px solid var(--clay); box-shadow: none; font-size: 14px; line-height: 1.6; color: var(--text); }

/* learn + areas cards */
.area-card { display: block; margin: 0; padding: 32px 0; border: 0; border-bottom: 1px solid var(--line); background: none; box-shadow: none; transform: none; color: var(--ink); text-decoration: none; transition: padding-left 200ms; }
.lx-main section > .area-card:first-of-type { border-top: 1px solid var(--line); }
.area-card:hover { padding-left: 12px; background: none; transform: none; box-shadow: none; color: var(--ink); }
.area-card b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; }
.area-card span { display: block; margin-top: 10px; max-width: 62ch; font-size: 15px; line-height: 1.65; color: var(--text); }
.area-card .go { margin-top: 12px; font: 500 13px var(--sans); letter-spacing: 0.04em; color: var(--clay); }
.lx-main a.area-card { text-decoration: none; }

/* learn index: photo cards in a grid */
.lx-main section:has(> .area-card .lx-thumb) { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 40px; }
.lx-main section:has(> .area-card .lx-thumb) > .area-card, .lx-main section:has(> .area-card .lx-thumb) > .area-card:first-of-type { padding: 0; border: 0; }
.lx-main section:has(> .area-card .lx-thumb) > .area-card:hover { padding-left: 0; }
.lx-thumb { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 20px; background: var(--parch); transition: opacity 200ms; }
.area-card:hover .lx-thumb { opacity: 0.88; }
.lx-main section:has(> .area-card .lx-thumb) .area-card b { font-size: 26px; }
@media (max-width: 640px) { .lx-main section:has(> .area-card .lx-thumb) { grid-template-columns: 1fr; gap: 44px; } }

/* in-page reviews */
.lx-main [data-reviews] .rv-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.lx-main .rv-cards { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
.lx-main .rv-card { background: var(--parch); border-top: 2px solid var(--clay); padding: 28px; }
.lx-main .rv-more { display: inline-block; margin-top: 20px; }

@media (max-width: 640px) {
  .lx-crumb { padding: 12px 0; margin-bottom: 4px; font-size: 14px; }
  .lx-pagehead .lx-meta { font-size: 13px; }
  .snapshot { overflow-x: auto; }
  .hub-table th, .hub-table td { padding-left: 8px; padding-right: 8px; }
  .hub-table td:first-child { white-space: normal; }
  .hub-table td a { font-size: 17px; }
  .hub-table td small, .snapshot-note { font-size: 13px; }
  .lx-pagehead { padding: 128px 0 48px; }
  .lx-pagehead.has-photo { min-height: 58vh; min-height: 58svh; padding: 0; }
  .lx-pagehead.has-photo .lx-wrap { padding-top: 120px; padding-bottom: 48px; }
  .lx-pagehead .lx-credit { bottom: 16px; }
  .lx-pagehead .lx-standfirst { font-size: 18px; }
  .lx-main { padding-top: 48px; padding-bottom: 80px; }
  .lx-main section { margin-top: 48px; padding-top: 40px; }
  .faq-block summary { font-size: 21px; padding: 20px 0; }
  .area-card b { font-size: 24px; }
}

/* ---------- about ---------- */
.lx-about-hero { padding: 168px 0 96px; background: var(--cream); }
.lx-about-hero .lx-wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 72px; align-items: center; }
.lx-about-hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.02em; }
.lx-about-hero h1 em { font-style: italic; color: var(--rust); }
.lx-say { margin: 24px 0 0; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.lx-about-hero .lx-standfirst { margin: 28px 0 0; max-width: 52ch; font-size: 20px; line-height: 1.6; font-weight: 300; color: var(--text); }
.lx-about-hero .lx-hero-cta { margin-top: 36px; }
.lx-portrait { margin: 0; }
.lx-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.lx-portrait figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.lx-portrait figcaption span { color: var(--faint); }
.lx-facts4 { margin-bottom: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lx-facts4 .lx-fact { padding: 40px 32px 56px 0; }
.lx-fact p.k { margin: 0 0 14px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.lx-facts4 .lx-fact p:nth-child(2) { margin: 0; font-family: var(--serif); font-size: 44px; line-height: 1; }
.lx-facts4 .lx-fact p:nth-child(3) { margin: 14px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.lx-facts4 { margin-top: 0; }
.lx-story { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
.lx-story-body p { margin: 0 0 24px; font-size: 18px; line-height: 1.75; color: var(--text); }
.lx-story-body p:last-child { margin-bottom: 0; }
.lx-quote { background: var(--ink); color: var(--cream); }
.lx-quote .lx-wrap { padding-top: 120px; padding-bottom: 120px; }
.lx-quote .lx-eyebrow { color: #8d8073; }
.lx-quote blockquote { margin: 0; max-width: 22ch; font-family: var(--serif); font-size: clamp(34px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -0.01em; }
.lx-quote blockquote em { font-style: italic; color: var(--gold); }
.lx-by { margin: 32px 0 0; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #8d8073; }
.lx-steps3 { grid-template-columns: repeat(3, 1fr); }
.lx-steps3 .lx-step { padding-right: 40px; }
.lx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 56px; }
.lx-creds { margin: 0; border-top: 1px solid var(--line); }
.lx-creds div { display: flex; gap: 24px; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lx-creds dt { flex: 0 0 44%; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.lx-creds dd { margin: 0; flex: 1; font-size: 15px; line-height: 1.6; text-align: right; }
.lx-creds a { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 4px; }
.lx-h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.lx-note { margin: 16px 0 0; font-size: 16px; line-height: 1.7; color: var(--text); }
.lx-areas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.lx-areas a { padding: 10px 18px; border: 1px solid var(--line); font-size: 14px; transition: background 150ms, color 150ms, border-color 150ms; }
.lx-areas a:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.lx-cta-simple .lx-wrap { grid-template-columns: 1fr auto; align-items: end; }
.lx-cta-simple .lx-cta-actions { margin-top: 0; }
@media (max-width: 960px) {
  .lx-about-hero .lx-wrap, .lx-story, .lx-two { grid-template-columns: 1fr; gap: 48px; }
  .lx-portrait { max-width: 420px; }
  .lx-steps3 { grid-template-columns: 1fr; }
  .lx-cta-simple .lx-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lx-about-hero { padding: 128px 0 64px; }
  .lx-quote .lx-wrap { padding-top: 80px; padding-bottom: 80px; }
  .lx-creds div { flex-direction: column; gap: 6px; }
  .lx-creds dd { text-align: left; }
}
