:root {
  --tfj-ink: #102345;
  --tfj-muted: #4e6180;
  --tfj-blue: #0758df;
  --tfj-deep: #08224b;
  --tfj-wash: #f2f6fc;
  --tfj-line: #d9e4f2;
  --tfj-radius: 18px;
  --tfj-header-height: 72px;
}
html { scroll-padding-top: calc(var(--tfj-header-height) + 20px); }
body { color: var(--tfj-ink); }
.wrap { width: min(1200px, calc(100% - 64px)); }
main:focus { outline: none; }
.skip-link { position: fixed; z-index: 102; top: 8px; left: 12px; padding: 10px 16px; border-radius: 10px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.tfj-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--tfj-line); }
.tfj-header-inner { position: relative; min-height: var(--tfj-header-height); display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.tfj-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--tfj-ink); min-height: 44px; }
.tfj-brand img { object-fit: contain; flex: 0 0 auto; width: 46px; height: 34px; }
.tfj-brand span { font-weight: 750; font-size: 11px; line-height: 1.12; letter-spacing: .045em; text-transform: uppercase; }
.tfj-menu { display: flex; align-items: center; gap: clamp(4px, 1.25vw, 20px); }
.tfj-menu a { min-height: 44px; display: flex; align-items: center; padding: 8px 10px; border-radius: 9px; font-size: 14px; line-height: 1.35; font-weight: 600; white-space: nowrap; }
.tfj-menu a:hover, .tfj-menu a[aria-current], .tfj-menu a[data-current-section] { background: #eaf2ff; color: #0746ae; }
.tfj-header .tfj-header-quote { flex: 0 0 auto; min-height: 44px; padding: 8px 16px; font-weight: 700; white-space: nowrap; }
.tfj-menu-toggle { display: none; }
.button, .calc-secondary, .copy-estimate, .share-article { border-radius: 11px; }
.button { gap: 8px; min-height: 46px; font-weight: 650; line-height: 1.3; text-align: center; }
.button.secondary:hover { background: #eaf2ff; color: #0647b6; }
main img:not(.client-logo), .journal-placeholder { border-radius: var(--tfj-radius); }
.brand-mark img { border-radius: 0 !important; }
.contact-card, .planning-note, .estimate-item, .estimate-summary, .calc-toolbar { border-radius: var(--tfj-radius); }
.buyer-hero { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 78px); align-items: center; padding-block: clamp(34px, 6vw, 87px); }
.buyer-hero > * { min-width: 0; }
.buyer-hero h1, .buyer-title { font-size: clamp(39px, 5.1vw, 75px); font-weight: 720; letter-spacing: -.052em; line-height: 1.035; margin: 12px 0 18px; text-wrap: balance; }
.buyer-hero h1 span { color: var(--tfj-blue); }
.buyer-hero p:not(.eyebrow), .buyer-lead { color: var(--tfj-muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; max-width: 58ch; }
.buyer-hero .eyebrow { margin: 0; }
.buyer-hero figure { margin: 0; }
.buyer-hero figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.buyer-hero figcaption { margin-top: 10px; font-size: 13px; color: var(--tfj-muted); display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.buyer-hero figcaption a { color: #0746ae; text-decoration: underline; text-underline-offset: 3px; }
.buyer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 13px; margin-top: 24px; }
.buyer-section { padding-block: clamp(43px, 6.1vw, 85px); }
.buyer-section + .buyer-section { border-top: 1px solid var(--tfj-line); }
.buyer-section h2, .buyer-cta h2 { font-size: clamp(29px, 3.6vw, 50px); font-weight: 700; letter-spacing: -.045em; margin: 0 0 14px; text-wrap: balance; }
.buyer-section > p { max-width: 65ch; }
.buyer-section .eyebrow { margin-bottom: 11px; }
.buyer-section .section-head { align-items: end; margin-bottom: 24px; }
.buyer-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 26px; }
.buyer-card { display: block; padding: clamp(17px, 2.5vw, 28px); border-radius: var(--tfj-radius); border: 1px solid var(--tfj-line); background: #fff; }
a.buyer-card:hover { background: var(--tfj-wash); border-color: #a8c5f3; }
.buyer-card h3 { font-size: 20px; font-weight: 650; margin: 0 0 9px; }
.buyer-card p { font-size: 15px; margin: 0; }
.buyer-card span { display: inline-block; margin-top: 14px; color: #0746ae; font-size: 14px; font-weight: 700; }
.buyer-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 16px; }
.buyer-split { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: start; gap: clamp(22px, 5vw, 66px); }
.buyer-split > * { min-width: 0; }
.buyer-split figure { margin: 0; }
.buyer-split figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.buyer-cta { margin-top: 10px; background: var(--tfj-deep); color: white; padding: clamp(35px, 6vw, 70px) 0; }
.buyer-cta .wrap { display: flex; justify-content: space-between; gap: 16px 36px; align-items: center; }
.buyer-cta p { color: #dce8fc; margin: 0; }
.buyer-cta .button { background: white; color: #0746ae; border-color: #fff; flex: 0 0 auto; }
.buyer-cta .button:hover { background: #eaf2ff; }
.buyer-jumps { display: flex; flex-wrap: wrap; gap: 7px; background: var(--tfj-wash); border-radius: 14px; padding: 8px; }
.buyer-jumps a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 9px; color: #12335f; font-size: 14px; font-weight: 650; }
.buyer-jumps a:hover { background: #e1ecff; color: #0746ae; }
.buyer-timeline { display: grid; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--tfj-line); }
.buyer-timeline li { display: grid; grid-template-columns: minmax(110px,.6fr) minmax(0,1.4fr); gap: 8px 20px; padding: 16px 0; border-bottom: 1px solid var(--tfj-line); }
.buyer-timeline strong { color: #0746ae; font-size: 14px; }
.buyer-timeline h3 { font-size: 17px; font-weight: 700; margin: 0 0 3px; }
.buyer-timeline p { font-size: 14px; margin: 0; }
.buyer-note { border-radius: 14px; padding: 15px 18px; background: var(--tfj-wash); margin: 18px 0 0; font-size: 14px; }
.buyer-faq details { border-bottom: 1px solid var(--tfj-line); padding: 10px 0; }
.buyer-faq summary { min-height: 44px; padding: 9px 2px; cursor: pointer; font-weight: 650; }
.buyer-faq p { margin: 0 0 12px; }
.buyer-list { padding-left: 19px; margin: 17px 0; color: var(--tfj-muted); }
.buyer-list li { margin-block: 7px; }
.work-intro { padding-block: 36px 24px; }
.tfj-blog-link { display: inline-block; margin-top: 16px; }
@media (max-width: 1030px) {
  .tfj-header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 9px; }
  .tfj-header-quote { grid-column: 2; grid-row: 1; }
  .tfj-menu-toggle { grid-column: 3; grid-row: 1; }
  .tfj-header:not(.is-enhanced) .tfj-menu { grid-column: 1/-1; flex-wrap: wrap; padding-bottom: 8px; }
  .tfj-header.is-enhanced .tfj-menu-toggle { display: grid; position: relative; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: white; color: var(--tfj-ink); border: 1px solid var(--tfj-line); }
  .tfj-menu-toggle span { position: absolute; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .22s ease, opacity .15s ease; }
  .tfj-menu-toggle span:first-child { transform: translateY(-5px); }
  .tfj-menu-toggle span:last-child { transform: translateY(5px); }
  .is-open .tfj-menu-toggle span:first-child { transform: rotate(45deg); }
  .is-open .tfj-menu-toggle span:nth-child(2) { opacity: 0; }
  .is-open .tfj-menu-toggle span:last-child { transform: rotate(-45deg); }
  .tfj-header.is-enhanced .tfj-menu { position: absolute; right: 0; top: calc(100% + 7px); width: min(100%,360px); display: grid; gap: 3px; max-height: calc(100dvh - var(--tfj-header-height) - 22px); overflow: auto; overscroll-behavior: contain; background: white; padding: 9px; border-radius: 15px; border: 1px solid var(--tfj-line); box-shadow: 0 16px 36px #0b203527; opacity: 0; visibility: hidden; transform: translateY(-9px) scale(.985); transform-origin: top right; pointer-events: none; transition: opacity .2s ease, transform .24s ease, visibility 0s linear .24s; }
  .tfj-header.is-open .tfj-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
  .tfj-menu a { white-space: normal; }
}
@media (max-width: 730px) {
  :root { --tfj-header-height: 65px; }
  .wrap { width: calc(100% - 32px); }
  .buyer-hero, .buyer-split { grid-template-columns: 1fr; }
  .buyer-hero { gap: 24px; }
  .buyer-grid { grid-template-columns: 1fr; gap: 10px; }
  .buyer-cta .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 365px) {
  .tfj-header .tfj-header-quote { padding-inline: 8px; font-size: 12px; }
  .tfj-brand { gap: 5px; }
  .tfj-brand span { font-size: 9px; }
  .tfj-brand img { width: 37px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tfj-header .tfj-menu, .tfj-menu-toggle span { transition: none !important; }
}
.buyer-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.buyer-cta-actions .text-link { color: #dce8fc; }
@media (max-width: 730px) { .buyer-cta-actions { gap: 10px 13px; } }
.requirement-page .footer { margin-top: 32px; }
@media (max-width: 380px) { .buyer-jumps a { padding-inline: 9px; font-size: 13px; } }
@media (max-width: 1030px) {
  .tfj-header:not(.can-animate) .tfj-menu { transition: none; }
}
@media (max-width: 730px) {
  .tfj-brand span { font-size: 10px; }
  .buyer-hero h1 { font-size: clamp(34px, 9.2vw, 58px); }
  .buyer-hero .buyer-actions { gap: 8px; }
  .buyer-hero .button { padding-inline: 14px; }
}
@media (max-width: 365px) {
  .tfj-brand span { font-size: 8px; }
  .tfj-brand img { width: 34px; }
}

/* Shared layouts for Home, Services and Blog. */
:root { --tfj-radius: 8px; }
.tfj-header .button, .button, .calc-secondary, .copy-estimate, .share-article { border-radius: 6px; }
.tfj-menu a, .tfj-header.is-enhanced .tfj-menu-toggle { border-radius: 6px; }
.tfj-header.is-enhanced .tfj-menu { border-radius: 8px; }
.buyer-hero figure img, .buyer-card, .buyer-note, .buyer-jumps { border-radius: var(--tfj-radius); }
main img:not(.client-logo), .journal-placeholder { border-radius: var(--tfj-radius); }
.requirement-panel, .quote-exhibition { border-radius: var(--tfj-radius); }
.front-hero, .editorial-intro, .editorial-section { padding-block: clamp(38px, 6.1vw, 88px); }
.front-hero { display: grid; grid-template-columns: minmax(0,.89fr) minmax(0,1.11fr); gap: clamp(30px,5vw,78px); align-items: center; }
.front-intro .eyebrow, .editorial-intro .eyebrow { margin-bottom: 14px; }
.front-intro h1, .editorial-intro h1 { font-size: clamp(39px,4.8vw,68px); line-height: 1.06; font-weight: 720; letter-spacing: -.052em; margin: 0 0 18px; text-wrap: balance; }
.front-intro h1 span { display: block; text-wrap: pretty; }
.front-intro h1 #heroAccent { color: var(--tfj-blue); }
.front-intro > p:not(.eyebrow), .editorial-intro > p:not(.eyebrow) { font-size: clamp(16px,1.65vw,20px); max-width: 53ch; margin: 0; }
.front-photo { margin: 0; min-width: 0; }
.front-photo img, .editorial-card img, .service-feature img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.front-photo figcaption { display: flex; gap: 4px 14px; justify-content: space-between; flex-wrap: wrap; margin-top: 10px; color: var(--tfj-muted); font-size: 13px; }
.front-photo figcaption a { color: var(--tfj-blue); }
.editorial-section { border-top: 1px solid var(--tfj-line); }
.editorial-section h2 { font-size: clamp(27px,3.3vw,46px); font-weight: 690; letter-spacing: -.04em; margin: 0 0 14px; }
.editorial-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 22px; flex-wrap: wrap; margin-bottom: 22px; }
.editorial-heading h2 { margin: 0; }
.section-link { font-size: 14px; display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; color: #0746ae; font-weight: 700; }
.section-link:hover, .front-photo figcaption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.editorial-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(15px,2.6vw,36px); }
.editorial-card { display: block; min-width: 0; }
.editorial-card h3 { font-size: clamp(19px,2vw,24px); font-weight: 680; line-height: 1.25; margin: 15px 0 7px; }
.editorial-card p { font-size: 15px; margin: 0; }
.editorial-card .eyebrow { font-size: 11px; margin-top: 14px; }
.editorial-card .eyebrow + h3 { margin-top: 5px; }
.front-band { background: var(--tfj-wash); }
.front-band-inner { display: grid; grid-template-columns: 1fr .86fr; gap: clamp(20px,6vw,90px); align-items: start; }
.front-band-inner p { max-width: 48ch; margin-bottom: 0; }
.front-list { border-top: 1px solid #c9d7e9; }
.front-list a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; gap: 12px; border-bottom: 1px solid #c9d7e9; font-size: 15px; font-weight: 680; }
.front-list a span { color: var(--tfj-blue); }
.front-page #brands .section-head { margin-bottom: 24px; }
.front-page #brands .section-head h2 { margin: 0; }
.front-page .brand-grid { border: 0; gap: 10px; }
.front-page .brand-tile { border: 1px solid var(--tfj-line); border-radius: var(--tfj-radius); }
.services-overview .editorial-intro { padding-bottom: clamp(32px,4.2vw,58px); }
.services-overview .service-list { padding-top: clamp(28px,4.5vw,62px); }
.service-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(22px,5vw,70px); row-gap: clamp(30px,5.3vw,70px); }
.service-feature img { aspect-ratio: 4/3; }
.service-feature:nth-child(4) img, .blog-guides .editorial-card:nth-child(3) img { object-position: center 55%; }
.service-feature h2 { font-size: clamp(24px,2.5vw,34px); margin: 17px 0 8px; }
.service-feature p { margin: 0 0 5px; max-width: 52ch; }
.service-feature .section-link { margin-right: 16px; }
.blog-overview .journal-grid { margin-top: 20px; }
.blog-overview .journal-card > a > img, .blog-overview .journal-placeholder { aspect-ratio: 4/3; }
.blog-overview .journal-card { border-radius: var(--tfj-radius); }
@media (max-width: 730px) {
  .front-hero, .front-band-inner { grid-template-columns: 1fr; }
  .front-hero { gap: 23px; }
  .front-intro h1, .editorial-intro h1 { font-size: clamp(38px,9.3vw,54px); }
  .editorial-grid, .service-list { grid-template-columns: 1fr; gap: 29px; }
  .front-hero .button { padding-inline: 14px; }
  .front-page .brand-tile { min-height: 105px; }
}

/* Homepage sample stall and Tools. */
.hero-stall-link { display: block; position: relative; isolation: isolate; overflow: hidden; border-radius: var(--tfj-radius); background: #c6cbd3; aspect-ratio: 1; }
.front-photo.hero-stall img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-stall-tooltip { position: absolute; left: 50%; bottom: 22px; display: inline-flex; gap: 10px; align-items: center; max-width: calc(100% - 28px); padding: 9px 13px; border-radius: 6px; white-space: nowrap; background: #101c30; color: #fff; font-size: 13px; font-weight: 680; opacity: 0; transform: translate(-50%,8px) scale(.98); pointer-events: none; transition: opacity .2s ease, transform .25s cubic-bezier(.2,.7,.25,1); }
.hero-stall-tooltip span { color: #91bcff; }
.hero-stall-link:hover .hero-stall-tooltip, .hero-stall-link:focus-visible .hero-stall-tooltip { opacity: 1; transform: translate(-50%,0); }
.tools-page .editorial-intro + .tools-library { padding-top: 0; padding-bottom: 0; }
.tool-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--tfj-line); border-radius: var(--tfj-radius); background: #fff; }
.tools-page .tool-card > img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; }
.tool-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(18px, 2.6vw, 32px); }
.tool-card h2, .tool-card h3 { margin: 0 0 12px; font-weight: 700; }
.tool-card h2 { font-size: clamp(28px, 3.6vw, 47px); letter-spacing: -.04em; }
.tool-card h3 { font-size: clamp(21px, 2.1vw, 26px); letter-spacing: -.02em; }
.tool-card p { max-width: 55ch; margin: 0 0 14px; }
.tool-card .button { margin-top: auto; }
.tools-feature { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); }
.tools-page .tools-feature > img { align-self: stretch; height: 100%; aspect-ratio: 4/3; object-fit: contain; background: #b1b8c1; }
.tools-feature .tool-card-copy { justify-content: center; }
.tools-feature .button { margin-top: 7px; }
.tools-calculators { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(13px, 2vw, 24px); }
.blog-author-access { padding-bottom: 26px; }
@media (max-width: 730px) {
  .tools-feature, .tools-calculators { grid-template-columns: minmax(0,1fr); }
  .tools-page .tools-feature > img { height: auto; max-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stall-tooltip { transition: none; }
}
