/* =============================================================
   Site redesign: design tokens + shared components.
   docs/redesign/BRIEF.md "Design system"; mockups in docs/redesign/mockups/.
   Loaded by templates/site/rd_base.html only. Every class is rd- prefixed
   so nothing here can restyle a live (flag-off) page.

   Rules this file encodes:
   - Brand colors keep the variable names from templates/site/base.html.
   - Gold (--brand-warm) is for rules and button fills with evergreen text;
     never gold text on white. Gold text is allowed on the dark evergreen.
   - Fraunces 400 for display text and large numerals; Inter for the rest.
   - Thin 1px gold rule above facts instead of heavy cards.
   - 14px radius on cards, 8px on buttons and inputs; inputs 48px tall,
     16px text; every tap target at least 44px.
   ============================================================= */

/* Metric-matched Inter fallback (same numbers as site/base.html). */
@font-face { font-family: 'Inter-fallback'; src: local('Arial'); size-adjust: 107.4%; ascent-override: 90%; descent-override: 23%; line-gap-override: 0%; }

:root {
  /* Brand (names from templates/site/base.html) */
  --brand-primary: #0D2B1F;   /* deep evergreen: header, footer, headings */
  --brand-accent:  #1E5C3A;   /* forest green: eyebrows, links */
  --brand-tint:    #EBF5EE;   /* pale mint: alt sections, chips */
  --brand-warm:    #D4A843;   /* gold: rules + button fills only */
  --brand-body:    #334155;   /* slate body copy */
  --brand-base:    #FFFFFF;

  /* Redesign additions */
  --rd-muted:        #475569;  /* muted text on white or tint (7.6:1 on white) */
  --rd-line:         #E2E8F0;  /* hairlines, card borders */
  --rd-line-strong:  #CBD5E1;  /* secondary button + chip borders */
  --rd-input-line:   #94A3B8;  /* input borders (3:1 on white) */
  --rd-on-dark:      #DCE8E0;  /* body text on evergreen */
  --rd-on-dark-muted:#C4D4CA;  /* small print on evergreen */
  --rd-ok:           #14532D;  /* "allowed" text on tint */
  --rd-warn-bg:      #FBF1D5;
  --rd-warn:         #5C4300;  /* "permit required" text on warn-bg */
  --rd-caution:      #7A4B00;  /* caution numerals on white */
  --rd-no-bg:        #F1F5F9;
  --rd-no:           #334155;

  --rd-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --rd-sans:  'Inter', 'Inter-fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --rd-radius-card: 14px;
  --rd-radius-panel: 16px;
  --rd-radius-btn: 8px;
  --rd-tap: 44px;
  --rd-input-h: 48px;
  --rd-max: 1200px;
  --rd-gutter: clamp(16px, 4vw, 40px);
  --rd-shadow: 0 10px 30px rgba(13, 43, 31, 0.08);
}

/* ---------- base (rd pages only: rd_base.html puts .rd on <body>) ---------- */
.rd, .rd *, .rd *::before, .rd *::after { box-sizing: border-box; }
body.rd {
  margin: 0;
  font-family: var(--rd-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--brand-body);
  background: var(--brand-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.rd img { max-width: 100%; height: auto; }
.rd a { color: var(--brand-accent); }
.rd a:hover { color: var(--brand-primary); }
.rd :focus-visible { outline: 3px solid var(--brand-warm); outline-offset: 2px; border-radius: 4px; }
.rd h1, .rd h2, .rd h3 { margin: 0; color: var(--brand-primary); text-align: left; }
.rd p { margin: 0; }
.rd-skip { position: absolute; left: -9999px; top: 0; z-index: 10002; background: var(--brand-warm); color: var(--brand-primary); padding: 12px 16px; font-weight: 700; }
.rd-skip:focus { left: 8px; top: 8px; }
.rd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- layout ---------- */
.rd-wrap { max-width: var(--rd-max); margin: 0 auto; padding-left: var(--rd-gutter); padding-right: var(--rd-gutter); }
.rd-section { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.rd-section--tint { background: var(--brand-tint); }
.rd-section--dark { background: var(--brand-primary); color: var(--brand-base); }
.rd-stack { display: flex; flex-direction: column; gap: 16px; }
/* Wrapper the rd_base.html script puts around an over-wide content table (same as site/base.html). */
.rd .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* ---------- type ---------- */
.rd-display { font-family: var(--rd-serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.5px; color: var(--brand-primary); }
.rd-h2 { font-family: var(--rd-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; color: var(--brand-primary); }
.rd-h2--sm { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.rd-h3 { font-family: var(--rd-serif); font-weight: 400; font-size: 23px; line-height: 1.25; color: var(--brand-primary); }
.rd-numeral { font-family: var(--rd-serif); font-weight: 400; line-height: 1.1; color: var(--brand-primary); font-variant-numeric: lining-nums; }
.rd-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand-accent); }
.rd-muted { color: var(--rd-muted); }
.rd-small { font-size: 14px; }
.rd-section--dark .rd-h2, .rd-section--dark .rd-h3, .rd-section--dark .rd-numeral { color: var(--brand-base); }
.rd-section--dark .rd-eyebrow { color: var(--brand-warm); }

/* ---------- links + buttons ---------- */
.rd-link-arrow { font-weight: 600; min-height: var(--rd-tap); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.rd-link-arrow::after { content: '\2192'; }
.rd-section--dark .rd-link-arrow, .rd-on-dark .rd-link-arrow { color: var(--brand-warm); }

.rd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--rd-tap); padding: 0 18px;
  border-radius: var(--rd-radius-btn); border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.rd-btn--lg { min-height: 52px; font-size: 16px; padding: 0 22px; }
.rd-btn--block { width: 100%; }
.rd .rd-btn--gold, .rd-btn--gold { background: var(--brand-warm); color: var(--brand-primary); }
.rd .rd-btn--gold:hover { background: #C69833; color: var(--brand-primary); }
.rd .rd-btn--dark, .rd-btn--dark { background: var(--brand-primary); color: var(--brand-base); }
.rd .rd-btn--dark:hover { background: var(--brand-accent); color: var(--brand-base); }
.rd .rd-btn--outline, .rd-btn--outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.rd .rd-btn--outline:hover { background: var(--brand-tint); color: var(--brand-primary); }
.rd .rd-btn--quiet, .rd-btn--quiet { background: var(--brand-base); color: var(--brand-primary); border-color: var(--rd-line-strong); font-size: 14px; font-weight: 600; }
.rd .rd-btn--quiet:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.rd-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- form fields ---------- */
.rd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rd-label { font-size: 14px; font-weight: 600; color: var(--brand-primary); }
.rd-label .rd-opt { font-weight: 400; color: var(--rd-muted); }
.rd-input, .rd-select, .rd-textarea {
  width: 100%; min-height: var(--rd-input-h); padding: 0 14px;
  border: 1px solid var(--rd-input-line); border-radius: var(--rd-radius-btn);
  background: var(--brand-base); color: var(--brand-primary);
  font-family: inherit; font-size: 16px; line-height: 1.4;
}
.rd-select { padding: 0 12px; }
.rd-textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.rd-input:focus, .rd-select:focus, .rd-textarea:focus { outline: 3px solid rgba(212, 168, 67, .55); outline-offset: 0; border-color: var(--brand-primary); }
.rd-input::placeholder, .rd-textarea::placeholder { color: #64748B; }
.rd-consent { font-size: 12px; line-height: 1.5; color: var(--rd-muted); }
.rd-consent a { color: var(--rd-muted); text-decoration: underline; }
.rd-form-msg { font-size: 14px; line-height: 1.5; border-radius: var(--rd-radius-btn); padding: 12px 14px; }
.rd-form-msg[hidden] { display: none; }
.rd-form-msg--ok { background: var(--brand-tint); color: var(--rd-ok); }
.rd-form-msg--err { background: #FEF2F2; color: #991B1B; }

/* ---------- chips ---------- */
.rd-chip { display: inline-flex; align-items: center; align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.35; background: var(--rd-no-bg); color: var(--rd-no); }
.rd-chip--ok { background: var(--brand-tint); color: var(--rd-ok); }
.rd-chip--warn { background: var(--rd-warn-bg); color: var(--rd-warn); }
.rd-chip--lg { font-size: 13px; padding: 5px 12px; }

/* =============================================================
   Header  (partials/redesign/_rd_header.html)
   ============================================================= */
.rd-header { background: var(--brand-primary); position: relative; z-index: 900; }
.rd-header__inner { max-width: var(--rd-max); margin: 0 auto; padding: 12px var(--rd-gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rd-header__logo { display: inline-flex; align-items: center; min-height: var(--rd-tap); flex: 0 0 auto; }
.rd-header__logo img { display: block; width: 84px; height: 56px; object-fit: contain; filter: brightness(0) invert(1); }
.rd-nav { display: flex; align-items: center; gap: 30px; }
.rd-nav a, .rd .rd-nav a { color: var(--brand-base); text-decoration: none; font-weight: 500; font-size: 15px; min-height: var(--rd-tap); display: inline-flex; align-items: center; }
.rd .rd-nav a:hover { color: var(--brand-warm); }
.rd-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand-warm); }
.rd-header__actions { display: flex; align-items: center; gap: 14px; }
.rd .rd-header__tel { color: var(--brand-base); text-decoration: none; font-weight: 600; font-size: 15px; min-height: var(--rd-tap); display: inline-flex; align-items: center; white-space: nowrap; }
.rd .rd-header__tel:hover { color: var(--brand-warm); }
.rd-cta-short { display: none; }

/* Menu: a native <details>, so it opens without script (CSP-safe, works with JS off). */
.rd-menu { display: none; position: static; }
.rd-menu > summary { list-style: none; cursor: pointer; width: var(--rd-tap); height: var(--rd-tap); border: 1px solid rgba(255,255,255,.45); border-radius: var(--rd-radius-btn); display: inline-flex; align-items: center; justify-content: center; color: var(--brand-base); }
.rd-menu > summary::-webkit-details-marker { display: none; }
.rd-menu > summary::marker { content: ''; }
.rd-menu__icon-close { display: none; }
.rd-menu[open] .rd-menu__icon-open { display: none; }
.rd-menu[open] .rd-menu__icon-close { display: block; }
.rd-menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--brand-primary); border-top: 1px solid rgba(255,255,255,.14);
  padding: 8px var(--rd-gutter) 24px; box-shadow: 0 18px 30px rgba(0,0,0,.25);
  max-height: calc(100vh - 80px); overflow-y: auto;
}
.rd-menu__list { list-style: none; margin: 0; padding: 0; }
.rd-menu__list a, .rd .rd-menu__list a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: var(--brand-base); text-decoration: none; font-size: 17px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.12); }
.rd-menu__list a::after { content: '\2192'; color: var(--brand-warm); }
.rd-menu__sub { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; }
.rd-menu__sub a, .rd .rd-menu__sub a { color: var(--rd-on-dark); text-decoration: none; font-size: 15px; min-height: var(--rd-tap); display: inline-flex; align-items: center; }
.rd-menu__tel, .rd .rd-menu__tel { margin-top: 16px; color: var(--brand-base); font-weight: 700; font-size: 17px; text-decoration: none; min-height: var(--rd-tap); display: inline-flex; align-items: center; }

/* Header labels never break onto two lines ("Market data"). At 900px the full
   row had only 12px to spare (less with a classic 15px scrollbar), so the
   nav tightens between 900 and 1099px: +48px of room. */
.rd-nav a, .rd .rd-nav a, .rd .rd-header__tel, .rd-header__cta { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1099px) {
  .rd-nav { gap: 20px; }
  .rd-header__inner { gap: 16px; }
}

@media (max-width: 899px) {
  .rd-nav, .rd .rd-header__tel, .rd-header__tel, .rd-cta-long { display: none; }
  .rd-cta-short { display: inline; }
  .rd-menu { display: block; }
  .rd-header__inner { gap: 12px; }
}

/* =============================================================
   Footer  (partials/redesign/_rd_footer.html)
   ============================================================= */
.rd-footer { background: var(--brand-primary); color: var(--rd-on-dark); }
.rd-footer__inner { max-width: var(--rd-max); margin: 0 auto; padding: 56px var(--rd-gutter) 40px; display: flex; flex-direction: column; gap: 36px; }
.rd-footer__cols { display: flex; flex-wrap: wrap; gap: 36px 56px; }
.rd-footer__brand { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rd-footer__brand img { display: block; width: 96px; height: 64px; object-fit: contain; }
.rd-footer__brand p { font-size: 14px; line-height: 1.6; }
.rd-footer__col { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rd-footer__col--wide { flex: 2 1 300px; }
.rd-footer__head { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand-warm); margin: 0 0 6px; }
.rd-footer__head--gap { margin-top: 18px; }
/* partials/_idx_disclaimer.html styles itself inline (centered); left-align it here, no centered paragraphs. */
.rd-footer .idx-disclaimer { text-align: left !important; margin: 0 !important; max-width: none !important; color: var(--rd-on-dark-muted) !important; font-size: 12px !important; }
.rd-footer a, .rd .rd-footer a { color: var(--brand-base); text-decoration: none; font-size: 15px; min-height: var(--rd-tap); display: inline-flex; align-items: center; }
.rd .rd-footer a:hover { color: var(--brand-warm); text-decoration: underline; }
.rd-footer__grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.rd-footer__strong, .rd .rd-footer__strong { font-weight: 600; align-self: flex-start; }
.rd-footer__social { display: flex; flex-wrap: wrap; gap: 4px; }
.rd-footer__social a, .rd .rd-footer__social a { width: var(--rd-tap); height: var(--rd-tap); justify-content: center; border-radius: var(--rd-radius-btn); color: var(--rd-on-dark); }
.rd-footer__social svg { width: 20px; height: 20px; display: block; }
.rd-footer__pref, .rd .rd-footer__pref { gap: 8px; font-size: 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; padding: 0 12px; align-self: flex-start; }
.rd-footer__pref svg { width: 14px; height: 14px; flex: none; }
.rd-footer__legal { border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; font-size: 13px; line-height: 1.6; color: var(--rd-on-dark-muted); display: flex; flex-direction: column; gap: 12px; }
.rd-footer__legal a, .rd .rd-footer__legal a { font-size: 13px; color: var(--rd-on-dark-muted); text-decoration: underline; min-height: 0; display: inline; }
.rd-footer__legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.rd-footer__legal-links a, .rd .rd-footer__legal-links a { min-height: var(--rd-tap); display: inline-flex; }

/* =============================================================
   Listing card  (partials/redesign/_rd_listing_card.html)
   ============================================================= */
.rd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.rd-card, .rd .rd-card { display: flex; flex-direction: column; border: 1px solid var(--rd-line); border-radius: var(--rd-radius-card); overflow: hidden; background: var(--brand-base); color: var(--brand-body); text-decoration: none; height: 100%; transition: box-shadow .15s ease, border-color .15s ease; }
.rd .rd-card:hover { color: var(--brand-body); border-color: var(--rd-line-strong); box-shadow: var(--rd-shadow); }
.rd-card__photo { position: relative; aspect-ratio: 16 / 10; background: var(--brand-tint); overflow: hidden; }
.rd-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-card__nophoto { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-accent); }
.rd-card__status { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--brand-primary); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
/* status classes from engine.hub_inventory.status_class: active | pending | contract | backup | sold */
.rd-card__status.is-pending, .rd-card__status.is-contract, .rd-card__status.is-backup { background: var(--rd-warn-bg); color: var(--rd-warn); }
.rd-card__status.is-sold { background: var(--brand-primary); color: var(--brand-base); }
.rd-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.rd-card__pricerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rd-card__price { font-family: var(--rd-serif); font-weight: 400; font-size: 25px; line-height: 1.15; color: var(--brand-primary); }
.rd-card__was { font-size: 13px; color: var(--rd-muted); }
.rd-card__addr { font-size: 15px; font-weight: 500; color: var(--brand-primary); }
.rd-card__facts { font-size: 14px; color: var(--rd-muted); }
.rd-card__rule { height: 1px; background: var(--brand-warm); margin: 8px 0 6px; border: 0; }
.rd-card__income { font-size: 14px; color: var(--brand-body); }
.rd-card__office { font-size: 12px; color: var(--rd-muted); margin-top: auto; padding-top: 6px; }

/* =============================================================
   Fact strip  (partials/redesign/_rd_fact_strip.html)
   ============================================================= */
.rd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.rd-facts--wide { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 36px; }
.rd-fact { border-top: 1px solid var(--brand-warm); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rd-fact__label { font-size: 14px; font-weight: 600; color: var(--rd-muted); order: -1; }
.rd-fact__num { font-family: var(--rd-serif); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--brand-primary); }
.rd-facts--sm .rd-fact__num { font-size: 28px; }
.rd-fact__num.is-ok { color: var(--rd-ok); }
.rd-fact__num.is-caution { color: var(--rd-caution); }
.rd-fact__cap { font-size: 14px; color: var(--rd-muted); line-height: 1.5; }
.rd-fact__text { font-size: 14px; line-height: 1.55; color: var(--brand-body); }
.rd-facts--dark .rd-fact__num, .rd-section--dark .rd-fact__num { color: var(--brand-base); }
.rd-facts--dark .rd-fact__cap, .rd-section--dark .rd-fact__cap,
.rd-facts--dark .rd-fact__label, .rd-section--dark .rd-fact__label,
.rd-facts--dark .rd-fact__text, .rd-section--dark .rd-fact__text { color: var(--rd-on-dark); }

/* =============================================================
   Contact card  (partials/redesign/_rd_contact_card.html)
   ============================================================= */
.rd-contact { border: 1px solid var(--rd-line); border-radius: var(--rd-radius-panel); padding: 24px; background: var(--brand-base); box-shadow: var(--rd-shadow); display: flex; flex-direction: column; gap: 18px; min-width: 0; scroll-margin-top: 16px; }
.rd-contact__who { display: flex; gap: 14px; align-items: center; }
.rd-contact__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; flex: 0 0 auto; background: var(--brand-tint); }
.rd-contact__initial { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto; background: var(--brand-primary); color: var(--brand-warm); font-family: var(--rd-serif); font-size: 28px; display: flex; align-items: center; justify-content: center; }
.rd-contact__name { font-family: var(--rd-serif); font-size: 21px; line-height: 1.2; color: var(--brand-primary); }
.rd-contact__title { font-size: 13px; color: var(--rd-muted); }
.rd-contact__phone, .rd .rd-contact__phone { font-weight: 700; font-size: 15px; min-height: var(--rd-tap); display: inline-flex; align-items: center; align-self: flex-start; }
.rd-tabs { display: flex; gap: 6px; background: var(--brand-tint); border-radius: 10px; padding: 4px; }
.rd-tab { flex: 1 1 0; min-height: var(--rd-tap); border: 0; border-radius: var(--rd-radius-btn); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; background: transparent; color: var(--brand-primary); }
.rd-tab[aria-selected="true"] { background: var(--brand-base); box-shadow: 0 1px 2px rgba(13,43,31,.08); }
.rd-tabpanel { display: flex; flex-direction: column; gap: 14px; }
.rd-tabpanel[hidden] { display: none; }
.rd-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border: 0; margin: 0; padding: 0; }
.rd-dates legend { padding: 0; margin-bottom: 6px; }
.rd-date { position: relative; }
.rd-date input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rd-date span { min-height: 68px; border: 1px solid var(--rd-line-strong); border-radius: 10px; background: var(--brand-base); color: var(--brand-primary); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.rd-date b { font-size: 12px; font-weight: 600; }
.rd-date i { font-style: normal; font-family: var(--rd-serif); font-size: 22px; line-height: 1; }
.rd-date input:checked + span { border: 2px solid var(--brand-primary); background: var(--brand-tint); }
.rd-date input:focus-visible + span { outline: 3px solid var(--brand-warm); outline-offset: 2px; }
.rd-faq-links { display: flex; flex-direction: column; gap: 8px; }
.rd-faq-links a, .rd .rd-faq-links a { min-height: var(--rd-tap); padding: 0 14px; border: 1px solid var(--rd-line-strong); border-radius: 10px; color: var(--brand-primary); text-decoration: none; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rd-faq-links a::after { content: '\2192'; }
.rd-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
/* The market-report opt-in partial ships its own small style; keep it in step. */
.rd-contact .mr-optin { margin: 0 !important; }

/* =============================================================
   Kit page (routes/redesign.py, /redesign/kit) - owner-only
   ============================================================= */
.rd-kit-block { border-top: 1px solid var(--rd-line); padding: 40px 0; }
.rd-kit-block > header { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.rd-kit-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--rd-no-bg); padding: 2px 6px; border-radius: 4px; color: var(--brand-primary); }
.rd-kit-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.rd-kit-swatch { border: 1px solid var(--rd-line); border-radius: 10px; overflow: hidden; font-size: 13px; }
.rd-kit-swatch i { display: block; height: 56px; }
.rd-kit-swatch span { display: block; padding: 8px 10px; }
.rd-kit-split { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; }
.rd-kit-split > * { flex: 1 1 340px; min-width: 0; }
.rd-kit-split > .rd-contact { max-width: 460px; }

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