/* ============================================
   FDD Visuals — page chrome (header, footer, related visuals)
   Self-contained and namespaced. No framework dependency.
   Brand fonts: URW DIN (titles) + Lato (body) via Adobe Typekit.
   ============================================ */
/* Kit-internal design tokens.
   PREFIX CONTRACT: these are deliberately --fddkit-*, never --fdd-*. Consuming
   pages are documented (README / guidelines) to declare the FDD brand palette as
   --fdd-blue / --fdd-gray / --fdd-font-body / ... in their own :root. That page
   stylesheet cascades over this one, so an --fdd-* name here would be silently
   reassigned by every correct consumer — which is exactly how .rv-name once
   inherited #C9CACC (1.6:1 on white) instead of the kit's intended gray.
   Do not add an --fdd-* custom property to this file.

   Colors are the canonical brand palette from guidelines/fdd_ai_guidelines2026.md
   ("do not invent new almost-the-same shades"). Contrast ratios are vs #fff. */
:root {
  /* Brand palette */
  --fddkit-blue: #00558c;       /* FDD Blue      — 7.8:1  */
  --fddkit-dark-gray: #414042;  /* FDD Dark Gray — 10.3:1 : body copy, tile captions */
  --fddkit-text-gray: #636466;  /* Text Gray     — 5.9:1  : meta / eyebrow labels */
  --fddkit-border: #78aac8;     /* Light Blue    — hairline rules only, never text */

  /* Off-palette utility shades kept from the original chrome. Not in the brand
     guide; only used where nothing is read against them. Needs a design call
     before reuse — see README "Token namespacing". */
  --fddkit-navy: #002238;       /* reserved, currently unused */
  --fddkit-light: #e6f0f5;      /* FDD Blue tint — thumbnail placeholder fill */
  --fddkit-accent: #0077b6;     /* tile hover border */

  --fddkit-font-title: "urw-din", system-ui, sans-serif;
  --fddkit-font-body: "lato", system-ui, sans-serif;

  --fddkit-surface: var(--fddkit-blue);
  --fddkit-surface-blur: blur(10px);
  --fddkit-footer-surface: linear-gradient(90deg, var(--fddkit-blue) 0%, #004570 100%);
}

/* Header / Navbar */
.fdd-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 75px; background: var(--fddkit-surface); -webkit-backdrop-filter: var(--fddkit-surface-blur); backdrop-filter: var(--fddkit-surface-blur); }
.fdd-header-inner { height: 75px; display: flex; align-items: center; padding: 4px 30px; position: relative; }
.fdd-logo { display: inline-flex; align-items: center; max-width: 210px; }
.fdd-logo img { height: 64.73px; width: auto; display: block; }
.fdd-nav-title { position: absolute; left: 50%; transform: translateX(-50%) translateY(8px); font-family: var(--fddkit-font-body); font-weight: 700; color: #fff; font-size: 15px; letter-spacing: 0.5px; opacity: 0; transition: opacity 300ms ease, transform 300ms ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; max-width: 50%; text-align: center; }
.fdd-nav-title.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.fdd-nav { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.fdd-nav-link { display: inline-flex; align-items: center; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); padding: 6px 16px; font-family: var(--fddkit-font-body); font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; transition: background 150ms ease; }
.fdd-nav-link:hover { background: rgba(255,255,255,0.2); }
.fdd-header-overlay { position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; background: #a3a3a3; transform-origin: 0 50%; transform: scaleX(0); will-change: transform; pointer-events: none; }
@media (max-width: 768px) { .fdd-nav-title { display: none; } }

/* Typography helpers */
.fdd-title, .fdd-h1 { font-family: var(--fddkit-font-title); font-weight: 700; text-transform: uppercase; color: var(--fddkit-blue); font-size: 45px; line-height: 40px; letter-spacing: -0.3px; margin: 0; }
.fdd-subtitle { font-family: var(--fddkit-font-body); font-weight: 400; color: var(--fddkit-blue); font-size: 30px; line-height: 40px; }
.fdd-byline { font-family: var(--fddkit-font-body); font-style: italic; font-weight: 400; color: #3d3d3d; font-size: 18px; line-height: 25.2px; }
.fdd-intro, .fdd-body { font-family: var(--fddkit-font-body); font-weight: 400; color: var(--fddkit-dark-gray); font-size: 17px; line-height: 28px; }
.fdd-section-title, .fdd-h2 { font-family: var(--fddkit-font-title); font-weight: 700; text-transform: uppercase; color: var(--fddkit-blue); font-size: 24px; line-height: 28px; letter-spacing: -0.2px; }
.fdd-h3 { font-family: var(--fddkit-font-title); font-weight: 700; color: var(--fddkit-blue); font-size: 20px; line-height: 1.25; letter-spacing: -0.1px; margin: 0; }
.fdd-h4 { font-family: var(--fddkit-font-title); font-weight: 600; color: var(--fddkit-blue); font-size: 18px; line-height: 1.3; margin: 0; }
.fdd-meta { font-family: var(--fddkit-font-body); font-weight: 400; color: var(--fddkit-text-gray); font-size: 14px; line-height: 1.5; }

/* Mobile type scale */
@media (max-width: 768px) {
  .fdd-title, .fdd-h1 { font-size: 32px; line-height: 34px; }
  .fdd-subtitle { font-size: 20px; line-height: 28px; }
  .fdd-section-title, .fdd-h2 { font-size: 20px; line-height: 24px; }
  .fdd-h3 { font-size: 18px; }
  .fdd-h4 { font-size: 16px; }
  .fdd-byline { font-size: 14px; padding: 0 1rem; }
}

/* Panel */
.fdd-panel { border: 1px solid rgba(120, 170, 200, 0.45); border-radius: 20px; background: #fff; padding: 16px; }

/* Related Visuals — minimal image grid */
.rv-section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; width: 100%; scroll-margin-top: 85px; }
.rv-title { font-family: var(--fddkit-font-title); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--fddkit-text-gray); text-align: center; margin: 0 0 22px; }
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rv-tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform 0.2s ease; }
.rv-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--fddkit-light); border: 1px solid rgba(120, 170, 200, 0.45); transition: border-color 0.2s ease; }
.rv-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-name { font-family: var(--fddkit-font-body); font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--fddkit-dark-gray); text-align: center; width: min(28ch, 100%); margin: 0 auto; max-height: calc(1.35em * 3); overflow: hidden; overflow-wrap: normal; word-break: normal; hyphens: none; }
.rv-tile:hover { transform: translateY(-3px); }
.rv-tile:hover .rv-thumb { border-color: var(--fddkit-accent); }
.rv-tile:hover .rv-name { color: var(--fddkit-blue); }

@media (max-width: 900px) {
  .rv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .rv-grid { grid-template-columns: 1fr; }
}

/* Footer — shares the navbar surface treatment */
.fdd-footer { position: relative; background: var(--fddkit-surface); -webkit-backdrop-filter: var(--fddkit-surface-blur); backdrop-filter: var(--fddkit-surface-blur); padding: 48px 24px; overflow: hidden; }
.fdd-footer-gradient { position: absolute; inset: 0; background: var(--fddkit-footer-surface); pointer-events: none; }
.fdd-footer-inner { position: relative; max-width: 1140px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.fdd-footer-left { width: min(672px, 100%); display: flex; flex-direction: column; gap: 22.8px; }
.fdd-footer-logo { display: inline-flex; align-items: center; height: 48px; overflow: hidden; text-decoration: none; }
.fdd-footer-logo img { height: 48px; width: auto; display: block; }
.fdd-footer-description { font-family: var(--fddkit-font-body); font-weight: 400; font-size: 14px; line-height: 22.75px; color: rgba(255, 255, 255, 0.9); white-space: normal; }
.fdd-footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0; padding-top: 0.7px; }
.fdd-footer-copyright, .fdd-footer-privacy { font-family: var(--fddkit-font-body); font-weight: 400; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.7); }
.fdd-footer-privacy { text-decoration: underline; text-underline-position: from-font; }
.fdd-footer-privacy:hover { color: rgba(255, 255, 255, 0.9); }
.fdd-footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; flex: 1 1 240px; min-width: 240px; }
.fdd-footer-ctas { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.fdd-footer-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.6); padding: 13px 25px; color: #fff; font-family: var(--fddkit-font-body); font-weight: 700; font-size: 16px; line-height: 24px; text-decoration: none; text-align: center; }
.fdd-footer-pill:hover { background: rgba(255, 255, 255, 0.08); }
.fdd-footer-social { display: inline-flex; align-items: center; justify-content: flex-end; gap: 16px; }
.fdd-footer-social-link { display: inline-flex; align-items: center; justify-content: center; padding: 8px; border-radius: 9999px; text-decoration: none; }
.fdd-footer-social-link:hover { background: rgba(255, 255, 255, 0.08); }
/* Social SVGs are FDD-blue; the filter renders them white on the blue footer. */
.fdd-footer-social-link img { width: 24px; height: 24px; display: block; filter: brightness(0) invert(1); }
@media (max-width: 900px) { .fdd-footer-right { align-items: flex-start; } }
