/* ==========================================================================
   FitlyBuilt · Direction A design system (approved 9/18)
   One stylesheet for every page.
   Base styles apply only inside body.fb-site, so a page that has not been
   rebuilt yet can load this file for the shared header and footer without
   its own content being restyled. Header and footer are self-contained.
   ========================================================================== */

:root {
  --fb-paper: #FAFAF8;
  --fb-graphite: #1E2422;
  --fb-slate: #46514D;
  --fb-pine: #1F4D40;
  --fb-pine-deep: #163A30;
  --fb-mist: #E4EBE7;
  --fb-line: #D5DDD9;
  --fb-rule-on-mist: #C9D4CF; /* rule color on Mist, from the approved canvas */
  --fb-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fb-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --fb-measure: 66ch;
  --fb-wrap: 1136px;
  --fb-gutter: clamp(20px, 5vw, 72px);
  --fb-radius: 6px;
  --fb-radius-panel: 10px;
}

/* ---------- Base (rebuilt pages only) ---------- */
body.fb-site {
  margin: 0;
  background: var(--fb-paper);
  color: var(--fb-graphite);
  font-family: var(--fb-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.fb-site *, .fb-site *::before, .fb-site *::after { box-sizing: border-box; }
/* Zero-specificity base (:where), so every component rule below wins without a fight. */
:where(.fb-site) :where(h1, h2, h3, p, figure, blockquote) { margin: 0; }
:where(.fb-site) :where(h1, h2, h3) { color: var(--fb-graphite); text-wrap: balance; }
:where(.fb-site) :where(p, li, td) { text-wrap: pretty; }
:where(.fb-site) a { color: var(--fb-pine); text-decoration-thickness: 1px; text-underline-offset: 4px; }
:where(.fb-site) a:hover { color: var(--fb-pine-deep); text-decoration-thickness: 2px; }
.fb-site :focus-visible { outline: 3px solid var(--fb-pine); outline-offset: 3px; }

.fb-skip {
  position: absolute; left: 12px; top: -200px; z-index: 100;
  padding: 12px 18px; border-radius: var(--fb-radius);
  background: var(--fb-pine); color: var(--fb-paper) !important;
  font: 700 1rem/1.2 var(--fb-sans); text-decoration: none;
}
.fb-skip:focus { top: 12px; }

.fb-wrap {
  width: 100%;
  max-width: calc(var(--fb-wrap) + 2 * var(--fb-gutter));
  margin-inline: auto;
  padding-inline: var(--fb-gutter);
}

/* ---------- Buttons ---------- */
.fb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid var(--fb-pine); border-radius: var(--fb-radius);
  font: 700 1.0625rem/1.2 var(--fb-sans); text-decoration: none; text-align: center;
  cursor: pointer;
}
.fb-btn--primary { background: var(--fb-pine); color: var(--fb-paper) !important; }
.fb-btn--primary:hover { background: var(--fb-pine-deep); border-color: var(--fb-pine-deep); }
.fb-btn--outline { background: transparent; color: var(--fb-pine) !important; }
.fb-btn--outline:hover { background: var(--fb-pine); color: var(--fb-paper) !important; }

/* ---------- Header (self-contained) ---------- */
.fb-header {
  position: relative; z-index: 20;
  background: var(--fb-paper); color: var(--fb-graphite);
  border-bottom: 1px solid var(--fb-line);
  font-family: var(--fb-sans); font-size: 1rem; line-height: 1.4;
}
.fb-header *, .fb-header *::before, .fb-header *::after { box-sizing: border-box; }
.fb-header :focus-visible { outline: 3px solid var(--fb-pine); outline-offset: 3px; }
.fb-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 80px; padding-block: 14px;
}
.fb-brand {
  font-size: 1.4375rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--fb-graphite) !important; text-decoration: none !important;
  padding-block: 6px;
}
.fb-menu-toggle { display: none; }
.fb-nav { display: flex; align-items: center; gap: 32px; }
.fb-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.fb-nav__list > li { margin: 0; }
.fb-nav__list a,
.fb-nav__disclosure {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 0.9375rem/1.2 var(--fb-sans); color: var(--fb-graphite);
  text-decoration: none;
}
.fb-nav__list a:hover { color: var(--fb-pine); text-decoration: underline; text-underline-offset: 6px; }
.fb-nav__list a[aria-current="page"] { color: var(--fb-pine); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.fb-nav__group { position: relative; }
.fb-nav__disclosure { gap: 8px; padding: 0; background: none; border: 0; cursor: pointer; }
.fb-nav__disclosure::after {
  content: ""; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.fb-nav__disclosure[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.fb-nav__disclosure:hover { color: var(--fb-pine); }
.fb-nav__sub { margin: 0; padding: 0 0 0 16px; list-style: none; }
.fb-nav__sub a { width: 100%; }
.js .fb-nav__sub { display: none; }
.js .fb-nav__sub.is-open { display: block; }
.fb-header .fb-btn { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }

@media (min-width: 1000px) {
  .js .fb-nav__sub {
    position: absolute; top: calc(100% + 8px); left: -16px; min-width: 340px;
    padding: 8px; background: var(--fb-paper);
    border: 1px solid var(--fb-line); border-radius: var(--fb-radius);
    box-shadow: 0 14px 30px rgba(30, 36, 34, 0.12);
  }
  .js .fb-nav__sub a { display: flex; padding: 10px 12px; border-radius: 4px; }
  .js .fb-nav__sub a:hover { background: var(--fb-mist); color: var(--fb-graphite); text-decoration: none; }
}

@media (max-width: 999px) {
  .js .fb-menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
    background: none; border: 1.5px solid var(--fb-pine); border-radius: var(--fb-radius);
    color: var(--fb-pine); font: 700 0.9375rem/1 var(--fb-sans); cursor: pointer;
  }
  .fb-nav {
    flex-direction: column; align-items: stretch; gap: 16px;
    width: 100%; padding-bottom: 20px;
  }
  .fb-header__inner { flex-wrap: wrap; }
  .js .fb-nav { display: none; }
  .js .fb-nav.is-open { display: flex; }
  .fb-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .fb-nav__list > li { border-top: 1px solid var(--fb-line); }
  .fb-nav__list a, .fb-nav__disclosure { display: flex; width: 100%; min-height: 48px; font-size: 1.0625rem; }
  .fb-nav__disclosure { justify-content: space-between; }
  .fb-nav__sub { padding: 0 0 8px 16px; }
  .fb-nav__sub a { min-height: 44px; padding-block: 10px; line-height: 1.35; }
  .fb-header .fb-btn { width: 100%; min-height: 48px; }
}

/* ---------- Hero ---------- */
.fb-hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.fb-hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); }
@media (min-width: 1000px) {
  .fb-hero__grid { grid-template-columns: 7fr 5fr; align-items: start; }
}
.fb-hero h1 {
  font-size: clamp(2.25rem, 1.3rem + 3.4vw, 3.375rem);
  line-height: 1.06; font-weight: 800; letter-spacing: -0.025em;
}
.fb-hero__sub { margin-top: 24px; max-width: 36em; font-size: 1.1875rem; line-height: 1.55; color: var(--fb-slate); }
.fb-doors { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--fb-line); }
.fb-door { display: grid; gap: 10px; justify-items: start; padding: 22px 0; border-bottom: 1px solid var(--fb-line); }
.fb-door__label { font-size: 1rem; font-weight: 700; }
.fb-door__link { font-size: 1.0625rem; font-weight: 700; }
.fb-door__helper { max-width: 54ch; font-size: 0.9375rem; line-height: 1.55; color: var(--fb-slate); }

.fb-hero__narrow { max-width: 46rem; }
.fb-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 36px; }
.fb-hero__actions a:not(.fb-btn) { font-weight: 700; font-size: 1.0625rem; }

.fb-panel { background: var(--fb-mist); border-radius: var(--fb-radius-panel); padding: clamp(24px, 3vw, 32px); }
.fb-panel h2 { font-size: 1.125rem; line-height: 1.35; font-weight: 700; }
.fb-panel__list { list-style: none; margin: 18px 0; padding: 0; }
.fb-panel__list li { padding: 13px 0; border-top: 1px solid var(--fb-rule-on-mist); font-size: 1rem; line-height: 1.45; }
.fb-panel__list li:last-child { border-bottom: 1px solid var(--fb-rule-on-mist); }
.fb-panel__note { font-size: 0.875rem; line-height: 1.55; color: var(--fb-slate); }

/* ---------- Sections ---------- */
.fb-section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--fb-line); }
.fb-section h2 {
  max-width: 24ch;
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -0.02em;
}
.fb-section h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.fb-bluf { margin-top: 18px; max-width: var(--fb-measure); font-size: 1.1875rem; line-height: 1.55; }
.fb-prose { max-width: var(--fb-measure); }
.fb-prose p + p { margin-top: 14px; }
.fb-more { display: inline-block; margin-top: 24px; font-weight: 700; }

.fb-qa { display: grid; gap: 32px; margin-top: 44px; }
@media (min-width: 860px) { .fb-qa { grid-template-columns: 1fr 1fr; gap: 56px; } }
.fb-qa p { margin-top: 10px; max-width: 60ch; }

.fb-takeaway {
  margin-top: 44px; max-width: var(--fb-measure);
  padding: 20px 24px; background: var(--fb-mist);
  border-left: 3px solid var(--fb-pine); border-radius: 0 var(--fb-radius) var(--fb-radius) 0;
}

.fb-body { margin-top: 18px; }

/* Joined modules */
.fb-modules { display: grid; margin-top: 44px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius-panel); overflow: hidden; }
.fb-module { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px); background: var(--fb-paper); }
.fb-module + .fb-module { border-top: 1px solid var(--fb-line); }
.fb-module p { color: var(--fb-slate); max-width: 52ch; }
.fb-module .fb-more { margin-top: auto; padding-top: 8px; }
@media (min-width: 860px) {
  .fb-modules { grid-template-columns: 1fr 1fr; }
  .fb-module + .fb-module { border-top: 0; }
  .fb-module:nth-child(odd) { border-right: 1px solid var(--fb-line); }
  .fb-module:nth-child(n+3) { border-top: 1px solid var(--fb-line); }
}

/* Steps — a real sequence, so it is numbered */
.fb-steps { list-style: none; counter-reset: fb-step; max-width: 60rem; margin: 44px 0 0; padding: 0; }
.fb-steps li {
  counter-increment: fb-step;
  display: grid; grid-template-columns: 3rem 1fr; gap: 16px;
  padding: 22px 0; border-top: 1px solid var(--fb-line);
}
.fb-steps li:last-child { border-bottom: 1px solid var(--fb-line); }
.fb-steps li::before { content: counter(fb-step); font-size: 1.5rem; line-height: 1.2; font-weight: 800; color: var(--fb-pine); }

/* Board facts */
.fb-facts { width: 100%; max-width: 60rem; margin-top: 44px; border-collapse: collapse; font-size: 1rem; }
.fb-facts th, .fb-facts td { padding: 16px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--fb-line); }
.fb-facts tr:last-child th, .fb-facts tr:last-child td { border-bottom: 1px solid var(--fb-line); }
.fb-facts th { width: 11.5rem; padding-right: 24px; font-weight: 700; }
@media (max-width: 640px) { .fb-facts th { width: 34%; padding-right: 14px; } }

/* Our work */
.fb-work { list-style: none; display: grid; gap: 0; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--fb-line); }
.fb-work li { padding: 22px 0; border-bottom: 1px solid var(--fb-line); }
.fb-work h3 { font-size: 1.25rem; }
.fb-work__tag { margin-top: 6px; color: var(--fb-slate); font-size: 0.9375rem; }
@media (min-width: 860px) {
  .fb-work { grid-template-columns: repeat(3, 1fr); column-gap: 32px; border-top: 0; }
  .fb-work li { border-bottom: 0; border-top: 1px solid var(--fb-line); }
}

/* FAQ disclosure */
.fb-faq { max-width: 60rem; margin-top: 44px; border-top: 1px solid var(--fb-line); }
.fb-faq__item { border-bottom: 1px solid var(--fb-line); }
.fb-faq__q { font-size: 1.125rem; line-height: 1.35; }
.fb-faq__q button {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; min-height: 44px; padding: 20px 0; margin: 0;
  background: none; border: 0; color: inherit; font: inherit; font-weight: 700;
  text-align: left; cursor: pointer;
}
.fb-faq__q button::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--fb-pine); border-bottom: 2px solid var(--fb-pine);
  transform: translateY(-3px) rotate(45deg);
}
.fb-faq__q button[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }
.fb-faq__q button:hover { color: var(--fb-pine); }
.fb-faq__a { max-width: var(--fb-measure); padding: 0 0 22px; }

/* Closing band */
.fb-close { background: var(--fb-pine-deep); color: var(--fb-paper); padding-block: clamp(64px, 9vw, 112px); }
.fb-close h2 { color: var(--fb-paper); font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.fb-close .fb-bluf { color: var(--fb-paper); }
.fb-close a { color: var(--fb-paper); }
.fb-close a:hover { color: var(--fb-mist); }
.fb-close :focus-visible { outline-color: var(--fb-paper); }
.fb-close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 36px; }
.fb-close__actions a:not(.fb-btn) { font-weight: 700; font-size: 1.0625rem; }
.fb-close .fb-btn--primary { background: var(--fb-paper); border-color: var(--fb-paper); color: var(--fb-pine-deep) !important; }
.fb-close .fb-btn--primary:hover { background: var(--fb-mist); border-color: var(--fb-mist); }
.fb-close__prayer { margin-top: 32px; max-width: var(--fb-measure); color: var(--fb-mist); }

/* ---------- Footer (self-contained) ---------- */
.fb-footer {
  background: var(--fb-paper); color: var(--fb-graphite);
  border-top: 1px solid var(--fb-line);
  font-family: var(--fb-sans); font-size: 0.9375rem; line-height: 1.6;
  padding-block: 48px 56px;
}
.fb-footer *, .fb-footer *::before, .fb-footer *::after { box-sizing: border-box; }
:where(.fb-footer) :where(p, figure, blockquote) { margin: 0; }
.fb-footer :focus-visible { outline: 3px solid var(--fb-pine); outline-offset: 3px; }
.fb-footer a { color: var(--fb-pine); text-underline-offset: 4px; }
.fb-footer__grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .fb-footer__grid { grid-template-columns: 1fr 1.5fr 1fr; gap: 48px; } }
.fb-footer__company { font-weight: 700; }
.fb-scripture { margin-top: 14px; max-width: 34ch; font-family: var(--fb-serif); font-size: 1.0625rem; line-height: 1.6; }
.fb-scripture blockquote p { font-style: italic; }
.fb-scripture figcaption { margin-top: 6px; color: var(--fb-slate); font-size: 0.9375rem; }
.fb-footer__links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.fb-footer__links li { break-inside: avoid; }
.fb-footer__links a { display: inline-block; padding: 5px 0; color: var(--fb-graphite); text-decoration: none; }
.fb-footer__links a:hover { color: var(--fb-pine); text-decoration: underline; }
.fb-footer__identity { font-style: normal; color: var(--fb-slate); }
.fb-footer__identity strong { color: var(--fb-graphite); }
.fb-footer__identity a { display: inline-block; padding: 3px 0; }

/* ---------- Motion: only in answer to an action, and only if welcome ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fb-btn, .fb-nav__list a, .fb-nav__disclosure, .fb-faq__q button, .fb-footer__links a { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
}

/* ---------- Print: the board page prints cleanly ---------- */
@media print {
  .fb-header, .fb-skip, .fb-panel, .fb-close__actions, .fb-footer nav { display: none !important; }
  body.fb-site { background: #fff; color: #000; font-size: 11pt; }
  .fb-section, .fb-close { padding-block: 14pt; border: 0; background: none; color: #000; }
  .fb-close h2, .fb-close .fb-bluf, .fb-close__prayer { color: #000; }
  #board { break-before: page; break-after: page; }
  .fb-facts, .fb-facts tr { break-inside: avoid; }
  .fb-faq__a[hidden] { display: block !important; }
  .fb-site a { color: #000; }
}

.fb-verse{font-family:"Source Serif 4",Georgia,serif;font-style:italic}

.fb-hero--dark{background:var(--fb-pine-deep);color:var(--fb-paper)}
.fb-hero--dark h1{color:var(--fb-paper)}
.fb-hero--dark .fb-hero__sub{color:var(--fb-mist)}
.fb-section--tint{background:var(--fb-mist);border-top-color:transparent}
.fb-section--tint .fb-takeaway{background:#FFFFFF}

.fb-site :where(a){overflow-wrap:anywhere}
.fb-work h3{overflow-wrap:anywhere}
