/* ==========================================================================
   Table Rock Financial Planning - Site Styles
   Bootstrap 5.3.8 | Bootstrap Icons 1.11.3 | Risingline Framework
   Created: 2026-11-16

   Design: the "Editorial Authority" starter (framework.risingline.com/
   starters/editorial-authority/) carried onto the framework includes, with
   the "Rimrock" color theme keyed on the client's logo.

   This file holds:
     1. Fonts (self-hosted Alegreya + Alegreya Sans)
     2. Tokens: the site theme (--ea-*) and the framework overrides (--rl-*)
     3. Base element styles
     4. Editorial Authority components (.ea-*)
     5. Interior page pieces
     6. Responsive

   Never edit rl-framework.css on this site; override tokens or add scoped
   rules here.

   SYSTEM (DESIGN-STANDARD.md section 3)
   Type: Alegreya (serif, display + headings, weight 500) over Alegreya Sans
     (body 19px, 400; labels 700). Starter values kept: display
     clamp(46px, 6vw, 82px), section heading clamp(32px, 3.4vw, 44px), row
     title 31px, eyebrow 13px +0.08em caps.
   Spacing: 8px ladder (8 / 16 / 24 / 32 / 48 / 64 / 96 / 128). Sections
     carry 64px top and bottom, so two sections meet at the starter's 128px.
   Color: every value below comes from the logo SVG or is a tint on a logo
     hue. One accent (logo rust). Contrast pairs, computed 2026-11-16:
       ink   #1F1F1E on paper #F3EADB      13.83:1
       rust  #B1462A on paper #F3EADB       4.66:1  (text 13px+ bold, AA)
       paper #F3EADB on rust  #B1462A       4.66:1  (button hover)
       paper #F3EADB on ink   #1F1F1E      13.83:1  (contact band)
       ink   #1F1F1E on paper-deep #E9DCC5 12.18:1  (notice, note boxes)
     Rust is never set as text on paper-deep (4.10:1, below AA).
   Layout: text fills its container. Headings sit above their text and the
     text runs the full container width; the only side-by-side blocks are
     text beside an image (portrait) and the contact details beside the form.
     There are no max-width caps on text.
   ========================================================================== */


/* ==========================================================================
   1. Fonts (SIL Open Font License; latin subset)
   ========================================================================== */

@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/alegreya-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/alegreya-latin-wght-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/alegreya-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/alegreya-sans-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/alegreya-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/alegreya-sans-latin-700-normal.woff2') format('woff2');
}


/* ==========================================================================
   2. Tokens
   ========================================================================== */

:root {
  /* Theme. Logo values are exact (img/table-rock-financial-planning-logo.svg). */
  --ea-ink:        #1F1F1E;   /* logo: lettering and frame */
  --ea-accent:     #B1462A;   /* logo: "TableRock" rust */
  --ea-mesa:       #97704D;   /* logo: mesa brown (decorative) */
  --ea-sage-light: #B3B397;   /* logo: sage ground (decorative) */
  --ea-sage:       #5F6148;   /* logo sage hue, darkened (not in use at present) */
  --ea-sandstone:  #C9A27A;   /* tint of the mesa brown (decorative) */
  --ea-paper:      #F3EADB;   /* page background, "dry grass" */
  --ea-paper-deep: #E9DCC5;   /* notice and note boxes */
  --ea-hair:       #DCCDB4;   /* hairline rules */

  --ea-container:  1240px;
  --ea-gutter:     32px;
  --ea-rhythm:     64px;
  --ea-serif: 'Alegreya', Georgia, 'Times New Roman', serif;
  --ea-sans:  'Alegreya Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --ea-ease:  cubic-bezier(0.2, 0.55, 0.15, 1);

  /* Framework overrides */
  --rl-color-primary:      var(--ea-ink);
  --rl-color-primary-dark: var(--ea-accent);
  --rl-color-secondary:    var(--ea-accent);
  --rl-color-dark:         var(--ea-ink);
  --rl-color-light:        var(--ea-paper-deep);
  --rl-color-text:         var(--ea-ink);
  --rl-color-text-light:   var(--ea-ink);   /* no gray text tiers */
  --rl-color-cta:          var(--ea-ink);
  --rl-color-cta-hover:    var(--ea-accent);
  --rl-color-border:       var(--ea-hair);

  --rl-font-heading: var(--ea-serif);
  --rl-font-body:    var(--ea-sans);

  --rl-body: 19px;
  --rl-h1: clamp(40px, 4.6vw, 62px);
  --rl-h2: clamp(30px, 3.2vw, 40px);
  --rl-h3: clamp(24px, 2.2vw, 28px);
  --rl-h4: 22px;
  --rl-btn: 17px;
  --rl-btn-sm: 15px;

  --rl-radius:    2px;
  --rl-radius-sm: 2px;
  --rl-radius-lg: 2px;
  --rl-container-padding: var(--ea-gutter);

  /* Vertical rhythm (css/rl-rhythm.css, loaded last). Ink constants from
     scripts/check-rule-spacing.js --fonts, measured 2026-11-16. */
  --rl-rhythm: var(--ea-rhythm);
  --rl-ink-top-head:    0.312em;   /* Alegreya 400/500: ascent 1.020 descent 0.350 cap 0.647 */
  --rl-ink-bottom-head: 0.335em;
  --rl-ink-top-body:    0.341em;   /* Alegreya Sans 400: ascent 0.900 descent 0.300 cap 0.641 */
  --rl-ink-bottom-body: 0.300em;
  --rl-list-hang: 1.316em;   /* width of the inside bullet in Alegreya Sans, measured */
}


/* ==========================================================================
   3. Base
   ========================================================================== */

body {
  background: var(--ea-paper);
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ea-accent); color: var(--ea-paper); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ea-ink);
}
/* Text fills its container (owner ruling, restated 2026-11-17): no balanced
   wrapping anywhere on this site. text-wrap: balance evens the lines of a
   heading or quote by shortening all of them, so a two-line block stops at
   60 to 85 percent of the container. Lines here run to the container edge
   and only the last line is short. "body" is in the selector so this
   outranks the heading rule in rl-framework.css and rl-rhythm.css, which
   load before and after this file. Gate: FRAMEWORK/scripts/check-text-fill.js
   (measures the render; every page and all 19 home quotes pass at 1440,
   1024 and 390). */
body :is(h1, h2, h3, h4, h5, h6, p, li, dd, dt, figcaption, blockquote) { text-wrap: wrap; }
h1 { line-height: 1.08; letter-spacing: -0.015em; }
h2 { line-height: 1.15; margin-top: 64px; margin-bottom: 20px; }
h3 { line-height: 1.2;  margin-top: 40px; margin-bottom: 12px; }
h2 + h3 { margin-top: 16px; }
p, ul, ol { margin-bottom: 24px; }
li { margin-bottom: 8px; }
li > ul, li > ol { margin-top: 8px; margin-bottom: 0; }
sup { font-size: 0.6em; }

main a { text-underline-offset: 4px; text-decoration-thickness: 1px; }

.ea-wrap {
  max-width: var(--ea-container);
  margin: 0 auto;
  padding: 0 var(--ea-gutter);
}

/* Shared pieces */
.ea-eyebrow {
  margin: 0;
  font-family: var(--ea-sans);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ea-ink);
}
.ea-eyebrow--accent { color: var(--ea-accent); }

/* Buttons: the framework button, restyled to the starter (sentence case,
   2px radius, ink that turns rust). */
.rl-btn,
.rl-btn-light,
.rl-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border-width: 1px;
  line-height: 1.2;
}
.rl-btn { color: var(--ea-paper); }
.rl-btn:hover { color: var(--ea-paper); }
.rl-btn-light { background: var(--ea-paper); border-color: var(--ea-paper); color: var(--ea-ink); }
.rl-btn-light:hover { background: var(--ea-accent); border-color: var(--ea-accent); color: var(--ea-paper); }
.rl-btn-sm { min-height: 36px; padding: 0 16px; }

.ea-link { font-size: 17px; font-weight: 500; white-space: nowrap; }
.ea-link:hover { color: var(--ea-accent); }
.ea-link--light, .ea-link--light:hover { color: var(--ea-paper); }


/* ==========================================================================
   4. Editorial Authority components
   ========================================================================== */

/* Header ------------------------------------------------------------------ */
.ea-header { border-bottom: 1px solid var(--ea-hair); position: relative; z-index: 60; }
.ea-header-inner {
  max-width: var(--ea-container);
  margin: 0 auto;
  padding: 0 var(--ea-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 118px;
}
.ea-brand { display: block; flex: none; }
.ea-brand img { display: block; height: 78px; width: auto; }
html.kbd-nav .ea-brand:focus-visible { outline-offset: 4px !important; }

.ea-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 36px;
}
.ea-nav-list li { margin: 0; }
.ea-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ea-ink);
  text-decoration: none;
}
.ea-nav a:hover,
.ea-nav a[aria-current="page"] { color: var(--ea-accent); }
.ea-nav a.ea-nav-cta {
  font-weight: 700;
  color: var(--ea-accent);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.ea-nav a.ea-nav-cta:hover { text-decoration-thickness: 2px; }

/* Dropdowns: the parent link navigates; hover or keyboard focus opens. */
.ea-has-sub { position: relative; }
.ea-has-sub > a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.ea-sub {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 290px;
  background: var(--ea-paper);
  border: 1px solid var(--ea-hair);
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(31, 31, 30, 0.10);
  display: none;
}
.ea-has-sub:hover > .ea-sub,
.ea-has-sub:focus-within > .ea-sub { display: block; }
.ea-sub a { display: flex; padding: 0 20px; font-weight: 400; }

.ea-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  background: none;
  border: 1px solid var(--ea-ink);
  border-radius: 2px;
  font-family: var(--ea-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--ea-ink);
}
.ea-nav-toggle-bars { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }

/* Hero -------------------------------------------------------------------- */
.ea-hero { padding: 76px 0 80px; }   /* 80px to the ink at both edges */
.ea-hero .ea-eyebrow { margin-bottom: 32px; }
/* Stacked, full container width: headline, then the intro, notice and
   buttons beneath it (owner ruling: text fills its container; the starter's
   headline-left / intro-right split is not used). */
.ea-display {
  margin: 0;
  font-family: var(--ea-serif);
  font-weight: 500;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}
.ea-hero-rail { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }
.ea-hero-rail .ea-actions { justify-content: center; }   /* the button pair sits centered in the container, under the notice */
.ea-hero-rail .ea-notice { align-self: center; }   /* the box is as wide as its text and sits centered in the page container */
.ea-lede { margin: 0; font-size: 20px; line-height: 1.55; }
.ea-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Notice box: italic text centered on the slightly darker paper, no marker
   (owner 2026-11-17; the mockup's status dot is gone). */
.ea-notice {
  margin: 0;
  padding: 14px 24px;
  background: var(--ea-paper-deep);
  border-radius: 2px;
  font-style: italic;
  text-align: center;
  line-height: 1.35;
}

/* Photo band -------------------------------------------------------------- */
.ea-photo { padding: 0 0 var(--ea-rhythm); }
.ea-photo-img {
  display: block;
  width: 100%;
  height: clamp(240px, 40vw, 540px);
  object-fit: cover;
  object-position: center 30%;   /* keep the sky and foothills; trim more of the foreground roofs */
  border-radius: 2px;
}
.ea-photo-caps { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 16px; }

/* Section shells ---------------------------------------------------------- */
.ea-section { padding: var(--ea-rhythm) 0; }
/* A section that opens with a rule: the rule sits at the section top, so the
   space above it is the previous section's bottom padding and the space
   below it is the block's own padding (the same value). */
.ea-section--ruled { padding-top: 0; }

/* Ruled block: a hairline, the heading, then the copy at full container
   width (the starter set heading left and copy right; text fills its
   container here). */
.ea-split {
  border-top: 1px solid var(--ea-hair);
  padding-top: var(--ea-rhythm);
}
.ea-split .ea-h2 { margin-bottom: 24px; }
.ea-h2 {
  margin: 0;
  font-family: var(--ea-serif);
  font-weight: 500;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.ea-split > .ea-h2:first-child,
.ea-split > :first-child > .ea-h2:first-child { margin-top: calc(var(--rl-ink-top-head) - 0.5lh); }   /* cap top on the padding */
.ea-split .ea-h2 + p { margin-top: 20px; }

/* Section header row */
.ea-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.ea-sec-head h2 { margin: 0; }

/* Hairline rows: the starter's numbered services list, reused for every
   "term + explanation" list on the site. */
/* Each row carries a top rule only; the list has no closing rule, so the
   space after the last row belongs to whatever follows. */
.ea-rows > :last-child { padding-bottom: 0; }
/* A list that opens its block (right under the page title, or first in a
   group) has no opening rule either: the heading spacing above it stands. */
.ea-page-head + .ea-rows > :first-child,
.ea-group > .ea-rows:first-child > :first-child { border-top: 0; padding-top: 0; }
/* A row is its title (with the number beside it when there is one) and,
   beneath it, the text at full container width. */
.ea-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px 0;
  align-items: baseline;
  border-top: 1px solid var(--ea-hair);
  padding: 40px 0;
}
.ea-item--plain { grid-template-columns: minmax(0, 1fr); }
.ea-item > .ea-row-txt { grid-column: 1 / -1; }
.ea-row-num { font-family: var(--ea-serif); font-style: italic; font-size: 20px; line-height: 1; color: var(--ea-accent); }
/* Cap top of the title sits on the row padding. Three classes so it outranks
   the rhythm sheet's first-child margin reset (0,2,0), which loads later. */
.ea-rows > .ea-item > .ea-row-title { margin-top: calc(var(--rl-ink-top-head) - 0.5lh); }
.ea-row-title {
  margin: 0;
  font-family: var(--ea-serif);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.ea-row-title a { color: var(--ea-ink); text-decoration: none; }
.ea-row-title a:hover { color: var(--ea-accent); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ea-row-price {
  display: block;
  margin-top: 8px;
  font-family: var(--ea-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--ea-accent);
}
.ea-row-txt cite { font-style: normal; }
.ea-rows--compact .ea-item { padding: 28px 0; }
.ea-rows--compact > :last-child { padding-bottom: 0; }
.ea-rows--compact .ea-row-title { font-size: clamp(22px, 2vw, 25px); }

/* Portrait split (home, about) */
.ea-person {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 32px 64px;
  align-items: start;
}
.ea-person-fig { margin: 0; }
.ea-person-fig img { display: block; width: 100%; height: auto; border-radius: 2px; }
.ea-person-txt .ea-h2 { margin-bottom: 24px; }

/* Biography with the portrait floated right inside the text (About page) */
.ea-bio-txt { display: flow-root; }
.ea-bio-fig { float: right; width: 288px; margin: 8px 0 24px 48px; }
.ea-bio-fig img { display: block; width: 100%; height: auto; border-radius: 2px; }

/* Credential logos (shown with Rick's biography: the marks belong to him).
   Plain images in a flex row, not a list: the rhythm sheet gives the last
   item of a list a negative bottom margin, which dropped the CFP mark 4.5px
   below the Garrett logo's center on the home page. */
.ea-creds { margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.ea-creds img { display: block; max-width: 100%; height: auto; }

/* Pull quote */
.ea-quote { margin: 0; border-top: 1px solid var(--ea-hair); padding-top: var(--ea-rhythm); }
.ea-quote blockquote { margin: 0; }
.ea-quote blockquote p {
  margin: 0;
  font-family: var(--ea-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.ea-quote figcaption { margin-top: 32px; }

/* Contact band */
.ea-band { background: var(--ea-ink); color: var(--ea-paper); padding: 112px 0; }
.ea-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.ea-band h2 {
  margin: 0;
  font-family: var(--ea-serif);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ea-paper);
}

/* Footer ------------------------------------------------------------------ */
.ea-footer { border-top: 1px solid var(--ea-hair); flex-shrink: 0; }
.ea-footer-cols {
  max-width: var(--ea-container);
  margin: 0 auto;
  padding: 64px var(--ea-gutter);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 64px;
}
.ea-foot-txt img { display: block; height: 78px; width: auto; margin-bottom: 20px; }
.ea-foot-txt p,
.ea-foot-txt address { margin: 0 0 16px; font-size: 16px; line-height: 1.6; font-style: normal; }
.ea-foot-col h2 { margin: 0 0 16px; }
.ea-foot-col ul { list-style: none; margin: 0; padding: 0; }
.ea-foot-col li { margin: 0 0 12px; }
.ea-foot-col li:last-child { margin-bottom: 0; }
.ea-footer a { color: var(--ea-ink); text-decoration: none; font-size: 17px; }
.ea-footer a:hover { color: var(--ea-accent); text-decoration: underline; }
.ea-foot-txt a { font-size: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ea-footer-legal {
  max-width: var(--ea-container);
  margin: 0 auto;
  padding: 0 var(--ea-gutter) 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.ea-footer-legal p { margin: 0; font-size: 15px; }
.ea-footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 24px; flex-wrap: wrap; }
.ea-footer-legal li { margin: 0; }
.ea-footer-legal a { font-size: 15px; }

.back-to-top { border-radius: 2px; }

/* Scroll reveals: 0.9s rise, only once JS confirms motion is allowed */
@keyframes ea-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.ea-js [data-reveal] { opacity: 0; }
.ea-js [data-reveal].is-in { animation: ea-rise 0.9s var(--ea-ease) both; }
@media (prefers-reduced-motion: reduce) {
  .ea-js [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; }
  .ea-nav, .ea-nav.is-open { transition: none; }
}


/* ==========================================================================
   5. Interior pages
   ========================================================================== */

/* Page title block: first thing inside the page's one section, so the
   section owns the space above the eyebrow and below the last block. */
.ea-page-head { margin-bottom: 48px; }
.ea-page-head .ea-eyebrow { margin-bottom: 24px; }
.ea-page-head h1 { margin: 0; }

.ea-intro { font-size: 21px; line-height: 1.5; }
.ea-group { margin-top: 80px; }
.ea-group:first-child { margin-top: 0; }
.ea-group > h2 { margin-top: 0; margin-bottom: 32px; }
/* A heading above a row list sits the row padding away from the first rule,
   measured to the ink, so the rule is even on both sides. */
.ea-group > h2:has(+ .ea-rows) { margin-bottom: calc(40px + var(--rl-ink-bottom-head) - 0.5lh); }
.ea-group > h2:has(+ .ea-rows--compact) { margin-bottom: calc(28px + var(--rl-ink-bottom-head) - 0.5lh); }
.ea-group > h2 + p { margin-top: -12px; }

/* Bounded note (fee disclaimer, notices on interior pages) */
.ea-note {
  margin: 40px 0;
  padding: 28px 32px;
  background: var(--ea-paper-deep);
  border-radius: 2px;
}

/* Footnotes */
.ea-footnotes { margin-top: 64px; border-top: 1px solid var(--ea-hair); padding-top: 60px; }   /* 65 / 65 to the ink */
.ea-group:has(> .ea-split) { margin-top: 56px; }   /* the split's rule: 65 above, 65 below */
.ea-footnotes h2 { margin-top: 0; }
.ea-fn-list { padding-left: 1.3em; }
.ea-fn-list > li { margin-bottom: 24px; padding-left: 8px; }
.ea-fn-ref { font-weight: 700; text-decoration: none !important; padding: 0 2px; }

/* Related links at the foot of a page */
.ea-next { margin: 64px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px 48px; }
.ea-next li { margin: 0; }
.ea-next a { font-weight: 500; }
.ea-next a::after { content: " \2192"; }

/* Contact */
.ea-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px 96px;
  align-items: start;
}
.ea-contact-list { margin: 0; }
.ea-contact-list dt { margin: 0 0 4px; }
.ea-contact-list dd { margin: 0 0 28px; }
.ea-contact-list dd:last-child { margin-bottom: 0; }
.ea-contact-list address { margin: 0; font-style: normal; }
.ea-contact-form .ea-notice { margin-bottom: 32px; }
.ea-contact-form iframe { display: block; }

/* Legal pages (privacy policy, terms of use, accessibility statement) */
.ea-legal h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 48px; margin-bottom: 12px; }
.ea-legal h3 { font-size: 22px; margin-top: 32px; }
.ea-legal table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.ea-legal th, .ea-legal td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--ea-hair); }

/* RL Consent on the paper background */
.rl-consent-banner { background: var(--ea-paper); }


/* ==========================================================================
   6. Responsive
   ========================================================================== */

@media (max-width: 1099.98px) {
  .ea-nav-list { gap: 24px; }
  .ea-contact { column-gap: 56px; }
}

@media (max-width: 991.98px) {
  /* Menu button + stacked menu */
  /* The bar keeps its height from padding, not min-height: with min-height the
     logo row re-centered (and looked shorter) the moment the menu's row
     appeared beneath it. */
  .ea-header-inner { flex-wrap: wrap; gap: 0 24px; min-height: 0; padding-top: 15px; padding-bottom: 15px; align-content: flex-start; }
  /* As tall as fits beside the Menu button: 66px, less on the narrowest phones
     (logo is 3.562 wide to 1 tall; 170px = gutters + button + gap). */
  .ea-brand img { height: min(66px, calc((100vw - 170px) / 3.562)); }
  .ea-nav-toggle { display: inline-flex; }
  /* The menu slides open: a grid row animating from 0fr to 1fr. Hidden from
     keyboard and screen readers while closed. */
  .ea-nav { flex: 0 0 100%; display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.32s var(--ea-ease), visibility 0s 0.32s; }
  .ea-nav.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.32s var(--ea-ease); }
  .ea-nav-inner { overflow: hidden; min-height: 0; }
  .ea-nav-list { flex-direction: column; align-items: stretch; gap: 0; margin-top: 15px; padding: 8px 0 0; border-top: 1px solid var(--ea-hair); }
  .ea-nav-list > li { border-bottom: 1px solid var(--ea-hair); }
  .ea-nav-list > li:last-child { border-bottom: 0; }
  .ea-nav a { display: flex; min-height: 48px; }
  .ea-has-sub > a::after { display: none; }
  .ea-sub { display: block; position: static; min-width: 0; padding: 0 0 8px; border: 0; box-shadow: none; background: none; }
  .ea-sub a { padding: 0 0 0 20px; min-height: 44px; }

  .ea-hero { padding: 52px 0 56px; }   /* 56px to the ink at both edges */
  .ea-contact { grid-template-columns: minmax(0, 1fr); }
  .ea-band { padding: 80px 0; }

  /* Footer centers once it stacks; link lists keep one shared left edge. */
  .ea-footer-cols { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
  .ea-foot-txt img { margin-left: auto; margin-right: auto; }
  .ea-foot-col ul { width: fit-content; margin-inline: auto; text-align: left; }
  .ea-footer-legal { flex-direction: column; align-items: center; text-align: center; }
  .ea-footer-legal ul { justify-content: center; }
  .ea-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .ea-foot-col li { margin-bottom: 0; }
}

@media (max-width: 767.98px) {
  :root { --ea-gutter: 20px; --ea-rhythm: 48px; }
  .ea-hero { padding: 45px 0 49px; }   /* 49px to the ink, the phone rhythm */
  .ea-item { grid-template-columns: 44px minmax(0, 1fr); padding: 32px 0; }
  .ea-item--plain { grid-template-columns: minmax(0, 1fr); }
  .ea-person { grid-template-columns: minmax(0, 1fr); }
  .ea-bio-fig { width: 40%; margin-left: 24px; }
  .ea-person-fig { width: 220px; }
  .ea-page-head { margin-bottom: 32px; }
  .ea-group { margin-top: 64px; }
  .ea-group:has(> .ea-split) { margin-top: 40px; }
  .ea-sec-head { margin-bottom: 32px; }
  .ea-note { padding: 24px 20px; }
  .ea-link { white-space: normal; }
}
