/* Visitor-facing starter styles. Website branding may override these variables. */
:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --ink: #182c28;
  --muted: #5d6c66;
  --line: #dce3dc;
  --accent: #285d4a;
  --brand-on-accent: #ffffff;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121c19;
  --surface: #1a2822;
  --ink: #f0f4ed;
  --muted: #b3c2b8;
  --line: #34463d;
  --accent: #b3dab9;
  --brand-on-accent: #17291d;
}

.tfc-site,
.tfc-site *,
.tfc-site *::before,
.tfc-site *::after { box-sizing: border-box; }

.tfc-site {
  margin: 0;
  min-width: 18rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.tfc-site :where(h1, h2, h3, h4, p, ul, ol, dl, figure) { margin-block: 0 1rem; }
.tfc-site :where(h1, h2, h3, h4) { color: var(--ink); line-height: 1.15; text-wrap: balance; }
.tfc-site h1 { max-width: 18ch; font-size: clamp(2.6rem, 6.5vw, 5.25rem); font-weight: 650; letter-spacing: -.055em; }
.tfc-site h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 650; letter-spacing: -.04em; }
.tfc-site h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; }
.tfc-site :where(img, video) { display: block; max-width: 100%; height: auto; }
.tfc-site a { color: var(--brand-link, var(--accent)); text-underline-offset: .2em; }
.tfc-site a:hover { color: var(--brand-link-hover, var(--accent)); }
.tfc-site :where(button, input, select, textarea) { font: inherit; }
.tfc-site button { cursor: pointer; }
.tfc-site :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.tfc-site [hidden] { display: none !important; }

.tfc-container { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.tfc-site-main { flex: 1; }
.tfc-skip {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  transform: translateY(-200%);
  border-radius: var(--radius, 8px);
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
}
.tfc-skip:focus { transform: translateY(0); }

.tfc-site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: var(--paper); }
.tfc-site-header > .tfc-container { min-height: 6rem; display: flex; align-items: center; gap: 1.5rem; }
.tfc-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  max-width: min(60%, 24rem);
  color: var(--ink) !important;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-decoration: none;
}
.tfc-brand img { width: auto; max-width: 12rem; max-height: 2.5rem; object-fit: contain; }
.tfc-brand svg { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
.tfc-brand [data-tpc-brand-slot="logo_dark"] { display: none; }
html[data-theme="dark"] .tfc-brand [data-tpc-brand-slot="logo_light"] { display: none; }
html[data-theme="dark"] .tfc-brand [data-tpc-brand-slot="logo_dark"] { display: block; }
.tfc-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .35rem 1.5rem; margin-left: auto; font-size: .9rem; }
.tfc-nav a { padding-block: .6rem; color: var(--ink); text-decoration: none; }
.tfc-nav a:hover,
.tfc-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.tfc-nav-toggle,
.tfc-theme-toggle {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-shrink: 0;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  background: var(--surface);
  color: var(--ink);
  font-size: .85rem;
  line-height: 1;
}
.tfc-nav-toggle { display: none; }
.tfc-theme-toggle svg,
.tfc-nav-toggle svg { width: 1.1rem; height: 1.1rem; }
.tfc-theme-toggle:hover,
.tfc-nav-toggle:hover { border-color: var(--accent); }

.tfc-hero { padding-block: clamp(4rem, 9vw, 8rem); border-bottom: 1px solid var(--line); }
.tfc-hero .tfc-lead { max-width: 45rem; margin-top: 1.5rem; }
.tfc-eyebrow { margin-bottom: 1.25rem; color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.tfc-lead { max-width: 44rem; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.7; }
.tfc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.tfc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .8rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius, 8px);
  background: var(--accent);
  color: var(--brand-on-accent) !important;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.tfc-button:hover { background: var(--action-hover, var(--accent)); border-color: var(--action-hover, var(--accent)); text-decoration: underline; text-underline-offset: .2em; }
.tfc-button-secondary { border-color: var(--line); background: transparent; color: var(--ink) !important; }
.tfc-button-secondary:hover { border-color: var(--accent); background: var(--surface); }
.tfc-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.tfc-section + .tfc-section { border-top: 1px solid var(--line); }
.tfc-section > .tfc-container > :is(h2, .tfc-lead) { max-width: 46rem; }
.tfc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; margin-top: 2rem; }
.tfc-card { min-width: 0; padding: 1.75rem; border: 1px solid var(--line); border-radius: calc(var(--radius, 8px) * 1.5); background: var(--surface); }
.tfc-card > :last-child { margin-bottom: 0; }
.tfc-card p { color: var(--muted); }
.tfc-card .tfc-eyebrow { margin-bottom: 1.5rem; }
.tfc-card h3 a { color: inherit; }
.tfc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem 2rem; margin-block: 2rem 0; }
.tfc-facts > div { min-width: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.tfc-facts dt { margin-bottom: .4rem; color: var(--muted); font-size: .8rem; }
.tfc-facts dd { margin: 0; font-weight: 600; }

.tfc-article { padding-block: clamp(3rem, 7vw, 6rem); }
.tfc-article > header { max-width: 52rem; margin-bottom: 3rem; }
.tfc-prose { max-width: 46rem; font-size: 1.05rem; }
.tfc-prose > * + * { margin-top: 1.25rem; }
.tfc-prose :is(h2, h3, h4) { margin-top: 2.5rem; }
.tfc-prose :is(ul, ol) { padding-left: 1.5rem; }
.tfc-prose li + li { margin-top: .4rem; }
.tfc-prose blockquote { margin-inline: 0; padding: .3rem 0 .3rem 1.5rem; border-left: 3px solid var(--accent); color: var(--muted); }
.tfc-prose blockquote > :last-child { margin-bottom: 0; }
.tfc-prose :is(pre, table) { max-width: 100%; overflow-x: auto; }
.tfc-prose pre { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius, 8px); background: var(--surface); font-size: .85rem; }
.tfc-prose code { font-size: .9em; }
.tfc-prose table { display: block; border-collapse: collapse; }
.tfc-prose :is(th, td) { padding: .7rem 1rem; border: 1px solid var(--line); text-align: left; }
.tfc-prose figure { margin-inline: 0; }
.tfc-prose figcaption { margin-top: .6rem; color: var(--muted); font-size: .85rem; }
.tfc-prose hr { margin-block: 2.5rem; border: 0; border-top: 1px solid var(--line); }
.tfc-notice { margin-block: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius, 8px); background: var(--surface); }
.tfc-notice > :last-child { margin-bottom: 0; }
.tfc-password-form { display: grid; gap: 1rem; max-width: 30rem; margin-block: 2rem; }
.tfc-password-form label { display: grid; gap: .5rem; font-size: .9rem; font-weight: 600; }
.tfc-password-form :is(input, select, textarea) { width: 100%; min-height: 3rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius, 8px); background: var(--surface); color: var(--ink); }
.tfc-password-form .tfc-button { justify-self: start; }
.tfc-empty { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius, 8px); color: var(--muted); }
.tfc-section.tfc-empty { margin-block: clamp(2rem, 5vw, 4rem); }
.tfc-empty > :last-child { margin-bottom: 0; }

.tfc-site-footer { padding-top: 3.5rem; border-top: 1px solid var(--line); background: var(--surface); }
.tfc-footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 4rem; padding-bottom: 3rem; }
.tfc-footer-grid p { max-width: 28rem; color: var(--muted); font-size: .9rem; }
.tfc-footer-grid .tfc-brand { max-width: 100%; margin-bottom: 1rem; }
.tfc-footer-grid nav { display: flex; align-content: start; align-items: start; justify-content: flex-end; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: .9rem; }
.tfc-footer-grid nav a { color: var(--ink); }
.tfc-credit { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .25rem; padding: 1.5rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.tfc-credit p { margin: 0; }
.tfc-credit a { color: inherit; }

@media (max-width: 47.99rem) {
  .tfc-container { width: min(100% - 2rem, 72rem); }
  .tfc-site-header > .tfc-container { min-height: 5rem; flex-wrap: wrap; gap: .75rem; padding-block: 1rem; }
  .tfc-site-header .tfc-brand { margin-right: auto; }
  .tfc-nav-toggle[data-tfc-menu-ready] { display: inline-flex; }
  .tfc-nav { order: 2; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-left: 0; padding-top: .5rem; }
  .tfc-nav a { padding-block: .7rem; border-top: 1px solid var(--line); }
  .tfc-nav[data-tfc-menu-ready][data-tfc-open="false"] { display: none; }
  .tfc-hero { padding-block: 3.5rem 4.5rem; }
  .tfc-card { padding: 1.5rem; }
  .tfc-footer-grid { grid-template-columns: 1fr; }
  .tfc-footer-grid nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  .tfc-site :where(a, button) { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}

@media print {
  .tfc-site { background: #fff; color: #111; }
  .tfc-site :is(.tfc-nav, .tfc-nav-toggle, .tfc-theme-toggle, .tfc-skip) { display: none; }
  .tfc-container { width: 100%; }
  .tfc-hero, .tfc-section, .tfc-article { padding-block: 1.5rem; }
  .tfc-card { break-inside: avoid; }
}
