.tn-header, .tn-footer {
  --tn-ink: #14283a;
  --tn-red: #a52830;
  font-family: Manrope, "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: normal;
}
.tn-header, .tn-header *, .tn-footer, .tn-footer * { box-sizing: border-box; }
.tn-header { background: #fbfaf6; color: var(--tn-ink); position: relative; z-index: 16; border-bottom: 1px solid #d5d8d3; }
.tn-nav-shell, .tn-context > div, .tn-footer-grid, .tn-footer-legal { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.tn-nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.tn-header a, .tn-footer a { color: inherit; text-decoration: none; }
.tn-header a:hover, .tn-footer a:hover, .tn-header a[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; }
.tn-header :is(a, summary):focus-visible, .tn-footer a:focus-visible { outline: 3px solid #3274aa; outline-offset: 3px; border-radius: 3px; }
.tn-wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.tn-wordmark span { font-size: clamp(1.03rem, 1.7vw, 1.24rem); font-weight: 780; letter-spacing: -.035em; }
.tn-wordmark img { width: 39px; height: auto; display: block; }
.tn-desktop-nav { display: flex; align-items: center; gap: clamp(20px, 2.7vw, 38px); }
.tn-desktop-nav > a, .tn-header summary, .tn-menu-panel a { font-weight: 675; font-size: .93rem; }
.tn-header summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .6em; min-height: 44px; }
.tn-header summary::-webkit-details-marker { display: none; }
.tn-header summary::after { content: ""; display: block; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.tn-header details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.tn-header .tn-project-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 17px; border-radius: 5px; background: var(--tn-red); color: #fff; text-decoration: none; }
.tn-header .tn-project-link:hover { background: #81212a; color: white; }
.tn-header .tn-dropdown, .tn-mobile-nav { position: relative; margin: 0; padding: 0; background: transparent; border: 0; }
.tn-menu-panel { position: absolute; inset: calc(100% + 3px) auto auto -14px; z-index: 17; width: max-content; min-width: 220px; padding: 8px; color: var(--tn-ink); background: #fffefa; border: 1px solid #c8cfcf; border-radius: 6px; }
.tn-menu-panel a { min-height: 42px; display: flex; align-items: center; padding: 8px 12px; }
.tn-menu-panel a:hover { background: #f3f2ec; }
.tn-menu-panel a[href="/accounting-firm-partners/"] { border-top: 1px solid #dcdfdc; }
.tn-mobile-nav { display: none; }
.tn-context { background: #f0f2ef; border-top: 1px solid #e0e2dd; }
.tn-context > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.tn-context a { display: inline-flex; align-items: center; min-height: 42px; font-weight: 650; font-size: .81rem; }
.tn-footer { background: #14283a; color: #f8f8f3; padding-block: 52px 20px; }
.tn-footer-grid { display: grid; grid-template-columns: minmax(15rem,1.55fr) repeat(2,minmax(10rem,1fr)); gap: 28px; }
.tn-footer-grid:has(> :nth-child(4)) { grid-template-columns: 1.4fr repeat(3,1fr); }
.tn-footer-grid nav { display: flex; flex-direction: column; align-items: start; gap: 4px; }
.tn-footer nav a, .tn-footer-brand > a:last-child { font-size: .92rem; padding-block: 4px; }
.tn-footer nav strong { margin-bottom: .3rem; }
.tn-footer-brand > a:first-child { font-size: 1.4rem; font-weight: 780; letter-spacing: -.03em; }
.tn-footer-brand p { color: #d0d8da; font-size: .94rem; line-height: 1.55; margin: 8px 0; }
.tn-footer-legal { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; padding-top: 16px; border-top: 1px solid #536271; font-size: .85rem; }
.tn-footer-legal span { margin-right: auto; }
@media (max-width: 800px) {
  .tn-nav-shell, .tn-context > div, .tn-footer-grid, .tn-footer-legal { width: min(1160px, calc(100% - 32px)); }
  .tn-nav-shell { min-height: 62px; }
  .tn-desktop-nav { display: none; }
  .tn-mobile-nav { display: block; }
  .tn-menu-panel { inset: calc(100% + 5px) 0 auto auto; width: min(288px, calc(100vw - 32px)); }
  .tn-menu-label { display: block; padding: 8px 12px 0; color: #536477; font-size: .8rem; font-weight: 700; }
  .tn-mobile-pages { border-top: 1px solid #dcdfdc; }
  .tn-context > div { gap: 0 16px; }
  .tn-context a { min-height: 36px; }
  .tn-footer-grid, .tn-footer-grid:has(> :nth-child(4)) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tn-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 400px) { .tn-context > div { gap: 0 12px; } .tn-context a { font-size: .75rem; } }
.tn-work-preview { margin: 0; max-width: 560px; color: #e8ecef; }
.tn-work-preview a { display: block; overflow: hidden; color: #152b3e; background: #fbfaf6; text-decoration: none; border-radius: 8px; }
.tn-work-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tn-work-preview a span { display: block; padding: .8rem 1rem; font-weight: 740; }
.tn-work-preview a:hover span { text-decoration: underline; }
.tn-work-preview figcaption { margin-top: .65rem; font-size: .88rem; }
.tn-training-sample details { background: #fff; padding: .75rem 1rem; color: #14283a; border-radius: 6px; }
.tn-training-sample summary { cursor: pointer; font-weight: 750; }
.tn-training-sample details p { margin: .65rem 0 0; color: #21364a; }

/* Carry the masthead’s readable CTA color into the public service layouts. */
main .button.button-primary { background: #a52830; color: white; }
main .button.button-primary:hover { background: #81212a; color: white; }
.about-hero .hero-lede { color: #405468; }
.partner-proof-section { --muted: #4e606f; }
.training-body .optional-tag { color: #4e606f; }
.partner-delivery-section .section-heading .eyebrow,
.ap-evidence-section .section-heading .eyebrow { color: #ffb5b3; }
