/* Story look (November 2026): the homepage's deep purple, ivory, greens and Manrope, shared with every route.
   This file loads last on every page. Colors arrive two ways: the tokens below, and the second stage in
   palette.mjs for colors written as literals in page stylesheets. Page content, structure and spacing stay
   with their existing stylesheets. The homepage's own <main> is styled by home-story.css alone. */

@font-face {
  font-family: Manrope;
  src: url(/assets/fonts/manrope-variable-latin.woff2) format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
/* Display text is always ExtraBold. This family offers no lighter weight, so every heading, figure
   and pull quote that asks for the display face gets the same strong weight. ExtraBold Manrope sets
   wider than the serif these pages were sized for, so the display face draws at 92% of the stated
   size; with the heading spacing below, headings break onto the same number of lines as before.
   Browsers without size-adjust (Safari before 17) draw display text slightly larger and still wrap. */
@font-face {
  font-family: 'Manrope Display';
  src: url(/assets/fonts/manrope-variable-latin.woff2) format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  size-adjust: 92%;
}

html[data-brand-theme='dakota'][data-brand-fonts='new'],
html[data-brand-theme='dakota'][data-brand-fonts='new'] body.hospitality-secondary {
  --brand-plum: #350c29;
  --brand-mulberry: #350c29;
  --brand-forest: #350c29;
  --brand-ivory: #f7f3eb;
  --brand-gold: #c9ab75;
  --story-green: #1f5c3f;
  --story-leaf: #c9e7a5;
  --story-quiet: #c6b7bf;
  --navy: #350c29;
  --navy-mid: #4a1a3c;
  --navy-light: #5d2a4f;
  --navy-soft: #5d2a4f;
  --cream: #f7f3eb;
  --cream-dark: #eee6db;
  --paper: #fffdf8;
  --warm-white: #fffdf8;
  --gold: #c9ab75;
  --gold-light: #c9e7a5;
  --gold-pale: #dcf2b9;
  --clay: #1f5c3f;
  --muted: #6b5560;
  --line: #ddd5d2;
  --text-dark: #350c29;
  --text-mid: #6b5560;
  --text-light: #7b6672;
  --border-light: #350c2914;
  --serif: 'Manrope Display', Manrope, Arial, sans-serif;
  --sans: Manrope, Arial, Helvetica, sans-serif;
  /* Older templates name their own font variables. */
  --process-serif: var(--serif);
  --process-sans: var(--sans);
  --rdw-serif: var(--serif);
  --rdw-sans: var(--sans);
  --wealth-serif: var(--serif);
  --wealth-sans: var(--sans);
  --rws-pay-serif: var(--serif);
  --rws-pay-sans: var(--sans);
  --rws-serif: var(--serif);
  --rws-sans: var(--sans);
  --rws-about-serif: var(--serif);
  --rws-about-sans: var(--sans);
}

html[data-brand-theme='dakota'] body {
  background: var(--cream);
  color: var(--brand-forest);
  font-family: var(--sans);
}

/* ---------- Type ---------- */
html[data-brand-theme='dakota'] :is(h1, h2, h3, h4) {
  letter-spacing: -0.055em;
}
html[data-brand-theme='dakota'] :is(h1, h2, h3) {
  text-wrap: balance;
}
/* Manrope has no italic, and a slanted imitation is never drawn. Emphasis is carried by color inside
   display text and by weight inside running text. */
html[data-brand-theme='dakota'] {
  font-synthesis: weight;
}
html[data-brand-theme='dakota'] body :is(em, i, cite, q, dfn, address, blockquote, figcaption, .cta-subtext, .about-story-signature, .fit-host-note, .fit-signature span, .welcome-signature > span, .about-portrait-stage figcaption span:first-child) {
  font-style: normal;
}
html[data-brand-theme='dakota'] body :is(p, li, dd, td, figcaption) :is(em, i) {
  font-weight: 700;
}
html[data-brand-theme='dakota'] body .fit-host-note {
  font-size: 20px;
  letter-spacing: -0.03em;
}
/* A few older components name their fonts directly. */
html[data-brand-theme='dakota'] :is(.rws-analytics-choice, .rws-analytics-choice h2, .rws-analytics-choice__actions button, .rws-analytics-notice, .rws-library-index) {
  font-family: var(--sans);
}
html[data-brand-theme='dakota'] .rws-library-index :is(h1, h2) {
  font-family: var(--serif);
}

/* ---------- Colors follow the surface ----------
   A light surface and a deep purple surface each name their accent, their main button and their
   outline button. Everything below reads those names, so a section only has to say which kind of
   surface it is. When a section gets a deep purple background, add its class to the one list here. */
html[data-brand-theme='dakota'] body {
  --story-accent: var(--story-green);
  --story-action: var(--brand-plum);
  --story-action-text: var(--paper);
  --story-action-hover: var(--navy-mid);
  --story-outline: var(--brand-plum);
  --story-outline-text: var(--brand-plum);
  --story-outline-hover: var(--cream-dark);
  --story-outline-hover-line: var(--brand-plum);
}
html[data-brand-theme='dakota'] body :is(.site-footer, .about-story, .offer-boundaries, .offer-editorial-list, .fit-calendar-heading, .rws-dark, .section-implementation, .rws-next, .rws-sequence, .rws-location-section--navy, .rws-location-next, .rws-location-hero, .rws-referral-head, .rws-index-next, .rws-pay-fee-result, .urgency-callout, .rdw-story-map__center, .rdw-section--connected, .rdw-household__facts, .rdw-household__answer, .rdw-map-section, .rws-answer-card, .rws-system-panel, .rws-process-section--navy, .rws-process-section--households, .rws-example-question, .rws-grace-order, .rws-enough-figure, .section-cta) {
  --story-accent: var(--story-leaf);
  --story-action: var(--story-leaf);
  --story-action-text: var(--brand-plum);
  --story-action-hover: var(--gold-pale);
  --story-outline: rgba(247, 243, 235, 0.6);
  --story-outline-text: var(--cream);
  --story-outline-hover: rgba(247, 243, 235, 0.1);
  --story-outline-hover-line: var(--story-leaf);
}

/* Accent: forest green on ivory and white, leaf green on deep purple. Labels, emphasized heading
   words, small links and markers that used to be gold or mulberry take it, which also gives them
   readable contrast on light backgrounds. (:root only lifts these above the earlier brand layer.) */
html:root[data-brand-theme='dakota'][data-brand-fonts='new'] body :is(.eyebrow, .rws-eyebrow, .rws-section-label, .rws-index-eyebrow, .rws-hero-badge, .rws-process-eyebrow, .rws-related-list span, .rws-related-label, .faq-icon, .faq-question:hover, .rws-source-link, .rws-source a, .rws-card a, .rws-choice a, .rws-choice button, .rws-map-row a, .rws-question-label, .rws-choice-label, .stat-callout-number, .rws-decision strong, .rws-side strong, .rws-method-icon, .rws-hero-breadcrumb a, .rdw-artifact__handoff span, .about-story-signature),
html:root[data-brand-theme='dakota'][data-brand-fonts='new'] body :is(h1, h2) em {
  color: var(--story-accent);
}
html[data-brand-theme='dakota'] body .rws-article li::marker,
html[data-brand-theme='dakota'] body .rws-faq-item summary::after {
  color: var(--story-accent);
}
html[data-brand-theme='dakota'] :is(.product-price, .offer-compare-price) strong {
  color: var(--story-green);
}
html[data-brand-theme='dakota'] .offer-fee-amount .offer-price-large {
  color: var(--story-green) !important;
}
html[data-brand-theme='dakota'] :is(.text-link, .story-read-link, .rdw-text-link, .rws-index-guide__read) {
  text-decoration-color: var(--story-accent);
}
html[data-brand-theme='dakota'] :is(.text-link, .story-read-link, .rdw-text-link, .rws-index-guide__read):is(:hover, :focus-visible, :active) {
  color: var(--story-accent);
}
html[data-brand-theme='dakota'] .offer-sample-document [fill='#1649bc'] {
  fill: var(--story-green);
}
html[data-brand-theme='dakota'] .offer-sample-document [stroke='#1649bc'] {
  stroke: var(--story-green);
}
/* Small print that sits on deep purple. */
html[data-brand-theme='dakota'] body .about-story figcaption,
html[data-brand-theme='dakota'] body .rws-location-hero :is(.rws-breadcrumbs, .rws-breadcrumbs a) {
  color: var(--story-quiet);
}
/* The skip link is a deep purple tab; its label stays light on every template. */
html[data-brand-theme='dakota'] body a.skip {
  color: var(--paper);
}

/* ---------- Buttons: the homepage's pills ----------
   The main action is deep purple on a light surface and the homepage's green pill on deep purple.
   An outline button is deep purple on light and ivory on deep purple. */
html[data-brand-theme='dakota'] :is(.button, .rws-btn-primary, .rws-btn-navy, .rws-button, .rws-index-button, .rdw-button--gold, .button.secondary, .rws-btn-secondary, .rws-btn-outline, .rws-button--ghost, .rdw-button, .rws-process-button, .rws-download-link) {
  border-radius: 999px;
  font-weight: 700;
}
html:root[data-brand-theme='dakota'][data-brand-fonts='new'] body :is(.button, .rws-btn-primary, .rws-btn-navy, .rws-button, .rws-index-button, .rdw-button--gold) {
  background: var(--story-action);
  border-color: var(--story-action);
  color: var(--story-action-text);
}
html:root[data-brand-theme='dakota'][data-brand-fonts='new'] body :is(.button, .rws-btn-primary, .rws-btn-navy, .rws-button, .rws-index-button, .rdw-button--gold):is(:hover, :focus-visible, :active) {
  background: var(--story-action-hover);
  border-color: var(--story-action-hover);
  color: var(--story-action-text);
}
/* The #main and #main-content ids lift these above an older rule that outranked the outline
   button's dark-surface and hover states, which left it unreadable on dark sections. */
html[data-brand-theme='dakota'] :is(#main, #main-content) :is(.button.secondary, .rws-btn-secondary, .rws-btn-outline, .rws-button--ghost) {
  background: transparent;
  border-color: var(--story-outline);
  color: var(--story-outline-text);
}
html[data-brand-theme='dakota'] :is(#main, #main-content) :is(.button.secondary, .rws-btn-secondary, .rws-btn-outline, .rws-button--ghost):is(:hover, :focus-visible, :active) {
  background: var(--story-outline-hover);
  border-color: var(--story-outline-hover-line);
  color: var(--story-outline-text);
}

/* ---------- Surfaces ---------- */
/* The framework pages close the way the homepage does: deep purple running into the footer. */
html[data-brand-theme='dakota'] body .section-cta {
  background: var(--brand-plum);
  color: var(--cream);
}
html[data-brand-theme='dakota'] body .section-cta h2 {
  color: var(--cream);
}
html[data-brand-theme='dakota'] body .section-cta p {
  color: rgba(247, 243, 235, 0.84);
}
html[data-brand-theme='dakota'] body .section-cta .cta-subtext {
  color: var(--story-quiet);
}
/* A long callout label on the framework pages no longer runs into the text beside it. */
@media (min-width: 901px) {
  html[data-brand-theme='dakota'] body .stat-callout-number {
    flex: none;
    width: min-content;
  }
}

/* ---------- Header and footer: one frame on every page ---------- */
/* These match the published homepage exactly, so the frame is identical on every route. */
html[data-brand-theme='dakota'] body :is(.site-header, .site-footer) {
  line-height: 1.75;
}
html[data-brand-theme='dakota'] body .site-header .eyebrow {
  font-weight: 600;
  letter-spacing: 0.14em;
}
/* The analytics note lines up with the rest of the footer. */
html[data-brand-theme='dakota'] body .site-footer .rws-analytics-notice {
  width: min(1200px, calc(100% - 80px));
}
@media (max-width: 800px) {
  html[data-brand-theme='dakota'] body .site-footer .rws-analytics-notice {
    width: calc(100% - 40px);
  }
}
html[data-brand-theme='dakota'][data-brand-fonts='new'] #primary-nav {
  font-weight: 600;
}
html[data-brand-theme='dakota'] body .site-footer {
  background: var(--brand-plum);
  color: var(--cream);
  border-top: 1px solid var(--brand-gold);
}
html[data-brand-theme='dakota'] body .footer-brand {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.04em;
}
html[data-brand-theme='dakota'] body :is(.footer-brand span, .site-footer .fine, .footer-bottom),
html[data-brand-theme='dakota'] body .fit-calendar-heading > p:not(.eyebrow):not(.fit-calendar-alternative),
html[data-brand-theme='dakota'] body .fit-calendar-alternative > span {
  color: var(--story-quiet);
}
html[data-brand-theme='dakota'] body :is(.footer-links, .footer-local, .offer-boundaries > div + div, .offer-responsibilities .offer-editorial-list > div) {
  border-color: rgba(247, 243, 235, 0.3);
}
