/* =============================================================
   Redesigned /sell-my-house-<town>/ pages (page key 'sell'):
     templates/site/sell_city_rd.html      generic towns (data/sell_cities.py)
     templates/site/sell_location_rd.html  rich community pages (data/sell_locations.py)
   Loaded after rd.css and sell.css; both templates wrap their content in
   <div class="rds rdc">, so sell.css's .rds rules (form card, steps, FAQ
   details, link lists, closing band) apply and this file only adds what the
   town pages need. Every class here is rdc- prefixed or scoped under .rdc.
   ============================================================= */

/* ---------- 1. hero: crumbs / H1 / lead / market figures | form card ---------- */
.rdc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "crumbs card" "head card" "lead card" "snap card";
  grid-template-rows: auto auto auto 1fr;
  column-gap: 64px; row-gap: 14px;
  align-items: start;
}
.rdc-crumbs { grid-area: crumbs; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 14px; color: var(--rd-on-dark-muted); }
.rdc-crumbs a, .rds .rdc-crumbs a { color: var(--rd-on-dark); min-height: var(--rd-tap); display: inline-flex; align-items: center; }
.rdc-crumbs a:hover, .rds .rdc-crumbs a:hover { color: var(--brand-warm); }
.rdc-hero__h1 { grid-area: head; }
.rds-hero.rdc-hero h1.rd-display { font-size: clamp(34px, 4.4vw, 56px); }
.rdc-hero__lead { grid-area: lead; max-width: 600px; }
.rdc-hero .rds-card { grid-area: card; align-self: center; }

.rdc-snap { grid-area: snap; display: flex; flex-direction: column; gap: 12px; max-width: 600px; margin-top: 14px; }
.rdc-snap__title, .rd .rdc-snap__title { font-family: var(--rd-sans); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand-warm); }
.rdc-hero .rd-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.rdc-hero .rd-fact__num { font-size: 34px; overflow-wrap: anywhere; }
.rdc-hero .rd-fact__cap { font-size: 13px; }
.rdc-snap__sub, .rdc-snap__source { font-size: 13px; line-height: 1.6; color: var(--rd-on-dark-muted); }
.rdc-snap__source { margin-top: -8px; }
.rdc-snap__empty { font-size: 15px; color: var(--rd-on-dark); }
.rds .rdc-snap a { color: var(--brand-warm); }
.rdc-snap__link { align-self: flex-start; margin-top: -6px; }

@media (max-width: 900px) {
  /* The form right after the H1: its button has to end on an iPhone's first
     screen (390 x 664). The lead sentence and the figures follow the form. */
  .rdc-hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "head" "card" "lead" "snap"; grid-template-rows: none; row-gap: 12px; }
  .rdc-crumbs { margin: -6px 0 -10px; font-size: 13px; }
  .rds-hero.rdc-hero h1.rd-display { font-size: 30px; }
  .rdc-hero__lead { margin-top: 6px; }
  .rdc-snap { margin-top: 6px; }
  .rdc-hero .rd-facts { gap: 12px 14px; }
  .rdc-hero .rd-fact { padding-top: 8px; gap: 2px; }
  .rdc-hero .rd-fact__num { font-size: 24px; }
  .rdc-hero .rd-fact__cap { font-size: 12.5px; line-height: 1.4; }
}

.rdc-preview-flag { background: #FFF3CD; color: #5C4300; padding: 10px var(--rd-gutter); font-size: 14px; font-weight: 600; border-bottom: 1px solid #FFE69C; }

/* ---------- shared bits ---------- */
.rdc .rd-section > .rd-wrap > .rds-sub { max-width: 760px; }
.rdc .rds-narrow, .rdc-why__split, .rdc-points, .rdc-table { margin-top: 28px; }
.rdc .rds-narrow a, .rdc-prose a, .rdc-body a { font-weight: 600; }

/* ---------- 2. why sell here ---------- */
.rdc-why__split > .rdc-why__text { flex: 1.3 1 420px; }
.rdc-why__split > .rdc-highlights { flex: 1 1 320px; }
.rdc-highlights h3 { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand-accent); }
.rdc-highlights ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rdc-highlights li { border-top: 1px solid var(--brand-warm); padding: 12px 0; font-size: 15px; line-height: 1.55; color: var(--brand-primary); font-weight: 500; }

/* ---------- 4. the four service points ---------- */
.rdc-points { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px 28px; }
.rdc-points li { border-top: 1px solid var(--brand-warm); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rdc-points h3 { font-family: var(--rd-serif); font-weight: 400; font-size: 22px; line-height: 1.25; }
.rdc-points p { font-size: 15px; line-height: 1.65; }

/* ---------- 6. sell or hold table ---------- */
.rdc-table { width: 100%; max-width: 980px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.rdc-table th, .rdc-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--rd-line); }
.rdc-table thead th { border-top: 1px solid var(--brand-warm); font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--brand-accent); }
.rdc-table tbody th { font-weight: 600; color: var(--brand-primary); width: 30%; }
.rdc-table tbody tr:last-child > * { border-bottom: 1px solid var(--rd-line); }
@media (max-width: 700px) {
  /* Each row becomes a block: the situation, then the two leanings with their column name. */
  .rdc-table, .rdc-table tbody, .rdc-table tr, .rdc-table th, .rdc-table td { display: block; width: auto; }
  .rdc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rdc-table tbody tr { border-top: 1px solid var(--brand-warm); padding: 14px 0; }
  .rdc-table tbody th, .rdc-table tbody td { border: 0; padding: 0; }
  .rdc-table tbody tr:last-child > * { border-bottom: 0; }
  .rdc-table tbody th { width: auto; font-size: 16px; }
  .rdc-table tbody td { margin-top: 10px; }
  .rdc-table tbody td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--brand-accent); }
}

/* ---------- 7. the six steps on the dark band ---------- */
.rdc-process .rds-sub { color: var(--rd-on-dark); }
.rdc-process .rds-steps__num { color: var(--brand-warm); }
.rdc-process .rds-steps__title { color: var(--brand-base); }
.rdc-process .rds-details { border-color: rgba(255, 255, 255, .22); }
.rdc-process .rds-details > summary { color: var(--brand-base); }
.rdc-process .rds-details > summary::after { color: var(--brand-warm); }
.rds .rdc-process .process-step .step-num { color: var(--brand-warm); }
.rds .rdc-process .process-step h3 { color: var(--brand-base); }
.rds .rdc-process .process-step p { color: var(--rd-on-dark); }

/* ---------- long-form text: CMS intro + sections, the rich page's body ----------
   Selectors start with .rdc so they outrank sell.css's ".rds p { margin: 0 }". */
.rdc-prose, .rdc-body { max-width: 760px; font-size: 16px; line-height: 1.75; }
.rdc-cms .rdc-prose { margin-top: 18px; }
.rdc .rdc-prose > * + *, .rdc .rdc-body > * + * { margin-top: 16px; }
.rdc .rdc-prose h2, .rdc .rdc-body h2 { font-family: var(--rd-serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.rdc .rdc-prose > * + h2, .rdc .rdc-body > * + h2 { margin-top: 44px; }
.rdc .rdc-prose h3, .rdc .rdc-body h3 { font-size: 18px; line-height: 1.35; }
.rdc .rdc-prose > * + h3, .rdc .rdc-body > * + h3 { margin-top: 28px; }
.rdc .rdc-prose > h3 + *, .rdc .rdc-body > h3 + *, .rdc .rdc-body > h2 + h3 { margin-top: 8px; }
.rdc .rdc-prose ul, .rdc .rdc-prose ol, .rdc .rdc-body ul, .rdc .rdc-body ol { margin-bottom: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.rdc .rdc-prose table, .rdc .rdc-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.rdc .rdc-prose th, .rdc .rdc-prose td, .rdc .rdc-body th, .rdc .rdc-body td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-top: 1px solid var(--rd-line); }
.rdc .rdc-prose tr:last-child td, .rdc .rdc-body tr:last-child td { border-bottom: 1px solid var(--rd-line); }
.rdc .rdc-prose th, .rdc .rdc-body th { color: var(--brand-primary); font-weight: 600; }
.rdc-body .sell-table-wrap { overflow-x: auto; }

/* The rich page's body, with a sticky home-value box beside it on a wide screen. */
.rdc-article__grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 300px); justify-content: space-between; gap: 40px 64px; align-items: start; }
.rdc-buy-link { border-top: 1px solid var(--brand-warm); border-bottom: 1px solid var(--rd-line); padding: 14px 0; }
.rdc .rdc-body > .rdc-buy-link + h2 { margin-top: 32px; }
.rdc-body a.sell-inline-cta, .rd .rdc-body a.sell-inline-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px;
  background: var(--brand-warm); color: var(--brand-primary); border-radius: var(--rd-radius-btn);
  font-weight: 700; text-decoration: none;
}
.rd .rdc-body a.sell-inline-cta:hover { background: #C69833; color: var(--brand-primary); }
.rdc-aside { position: sticky; top: 24px; border: 1px solid var(--rd-line); border-radius: var(--rd-radius-card); padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--rd-shadow); background: var(--brand-base); }
.rdc-aside__title { font-family: var(--rd-serif); font-size: 22px; line-height: 1.25; color: var(--brand-primary); margin-bottom: 4px; }
.rdc-aside .rd-btn { white-space: normal; text-align: center; min-height: 48px; }
@media (max-width: 1000px) {
  .rdc-article__grid { grid-template-columns: minmax(0, 1fr); }
  .rdc-aside { position: static; max-width: 760px; }
}

/* ---------- 9. link lists ---------- */
.rdc-guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 28px; }
.rdc-guides li { border-top: 1px solid var(--rd-line); display: flex; flex-direction: column; align-items: flex-start; min-height: 52px; padding: 4px 0; }
.rdc-guides a, .rds .rdc-guides a { color: var(--brand-primary); font-weight: 600; text-decoration: none; min-height: var(--rd-tap); display: inline-flex; align-items: center; }
.rds .rdc-guides a:hover { text-decoration: underline; }
.rdc-guides span { font-size: 14px; color: var(--rd-muted); margin: -6px 0 8px; }
.rdc-cards { margin-top: 8px; }
.rdc-cards a { gap: 4px; }
.rdc-cards__go, .rds-guides a span.rdc-cards__go { color: var(--brand-accent); font-weight: 600; margin-top: 2px; }
.rdc-cards__go::after { content: ' \2192'; }
.rdc-workload { max-width: 760px; }
.rdc-workload p { font-size: 16px; line-height: 1.75; }
.rdc-workload a { font-weight: 600; }
