/*
Theme Name: TownFront
Theme URI: https://www.townfront.com
Author: TownFront
Description: TownFront corporate website and reusable municipal WordPress platform. The modern front door for your community.
Version: 3.94.6
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: townfront
*/

/* ==========================================================================
   TownFront Design Tokens
   ========================================================================== */
/* Montserrat, self-hosted. Variable, 400 to 800, so one file covers every
   weight the site uses. font-display: swap keeps text visible while it loads;
   the preload in the head keeps that window short. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Public Sans, the text face, self-hosted for the same reasons Montserrat is.
   The upright files are the variable font clamped to the two weights the brand
   uses; the italic is a static 400, which is all Google serves for it. */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/publicsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/publicsans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/publicsans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/publicsans-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --tf-navy: #0F2D4A;
  --tf-navy-deep: #0A2138;
  --tf-navy-ink: #071829;
  --tf-green: #5C7F56; /* was #62875B (4.09:1 on white); 4.54:1 now, so small green text and white-on-green buttons clear AA */
  --tf-green-dark: #4F6F49;
  --tf-green-deep: #435E3E;
  --tf-green-tint: #EFF3EE;
  --tf-green-light: #A9C0A4; /* Sage Light: the green that clears AA on navy, where standard sage does not (3.1:1) */
  --tf-blue: #67778D; /* was #6B7C93 (4.26:1); 4.57:1 now for help text, captions and card dates */
  --tf-gray: #D7D8DF;
  --tf-gray-soft: #E8EAEF;
  --tf-white: #F8F9FA;
  --tf-panel: #F4F6F9;
  --tf-text: #2A3743;
  --tf-text-soft: #47535F;
  /* Two faces, two jobs: Montserrat speaks, Public Sans explains.
     --tf-font stays as an alias of the display face so every rule written
     against it keeps working. */
  --tf-font-display: "Montserrat", Arial, Helvetica, sans-serif;
  --tf-font-text: "Public Sans", Arial, Helvetica, sans-serif;
  --tf-font: var(--tf-font-display);
  --tf-radius: 14px;
  --tf-radius-sm: 9px;
  --tf-maxw: 1160px;
  --tf-section: clamp(4rem, 9vw, 6.75rem);
  --tf-shadow-xs: 0 1px 2px rgba(15, 45, 74, 0.05);
  --tf-shadow-sm: 0 1px 2px rgba(15, 45, 74, 0.05), 0 6px 18px -8px rgba(15, 45, 74, 0.10);
  --tf-shadow-md: 0 2px 4px rgba(15, 45, 74, 0.05), 0 16px 36px -16px rgba(15, 45, 74, 0.18);
  --tf-shadow-lg: 0 4px 10px rgba(15, 45, 74, 0.06), 0 32px 64px -28px rgba(15, 45, 74, 0.28);
  --tf-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Floating buttons, shared across TownFront sites.
     One style for everything that sits fixed over the page: the chat launcher,
     the accessibility button, a back-to-top. Each one reads these rather than
     carrying its own size and colour, so the set moves together.
     --tf-float-clearance is the room a page must leave beneath its last line so
     a bottom-corner button does not cover it. It is derived, not typed, so
     resizing the button moves the footer with it: the accessibility button
     covering the Privacy Policy link is what this replaces. */
  --tf-float-size: 56px;
  --tf-float-icon: 24px;
  --tf-float-offset: 20px;
  --tf-float-gap: 12px;
  --tf-float-bg: #435E3E;
  --tf-float-bg-hover: #354B31;
  --tf-float-fg: #FFFFFF;
  --tf-float-border: 2px solid #FFFFFF;
  --tf-float-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  --tf-float-clearance: calc(var(--tf-float-offset) + var(--tf-float-size) + var(--tf-float-gap));
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
/* The fixed header is 78px; focus and anchors land below it, not behind it.
   --tf-admin-bar is mirrored onto the root by the nav script, because this
   rule sits on <html> and WordPress puts .admin-bar on <body>. Without the
   script it resolves to 0, which is the signed-out case and today's
   behaviour. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(6rem + var(--tf-admin-bar, 0px)); }
/* Nothing on this site is meant to be scrolled sideways. A stray overhang
   should be cut off rather than turn the page into a horizontal scroller on a
   phone. Deliberately clip and not hidden: overflow:hidden would make the root
   a scroll container and stop the header from sticking. */
/* Only on the root. Overflow set on the root element propagates to the
   viewport, which is what stops the sideways scroll; setting it on body as
   well makes body a clipping box, and a clipping box cuts off fixed-position
   children, which is how the accessibility button vanished on a phone. */
html {
  overflow-x: clip;
  /* The rubber-band gutters above and below the page are painted from the root,
     not from body, so overscrolling past the footer showed white against navy.
     A two-stop gradient fixed to the viewport gives each end its own color:
     white above the header, the footer's own navy below it. Body still paints
     white over the document itself, so nothing changes while scrolling. */
  background-color: #FFFFFF;
  background-image: linear-gradient(to bottom, #FFFFFF 0 50%, var(--tf-navy-ink) 50% 100%);
  background-attachment: fixed;
}
body {
  margin: 0;
  font-family: var(--tf-font-text);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--tf-text);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--tf-green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tf-navy); }

h1, h2, h3, h4, h5, h6 {
  color: var(--tf-navy);
  font-weight: 700;
  line-height: 1.16;
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
  letter-spacing: -0.022em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.55rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: clamp(1.14rem, 2vw, 1.32rem); font-weight: 650; letter-spacing: -0.012em; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.35em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }
hr { border: 0; border-top: 1px solid var(--tf-gray-soft); margin: 2.75rem 0; }
blockquote {
  margin: 1.6rem 0; padding: 0.6rem 0 0.6rem 1.4rem;
  border-left: 3px solid var(--tf-green); color: var(--tf-navy); font-weight: 500;
}

/* Which face goes where.

   Public Sans explains and Montserrat speaks. Body copy, paragraphs, list
   items, table cells, form fields, captions and the footer inherit the text
   face from body, so nothing has to be said about them. Only the display
   roles are named here: headings, navigation, buttons, eyebrow labels, table
   headers, the logo's own text and the chrome of the product demo, which is
   drawn as a TownFront-built site and reads as one. */
h1, h2, h3, h4, h5, h6,
th,
button,
input[type="submit"],
input[type="button"],
.tf-btn,
.wp-block-button__link,
.tf-nav,
.tf-kicker,
.tf-out__eyebrow,
.tf-photo-stack__eyebrow,
.tf-demo,
.tf-mock,
.tf-ui {
  font-family: var(--tf-font-display);
}
table { border-collapse: collapse; width: 100%; margin: 0 0 1.5rem; }
th, td { border: 1px solid var(--tf-gray-soft); padding: 0.65rem 0.85rem; text-align: left; }
th { background: var(--tf-panel); color: var(--tf-navy); font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--tf-green);
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--tf-navy); color: #fff; padding: 0.75rem 1.25rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

.tf-container { max-width: var(--tf-maxw); margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 620px) { .tf-container { padding: 0 1.7rem; } }
/* longhand only: .tf-section is often combined with .tf-container on one element */
.tf-section { padding-top: var(--tf-section); padding-bottom: var(--tf-section); }
.tf-section--panel { background: linear-gradient(180deg, var(--tf-panel) 0%, #FBFCFD 100%); }
.tf-section--tint { background: linear-gradient(180deg, var(--tf-green-tint) 0%, #F7FAF6 100%); }
.tf-section--navy {
  background:
    radial-gradient(52rem 30rem at 84% -10%, rgba(98, 135, 91, 0.16), transparent 60%),
    radial-gradient(40rem 26rem at 8% 110%, rgba(107, 124, 147, 0.14), transparent 55%),
    linear-gradient(160deg, var(--tf-navy) 0%, var(--tf-navy-deep) 100%);
}
.tf-section--navy h2, .tf-section--navy h3, .tf-section--navy p { color: #fff; }

.tf-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--tf-green-dark);
  margin-bottom: 1.1rem;
}
.tf-kicker::before {
  content: ""; width: 1.6rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--tf-green), rgba(98,135,91,0.35));
}
.tf-center .tf-kicker::after {
  content: ""; width: 1.6rem; height: 2px; border-radius: 2px;
  background: linear-gradient(270deg, var(--tf-green), rgba(98,135,91,0.35));
}
.tf-section--navy .tf-kicker { color: #A9C8A2; }
.tf-lead { font-size: 1.17rem; line-height: 1.7; color: var(--tf-text-soft); max-width: 46em; }
.tf-center { text-align: center; }
.tf-center .tf-lead { margin-left: auto; margin-right: auto; }
.tf-measure { max-width: 46em; }
.tf-section-head { margin-bottom: 0.75rem; }
/* A centered head needs its measure block centered too, or the text centers
   inside a box that is still hard left. */
.tf-center .tf-measure { margin-left: auto; margin-right: auto; }

/* Facts band, directly under the hero.

   Four attempts at this section were all the same shape, a heading over a
   paragraph, restyled: centered, then pills, then a hairline row, then two
   columns. The problem was the content, not the setting. It restated what the
   hero had already said. This says four specific things instead, in a band
   quiet enough to read as a footnote to the hero rather than as a section
   competing with it. */
.tf-facts { border-bottom: 1px solid var(--tf-gray-soft); }
.tf-facts__row {
  list-style: none; margin: 0; padding: clamp(2rem, 4vw, 2.9rem) 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.tf-facts__row li {
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.4rem;
  border-left: 1px solid var(--tf-gray-soft);
}
/* A plain stroke icon above each fact: no tile, no fill layer. The band is
   four short statements, and a row of tinted chips made them look like
   controls rather than facts. */
.tf-facts__row li > * { padding-inline: clamp(1rem, 2vw, 1.75rem); }
.tf-facts__ico {
  display: block; margin-bottom: 0.7rem;
  /* Recessive on purpose: the icon is there to give each fact a shape to catch
     the eye, not to be read. In navy it had the same weight as the title it
     was sitting above and the two competed. */
  color: var(--tf-green); opacity: 0.62;
}
/* Stroke thins as the icon grows so the drawing keeps the same visual weight
   at 56px that it had at 46px. Scaling both together is what makes a large
   line icon shout. */
.tf-facts__ico svg { width: 56px; height: 56px; stroke-width: 0.8; }
.tf-facts__row li:first-child { border-left: 0; }
.tf-facts__row li:first-child > * { padding-left: 0; }
.tf-facts__row li:last-child > * { padding-right: 0; }
.tf-facts__row b {
  font-size: 0.97rem; font-weight: 700; color: var(--tf-navy); line-height: 1.3;
}
.tf-facts__d {
  font-size: 0.9rem; line-height: 1.55; color: var(--tf-text-soft);
}
/* Two by two, with the rules kept. Desktop reads as four cells divided by
   hairlines; halving the columns keeps that, where stacking threw it away and
   swiping replaced it with something else entirely. The rules cross in the
   middle, so the four facts stay four facts. */
@media (max-width: 860px) {
  .tf-facts__row {
    grid-template-columns: 1fr 1fr; gap: 0;
    padding: clamp(1.75rem, 4vw, 2.4rem) 0;
  }
  .tf-facts__row li { border-left: 0; padding: 1.35rem 0; }
  .tf-facts__row li > * { padding-inline: 1.15rem; }
  .tf-facts__row li:nth-child(even) { border-left: 1px solid var(--tf-gray-soft); }
  .tf-facts__row li:nth-child(odd) > * { padding-left: 0; }
  .tf-facts__row li:nth-child(even) > * { padding-right: 0; }
  .tf-facts__row li:nth-child(-n+2) { padding-top: 0; }
  .tf-facts__row li:nth-child(n+3) { border-top: 1px solid var(--tf-gray-soft); }
  .tf-facts__row li:nth-last-child(-n+2) { padding-bottom: 0; }
}
@media (max-width: 520px) {
  .tf-facts__row li { padding: 1.15rem 0; gap: 0.28rem; }
  .tf-facts__row li > * { padding-inline: 0.9rem; }
  .tf-facts__row li:nth-child(odd) > * { padding-left: 0; }
  .tf-facts__row li:nth-child(even) > * { padding-right: 0; }
  .tf-facts__ico { margin-bottom: 0.5rem; }
  .tf-facts__ico svg { width: 44px; height: 44px; stroke-width: 0.9; }
  .tf-facts__row b { font-size: 0.95rem; line-height: 1.3; }
  .tf-facts__d { font-size: 0.86rem; line-height: 1.5; }
}



/* ==========================================================================
   Duotone icons — navy stroke over a translucent brand-green fill layer
   ========================================================================== */
svg .duo {
  fill: var(--tf-ico-duo, rgba(98, 135, 91, 0.32));
  stroke: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.tf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--tf-font);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  padding: 1.02rem 1.65rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--tf-ease), color .18s var(--tf-ease),
              border-color .18s var(--tf-ease), box-shadow .18s var(--tf-ease),
              transform .18s var(--tf-ease);
}
.tf-btn:hover { transform: translateY(-1px); }
.tf-btn:active { transform: translateY(0); }
.tf-btn--primary {
  background: var(--tf-navy);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(15,45,74,0.5);
}
.tf-btn--primary:hover { color: #fff; background: var(--tf-navy-deep); }
.tf-btn--green {
  background: var(--tf-green-dark);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(79,111,73,0.55);
}
.tf-btn--green:hover { color: #fff; background: var(--tf-green-deep); }
.tf-btn--outline { background: rgba(255,255,255,0.6); color: var(--tf-navy); border-color: rgba(15,45,74,0.28); }
.tf-btn--outline:hover { border-color: var(--tf-navy); background: #fff; color: var(--tf-navy); }
.tf-btn--reverse { background: #fff; color: var(--tf-navy); box-shadow: 0 10px 24px -12px rgba(0,0,0,0.4); }
.tf-btn--reverse:hover { background: var(--tf-white); color: var(--tf-navy); }
.tf-btn .tf-btn__arrow { transition: transform .18s var(--tf-ease); }
.tf-btn:hover .tf-btn__arrow { transform: translateX(3px); }
.tf-btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.9rem; }

/* ==========================================================================
   Header
   ========================================================================== */
/* Signed in, WordPress paints its own bar above the page and fixes it to the
   top, so a sticky header pinned at 0 slides underneath it. The bar is 32px
   wide, 46px between 601 and 782, and below 601 it stops being fixed and
   scrolls away with the page, which is why the offset goes back to zero
   there rather than leaving a gap. Nothing here applies to a signed-out
   visitor: the variable is 0 unless WordPress has put .admin-bar on body. */
body.admin-bar { --tf-admin-bar: 32px; }
@media screen and (max-width: 782px) { body.admin-bar { --tf-admin-bar: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar { --tf-admin-bar: 0px; } }

.tf-header {
  background: #fff;
  border-bottom: 1px solid var(--tf-gray-soft);
  position: sticky; top: var(--tf-admin-bar, 0px); z-index: 100;
  transition: box-shadow .25s var(--tf-ease);
}
.tf-header.is-scrolled {
  box-shadow: 0 10px 28px -22px rgba(15, 45, 74, 0.35);
}
@media (max-width: 1180px) {
  .tf-header {
    transition: box-shadow .25s var(--tf-ease), transform .3s var(--tf-ease);
  }
  .tf-header.is-hidden { transform: translateY(-100%); }
}
.tf-header__inner {
  /* margin-left:auto on .tf-nav already pushes the menu right — this gap is the
     guaranteed minimum breathing room between the logo and the first nav link,
     so the menu can never crowd the brand. It is a hard minimum, not a target:
     raising it past the row's actual slack pushes the menu into overflow rather
     than spreading it further, so keep it in step with the sizing bands below. */
  display: flex; align-items: center; gap: clamp(2.1rem, 3.4vw, 4rem);
  min-height: 96px;
  /* Containing block for the dropdown panels, which center on the page rather
     than hanging off whichever item opened them. */
  position: relative;
}
.tf-brand {
  display: inline-flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
/* One drawn file, not a mark beside live text: the divider, the tracking on the
   tagline and the way the roof meets the wordmark's cap height are part of the
   artwork and cannot be re-created reliably in CSS at every width.
   320px is the primary lockup's documented minimum, measured on the width,
   because that is the dimension the tagline's legibility depends on. */
.tf-brand picture { display: block; }
.tf-brand__logo { display: block; width: 320px; height: auto; aspect-ratio: 8209.45 / 1264.75; }
.tf-nav { margin-left: auto; min-width: 0; }
.tf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: clamp(0.3rem, 1.1vw, 0.95rem); }
.tf-nav li { margin: 0; }
.tf-nav a {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-size: 0.94rem; font-weight: 500;
  color: var(--tf-text-soft); text-decoration: none;
  padding: 0.5rem 0.3rem;
}
.tf-nav a::after {
  content: ""; position: absolute; left: 0.3rem; right: 0.3rem; bottom: 0.14rem;
  height: 2px; border-radius: 2px; background: var(--tf-green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--tf-ease);
}
.tf-nav a:hover { color: var(--tf-navy); }
.tf-nav a:hover::after { transform: scaleX(1); }
.tf-nav .current-menu-item > a,
.tf-nav .current_page_item > a,
.tf-nav .current-menu-ancestor > a { color: var(--tf-navy); font-weight: 600; }
/* The page you are on is marked in a lighter green than the one hover draws.
   Both were --tf-green, so arriving at Features and hovering Resources gave
   two identical underlines and no way to tell which was the page and which was
   the pointer. State sits back; the pointer stays bright. */
.tf-nav .current-menu-item > a::after,
.tf-nav .current_page_item > a::after,
.tf-nav .current-menu-ancestor > a::after {
  transform: scaleX(1);
  background: #A9C8A2;
}
.tf-nav .current-menu-item > a:hover::after,
.tf-nav .current_page_item > a:hover::after,
.tf-nav .current-menu-ancestor > a:hover::after { background: var(--tf-green); }
.tf-nav .menu-cta > a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--tf-navy);
  color: #fff; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em;
  padding: 0.74rem 1.35rem; margin-left: 1.1rem; border-radius: 8px;
  box-shadow: 0 6px 16px -8px rgba(15, 45, 74, 0.45);
  transition: background-color .18s var(--tf-ease), box-shadow .18s var(--tf-ease);
}
.tf-nav .menu-cta > a::after { display: none; }

/* Submenus. The chevron is a real button injected by the script, so a
   keyboard or touch user can open a panel without depending on hover, and
   the parent link keeps working as a link. */
.tf-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.tf-nav .menu-item-has-children { position: relative; }
.tf-subtoggle {
  border: 0; background: none; padding: 0.4rem; margin: 0;
  cursor: pointer; color: var(--tf-blue); line-height: 0;
  display: inline-flex; align-items: center;
}
.tf-subtoggle::before {
  content: ""; box-sizing: border-box;
  width: 0.42rem; height: 0.42rem;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-0.11rem) rotate(45deg);
  transition: transform .2s var(--tf-ease);
}
.tf-subtoggle:hover { color: var(--tf-navy); }
.tf-subtoggle:focus-visible { outline: 3px solid var(--tf-green); outline-offset: 2px; border-radius: 5px; }
.tf-nav .menu-item-has-children.is-open > .tf-subtoggle::before { transform: translateY(0.06rem) rotate(-135deg); }

/* Each entry is an icon, a name and a line saying what it does, so the panel
   is worth opening rather than being a list of names with nothing to choose
   between them. Scoped under .tf-nav throughout: a bare .tf-subitem loses
   to .tf-nav a, which would leave the icon and the text stacked. */
.tf-nav .tf-subitem {
  position: relative;
  display: flex; align-items: flex-start; gap: 0.7rem;
  /* Rows are separated by space rather than by rules: a divider between every
     entry turned a short menu into a table. */
  padding: 0.8rem 0.7rem;
  border-radius: 10px;
  text-decoration: none; color: inherit;
  white-space: normal;
}
.tf-nav .tf-subitem::after { display: none; }
/* The hover fill wipes in from the left rather than appearing whole. It reads
   as the row being picked up, and at 180ms it is still gone before the pointer
   reaches the next one -- long enough to notice while scanning nine items,
   short enough not to lag behind the pointer.
   A scaled pseudo-element rather than a background-position or width
   animation: transform is the only one of the three the compositor can do
   without laying the row out again on every frame. */
.tf-nav .tf-subitem::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; background: var(--tf-green-tint);
  /* Same duration and same ease as the underline on the top-level links, so
     the two wipes read as one gesture: they start fast and settle rather than
     stopping dead, and moving between a parent and its submenu does not change
     tempo halfway through. */
  transform: scaleX(0); transform-origin: left center;
  transition: transform .22s var(--tf-ease);
}
/* The children ride above the wipe without a negative z-index, which would
   have put it behind the panel's own background instead of behind the row. */
.tf-nav .tf-subitem > * { position: relative; }
.tf-nav .tf-subitem:hover::before,
.tf-nav .tf-subitem:focus-visible::before { transform: scaleX(1); }
/* The page you are on already sits at #DFEADC, and hover is the lighter of
   the two states now, so the wipe is drawn in the row's own color: it runs
   but changes nothing, leaving the current row where it is under the pointer
   instead of lightening as it crosses. */
.tf-nav .tf-subitem[aria-current="page"]::before { background: #DFEADC; }
@media (prefers-reduced-motion: reduce) {
  .tf-nav .tf-subitem::before { transition: none !important; }
}
.tf-nav .tf-subitem__ico {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #FFFFFF, var(--tf-green-tint));
  border: 1px solid rgba(98, 135, 91, 0.4);
  color: var(--tf-navy);
  transition: background .16s var(--tf-ease), border-color .16s var(--tf-ease), color .16s var(--tf-ease);
}
.tf-nav .tf-subitem__ico svg { width: 18px; height: 18px; }
.tf-nav .tf-subitem__body { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.tf-nav .tf-subitem__body b {
  font-size: 0.87rem; font-weight: 600; color: var(--tf-navy); line-height: 1.3;
  white-space: normal;
}
.tf-nav .tf-subitem__body span {
  font-size: 0.76rem; line-height: 1.4; color: var(--tf-text-soft);
}
/* Fill is drawn by the wipe above; the row itself stays transparent. */
/* Hover steps the icon one notch up from rest: the same pale green pair the
   panel already uses, with a deep green figure at 5.6:1. It is a lift, not an
   announcement -- the pointer passes over nine of these while scanning, and
   the strongest fill in the panel is reserved for the page you are on. */
.tf-nav .tf-subitem:hover .tf-subitem__ico {
  background: linear-gradient(160deg, #E4EEE1, #D2E2CE);
  border-color: var(--tf-green);
  color: var(--tf-green-deep);
  --tf-ico-duo: rgba(67, 94, 62, 0.18);
}
/* The page you are on, marked on its icon as well as its row, and now the
   darkest square in the panel: filled deep from #719A69 to --tf-green with a
   white figure. White on the lightest point is 3.2:1, clearing the 3:1 a
   graphic needs, and the figure reads at 7.2:1 over the rest of the ramp. */
.tf-nav .tf-subitem[aria-current="page"] { background: #DFEADC; }
.tf-nav .tf-subitem[aria-current="page"] .tf-subitem__ico {
  background: linear-gradient(160deg, #719A69, var(--tf-green));
  border-color: var(--tf-green-dark);
  color: #fff; --tf-ico-duo: rgba(255, 255, 255, 0.28);
}
/* Hover no longer wins on the page you are already on: hover is now the
   lighter of the two, so letting it through would fade the icon on the way
   past. The current page holds its deep fill under the pointer. */
.tf-nav .tf-subitem[aria-current="page"]:hover .tf-subitem__ico {
  background: linear-gradient(160deg, #719A69, var(--tf-green));
  border-color: var(--tf-green-dark);
  color: #fff; --tf-ico-duo: rgba(255, 255, 255, 0.28);
}

@media (min-width: 1181px) {
  /* The parent item stretches to the full height of the header row, so the
     pointer stays inside it all the way down from the link to the header's
     bottom edge, which is exactly where the panel starts. Left at its natural
     height there was a dead band between the two: move slowly and the menu
     never opened, move quickly and it flickered. */
  .tf-nav { align-self: stretch; }
  .tf-nav > ul { height: 100%; }
  /* No position of its own, so the panel below resolves against the header
     row and can sit centered on the page instead of under its own item. */
  .tf-nav .menu-item-has-children { display: flex; align-items: center; position: static; align-self: stretch; }
  .tf-nav .sub-menu {
    /* Flush against the header: no gap to cross, and square top corners so the
       panel reads as hanging off the bar rather than floating under it. */
    /* A band across the window, not a card under one menu item. The header is
       sticky, so it is the containing block: left and right of 0 reach the
       edges of the page. */
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    /* The frame goes edge to edge; the words inside it do not. The side
       padding is whatever it takes to bring the content box onto the site's
       grid -- half of what is left after the container's width, and never less
       than the container's own gutter on a narrow window. */
    padding-top: 1.15rem;
    padding-bottom: 1.4rem;
    padding-left: max(1.5rem, calc((100% - (var(--tf-maxw) - 3rem)) / 2));
    padding-right: max(1.5rem, calc((100% - (var(--tf-maxw) - 3rem)) / 2));
    /* Multi-column rather than grid: a grid fills across the row first, so the
       nine capabilities would read 1-2-3 / 4-5-6 instead of running down the
       first column and continuing in the next. Columns also rebalance on their
       own if a capability is ever added or removed -- nine over three columns
       is three each, and eight or ten still divides sensibly. */
    /* column-rule rather than a border on a column: the rule is drawn in the
       gap and spans the content box on its own, so it stays centered and stays
       the right height when the columns rebalance.
       The gap is 3.4rem, which leaves 1.7rem either side of the rule: with the
       0.7rem the rows carry inside them, text stops 2.4rem short of the rule
       against the 2.7rem it keeps from the panel's outer edge, so the divider
       no longer sits tighter to the rows than the frame does. The panel grew
       by the same amount the gap did, so the columns keep their width. */
    display: block; columns: 3; column-gap: 3.4rem;
    column-rule: 1px solid var(--tf-gray-soft);
    background: #fff;
    /* No side edges and no corners: a band that reaches the window has nothing
       to round off, and the rule underneath is what separates it from the page
       the way the header's own does. */
    border: 0; border-bottom: 1px solid var(--tf-gray-soft); border-radius: 0;
    box-shadow: var(--tf-shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s var(--tf-ease), transform .18s var(--tf-ease), visibility .18s;
  }
  .tf-nav .sub-menu > li { break-inside: avoid; margin-bottom: 0.2rem; }
  .tf-nav .menu-item-has-children:hover > .sub-menu,
  .tf-nav .menu-item-has-children:focus-within > .sub-menu,
  .tf-nav .menu-item-has-children.is-open > .sub-menu {
    opacity: 1; visibility: visible; transform: none;
  }
  /* The arrow follows the panel. At this width the panel opens on hover, and
     .is-open is only set by the button, so the chevron sat pointing down at an
     open menu -- saying "there is more" about something already showing it. */
  .tf-nav .menu-item-has-children:hover > .tf-subtoggle::before,
  .tf-nav .menu-item-has-children:focus-within > .tf-subtoggle::before {
    transform: translateY(0.06rem) rotate(-135deg);
  }
  /* And so does the underline. It was drawn on a:hover, so moving the pointer
     down off the word and into the panel it opened took the mark away while
     the panel was still standing there -- the item stopped looking like the
     one you were in the middle of. */
  .tf-nav .menu-item-has-children:hover > a::after,
  .tf-nav .menu-item-has-children:focus-within > a::after { transform: scaleX(1); }
  .tf-nav .menu-item-has-children:hover > a,
  .tf-nav .menu-item-has-children:focus-within > a { color: var(--tf-navy); }

  /* Escape closes a panel the pointer is still over: hover alone would keep
     it standing. nav.js sets this and clears it when the pointer leaves. */
  .tf-nav .menu-item-has-children.is-dismissed > .sub-menu {
    opacity: 0; visibility: hidden; transform: translateY(6px);
  }

  /* The page dims behind an open panel so the panel reads as in front. A
     fixed layer just under the sticky header (z-index 100): the header and the
     panel hanging from it stay bright, everything below darkens. It follows
     the same states that open the panel, so it fades in and out with it and
     goes when the pointer leaves, focus moves on, or Escape dismisses it.
     pointer-events: none, so moving onto the page is what closes the menu. */
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 99;
    background: rgba(15, 45, 74, 0.22);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s var(--tf-ease), visibility .18s;
  }
  body:has(.tf-nav .menu-item-has-children:is(:hover, :focus-within):not(.is-dismissed))::after {
    opacity: 1; visibility: visible;
  }
}
@media (min-width: 1181px) and (prefers-reduced-motion: reduce) {
  body::after { transition: none; }
}

@media (max-width: 1180px) {
  .tf-nav .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
  .tf-nav .menu-item-has-children > a { flex: 1 1 auto; }
  .tf-subtoggle { flex: 0 0 auto; padding: 0.9rem 0.85rem; }
  /* The indent is padding, not margin: a left margin on a flex-basis:100% row
     makes it wider than the sheet, and the sheet's overflow-y:auto turns that
     into a horizontal scrollbar across the whole menu. */
  .tf-nav .sub-menu {
    flex-basis: 100%; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0 0 0.4rem; padding-left: 1.1rem;
    border-left: 2px solid var(--tf-gray-soft);
  }
  .tf-nav .menu-item-has-children.is-open > .sub-menu { display: flex; }
  .tf-nav .tf-subitem { padding: 0.55rem 0.75rem; gap: 0.65rem; align-items: center; }
  .tf-nav .tf-subitem__ico { width: 32px; height: 32px; }
  .tf-nav .tf-subitem__body b { font-size: 0.94rem; }
  /* The sheet is already tall with fourteen children in it; the names carry
     enough on a phone. */
  .tf-nav .tf-subitem__body span { display: none; }
}

/* Search toggle, sitting between the links and the call to action. */
.tf-nav .menu-search { display: flex; align-items: center; }
.tf-navsearch {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  background: none; border: 1px solid var(--tf-gray); border-radius: 50%;
  color: var(--tf-navy); cursor: pointer;
  transition: border-color .18s var(--tf-ease), background-color .18s var(--tf-ease), color .18s var(--tf-ease), width .2s var(--tf-ease), height .2s var(--tf-ease), transform .2s var(--tf-ease);
}
.tf-navsearch__ico { display: inline-flex; }
.tf-navsearch__ico.is-close { display: none; }
.tf-navsearch[aria-expanded="true"] .tf-navsearch__ico.is-open { display: none; }
.tf-navsearch[aria-expanded="true"] .tf-navsearch__ico.is-close { display: inline-flex; }
.tf-navsearch svg { width: 16px; height: 16px; }
/* Open or closed, the button is the same button: same size, same outline,
   same colors. Only the glyph swaps, and the cross sits a little smaller
   than the magnifier because its strokes read heavier at the same size. */
.tf-navsearch[aria-expanded="true"] svg { width: 13px; height: 13px; }
.tf-navsearch:hover { border-color: var(--tf-green); background: var(--tf-green-tint); }
/* The button and the field are one control: the field grows leftwards from
   under the button, which stays put and turns into a close. The links go
   visibility:hidden rather than display:none so the row keeps its width and
   nothing shifts as the field appears. */
.tf-nav .menu-search { position: relative; }
.tf-navsearch__form {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 0; overflow: hidden; opacity: 0;
  transition: width .3s var(--tf-ease), opacity .22s var(--tf-ease);
}
.tf-navsearch__form[hidden] { display: block; }
/* The links are hidden while this is open, so the field can run most of the way
   back to the brand. Capped in vw as well so it cannot reach it on a narrow
   desktop window. */
.tf-header.is-searching .tf-navsearch__form { width: min(480px, 46vw); opacity: 1; }
.tf-header.is-searching .tf-nav li:not(.menu-search):not(.menu-cta) {
  opacity: 0; visibility: hidden;
  transition: opacity .18s var(--tf-ease);
}
.tf-navsearch__form form { margin: 0; }
.tf-navsearch__form input[type="search"] {
  /* WebKit gives search inputs their own rounded box, which shows through the
     corners of ours as a second outline. Strip it and draw the field ourselves.
     The field is taller than the toggle so the close control sits inside it
     with clearance, rather than reading as the field's own right-hand end. */
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; border-radius: 999px;
  border: 1px solid var(--tf-gray); padding: 0 3rem 0 2.65rem;
  font-family: inherit; font-size: 0.84rem; color: var(--tf-text);
  /* A magnifier at the head of the field. The toggle that opens this panel is
     already a magnifier, but once the field is open that button has become the
     close cross, so without this there is nothing left saying what the box is
     for. */
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7C93' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.7-3.7'/%3E%3C/svg%3E") no-repeat 0.95rem center;
  background-size: 16px 16px;
}
.tf-navsearch__form input[type="search"]::placeholder { font-size: 0.84rem; color: #8A93A0; }
/* The browser's own clear control is off: the toggle already sits in the field
   as a cross, and a second one appearing as soon as you type read as a bug. */
.tf-navsearch__form input[type="search"]::-webkit-search-cancel-button,
.tf-navsearch__form input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none; appearance: none; display: none;
}
/* Sized and nudged in so it clears the field's edge on every side. */
.tf-header.is-searching .tf-navsearch {
  width: 30px; height: 30px;
  transform: translateX(-7px);
}
/* Nothing changes on focus, at the owner's repeated instruction. Noted as a
   known deviation from WCAG 2.4.7 on this one control: the field takes focus
   the instant the panel opens, so any indicator was on screen every single
   time the search was used. Radius stays pinned or the global focus style
   squares the pill off. */
.tf-navsearch__form input[type="search"]:focus,
.tf-navsearch__form input[type="search"]:focus-visible {
  /* No ring: on the pill it drew as four thick corner brackets. The border
     turning green is the focus indicator instead. */
  outline: none; box-shadow: none;
  border-radius: 999px; border-color: var(--tf-green);
}
.tf-navsearch__form button, .tf-navsearch__form input[type="submit"] { display: none; }

/* Results dropdown, hanging below the field. */
.tf-searchres {
  position: absolute; top: calc(100% + 0.7rem); right: 0;
  width: min(480px, 46vw); min-width: 320px; max-height: 62vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--tf-gray-soft); border-radius: 12px;
  box-shadow: 0 24px 48px -24px rgba(15,45,74,0.4);
  padding: 0.5rem; z-index: 60; text-align: left;
}
.tf-searchres[hidden] { display: none; }
/* The dropdown sits inside .tf-nav, so the nav's own anchor rules reach it:
   nowrap, inline-block, its padding and its hover underline. Undo them here,
   scoped tightly enough to survive any reordering of the two blocks. */
.tf-nav .tf-searchres a {
  display: block; white-space: normal;
  font-size: inherit; font-weight: inherit; padding: 0;
  overflow-wrap: anywhere;
}
.tf-nav .tf-searchres a::after { display: none; }
.tf-searchres__group {
  margin: 0.5rem 0 0.3rem; padding: 0 0.6rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--tf-green-dark);
}
.tf-nav .tf-searchres .tf-searchres__item {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.5rem 0.6rem; border-radius: 8px;
  text-decoration: none; color: inherit;
}
.tf-searchres__item:hover, .tf-searchres__item.is-active { background: var(--tf-panel); color: inherit; }
.tf-searchres__thumb {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 7px; margin-top: 1px;
  background-size: cover; background-position: center;
  border: 1px solid var(--tf-gray-soft);
}
.tf-searchres__text { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.tf-searchres__title {
  font-size: 0.86rem; font-weight: 600; color: var(--tf-navy);
  line-height: 1.35; white-space: normal; overflow-wrap: anywhere;
}
.tf-searchres__excerpt {
  font-size: 0.76rem; color: var(--tf-text-soft); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Pinned to the foot of the list. It is the way out of a set of results that
   is deliberately short, so it should not be something you have to scroll to
   find. Sticky rather than fixed, so it sits at the end when the list is short
   and rides the bottom edge when it is not. */
.tf-nav .tf-searchres .tf-searchres__all {
  display: block; position: sticky; bottom: -0.5rem; z-index: 1;
  margin: 0.35rem -0.5rem -0.5rem; padding: 0.6rem;
  text-align: center; font-size: 0.78rem; font-weight: 600;
  color: var(--tf-green-dark); text-decoration: none;
  background: #fff;
  border-top: 1px solid var(--tf-gray-soft); border-radius: 0 0 11px 11px;
}
.tf-searchres__all:hover, .tf-searchres__all.is-active { background: var(--tf-green-tint); color: var(--tf-green-deep); }
.tf-searchres__none { margin: 0; padding: 1rem 0.6rem; text-align: center; font-size: 0.84rem; color: var(--tf-text-soft); }
@media (max-width: 1180px) {
  .tf-searchres { position: static; width: 100%; min-width: 0; box-shadow: none; margin-top: 0.5rem; max-height: 46vh; }
}

@media (max-width: 1180px) {
  /* Open the menu and the search is the first thing in it, already a field.
     There is no room here for a toggle that only reveals another control. */
  .tf-nav .menu-search {
    order: -1; flex-direction: column; align-items: stretch;
    margin: 0 0 0.7rem;
  }
  .tf-navsearch { display: none; }
  .tf-navsearch__form,
  .tf-navsearch__form[hidden] {
    display: block; position: static; transform: none;
    width: 100%; max-width: none; opacity: 1; margin: 0;
  }
  .tf-navsearch__form input[type="search"] {
    height: 46px; font-size: 0.95rem;
    padding: 0 1rem 0 2.75rem;
    border-radius: 12px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7C93' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.7-3.7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.95rem center;
    background-size: 17px 17px;
  }
  .tf-navsearch__form input[type="search"]::placeholder { font-size: 0.95rem; }
  /* The desktop pill pins its 999px radius on :focus, which outranks the
     12px above the moment the field is tapped -- the rectangle snapped into
     a pill as soon as you started typing. Pin the rectangle the same way. */
  .tf-navsearch__form input[type="search"]:focus,
  .tf-navsearch__form input[type="search"]:focus-visible { border-radius: 12px; }
  /* On mobile the toggle is hidden, so the field has no cross of its own and
     no way to clear itself. The browser's control comes back, restyled. */
  .tf-navsearch__form input[type="search"] { padding-right: 2.85rem; }
  .tf-navsearch__form input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none; appearance: none; display: block;
    width: 19px; height: 19px; border-radius: 50%; cursor: pointer; margin-right: 2px;
    background: var(--tf-navy) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
  }
  .tf-navsearch__form input[type="search"]::-webkit-search-cancel-button:hover { background-color: var(--tf-navy-deep); }
  .tf-header.is-searching .tf-nav li:not(.menu-search):not(.menu-cta) { opacity: 1; visibility: visible; }
}
.tf-nav .menu-cta > a::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #9DC694; flex-shrink: 0;
}
.tf-nav .menu-cta > a:hover {
  color: #fff; background: var(--tf-green-dark);
  box-shadow: 0 8px 18px -8px rgba(79, 111, 73, 0.55);
}


.tf-nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center; justify-content: center;
  /* Padding rather than a fixed square: the bars are 20px, so a 44px box left
     them with nothing either side. Only ever rendered below 1181px. */
  min-width: 52px; height: 44px;
  padding: 0 0.95rem;
  background: none; border: 1px solid var(--tf-gray); border-radius: 9px;
  cursor: pointer; color: var(--tf-navy);
}
.tf-nav-toggle__bars { display: block; width: 20px; height: 2px; background: currentColor; position: relative; border-radius: 2px; }
.tf-nav-toggle__bars::before, .tf-nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s var(--tf-ease), top .2s var(--tf-ease);
}
.tf-nav-toggle__bars::before { top: -6px; }
.tf-nav-toggle__bars::after { top: 6px; }
.tf-nav-toggle[aria-expanded="true"] .tf-nav-toggle__bars { background: transparent; }
.tf-nav-toggle[aria-expanded="true"] .tf-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.tf-nav-toggle[aria-expanded="true"] .tf-nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Desktop row sizing. The header shares the site grid (--tf-maxw, 1160px), so
   from about 1208px up the inner width is fixed at 1112px and that is the worst
   case the row has to survive.
   Note that .tf-nav carries margin-left:auto, which already hands every spare
   pixel to the space after the logo — so the gap on .tf-header__inner is only a
   floor, and widening that separation means making the row's contents narrower,
   not raising the gap. These sizes buy it: the tagline (the widest part of the
   brand block) carries most of the trim, and the menu's internal rhythm the
   rest. With five links rather than seven the row has room again, so the items
   sit on a wider rhythm and the call to action comes back up towards its base
   size, with well over 100px still clear between the logo and the first link.
   Narrower than 1181px the menu collapses to the hamburger instead. */
@media (min-width: 1181px) {
  /* The nav's own rhythm pays for the wider gap after the logo: a floor that
     the row cannot afford just pushes the menu into overflow. */
  .tf-nav ul { gap: 1.35rem; }
  .tf-nav a { font-size: 0.92rem; padding-left: 0.35rem; padding-right: 0.35rem; }
  .tf-nav a::after { left: 0.35rem; right: 0.35rem; }
  .tf-nav .menu-cta > a { font-size: 0.86rem; padding: 0.7rem 1.2rem; margin-left: 1.15rem; gap: 0.45rem; }
  .tf-nav .menu-cta > a::before { width: 6px; height: 6px; }
}

@media (max-width: 1180px) {
  /* Pull the toggle in from the container edge: at 24px of container padding
     it read as sitting right against the side of the screen. */
  /* Sits in from the container edge: at the container's own 1.5rem the button
     reads as pinned to the side of the screen, and a bordered box shows that
     more than a bare icon would. */
  /* No margin: the button's box then ends exactly on the container's right
     content edge, which is where the logo starts on the left. Both sit the
     container's own 1.5rem in from the screen. */
  .tf-nav-toggle { display: inline-flex; margin-right: 0; }
  /* Full screen below the header rather than a panel that stops at the last
     item: on a phone a half-height sheet leaves the page showing underneath
     and reads as an accident. */
  .tf-nav {
    display: none;
    position: fixed; left: 0; right: 0;
    top: calc(var(--tf-header-h, 78px) + var(--tf-admin-bar, 0px)); bottom: 0;
    background: #fff;
    border-top: 1px solid var(--tf-gray-soft);
    padding: 1.1rem 1.5rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tf-nav { overflow-x: hidden; }
  .tf-nav.is-open { display: flex; flex-direction: column; animation: tf-drop .22s var(--tf-ease); }
  @keyframes tf-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .tf-nav ul { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .tf-nav a { display: block; padding: 0.85rem 1rem 0.85rem 0.75rem; font-size: 1.02rem; }
  .tf-nav a::after { display: none; }
  .tf-nav .menu-cta { margin-top: auto; padding-top: 1rem; }
  .tf-nav .menu-cta > a { display: block; margin: 0; text-align: center; border-radius: 10px; }
  /* The sheet covers the page, so nothing behind it should scroll. Pinning the
     body is what actually holds on iOS; the script records the scroll position
     and restores it on close. The header has to become fixed for the duration,
     or a body pinned at a negative offset would carry it off the top. */
  body.tf-nav-open { overflow: hidden; position: fixed; left: 0; right: 0; width: 100%; }
  body.tf-nav-open .tf-header { position: fixed; top: var(--tf-admin-bar, 0px); left: 0; right: 0; }
  /* The row belongs to the menu button here, so the lockup drops its tagline
     and comes down with it. The compact file is served by the <picture>
     element in the header at this same breakpoint; both configurations are
     drawn to one box, so only the width changes. */
  .tf-brand__logo { width: 240px; }

  /* The 2.1rem floor on that gap is for the desktop row, where it keeps the
     nav off the logo. Here there are only two items and margin-left:auto
     already pushes the button right, so the floor does nothing but eat width:
     on a narrow phone the brand plus the gap plus the button overran the row
     and shoved the button against the screen edge. */
  .tf-header__inner { min-height: 78px; gap: 1rem; }
}

/* ==========================================================================
   Hero — full-bleed photography with fading slider
   ========================================================================== */
.tf-hero--photo {
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(580px, 78vh, 780px);
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  overflow: hidden;
  color: #fff;
  background: var(--tf-navy-deep);
}
.tf-hero__bg { position: absolute; inset: -7% 0; z-index: 0; }
.tf-hero__bg .tf-slider__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transform: none;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
.tf-hero__bg .tf-slider__slide.is-active {
  position: absolute;
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 1.2s ease;
}
.tf-hero__bg .tf-slider__slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.07);
  transition: transform 9s linear;
}
.tf-hero__bg .tf-slider__slide.is-active img { transform: scale(1); }
/* Scrim, not a wash.
   The old gradients darkened the whole frame to pay for legibility in one
   corner of it: 0.87 behind the copy and still 0.58 at the far edge, where
   there is nothing but photograph. Every picture on the site came out muddy.
   These carry the darkness only where the words are and let the rest of the
   photograph through.
   The numbers are worst-case: white text needs 0.585 of this navy over a pure
   white pixel to reach 4.5:1, and the #E2E9F0 lead needs 0.645. Under the copy
   these stack to 0.73-0.79; past the halfway point the scrim releases quickly
   and the right side of the photograph reads at full brightness. */
.tf-hero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(97deg,
      rgba(7, 24, 41, 0.76) 0%,
      rgba(8, 28, 48, 0.74) 45%,
      rgba(11, 34, 57, 0.50) 56%,
      rgba(13, 40, 66, 0.12) 74%,
      rgba(15, 45, 74, 0.00) 90%),
    linear-gradient(180deg,
      rgba(7, 24, 41, 0.12) 0%,
      rgba(7, 24, 41, 0.00) 34%,
      rgba(7, 24, 41, 0.00) 62%,
      rgba(7, 24, 41, 0.34) 100%);
}
.tf-hero__content { position: relative; z-index: 2; width: 100%; }
.tf-hero__copy { max-width: 660px; }
.tf-hero--photo h1 { color: #fff; text-shadow: 0 2px 24px rgba(7, 24, 41, 0.4); }
.tf-hero--photo .tf-lead { color: #E2E9F0; text-shadow: 0 1px 12px rgba(7, 24, 41, 0.45); }
.tf-hero__badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 99px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: #fff; padding: 0.45rem 1rem; margin-bottom: 1.6rem;
}
.tf-hero--photo h1 .tf-underline { position: relative; white-space: nowrap; }
.tf-hero--photo h1 .tf-underline::after {
  content: ""; position: absolute; left: 0.02em; right: 0.02em; bottom: 0.05em;
  height: 0.14em; border-radius: 0.1em; z-index: -1;
  background: linear-gradient(90deg, rgba(98, 135, 91, 0.85), rgba(98, 135, 91, 0.45));
}
.tf-hero__proof {
  display: flex; flex-wrap: wrap; gap: 0.55rem 1.6rem; margin: 2.1rem 0 0;
  padding: 0; list-style: none;
}
.tf-hero__proof li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.87rem; font-weight: 500; color: #D4DDE6; margin: 0;
}
.tf-hero__proof svg { width: 21px; height: 21px; color: #C9D5E0; flex-shrink: 0; --tf-ico-duo: rgba(157, 198, 148, 0.45); }
.tf-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff; border-color: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.tf-btn--ghost:hover { background: #fff; color: var(--tf-navy); border-color: #fff; }

/* Slider controls */
.tf-hero__slider-ui { display: flex; align-items: center; gap: 1.1rem; margin-top: 2.6rem; }
.tf-slider__nav { display: flex; align-items: center; gap: 0.5rem; }
.tf-slider__pause {
  width: 44px; height: 44px; border-radius: 50%; padding: 0; margin-right: 0.35rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(7, 24, 41, 0.55); border: 1px solid rgba(255, 255, 255, 0.6); color: #fff;
  cursor: pointer; touch-action: manipulation;
}
.tf-slider__pause svg { width: 18px; height: 18px; fill: currentColor; }
.tf-slider__pause:hover { background: rgba(7, 24, 41, 0.78); }
.tf-slider__pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tf-slider__pause .tf-slider__ico-play { display: none; }
.tf-slider__pause.is-paused .tf-slider__ico-pause { display: none; }
.tf-slider__pause.is-paused .tf-slider__ico-play { display: block; }
.tf-slider__dot {
  width: auto; min-width: 26px; height: 30px;
  background: none; border: 0; cursor: pointer; position: relative; padding: 0 2px;
  touch-action: manipulation;
}
.tf-slider__dot::before {
  content: ""; display: block; height: 4px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  transition: background-color .2s, width .25s var(--tf-ease);
  width: 22px; margin: 0 auto;
}
.tf-slider__dot:hover::before { background: rgba(255, 255, 255, 0.6); }
.tf-slider__dot.is-active::before { background: #9DC694; width: 34px; }
.tf-slider__caption {
  margin: 0;
  font-size: 0.8rem; font-weight: 500; color: #B9C6D3;
  letter-spacing: 0.02em;
}
.tf-photo-credit {
  display: block;
  font-size: 0.66rem; color: var(--tf-blue); opacity: 0.85;
}
.tf-photo-credit--hero {
  position: absolute; right: 1.1rem; bottom: 0.65rem; z-index: 2;
  color: rgba(255, 255, 255, 0.5); opacity: 1; margin: 0;
}
@media (max-width: 640px) {
  .tf-hero__slider-ui { flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-top: 2rem; }
  /* A floor rather than none: with the height driven purely by the copy, the
     block grew when the web font swapped in and everything below it moved.
     That reflow was the whole of the page's layout shift. */
  .tf-hero--photo { min-height: 78svh; }
  /* A 26x30 target is a miss on a phone as often as a hit, and a 4px bar at
     35% white disappears against a bright photo. Both grow here. */
  .tf-slider__nav { gap: 0.35rem; }
  .tf-slider__dot { min-width: 40px; height: 44px; padding: 0 4px; }
  .tf-slider__dot::before { height: 5px; width: 30px; background: rgba(255, 255, 255, 0.55); }
  .tf-slider__dot.is-active::before { width: 40px; }
}

/* ==========================================================================
   Page hero (interior pages) — photo background with navy fade
   ========================================================================== */
.tf-page-hero {
  position: relative; overflow: hidden;
  background-color: var(--tf-navy-deep);
  background-size: cover;
  background-position: center 38%;
  color: #fff;
  /* A fixed band rather than padding around the copy, so every inner page
     opens at the same height whatever the length of its lead. */
  min-height: clamp(240px, 26vw, 330px);
  display: flex; align-items: center;
  padding: 2.5rem 0;
}
.tf-page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  /* Same rebalance as the home hero: 0.94 across the copy and 0.66 at the far
     edge became 0.82 across the copy and 0.15 at the edge. The heading is large
     text and needs only 0.455; the lead sets the floor at 0.645, and the
     gradient holds 0.69 or better out to 62%, past where the 44em lead can
     reach at any width the four-column layout survives. */
  background:
    linear-gradient(97deg,
      rgba(7, 24, 41, 0.80) 0%,
      rgba(8, 28, 48, 0.76) 45%,
      rgba(11, 34, 57, 0.68) 62%,
      rgba(13, 40, 66, 0.26) 82%,
      rgba(15, 45, 74, 0.06) 100%),
    linear-gradient(180deg,
      rgba(7, 24, 41, 0.10) 0%,
      rgba(7, 24, 41, 0.03) 45%,
      rgba(7, 24, 41, 0.10) 100%);
}
.tf-page-hero .tf-container { position: relative; width: 100%; text-align: left; }
/* Per-page hero crops. The band is roughly 3.9:1 against a 3:2 photograph, so
   barely a third of the image is ever on screen and the vertical position is
   the whole composition. Horizontal position does nothing here: at container
   width the image already scales to fit across, and only overflows down.
   The town photographs want a low crop, which puts the street or the village
   in frame rather than sky. The capability pages are photographs of people and
   objects, and the same low crop cut their subjects in half. */
/* The six section pages all sit on the top edge of their photographs. Each had
   its own percentage chosen to put a particular thing in the band, and the set
   read as six different crops of six different towns; taking them all as high
   as the image goes gives the section openers one treatment. The capability
   pages below keep their own numbers -- they are photographs of people and
   objects rather than towns, and the top edge cuts the subject. */
.page-id-11 .tf-page-hero { background-position: center 44%; }     /* Why TownFront: shot down a main street, so the top is sky over the ridge and the bottom is kerbside -- the shopfronts, the flags and the people are only in the middle of it */
/* Per-page crops. Everything but About sits at 45%, which is where these
   photographs were cut to put their subject; About comes up to 65% because its
   subject is a sign near the foot of the frame rather than a building filling
   it. */
.page-id-15 .tf-page-hero { background-position: center 65%; }     /* About: far enough up that the whole sign is in the band -- at 45% it was cut below "CITY HALL" and the street address underneath never appeared */
.page-id-12 .tf-page-hero { background-position: center 45%; }     /* Features: the bandstand, the benches and the lawn */
.blog .tf-page-hero       { background-position: center top; }     /* Resources */
.page-id-16 .tf-page-hero { background-position: center 45%; }     /* Contact: the courthouse tower with the autumn trees and the rooftops around it */
.search .tf-page-hero     { background-position: center 45%; }     /* Search results: the street between the two blocks, with the vanishing point down the middle */
.page-id-91 .tf-page-hero { background-position: center 30%; }  /* News: the tablet and its text */
.page-id-94 .tf-page-hero { background-position: center 50%; }  /* Forms: the whole clipboard */
.page-id-117 .tf-page-hero { background-position: center 30%; } /* Accessibility: both faces */
/* The count sits with the query it belongs to. Same weight as the lead, so it
   reads as the answer to the heading rather than as a caption on it. */
.tf-page-hero__count {
  margin: 0.15em 0 0; color: #E2E9F0; font-size: 1.02rem;
}
.tf-page-hero__count b { color: #fff; font-weight: 700; }
.tf-page-hero h1 { margin-bottom: 0.35em; font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; text-shadow: 0 2px 20px rgba(7, 24, 41, 0.4); }
.tf-page-hero .tf-lead { margin-bottom: 0; color: #E2E9F0; max-width: 44em; }
.tf-page-hero .tf-kicker { color: #A9C8A2; }
/* The search bar under the breadcrumb, on white, where its button is visible. */
.tf-noresults { max-width: 40em; }
.tf-noresults p { color: var(--tf-text-soft); }
.tf-noresults ul { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.6rem; }
.tf-noresults li { margin: 0; padding-left: 1.5rem; position: relative; color: var(--tf-text-soft); }
.tf-noresults li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--tf-green);
}

/* ==========================================================================
   Cards and grids
   ========================================================================== */
.tf-grid { display: grid; gap: 1.35rem; margin-top: 2.5rem; }
.tf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tf-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .tf-grid--3, .tf-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tf-grid--2, .tf-grid--3, .tf-grid--4 { grid-template-columns: 1fr; } }

.tf-card {
  position: relative;
  background: #fff; border: 1px solid var(--tf-gray-soft); border-radius: var(--tf-radius);
  padding: 1.8rem 1.65rem 1.6rem;
  box-shadow: var(--tf-shadow-sm);
  transition: transform .25s var(--tf-ease), box-shadow .25s var(--tf-ease), border-color .25s var(--tf-ease);
}
.tf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tf-shadow-md);
  border-color: rgba(98, 135, 91, 0.45);
}
.tf-card h3 { margin-bottom: 0.5em; }
.tf-card p { color: var(--tf-text-soft); font-size: 0.97rem; }
.tf-card p:last-child { margin-bottom: 0; }
/* Card as link: the whole card is the target, with an arrow that reacts on
   hover so it reads as clickable rather than as a card that happens to move. */
.tf-card--link {
  display: block; text-decoration: none; color: inherit;
  padding-bottom: 2.9rem;
}
.tf-card--link h3 { color: var(--tf-navy); }
.tf-card--link:hover { color: inherit; }
.tf-card__go {
  position: absolute; left: 1.65rem; bottom: 1.4rem;
  font-size: 1.05rem; line-height: 1; color: var(--tf-green-dark);
  transition: transform .2s var(--tf-ease);
}
.tf-card--link:hover .tf-card__go { transform: translateX(4px); }
.tf-card--link:focus-visible { outline: 3px solid var(--tf-green); outline-offset: 3px; }
/* Marketing pages lay themselves out in full-width sections, so the article
   wrapper must not impose a column of its own. The first section also sits
   directly under the page hero, which already provides the space above it. */
.tf-marketing { display: block; }
.tf-marketing > section:first-child { padding-top: clamp(2.75rem, 6vw, 4.5rem); }
.tf-marketing .tf-btn-row { margin-top: 1.6rem; }
.tf-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(160deg, #16395C, var(--tf-navy-deep));
  color: #fff; font-weight: 700; font-size: 0.98rem;
  margin-bottom: 1.05rem;
  box-shadow: 0 6px 14px -6px rgba(15,45,74,0.5);
}
.tf-card__ico {
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(160deg, #FFFFFF, var(--tf-green-tint));
  border: 1px solid rgba(98, 135, 91, 0.45);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; color: var(--tf-navy);
  box-shadow: 0 4px 10px -5px rgba(79, 111, 73, 0.4), inset 0 1px 0 #fff;
}
.tf-card__ico svg { width: 30px; height: 30px; }

/* Bare columns: no card chrome, centered. The section tint behind them carries
   the grouping, so the white boxes were doing nothing but adding edges. Column
   gap climbs to compensate for the padding the cards no longer contribute. */
.tf-grid--bare { gap: 2.6rem 2.25rem; }
.tf-grid--bare .tf-card {
  background: none; border: 0; box-shadow: none; padding: 0;
  text-align: center;
}
.tf-grid--bare .tf-card:hover {
  transform: none; box-shadow: none; border-color: transparent;
}
.tf-grid--bare .tf-card__ico { margin-left: auto; margin-right: auto; }
.tf-grid--bare .tf-card p { max-width: 34ch; margin-left: auto; margin-right: auto; }
.tf-section--navy .tf-card {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.tf-section--navy .tf-card:hover { border-color: rgba(169, 200, 162, 0.5); box-shadow: 0 20px 44px -24px rgba(0,0,0,0.5); }
.tf-section--navy .tf-card h3 { color: #fff; }
.tf-section--navy .tf-card p { color: #C6D2DE; }
.tf-section--navy .tf-card__ico {
  background: rgba(169, 200, 162, 0.12);
  border-color: rgba(169, 200, 162, 0.35);
  color: #DCE5ED; box-shadow: none;
  --tf-ico-duo: rgba(169, 200, 162, 0.35);
}

/* ==========================================================================
   Section landing compositions
   The Features and Why pages were grids of identical cards, which is the
   default a page reaches for when nobody has decided what matters most.
   These say what matters most.
   ========================================================================== */

/* Two outcomes, given equal weight and opposite treatments. */
.tf-out { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tf-out > div { border-radius: var(--tf-radius); padding: clamp(1.75rem, 3.5vw, 2.6rem); }
.tf-out__res {
  background: linear-gradient(165deg, var(--tf-navy) 0%, var(--tf-navy-ink) 100%);
  color: #C6D5E4; box-shadow: var(--tf-shadow-md);
}
.tf-out__staff {
  background: linear-gradient(165deg, #FFFFFF 30%, var(--tf-green-tint));
  border: 1px solid rgba(98, 135, 91, 0.45);
  box-shadow: var(--tf-shadow-sm);
}
.tf-out .tf-out__eyebrow {
  display: block; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.9rem;
}
.tf-out__res .tf-out__eyebrow { color: #A9C8A2; }
.tf-out__staff .tf-out__eyebrow { color: var(--tf-green-deep); }
.tf-out h3 {
  margin: 0 0 0.6rem; font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.15;
  letter-spacing: -0.02em;
}
.tf-out__res h3 { color: #fff; }
.tf-out__staff h3 { color: var(--tf-navy); }
.tf-out p { font-size: 1rem; line-height: 1.6; margin: 0 0 1.4rem; }
.tf-out__res p { color: #B9C6D3; }
.tf-out__staff p { color: var(--tf-text-soft); }
.tf-out ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.tf-out li { margin: 0; padding-left: 1.6rem; position: relative; font-size: 0.95rem; line-height: 1.5; }
.tf-out li::before {
  content: ""; position: absolute; left: 1px; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
}
.tf-out__res li { color: #C6D5E4; }
.tf-out__res li::before { background: #A9C8A2; }
.tf-out__staff li { color: var(--tf-text-soft); }
.tf-out__staff li::before { background: var(--tf-green); }

/* The capability index: three get room, the rest get a row. Deciding which
   three is the point; nine equal cards decides nothing. */
.tf-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.tf-index__lead {
  grid-column: span 1; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--tf-gray-soft); border-radius: var(--tf-radius);
  padding: 1.6rem 1.5rem 1.5rem; text-decoration: none; color: inherit;
  box-shadow: var(--tf-shadow-sm);
  transition: transform .22s var(--tf-ease), box-shadow .22s var(--tf-ease), border-color .22s var(--tf-ease);
}
.tf-index__lead:hover {
  transform: translateY(-4px); box-shadow: var(--tf-shadow-md);
  border-color: rgba(98, 135, 91, 0.5); color: inherit;
}
.tf-index__ico {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--tf-green), var(--tf-green-deep));
  color: #fff; --tf-ico-duo: rgba(255,255,255,0.28);
  box-shadow: 0 8px 16px -9px rgba(67, 94, 62, 0.9);
}
.tf-index__ico svg { width: 22px; height: 22px; }
.tf-index__lead h3 { margin: 0 0 0.45rem; font-size: 1.15rem; color: var(--tf-navy); }
.tf-index__lead p { margin: 0 0 1.1rem; font-size: 0.95rem; color: var(--tf-text-soft); line-height: 1.55; }
.tf-index__demo {
  margin-top: auto; border-radius: 9px; overflow: hidden;
  border: 1px solid var(--tf-gray-soft); background: var(--tf-panel);
  padding: 0.7rem 0.8rem; font-size: 0.78rem; color: var(--tf-text-soft);
}
.tf-index__demo b { display: block; color: var(--tf-navy); font-size: 0.84rem; margin-bottom: 0.15rem; }
.tf-index__demo i { font-style: normal; color: var(--tf-green-deep); font-weight: 600; }
.tf-index__rows {
  grid-column: 1 / -1; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.tf-index__rows li { margin: 0; }
/* These six stay names. Opening them on hover into the same card the top three
   show was tried and put a moving panel under the pointer on a page whose job
   is to let someone pick one and leave. The list is still in menu order, which
   was the half of that change worth keeping. */
.tf-index__rows a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1rem; border-radius: 10px;
  background: #fff; border: 1px solid var(--tf-gray-soft);
  text-decoration: none; color: var(--tf-navy); font-weight: 600; font-size: 0.95rem;
  transition: border-color .18s var(--tf-ease), background-color .18s var(--tf-ease), transform .18s var(--tf-ease);
}
.tf-index__rows a:hover { border-color: var(--tf-green); background: var(--tf-green-tint); transform: translateX(3px); color: var(--tf-navy); }
.tf-index__rows svg { width: 19px; height: 19px; color: var(--tf-green-dark); flex-shrink: 0; }
.tf-index__rows em { margin-left: auto; font-style: normal; color: var(--tf-green-dark); }

/* Four lead cards since Code Book joined them (1 Nov 2026), and a separate
   two-card group for the optional add-ons under its own heading. */
.tf-index--four { grid-template-columns: repeat(4, 1fr); }
.tf-index--four .tf-index__lead { padding: 1.4rem 1.25rem 1.3rem; }
.tf-index--four .tf-index__rows { grid-template-columns: repeat(3, 1fr); }
.tf-index--two { grid-template-columns: 1fr 1fr; margin-top: 1.4rem; }
.tf-index__addons { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--tf-gray-soft); }
.tf-index__addons h3 { margin: 0 0 0.5rem; font-size: 1.35rem; color: var(--tf-navy); }
.tf-index__addons > p { margin: 0; max-width: 60ch; color: var(--tf-text-soft); line-height: 1.6; }
.tf-index__tag {
  display: inline-block; margin-bottom: 0.9rem; padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--tf-panel); color: var(--tf-green-deep);
}
@media (max-width: 1100px) {
  .tf-index--four { grid-template-columns: 1fr 1fr; }
}

/* Specifications: dense, unglamorous, and better as a list than as cards. */
.tf-specs { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.tf-specs li {
  margin: 0; padding: 1.25rem 0; display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.tf-specs b { font-size: 0.98rem; color: #fff; font-weight: 700; }
.tf-specs span { font-size: 0.94rem; color: #B9C6D3; line-height: 1.55; }

@media (max-width: 900px) {
  .tf-out { grid-template-columns: 1fr; }
  .tf-index, .tf-index--four, .tf-index--two { grid-template-columns: 1fr; }
  .tf-index__rows, .tf-index--four .tf-index__rows { grid-template-columns: 1fr; }
  .tf-specs { grid-template-columns: 1fr; gap: 0; }
  .tf-specs li { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* Article: a standfirst, real metadata, and a way onward at the end. */
.tf-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.tf-article__meta span { position: relative; padding-left: 0.9rem; }
.tf-article__meta span::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 3px; height: 3px; border-radius: 50%; background: var(--tf-gray);
}
.tf-article__standfirst {
  font-size: clamp(1.1rem, 2.1vw, 1.32rem); line-height: 1.55;
  color: var(--tf-text-soft); font-weight: 500;
  padding-bottom: 1.6rem; margin-bottom: 1.9rem;
  border-bottom: 1px solid var(--tf-gray-soft);
}

/* ==========================================================================
   About
   ========================================================================== */
.tf-about-open { max-width: 46em; }
.tf-page-body .entry-content > .tf-about-open { max-width: 46em; }
.tf-about-open__lead {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.45;
  color: var(--tf-navy); font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
.tf-about-open p { color: var(--tf-text-soft); line-height: 1.7; }

/* The credibility claim gets its own ground rather than a heading. */
.tf-claim {
  max-width: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  padding: clamp(1.75rem, 4vw, 2.6rem);
  border-radius: var(--tf-radius);
  background:
    radial-gradient(34rem 20rem at 92% -25%, rgba(98, 135, 91, 0.24), transparent 62%),
    linear-gradient(160deg, var(--tf-navy) 0%, var(--tf-navy-ink) 100%);
  box-shadow: var(--tf-shadow-md);
}
.tf-claim > b {
  display: block; max-width: 22ch;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 1.1rem;
}
.tf-claim p { margin: 0 0 0.9rem; color: #B9C6D3; line-height: 1.7; max-width: 58ch; }
.tf-claim p:last-child { margin-bottom: 0; }

/* Beliefs: numbered, generously spaced, each one an argument rather than a bullet. */
.tf-beliefs { margin: clamp(2.5rem, 5vw, 3.75rem) 0; }
.tf-beliefs h2 { margin: 0 0 1.75rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--tf-navy); }
.tf-beliefs h2::before { display: none; }
.tf-page-body .entry-content .tf-beliefs__list,
.tf-beliefs__list { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; gap: 0; }
.tf-page-body .entry-content .tf-beliefs__list > li,
.tf-beliefs__list > li {
  margin: 0; padding: 1.6rem 0; display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.5rem;
  border-top: 1px solid var(--tf-gray-soft);
}
.tf-page-body .entry-content .tf-beliefs__list > li::before { display: none; }
.tf-beliefs__list > li:last-child { border-bottom: 1px solid var(--tf-gray-soft); }
.tf-beliefs__n {
  font-size: 1.05rem; font-weight: 700; color: var(--tf-green-dark);
  letter-spacing: 0.04em; padding-top: 0.15rem;
}
.tf-beliefs__list b { display: block; font-size: 1.15rem; color: var(--tf-navy); margin-bottom: 0.4rem; }
.tf-beliefs__list p { margin: 0; color: var(--tf-text-soft); line-height: 1.65; max-width: 60ch; }

/* How we work: four short statements, no card chrome. */
.tf-how { margin: clamp(2.5rem, 5vw, 3.75rem) 0; }
.tf-how h2 { margin: 0 0 1.6rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--tf-navy); }
.tf-how h2::before { display: none; }
.tf-how__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; }
.tf-how__grid > div { padding-top: 1.1rem; border-top: 2px solid var(--tf-green); }
.tf-how__grid b { display: block; font-size: 1.05rem; color: var(--tf-navy); margin-bottom: 0.35rem; }
.tf-how__grid p { margin: 0; color: var(--tf-text-soft); line-height: 1.65; }

.tf-about-cta {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border-radius: var(--tf-radius);
  background: linear-gradient(160deg, #FFFFFF, var(--tf-green-tint));
  border: 1px solid rgba(98, 135, 91, 0.45);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.tf-about-cta b { display: block; font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--tf-navy); margin-bottom: 0.35rem; }
.tf-about-cta p { margin: 0; color: var(--tf-text-soft); max-width: 46ch; }

@media (max-width: 760px) {
  .tf-how__grid { grid-template-columns: 1fr; }
  .tf-page-body .entry-content .tf-beliefs__list > li,
  .tf-beliefs__list > li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ==========================================================================
   Resource center index
   ========================================================================== */
.tf-topics {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.tf-topics > span {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--tf-blue); margin-right: 0.4rem;
}
.tf-topics a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.9rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--tf-gray);
  font-size: 0.88rem; font-weight: 600; color: var(--tf-navy); text-decoration: none;
  transition: border-color .18s var(--tf-ease), background-color .18s var(--tf-ease);
}
.tf-topics a:hover { border-color: var(--tf-green); background: var(--tf-green-tint); }
/* The pill you are standing on. Without it the row on a category page looks
   like a filter that has not been applied yet. */
.tf-topics a.is-on {
  background: var(--tf-green-dark); border-color: var(--tf-green-deep); color: #fff;
}
.tf-topics a.is-on em { color: #fff; background: rgba(255, 255, 255, 0.2); }
.tf-topics em {
  font-style: normal; font-size: 0.72rem; font-weight: 700;
  color: var(--tf-green-deep); background: var(--tf-green-tint);
  border-radius: 999px; padding: 0.05rem 0.4rem;
}

.tf-lead-post {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
  border-radius: var(--tf-radius); overflow: hidden; text-decoration: none;
  background: #fff; border: 1px solid var(--tf-gray-soft);
  box-shadow: var(--tf-shadow-sm);
  transition: transform .22s var(--tf-ease), box-shadow .22s var(--tf-ease), border-color .22s var(--tf-ease);
}
.tf-lead-post:hover {
  transform: translateY(-3px); box-shadow: var(--tf-shadow-lg);
  border-color: rgba(98, 135, 91, 0.45);
}
.tf-lead-post__img { display: block; min-height: 17rem; background-size: cover; background-position: center; }
.tf-lead-post__body { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); }
.tf-lead-post__flag {
  align-self: flex-start; margin-bottom: 0.9rem;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  background: var(--tf-navy); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.tf-lead-post b {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.25; color: var(--tf-navy);
  margin-bottom: 0.7rem; letter-spacing: -0.01em;
}
.tf-lead-post__ex { font-size: 1rem; line-height: 1.6; color: var(--tf-text-soft); }
.tf-lead-post__meta,
.tf-post-list__meta {
  margin-top: auto; padding-top: 1.1rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; color: var(--tf-blue);
}
.tf-lead-post__meta i, .tf-post-list__meta i {
  font-style: normal; font-weight: 700; color: var(--tf-green-deep);
}
.tf-lead-post__meta i::after, .tf-post-list__meta i::after { content: " ·"; color: var(--tf-gray); }

.tf-more-h {
  margin: clamp(2.75rem, 5vw, 3.75rem) 0 1.35rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--tf-blue);
}
.tf-post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.tf-post-list li { margin: 0; }
.tf-post-list a {
  display: grid; grid-template-columns: 8.5rem 1fr auto; align-items: center; gap: 1.35rem;
  padding: 1rem 1.35rem 1rem 1rem; border-radius: var(--tf-radius);
  background: #fff; border: 1px solid var(--tf-gray-soft); text-decoration: none;
  transition: border-color .2s var(--tf-ease), box-shadow .2s var(--tf-ease), transform .2s var(--tf-ease);
}
.tf-post-list a:hover {
  border-color: rgba(98, 135, 91, 0.45); box-shadow: var(--tf-shadow-sm); transform: translateX(3px);
}
.tf-post-list__img { display: block; height: 5.75rem; border-radius: 9px; background-size: cover; background-position: center; }
.tf-post-list__body { display: flex; flex-direction: column; min-width: 0; }
.tf-post-list b { font-size: 1.08rem; line-height: 1.35; color: var(--tf-navy); margin-bottom: 0.3rem; }
.tf-post-list__body > span:not(.tf-post-list__meta) { font-size: 0.93rem; line-height: 1.55; color: var(--tf-text-soft); }
.tf-post-list__meta { margin-top: 0.55rem; padding-top: 0; }
.tf-post-list__go { font-size: 1.15rem; color: var(--tf-green-dark); transition: transform .2s var(--tf-ease); }
.tf-post-list a:hover .tf-post-list__go { transform: translateX(4px); }

@media (max-width: 820px) {
  .tf-lead-post { grid-template-columns: 1fr; }
  .tf-lead-post__img { min-height: 12rem; }
  .tf-post-list a { grid-template-columns: 1fr; gap: 0.9rem; padding: 1rem; }
  .tf-post-list__img { height: 9rem; }
  .tf-post-list__go { display: none; }
}

/* Related reading: two article cards, not a bulleted list of long links. */
.tf-related {
  max-width: none; margin: clamp(2.75rem, 5vw, 3.75rem) 0 0;
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--tf-gray-soft);
}
.tf-related h2 {
  margin: 0 0 1.35rem; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--tf-green-deep);
}
.tf-related h2::before { display: none; }
.tf-page-body .entry-content .tf-related ul,
.tf-related ul {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
}
.tf-page-body .entry-content .tf-related li,
.tf-related li {
  margin: 0; padding: 1.3rem 1.4rem 1.4rem; position: relative;
  background: #fff; border: 1px solid var(--tf-gray-soft); border-radius: var(--tf-radius);
  box-shadow: var(--tf-shadow-xs);
  transition: transform .22s var(--tf-ease), box-shadow .22s var(--tf-ease), border-color .22s var(--tf-ease);
}
.tf-page-body .entry-content .tf-related li::before { display: none; }
.tf-related li:hover {
  transform: translateY(-3px); box-shadow: var(--tf-shadow-md);
  border-color: rgba(98, 135, 91, 0.45);
}
.tf-related a {
  display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.35;
  color: var(--tf-navy); text-decoration: none; margin-bottom: 0.5rem;
}
/* The whole card is the target; the link keeps the accessible name. */
.tf-related a::after { content: ""; position: absolute; inset: 0; border-radius: var(--tf-radius); }
.tf-related li:hover a { color: var(--tf-green-deep); }
.tf-related li > span {
  display: block; font-size: 0.93rem; line-height: 1.6; color: var(--tf-text-soft);
}
.tf-related li::after {
  content: "Read this \2192"; display: block; margin-top: 0.9rem;
  font-size: 0.82rem; font-weight: 700; color: var(--tf-green-dark);
}
@media (max-width: 720px) {
  .tf-page-body .entry-content .tf-related ul,
  .tf-related ul { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Capability UI examples
   Small fragments of the actual interface, rendered as markup rather than as
   screenshots so they stay readable, responsive and legible to a screen
   reader. Every one is framed and labelled as an illustration.
   ========================================================================== */
.tf-ui {
  max-width: none; margin: clamp(1.75rem, 4vw, 2.5rem) 0;
  border: 1px solid var(--tf-gray-soft); border-radius: var(--tf-radius);
  background: linear-gradient(180deg, var(--tf-panel), #FFFFFF 55%);
  box-shadow: var(--tf-shadow-sm);
  overflow: hidden;
}
.tf-ui__head {
  display: block; padding: 1.15rem 1.35rem 0.9rem;
  border-bottom: 1px solid var(--tf-gray-soft);
  background: #fff;
}
.tf-ui__head b { display: block; font-size: 1.02rem; color: var(--tf-navy); margin-bottom: 0.2rem; }
.tf-ui__head > span { display: block; font-size: 0.92rem; color: var(--tf-text-soft); line-height: 1.5; max-width: 60ch; }
.tf-ui__frame { padding: 1.25rem 1.35rem; display: grid; gap: 0.85rem; }
.tf-ui__note {
  margin: 0; padding: 0.6rem 1.35rem 0.9rem;
  font-size: 0.75rem; letter-spacing: 0.04em; color: var(--tf-blue);
}
/* Form, code and texting mock-ups, in the same palette as the rows above. */
.tf-ui__form { display: grid; gap: 0.65rem; }
.tf-ui__form .is-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.tf-ui__form label { display: block; margin-bottom: 0.2rem; font-size: 0.78rem; font-weight: 600; color: var(--tf-navy); }
.tf-ui__form span { display: block; padding: 0.5rem 0.7rem; border: 1px solid var(--tf-gray-soft); border-radius: 8px; background: #fff; font-size: 0.92rem; color: var(--tf-navy); }
.tf-ui__btn { display: inline-block; padding: 0.5rem 0.95rem; border-radius: 999px; background: var(--tf-green-dark); color: #fff; font-size: 0.84rem; font-weight: 600; }
.tf-ui__check { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.88rem; color: var(--tf-navy); line-height: 1.4; }
.tf-ui__check i { position: relative; flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; border: 1px solid var(--tf-gray-soft); border-radius: 4px; background: #fff; }
.tf-ui__check i.is-on { background: var(--tf-green-dark); border-color: var(--tf-green-dark); }
.tf-ui__check i.is-on::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tf-ui__check b { font-weight: 600; }
.tf-ui__sms { padding: 0.6rem 0.75rem; border: 1px solid var(--tf-gray-soft); border-radius: 8px; background: #fff; font-size: 0.9rem; color: var(--tf-navy); line-height: 1.45; }
.tf-ui__codewrap { display: grid; grid-template-columns: 3fr 2fr; gap: 1.25rem; align-items: start; }
.tf-ui__code { display: grid; gap: 0.55rem; min-width: 0; }
.tf-ui__toc { padding: 0.85rem 0.9rem; border: 1px solid var(--tf-gray-soft); border-radius: 10px; background: #fff; font-size: 0.82rem; color: var(--tf-navy); }
.tf-ui__toc > b { display: block; margin-bottom: 0.55rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tf-green-deep); }
.tf-ui__toc .tf-ui__search { margin-bottom: 0.6rem; }
.tf-ui .tf-ui__toc ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.tf-ui .tf-ui__toc li { margin: 0; padding: 0.3rem 0; border-top: 1px solid var(--tf-gray-soft); line-height: 1.35; }
.tf-ui .tf-ui__toc li::before { display: none; }
.tf-ui__toc li em { display: inline-block; width: 1rem; font-style: normal; color: var(--tf-green-dark); }
.tf-ui__toc li b { color: var(--tf-green-deep); }
.tf-ui .tf-ui__toc ul ul { margin: 0.3rem 0 0 1rem; }
.tf-ui .tf-ui__toc ul ul li { padding: 0.25rem 0.4rem; border-top: 0; color: var(--tf-text-soft); border-radius: 6px; }
.tf-ui .tf-ui__toc ul ul li.is-here { background: var(--tf-green-tint); color: var(--tf-navy); font-weight: 600; }
.tf-ui__toc small { font-size: 0.9em; color: var(--tf-text-soft); }
@media (max-width: 720px) { .tf-ui__codewrap { grid-template-columns: 1fr; } }
.tf-ui__code-h { display: block; font-size: 1.05rem; color: var(--tf-navy); }
.tf-ui__code p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--tf-text-soft); }
.tf-ui__code-hist { display: block; font-style: normal; font-size: 0.8rem; color: var(--tf-text-soft); }
.tf-ui__code-enact { margin-top: 0.35rem; padding-top: 0.75rem; border-top: 1px solid var(--tf-gray-soft); }
.tf-ui__code-enact > b { display: block; margin-bottom: 0.5rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tf-green-deep); }
.tf-ui__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.tf-ui__pair > div { display: grid; gap: 0.6rem; }
.tf-ui__pair > div > em { font-style: normal; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tf-green-deep); }
@media (max-width: 640px) { .tf-ui__pair, .tf-ui__form .is-two { grid-template-columns: 1fr; } }

/* Rows: a date block, the body, and what is attached. */
.tf-ui__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.tf-ui .tf-ui__rows > li {
  margin: 0; padding: 0.85rem 0.95rem;
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--tf-gray-soft); border-radius: 10px;
}
.tf-ui .tf-ui__rows > li::before { display: none; }
.tf-ui__rows--plain > li { gap: 0.75rem; }
.tf-ui__date {
  flex-shrink: 0; width: 3rem; text-align: center;
  border: 1px solid rgba(98, 135, 91, 0.4); border-radius: 8px; overflow: hidden; background: #fff;
}
.tf-ui__date em {
  display: block; font-style: normal; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--tf-green-dark); color: #fff; padding: 0.22rem 0;
}
.tf-ui__date b { display: block; font-size: 1.1rem; font-weight: 700; color: var(--tf-green-deep); padding: 0.15rem 0 0.25rem; }
.tf-ui__body { flex: 1; min-width: 12rem; display: flex; flex-direction: column; gap: 0.15rem; }
.tf-ui__body b { font-size: 0.97rem; color: var(--tf-navy); line-height: 1.3; }
.tf-ui__body i { font-style: normal; font-size: 0.85rem; color: var(--tf-text-soft); }
.tf-ui__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-left: auto; }
.tf-ui__tags u {
  text-decoration: none; font-size: 0.76rem; font-weight: 600;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  background: var(--tf-green-tint); color: var(--tf-green-deep);
  border: 1px solid rgba(98, 135, 91, 0.35);
}
.tf-ui__tags u.is-soft { background: var(--tf-panel); color: var(--tf-blue); border-color: var(--tf-gray-soft); }

/* Notice banner, chips, search field. */
.tf-ui__alert {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem;
  padding: 0.7rem 0.95rem; border-radius: 10px;
  background: #FBF3E3; border: 1px solid #E4CE9B; color: #6B5426; font-size: 0.9rem;
}
.tf-ui__alert b { color: #7A5B18; font-weight: 700; }
.tf-ui__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tf-ui__chips u {
  text-decoration: none; font-size: 0.82rem; font-weight: 600;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--tf-gray); color: var(--tf-text-soft); background: #fff;
}
.tf-ui__chips u.is-on { background: var(--tf-navy); border-color: var(--tf-navy); color: #fff; }
.tf-ui__search {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 0.95rem; border-radius: 10px;
  background: #fff; border: 1px solid var(--tf-gray);
  box-shadow: inset 0 1px 2px rgba(15, 45, 74, 0.05);
}
.tf-ui__search span { display: inline-flex; flex-shrink: 0; }
.tf-ui__search svg { width: 18px; height: 18px; color: var(--tf-blue); }
.tf-ui__search i { font-style: normal; font-size: 0.98rem; color: var(--tf-navy); }
.tf-ui__search--sm { padding: 0.5rem 0.65rem; }
.tf-ui__search--sm i { font-size: 0.85rem; color: #8A93A0; }
.tf-ui__hint { margin: 0; font-size: 0.88rem; color: var(--tf-text-soft); }
.tf-ui__hint b { color: var(--tf-navy); }

/* The receipt a form returns. */
.tf-ui__receipt {
  padding: 1.1rem 1.2rem; border-radius: 10px;
  background: #fff; border: 1px solid rgba(98, 135, 91, 0.45);
}
.tf-ui__receipt-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.tf-ui__receipt-head svg { width: 22px; height: 22px; color: #fff; background: var(--tf-green-dark); border-radius: 50%; padding: 4px; }
.tf-ui__receipt-head b { font-size: 1.05rem; color: var(--tf-navy); }
.tf-ui__receipt p { margin: 0 0 0.7rem; font-size: 0.94rem; color: var(--tf-text-soft); }
.tf-ui__receipt p b { color: var(--tf-navy); }
.tf-ui .tf-ui__receipt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; max-width: none; }
.tf-ui .tf-ui__receipt li {
  margin: 0; padding-left: 1.4rem; position: relative;
  font-size: 0.9rem; color: var(--tf-text-soft); line-height: 1.5;
}
.tf-ui .tf-ui__receipt li::before {
  content: ""; position: absolute; left: 0; top: 0.58em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--tf-green);
}

/* A department card. */
.tf-ui__dept { padding: 1.1rem 1.2rem; border-radius: 10px; background: #fff; border: 1px solid var(--tf-gray-soft); }
.tf-ui__dept > b { display: block; font-size: 1.1rem; color: var(--tf-navy); margin-bottom: 0.75rem; }
.tf-ui__dept dl { margin: 0 0 0.85rem; display: grid; grid-template-columns: 5rem 1fr; gap: 0.35rem 0.9rem; }
.tf-ui__dept dt { font-size: 0.8rem; font-weight: 700; color: var(--tf-blue); text-transform: uppercase; letter-spacing: 0.05em; }
.tf-ui__dept dd { margin: 0; font-size: 0.94rem; color: var(--tf-text); }

/* Keyboard focus demonstration. */
.tf-ui__keys { display: flex; gap: 0.4rem; align-items: center; }
.tf-ui__key {
  font-size: 0.75rem; font-weight: 700; color: var(--tf-navy);
  padding: 0.3rem 0.6rem; border-radius: 6px;
  background: #fff; border: 1px solid var(--tf-gray); box-shadow: 0 2px 0 var(--tf-gray-soft);
}
.tf-ui .tf-ui__rows > li.is-focused { outline: 3px solid var(--tf-green); outline-offset: 2px; border-color: var(--tf-green); }

/* A phone-shaped fragment. */
/* The mobile-first panel borrows the demo's handset outright rather than
   drawing a second one. Everything below undoes what .tf-phone assumes about
   living inside the demo stage: it is placed absolutely there, sized as a
   percentage of that stage, and starts invisible waiting for the entrance the
   scroll handler triggers. Here it just stands still.
   The em sizing is the whole reason this works -- .tf-phone is built entirely
   in em, so one font-size on the wrapper scales the handset and everything in
   it, and the numbers below match what the stage resolves to on a wide
   screen. */
.tf-ui__phonecase {
  width: min(100%, 13.4rem); margin: 0 auto;
  font-size: 10.4px;
}
.tf-ui__phonecase .tf-phone {
  position: static; right: auto; bottom: auto;
  width: 100%; opacity: 1; transform: none; transition: none;
}
/* Matches the stage, where the duotone layer is suppressed so the mock's icons
   read as the flat UI icons a phone would draw. */
.tf-ui__phonecase svg .duo { fill: none; }
@media (max-width: 620px) {
  .tf-ui__phonecase { width: min(100%, 12.2rem); font-size: 9.4px; }
}

@media (max-width: 620px) {
  .tf-ui__tags { margin-left: 0; width: 100%; }
  .tf-ui__dept dl { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .tf-ui__dept dt { margin-top: 0.5rem; }
}

/* Expandable stack: the claim and its consequence are always visible, the
   reasoning is a click away. Stacked with real space between rows so each one
   reads as its own object rather than as a table.
   ========================================================================== */
.tf-stack { margin: clamp(2.5rem, 5vw, 3.5rem) 0; display: grid; gap: 0.85rem; }
.tf-stack .tf-p__h { margin-bottom: 0.4rem; }
.tf-stack__item {
  border: 1px solid var(--tf-gray-soft); border-radius: 14px; background: #fff;
  box-shadow: var(--tf-shadow-xs);
  transition: border-color .2s var(--tf-ease), box-shadow .2s var(--tf-ease);
}
.tf-stack__item:hover { border-color: rgba(98, 135, 91, 0.45); box-shadow: var(--tf-shadow-sm); }
.tf-stack__item.is-open { border-color: rgba(98, 135, 91, 0.55); box-shadow: var(--tf-shadow-sm); }
.tf-stack__btn {
  width: 100%; display: flex; align-items: flex-start; gap: 1.1rem;
  padding: 1.25rem 1.4rem; border: 0; border-radius: 14px; background: none;
  font-family: inherit; text-align: left; cursor: pointer;
}
.tf-stack__btn:focus-visible { outline: 3px solid var(--tf-green); outline-offset: -3px; }
.tf-stack__n {
  flex-shrink: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--tf-green-dark); padding-top: 0.25rem;
}
.tf-stack__text { flex: 1; min-width: 0; display: block; }
.tf-stack__text b {
  display: block; font-size: 1.08rem; line-height: 1.35; color: var(--tf-navy);
  margin-bottom: 0.2rem;
}
.tf-stack__text > span { display: block; font-size: 0.95rem; color: var(--tf-text-soft); line-height: 1.5; }
.tf-stack__chev {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tf-panel); position: relative;
  transition: background-color .2s var(--tf-ease), transform .25s var(--tf-ease);
}
.tf-stack__chev::before {
  content: ""; position: absolute; left: 9px; top: 10px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--tf-navy); border-bottom: 2px solid var(--tf-navy);
  transform: rotate(45deg);
}
.tf-stack__item.is-open .tf-stack__chev { background: var(--tf-green-dark); transform: rotate(180deg); }
.tf-stack__item.is-open .tf-stack__chev::before { border-color: #fff; }
.tf-stack--js .tf-stack__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--tf-ease);
}
.tf-stack--js .tf-stack__item.is-open .tf-stack__panel { grid-template-rows: 1fr; }
.tf-stack__body { overflow: hidden; min-height: 0; }
.tf-stack__body p {
  margin: 0; padding: 0 1.4rem 1.35rem 4rem;
  font-size: 0.98rem; line-height: 1.65; color: var(--tf-text-soft);
}
@media (max-width: 620px) {
  .tf-stack__btn { padding: 1.1rem 1.1rem; gap: 0.8rem; }
  .tf-stack__body p { padding: 0 1.1rem 1.2rem 1.1rem; }
}

/* ==========================================================================
   Capability page panels
   Nine pages built from the same template read as one page nine times. These
   deliberately do not share a look: a band, a comparison, a flow, a quote, an
   uneven grid and a rail, combined differently per page. They sit inside the
   prose column and break out of it, which is what stops a long page feeling
   like a document.
   ========================================================================== */
.tf-p { margin: clamp(2.5rem, 5vw, 3.75rem) 0; }
.tf-p__h {
  margin: 0 0 1.4rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--tf-navy);
}

/* Band: short proof, on navy, full bleed inside the column. */
.tf-p--band {
  background:
    radial-gradient(38rem 22rem at 88% -30%, rgba(98, 135, 91, 0.22), transparent 62%),
    linear-gradient(160deg, var(--tf-navy) 0%, var(--tf-navy-ink) 100%);
  color: #fff; border-radius: var(--tf-radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--tf-shadow-md);
}
.tf-p--band .tf-p__lead {
  margin: 0 0 1.5rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: #A9C8A2;
}
.tf-p--band ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem;
}
.tf-p--band li { margin: 0; padding-top: 1.1rem; border-top: 2px solid rgba(169, 200, 162, 0.5); }
.tf-p--band b {
  display: block; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700;
  color: #fff; line-height: 1.25; margin-bottom: 0.4rem;
}
.tf-p--band span { font-size: 0.92rem; color: #B9C6D3; line-height: 1.5; }

/* Comparison: the usual way, then this way. */
.tf-p--vs .tf-p__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.tf-p--vs .tf-p__was,
.tf-p--vs .tf-p__now { border-radius: var(--tf-radius); padding: 1.5rem 1.5rem 1.6rem; }
.tf-p--vs .tf-p__was { background: #F6F5F3; border: 1px solid #E4DFD7; }
.tf-p--vs .tf-p__now {
  background: linear-gradient(170deg, #FFFFFF, var(--tf-green-tint));
  border: 1px solid rgba(98, 135, 91, 0.45);
  box-shadow: var(--tf-shadow-sm);
}
.tf-p--vs b {
  display: block; margin-bottom: 0.9rem; padding-bottom: 0.7rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.tf-p--vs .tf-p__was b { color: #6F6659; border-bottom: 1px solid #E4DFD7; } /* 5.2:1 on the panel ground; #8A7F6E was 3.6:1 */
.tf-p--vs .tf-p__now b { color: var(--tf-green-deep); border-bottom: 1px solid rgba(98, 135, 91, 0.3); }
.tf-p--vs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.tf-p--vs li {
  margin: 0; padding-left: 1.5rem; position: relative;
  font-size: 0.95rem; line-height: 1.5;
}
/* A thumb down rather than a dash. The left column is a list of things going
   wrong and it was marked with a neutral bar, which reads as "item" and says
   nothing. Kept in the column's own muted brown so it stays a mark on a list
   and does not turn four calm sentences into an alarm.
   Nudged down a fraction against the tick opposite: a thumb hangs below its
   own optical center where a check sits on it. */
.tf-p--vs .tf-p__was li { color: #6F6656; padding-left: 1.75rem; }
.tf-p--vs .tf-p__was li::before {
  /* 0.30em, not centered on the box. The thumb sits between y2.8 and y19 of a
     24 unit view, so its optical center is above the middle of its own square
     and centering the square left the mark riding high over the first line. */
  content: ""; position: absolute; left: 0; top: 0.30em;
  width: 15px; height: 15px; background: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A7F6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.6 2.8h3.2a1.8 1.8 0 0 1 1.8 1.8v6.8a1.8 1.8 0 0 1-1.8 1.8h-3.2z'/%3E%3Cpath d='M15.6 13.2h-1.4a1.8 1.8 0 0 0-1.6 1l-1.9 3.9a2.6 2.6 0 0 1-4.8-1.8l.8-3.1H4.4a2 2 0 0 1-1.9-2.5l1.8-6.4a2 2 0 0 1 1.9-1.5h9.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 15px 15px;
}
/* A tick rather than a dot. The left column marks each line with a flat dash
   and the right one answered it with a circle, which is a difference in shape
   without being a difference in meaning. A check says the thing was done. */
.tf-p--vs .tf-p__now li { color: var(--tf-text-soft); padding-left: 1.75rem; }
.tf-p--vs .tf-p__now li::before {
  content: ""; position: absolute; left: 3px; top: 0.42em;
  width: 6px; height: 10px;
  border-right: 2px solid var(--tf-green-dark);
  border-bottom: 2px solid var(--tf-green-dark);
  border-radius: 1px;
  transform: rotate(42deg);
  background: none;
}

/* Flow: numbered, with the rule running through the numbers. */
.tf-p--flow ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  position: relative;
}
.tf-p--flow ol::before {
  content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px;
  background: linear-gradient(90deg, var(--tf-green) 0%, rgba(98, 135, 91, 0.18) 100%);
}
.tf-p--flow li { margin: 0; position: relative; }
.tf-p__n {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--tf-navy); color: #fff;
  font-size: 1rem; font-weight: 700;
  /* No white ring: the circle is opaque and already masks the connecting line,
     and the ring showed as a halo against the page's tinted background. */
  margin-bottom: 0.9rem;
}
.tf-p--flow b { display: block; font-size: 1rem; color: var(--tf-navy); margin-bottom: 0.3rem; }
.tf-p--flow li > span:last-child { font-size: 0.92rem; color: var(--tf-text-soft); line-height: 1.5; }

/* Quote: one sentence, given the room it deserves. */
.tf-p--quote { border-left: 4px solid var(--tf-green); padding-left: clamp(1.25rem, 3vw, 2.25rem); }
.tf-p--quote blockquote { margin: 0; }
.tf-p--quote p {
  margin: 0 0 0.9rem;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem); line-height: 1.35;
  font-weight: 600; color: var(--tf-navy); letter-spacing: -0.01em;
}
.tf-p--quote cite {
  font-style: normal; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--tf-green-deep);
}

/* Bento: one card carries the argument, the others support it. */
.tf-p--bento .tf-p__cells {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.tf-p--bento .tf-p__cells > div {
  background: #fff; border: 1px solid var(--tf-gray-soft); border-radius: var(--tf-radius);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--tf-shadow-sm);
  transition: transform .22s var(--tf-ease), box-shadow .22s var(--tf-ease), border-color .22s var(--tf-ease);
}
.tf-p--bento .tf-p__cells > div:hover {
  transform: translateY(-3px); box-shadow: var(--tf-shadow-md);
  border-color: rgba(98, 135, 91, 0.45);
}
.tf-p--bento .is-wide {
  grid-column: 1 / -1;
  background: linear-gradient(150deg, #FFFFFF 40%, var(--tf-green-tint));
  border-color: rgba(98, 135, 91, 0.4);
}
.tf-p--bento .is-wide b { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }
.tf-p--bento .is-wide > span:last-child { max-width: 52ch; }
.tf-p__ico {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(160deg, #FFFFFF, var(--tf-green-tint));
  border: 1px solid rgba(98, 135, 91, 0.4);
  color: var(--tf-navy); margin-bottom: 1rem;
}
.tf-p__ico svg { width: 21px; height: 21px; }
.tf-p--bento b { display: block; font-size: 1.02rem; color: var(--tf-navy); margin-bottom: 0.4rem; }
.tf-p--bento > .tf-p__cells span:last-child,
.tf-p--bento .tf-p__cells > div > span:last-child { font-size: 0.94rem; color: var(--tf-text-soft); line-height: 1.55; }

/* Rail: a checklist that reads as a procedure. */
.tf-p--rail ol { list-style: none; margin: 0; padding: 0 0 0 2.25rem; position: relative; }
.tf-p--rail ol::before {
  content: ""; position: absolute; left: 9px; top: 0.5rem; bottom: 0.5rem; width: 2px;
  background: linear-gradient(180deg, var(--tf-green), rgba(98, 135, 91, 0.15));
}
.tf-p--rail li { margin: 0 0 1.35rem; position: relative; }
.tf-p--rail li:last-child { margin-bottom: 0; }
/* A dot on the rail, not a bordered white disc with a tick inside it: the
   white ring fought the tinted page behind it and the ticks read as a form
   somebody had filled in. */
.tf-p--rail li::before {
  content: ""; position: absolute; left: calc(-2.25rem + 5px); top: 0.55rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tf-green);
}
.tf-p--rail b { display: block; font-size: 1.05rem; color: var(--tf-navy); margin-bottom: 0.25rem; }
.tf-p--rail span { font-size: 0.95rem; color: var(--tf-text-soft); line-height: 1.55; }

@media (max-width: 860px) {
  .tf-p--band ul { grid-template-columns: 1fr; gap: 1.2rem; }
  .tf-p--vs .tf-p__pair { grid-template-columns: 1fr; }
  .tf-p--flow ol { grid-template-columns: 1fr 1fr; }
  .tf-p--flow ol::before { display: none; }
  .tf-p--bento .tf-p__cells { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tf-p--flow ol { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Breadcrumbs
   A thin strip directly under the page hero, so the trail belongs to the page
   rather than floating in the content. The current page is the last crumb and
   is not a link, because linking a page to itself tells a visitor nothing.
   ========================================================================== */
.tf-crumbs { background: #fff; border-bottom: 1px solid var(--tf-gray-soft); }
.tf-crumbs ol {
  list-style: none; margin: 0; padding: 0.85rem 0;
  display: flex; flex-wrap: wrap; align-items: center;
  font-size: 0.82rem;
}
.tf-crumbs li { margin: 0; display: flex; align-items: center; color: var(--tf-text-soft); }
.tf-crumbs li + li::before {
  content: ""; flex-shrink: 0; box-sizing: border-box;
  width: 0.4em; height: 0.4em; margin: 0 0.75em;
  border-right: 1.5px solid var(--tf-gray); border-top: 1.5px solid var(--tf-gray);
  transform: rotate(45deg);
}
.tf-crumbs a { color: var(--tf-text-soft); text-decoration: none; }
.tf-crumbs a:hover { color: var(--tf-green-dark); text-decoration: underline; text-underline-offset: 3px; }
.tf-crumbs [aria-current="page"] { color: var(--tf-navy); font-weight: 600; }
@media (max-width: 600px) {
  .tf-crumbs ol { font-size: 0.76rem; padding: 0.7rem 0; }
  .tf-crumbs li + li::before { margin: 0 0.55em; }
}

/* ==========================================================================
   Capabilities accordion
   Nine capabilities read better one at a time than as a wall of cards, so the
   titles stack in a single list and only the selected one opens. The photo
   column follows the selection. Without JS every panel stays open, which is
   why the collapse rules are scoped to .tf-acc--js.
   ========================================================================== */
.tf-acc {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(1.75rem, 3.5vw, 3.25rem);
  align-items: start;
}
.tf-acc__list {
  background: #fff;
  border: 1px solid var(--tf-gray-soft);
  border-radius: var(--tf-radius);
  box-shadow: var(--tf-shadow-sm);
  overflow: hidden;
}
.tf-acc__item { position: relative; }
.tf-acc__item + .tf-acc__item { border-top: 1px solid var(--tf-gray-soft); }
/* The green rail marks the open row without moving anything around it. */
.tf-acc__item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--tf-green);
  transform: scaleY(0); transform-origin: center top;
  transition: transform .3s var(--tf-ease);
}
.tf-acc__item.is-open::before { transform: scaleY(1); }
.tf-acc__item.is-open { background: linear-gradient(180deg, rgba(239, 243, 238, 0.55), rgba(239, 243, 238, 0)); }
.tf-acc__h { margin: 0; font-size: inherit; line-height: inherit; }
.tf-acc__btn {
  width: 100%;
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1.02rem; font-weight: 600; line-height: 1.3;
  color: var(--tf-navy); text-align: left;
  transition: background-color .2s var(--tf-ease);
}
.tf-acc__btn:hover { background: rgba(244, 246, 249, 0.85); }
.tf-acc__btn:focus-visible { outline: 3px solid var(--tf-green); outline-offset: -3px; }
.tf-acc__title { flex: 1 1 auto; }
.tf-acc__ico {
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #FFFFFF, var(--tf-green-tint));
  border: 1px solid rgba(98, 135, 91, 0.4);
  color: var(--tf-navy);
  box-shadow: inset 0 1px 0 #fff;
  transition: background .25s var(--tf-ease), border-color .25s var(--tf-ease), color .25s var(--tf-ease);
}
.tf-acc__ico svg { width: 21px; height: 21px; }
.tf-acc__item.is-open .tf-acc__ico {
  background: linear-gradient(160deg, var(--tf-green), var(--tf-green-deep));
  border-color: var(--tf-green-deep);
  color: #fff;
  --tf-ico-duo: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 14px -7px rgba(67, 94, 62, 0.85);
}
.tf-acc__chev {
  flex: 0 0 auto; display: flex; color: var(--tf-blue);
  transition: transform .3s var(--tf-ease), color .2s var(--tf-ease);
}
.tf-acc__chev svg { width: 17px; height: 17px; }
.tf-acc__item.is-open .tf-acc__chev { transform: rotate(180deg); color: var(--tf-green-dark); }

.tf-acc--js .tf-acc__panel {
  display: grid; grid-template-rows: 0fr;
  /* Hidden as well as collapsed, once the fold has finished: a zero-height
     panel is still in the tab order and the accessibility tree, and a
     keyboard user met links they could not see (audit F01, Oct 2026).
     nav.js marks the closed panel inert at once and adds .is-hidden after
     the fold (3.93.2: a delayed transition on visibility did the same job
     but Lighthouse lists it as a non-composited animation on every panel). */
  transition: grid-template-rows .38s var(--tf-ease);
}
.tf-acc--js .tf-acc__panel.is-hidden { visibility: hidden; }
.tf-acc--js .tf-acc__item.is-open .tf-acc__panel { grid-template-rows: 1fr; }
.tf-acc__clip { overflow: hidden; min-height: 0; }
.tf-acc__body { padding: 0.1rem 1.5rem 1.45rem 4.05rem; }
.tf-acc__points { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.55rem; }
.tf-acc__points li {
  position: relative; padding-left: 1.55rem; margin: 0;
  color: var(--tf-text-soft); font-size: 0.95rem; line-height: 1.55;
}
.tf-acc__points li::before {
  content: ""; position: absolute; left: 1px; top: 0.58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--tf-green);
}
.tf-acc__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; font-weight: 600;
  color: var(--tf-green-dark); text-decoration: none;
}
.tf-acc__link:hover { color: var(--tf-green-deep); text-decoration: underline; text-underline-offset: 3px; }
.tf-acc__link span { transition: transform .2s var(--tf-ease); }
.tf-acc__link:hover span { transform: translateX(4px); }
/* Each panel carries its own photograph for phones, where the shared photo
   column is hidden (see the 900px block). On desktop the sticky column
   already shows it, so the in-panel copy stays out of the document flow. */
.tf-acc__photo { display: none; }

.tf-acc__media {
  position: sticky; top: max(104px, 9vh);
  border-radius: var(--tf-radius);
  overflow: hidden;
  box-shadow: var(--tf-shadow-md);
  background: var(--tf-navy);
  aspect-ratio: 4 / 3.4;
}
.tf-acc__shot {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transform: scale(1.05);
  transition: opacity .5s var(--tf-ease), transform .8s var(--tf-ease);
}
.tf-acc__shot.is-active { opacity: 1; transform: scale(1); }
.tf-acc__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The village hall sits high in its own frame, so a centered crop in a 4:3.4
   box cut the clock tower off at the top. Lower the crop and the whole tower
   is in. */
.tf-acc__shot[data-cap="events-meeting-calendar"] img { object-position: 50% 72%; }
.tf-acc__shot::after {
  content: ""; position: absolute; inset: 0;
  /* The caption here has its own near-opaque white pill, so nothing depends on
     this for contrast -- it only seats the pill against the photograph. 0.45
     was doing a legibility job that was already done. */
  background: linear-gradient(to top, rgba(10, 33, 56, 0.26), rgba(10, 33, 56, 0) 58%);
}
.tf-acc__shot figcaption {
  position: absolute; z-index: 1; left: 1.1rem; right: 1.1rem; bottom: 1.1rem;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  column-gap: 0.85rem;
  padding: 0.85rem 1.05rem;
  border-radius: var(--tf-radius-sm);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px -14px rgba(15, 45, 74, 0.6);
}
.tf-acc__badge {
  grid-row: 1 / span 2;
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--tf-green), var(--tf-green-deep));
  color: #fff; --tf-ico-duo: rgba(255, 255, 255, 0.26);
}
.tf-acc__badge svg { width: 23px; height: 23px; }
.tf-acc__shot figcaption b { color: var(--tf-navy); font-size: 0.99rem; line-height: 1.25; }
.tf-acc__shot figcaption > span:last-child { color: var(--tf-text-soft); font-size: 0.85rem; line-height: 1.35; }

@media (max-width: 900px) {
  .tf-acc { grid-template-columns: 1fr; gap: 1.5rem; }
  /* One shared photo box above nine collapsed rows told the reader nothing
     about the row they opened. Each panel shows its own photograph instead,
     so the shared column leaves the page entirely here. */
  .tf-acc__media { display: none; }
  .tf-acc__photo {
    display: block; margin: 0 0 1.1rem;
    border-radius: var(--tf-radius-sm); overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: var(--tf-shadow-sm);
  }
  .tf-acc__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .tf-acc__photo[data-cap="events-meeting-calendar"] img { object-position: 50% 72%; }
  .tf-acc__body { padding-left: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-acc--js .tf-acc__panel, .tf-acc__shot, .tf-acc__item::before { transition: none; }
  .tf-acc__shot { transform: none; }
}

/* Split (two-column) blocks */
.tf-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .tf-split { grid-template-columns: 1fr; } }

/* Checklist */
.tf-check { list-style: none; padding: 0; margin: 1.35rem 0 0; }
.tf-check li { position: relative; padding-left: 2.05em; margin-bottom: 0.72em; }
.tf-check li::before {
  content: ""; position: absolute; left: 0.3em; top: 0.55em;
  width: 0.44em; height: 0.44em; border-radius: 50%;
  background: var(--tf-green);
}
.tf-section--navy .tf-check li::before { background: #A9C8A2; }


/* Icon list — iconized replacement for plain checklists */
.tf-icon-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.95rem; }
.tf-icon-list li { display: flex; align-items: flex-start; gap: 0.9rem; margin: 0; }
.tf-icon-list__ico {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(160deg, #FFFFFF, var(--tf-green-tint));
  border: 1px solid rgba(98, 135, 91, 0.45);
  display: flex; align-items: center; justify-content: center;
  color: var(--tf-navy);
  box-shadow: 0 3px 8px -4px rgba(79, 111, 73, 0.4), inset 0 1px 0 #fff;
}
.tf-icon-list__ico svg { width: 25px; height: 25px; }
.tf-icon-list__body { padding-top: 0.55rem; }
.tf-icon-list__body strong { color: var(--tf-navy); }
.tf-icon-list--compact { gap: 0.7rem; }
.tf-icon-list--compact .tf-icon-list__ico { width: 40px; height: 40px; border-radius: 11px; }
.tf-icon-list--compact .tf-icon-list__ico svg { width: 21px; height: 21px; }
.tf-icon-list--compact .tf-icon-list__body { padding-top: 0.45rem; font-size: 0.95rem; }
/* On a phone a 46px tile plus the container's own inset left the text about
   250px wide, which reads as cramped however much padding is around it. The
   tile comes down and the row gets a little inset of its own. */
@media (max-width: 620px) {
  .tf-icon-list { padding: 0 0.35rem; gap: 1.05rem; }
  .tf-icon-list li { gap: 0.75rem; }
  .tf-icon-list__ico { width: 38px; height: 38px; border-radius: 11px; }
  .tf-icon-list__ico svg { width: 20px; height: 20px; }
  .tf-icon-list__body { padding-top: 0.3rem; }
}
.tf-section--navy .tf-icon-list__ico {
  background: rgba(169, 200, 162, 0.12);
  border-color: rgba(169, 200, 162, 0.35);
  color: #A9C8A2; box-shadow: none;
}

/* Full-width photo statement band */
.tf-photo-band {
  position: relative;
  /* Bias the crop well below center: the band is short, and at 42% it kept the
     roofline and sky and cut the shopfronts off. Sitting on the bottom edge
     puts the road and the shopfronts in frame together. */
  background-size: cover; background-position: center bottom;
  background-color: var(--tf-navy-deep);
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  color: #fff;
}
/* Why now: on the bottom edge this one spent its lower half on empty road.
   Halfway up brings the shopfronts and the low sun back into the band. */
.page-id-11 .tf-photo-band { background-position: center 50%; }
/* The homepage band is a town center with its clock tower in the upper half.
   On the bottom edge the band was the street and the parked vehicles under it;
   at 62% it had climbed off the street but stopped short of the tower, so the
   band was mostly hillside with a sliver of roofline. Sitting on the top edge
   takes the photograph as high as it goes: the belfry and the clock face, the
   one thing in the frame that says town center rather than wooded hill. */
.home .tf-photo-band { background-position: center top; }
/* The home band's photograph is chosen here by viewport rather than written
   once inline, so a phone takes the 700px cut and not the 1700px original.
   Paths are relative to this stylesheet; the files are cached a year under
   assets/, and a recut gets a new width in its name. */
/* .is-near is set by nav.js when the band comes within a screen of the
   viewport, so its photograph is not among the requests the hero competes
   with on first paint. Without JavaScript the band stays plain navy. */
.tf-photo-band--home.is-near {
  background-image: url('assets/images/band-town-center-700.jpg');
  background-image: image-set(url('assets/images/band-town-center-700.webp') type('image/webp'), url('assets/images/band-town-center-700.jpg') type('image/jpeg'));
}
@media (min-width: 760px) {
  .tf-photo-band--home.is-near {
    background-image: url('assets/images/band-town-center-1300.jpg');
    background-image: image-set(url('assets/images/band-town-center-1300.webp') type('image/webp'), url('assets/images/band-town-center-1300.jpg') type('image/jpeg'));
  }
}
@media (min-width: 1400px) {
  .tf-photo-band--home.is-near {
    background-image: url('assets/images/band-town-center.jpg');
    background-image: image-set(url('assets/images/band-town-center.webp') type('image/webp'), url('assets/images/band-town-center.jpg') type('image/jpeg'));
  }
}
.tf-photo-band::before {
  content: ""; position: absolute; inset: 0;
  /* Not the hero's wash. That one is directional, strongest at the left, which
     is right for copy sitting on the left and wrong here: this band centers its
     text, so the weakest part of the gradient fell exactly where the subtitle
     runs widest and it stopped being readable. A symmetric scrim instead,
     deepest through the middle band where the words are. */
  /* The radial version was near-flat -- 0.69 through the middle and 0.72 at the
     corners -- so it cost the whole photograph to light the words. A symmetric
     horizontal scrim instead: 0.70 across the middle where the centered text
     runs, 0.21 at the edges, where the town either side of it can now be
     seen. */
  background:
    linear-gradient(90deg,
      rgba(7, 24, 41, 0.10) 0%,
      rgba(7, 24, 41, 0.62) 22%,
      rgba(7, 24, 41, 0.68) 50%,
      rgba(7, 24, 41, 0.62) 78%,
      rgba(7, 24, 41, 0.10) 100%),
    linear-gradient(180deg,
      rgba(7, 24, 41, 0.12) 0%,
      rgba(7, 24, 41, 0.06) 50%,
      rgba(7, 24, 41, 0.18) 100%);
}
/* All three of the scrims above shape themselves sideways, which works because
   the copy occupies a known part of the width. Below the point where the
   containers stop being wider than their text, the copy runs the full width and
   the shaping would leave the ends of every line on bare photograph. One even
   scrim there, still well below the 0.87-0.94 these used to sit at. */
@media (max-width: 860px) {
  .tf-hero--photo::after,
  .tf-page-hero::before,
  .tf-photo-band::before {
    background: linear-gradient(180deg,
      rgba(7, 24, 41, 0.70) 0%,
      rgba(7, 24, 41, 0.66) 55%,
      rgba(7, 24, 41, 0.74) 100%);
  }
}
.tf-photo-band .tf-container { position: relative; text-align: center; }
/* The shared kicker color is --tf-green-dark, a mid green written for a white
   page. Over the band's scrim it measures about 2:1 and reads as a smudge
   rather than as a line of type. White here, with the rules either side
   brightened so they still register as the accent. */
.tf-photo-band .tf-kicker { color: #FFFFFF; }
.tf-photo-band .tf-kicker::before { background: linear-gradient(90deg, #A9C8A2, rgba(169, 200, 162, 0.25)); }
.tf-photo-band .tf-kicker::after { background: linear-gradient(270deg, #A9C8A2, rgba(169, 200, 162, 0.25)); }
.tf-photo-band h2 { color: #fff; text-shadow: 0 2px 22px rgba(7, 24, 41, 0.5); max-width: 22em; margin-left: auto; margin-right: auto; }
.tf-photo-band p {
  color: #F1F5F9; max-width: 34em; margin: 0 auto 1.5rem;
  font-size: clamp(1.02rem, 1.9vw, 1.18rem); line-height: 1.6;
  text-shadow: 0 1px 14px rgba(7, 24, 41, 0.75);
}

/* Color blocks behind the photograph, each drifting at its own rate. They sit
   outside the picture's edges to give the column some depth, and they are the
   only thing in the section that moves, so the effect stays quiet. */
/* The bottom margin is clearance, not spacing. is-b hangs below the photograph
   and then travels further on scroll, and without room reserved for both it
   ends up sitting on the first line of the list beside it. */
.tf-photo-stack { position: relative; margin-bottom: 2.9rem; container-type: inline-size; }
.tf-photo-stack .tf-inline-photo { position: relative; z-index: 1; margin-bottom: 0; }
.tf-photo-stack__box { position: absolute; border-radius: var(--tf-radius); display: block; }
/* Deeper than they were, and further out. The section behind them is plain
   white and is-a was #EFF3EE, which is four percent away from the page: the
   boxes were traveling the whole time and there was nothing to see traveling.
   Movement you cannot see is not subtle, it is absent. */
.tf-photo-stack__box.is-a {
  width: 48%; aspect-ratio: 1 / 1;
  top: -12%; left: -11%;
  background: rgba(98, 135, 91, 0.22);
}
/* Two pieces of the product, drifting over the photograph. Sized from the
   column rather than in rem, so they hold their proportion against the picture
   at every width instead of swelling on a narrow screen. */
.tf-photo-stack__card {
  position: absolute; z-index: 2;
  display: block; box-sizing: border-box;
  background: #fff; border: 1px solid var(--tf-gray-soft);
  border-radius: var(--tf-radius-sm);
  box-shadow: var(--tf-shadow-lg);
  padding: 4.2% 4.6%;
  font-size: clamp(0.72rem, 2.45cqw, 0.95rem);
  line-height: 1.35;
}
.tf-photo-stack__card.is-news { width: 54%; left: -9%; top: 8%; }
.tf-photo-stack__card.is-meet {
  width: 50%; right: -8%; bottom: -6%;
  display: flex; align-items: center; gap: 0.7em;
}
.tf-photo-stack__eyebrow {
  display: flex; align-items: center; gap: 0.4em;
  font-size: 0.82em; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--tf-green-dark);
  margin-bottom: 0.5em;
}
.tf-photo-stack__eyebrow svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.tf-photo-stack__card b {
  display: block; color: var(--tf-navy); font-size: 1.06em; font-weight: 700;
}
.tf-photo-stack__card i {
  display: block; font-style: normal; margin-top: 0.35em;
  font-size: 0.88em; color: var(--tf-text-soft);
}
/* The date block borrows the demo's calendar chip so the two agree. */
.tf-photo-stack__cal {
  flex-shrink: 0; width: 3.1em; padding: 0.4em 0;
  border-radius: 0.5em; background: var(--tf-green-tint);
  border: 1px solid rgba(98, 135, 91, 0.3);
  text-align: center; line-height: 1.1;
}
.tf-photo-stack__cal em {
  display: block; font-style: normal; font-size: 0.76em; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--tf-green-deep);
}
.tf-photo-stack__cal b { display: block; font-size: 1.3em; color: var(--tf-navy); }
.tf-photo-stack__meet { min-width: 0; }
.tf-photo-stack__meet b { font-size: 1em; }
.tf-photo-stack__meet i { margin-top: 0.2em; }
@media (max-width: 860px) {
  /* Kept, but tucked in. They were switched off because the overhang had
     nowhere to go in a single column; pulling them inside the photograph's
     edges keeps the composition without pushing on the layout. The photo gets
     a margin of its own so the two upper boxes have somewhere to sit. */
  /* Pushed further out than the first attempt, which tucked them so far in
     they read as a shadow. The container carries 1.7rem of padding on a phone,
     so roughly eight percent of the photograph's width can hang past its edge
     and still land inside the page rather than against the screen. Vertical
     margins grow to make room for the two that sit above. The horizontal
     overhang is capped in rem as well as percent, because eight percent of a
     430px phone is wider than the padding and the box would meet the screen. */
  .tf-photo-stack { margin: 3rem 0 4.6rem; }
  .tf-photo-stack__box.is-a { width: 48%; top: -13%; left: max(-9%, -1.6rem); }
  /* Pulled inside the picture's edges here. A card hanging nine percent past
     a full-width column meets the screen, and a card that meets the screen is
     a horizontal scrollbar. */
  .tf-photo-stack__card.is-news { width: 62%; left: max(-6%, -1rem); top: 6%; }
  .tf-photo-stack__card.is-meet { width: 58%; right: max(-6%, -1rem); bottom: -7%; }
}

/* Inline photo (rounded, used inside split sections) */
.tf-inline-photo {
  margin: 0 0 1.6rem;
  border-radius: var(--tf-radius); overflow: hidden;
  box-shadow: var(--tf-shadow-md);
  aspect-ratio: 16 / 10;
}
.tf-inline-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Community photo strip */
.tf-photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; margin-top: 2.5rem; }
@media (max-width: 760px) { .tf-photo-strip { grid-template-columns: 1fr; } }
.tf-photo-strip figure {
  position: relative; margin: 0;
  border-radius: var(--tf-radius); overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--tf-shadow-md);
}
.tf-photo-strip img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--tf-ease);
}
/* The common sits low in its frame, so a centered crop spent the card on bare
   trees and sky. Anchored to the bottom it is the green, the path and the
   gazebo. */
.tf-photo-strip__low img { object-position: 50% 100%; }
.tf-photo-strip figure:hover img { transform: scale(1.045); }
.tf-photo-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1.2rem 0.95rem;
  /* Was a straight ramp to 0.72, which meant the middle of the picture was
     already half covered before the text started. Clear for the first third,
     then a fast fall to 0.88 under the words -- more photograph and more
     contrast at the same time. */
  /* The words sit between 54% and 69% of this box, and at 54% the old ramp
     had only reached 0.32. Measured against the photograph actually behind it,
     the main-street card came out at 3.89:1, under the 4.5:1 this text needs
     at 16px and weight 600. The ramp now reaches 0.50 by the time the glyphs
     start, which measures 5.7:1 on the worst pixel of the three. The first
     third is still clear, so the picture keeps what the earlier ramp was
     protecting. */
  background: linear-gradient(180deg,
    rgba(7, 24, 41, 0) 0%,
    rgba(7, 24, 41, 0.06) 34%,
    rgba(7, 24, 41, 0.50) 54%,
    rgba(7, 24, 41, 0.78) 72%,
    rgba(7, 24, 41, 0.90) 100%);
  color: #fff; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
}

/* Feature panel (white card list on tinted sections) */
.tf-panel-card {
  background: #fff; border: 1px solid var(--tf-gray-soft); border-radius: var(--tf-radius);
  box-shadow: var(--tf-shadow-md);
  padding: 2rem 1.9rem 1.85rem;
}
.tf-panel-card h3 { display: flex; align-items: center; gap: 0.7rem; }
/* Headings in an article that is itself about a grid of sixteen icons.
   The mark indents with the heading rather than hanging into the margin: an
   outdented icon pulls the eye left of the text column and the page loses its
   left edge. Sized in em so it is the height of the type it sits beside, drawn
   at a thinner stroke than the icon set's default and in the same color as
   the heading, so it reads as a piece of the type rather than as a badge
   parked next to it. */
.tf-a-head { display: flex; align-items: center; gap: 0.55em; }
.tf-a-ico {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tf-a-ico svg { width: 1em; height: 1em; }
/* Single color: the duotone layer is filled by default and would make these
   two-tone against headings that are one. */
.tf-a-head .duo { fill: none; }
/* The h2 mark sits above its heading rather than beside it. Beside the type it
   competed with the first word for the start of the line; above it, it reads
   as a marker for the section and the heading keeps a clean left edge. */
h2.tf-a-head { flex-direction: column; align-items: flex-start; gap: 0.45em; }
h2.tf-a-head .tf-a-ico { color: inherit; font-size: 1.15em; }
h2.tf-a-head .tf-a-ico svg { stroke-width: 1.15; }
h3.tf-a-head .tf-a-ico { color: var(--tf-green-dark); font-size: 0.95em; }
h3.tf-a-head .tf-a-ico svg { stroke-width: 1.5; }
/* Marks on the list of what is already included. Absolute rather than a flex
   row, so the item's own text keeps its wrapping and the bullet's disc is the
   only thing being replaced. */
.entry-content li.tf-a-li {
  list-style: none; position: relative; padding-left: 2.2rem;
}
.tf-a-li-ico {
  position: absolute; left: 0; top: 0.18em;
  display: inline-flex; width: 1.3em; height: 1.3em;
  color: var(--tf-green-dark);
}
.tf-a-li-ico svg { width: 100%; height: 100%; stroke-width: 1.5; }

.tf-h3-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  color: var(--tf-navy);
}
.tf-h3-ico svg { width: 32px; height: 32px; }

/* Steps */
.tf-steps { counter-reset: tf-step; }
.tf-steps .tf-card { padding-top: 2rem; }
.tf-steps .tf-card::before,
.tf-steps .tf-card::after {
  content: ""; position: absolute; top: 0; left: 1.65rem; right: 1.65rem; height: 3px;
  border-radius: 0 0 3px 3px;
}
/* Resting bar: green at the left, thinning out to nearly nothing at the right. */
.tf-steps .tf-card::before {
  background: linear-gradient(90deg, var(--tf-green), rgba(98,135,91,0.15));
}
/* The shimmer rides on its own layer so it can fade as well as travel. A band
   with hard edges crossing at a constant brightness is what reads as a dot on
   the move: this one is wide enough to cover most of the bar, has no edge to
   catch the eye, and rises and falls over the crossing, so what registers is
   the bar catching the light rather than an object going past. */
.tf-steps .tf-card::after {
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.30) 30%,
    rgba(255,255,255,0.62) 50%,
    rgba(255,255,255,0.30) 70%,
    rgba(255,255,255,0) 100%) no-repeat;
  background-size: 85% 100%;
  background-position: -95% 0;
  opacity: 0;
}
.tf-steps .tf-card:hover::after,
.tf-steps .tf-card:focus-within::after {
  animation: tf-step-shimmer .95s var(--tf-ease) 1 both;
}
@keyframes tf-step-shimmer {
  from { background-position: -95% 0; opacity: 0; }
  25%  { opacity: 1; }
  70%  { opacity: 1; }
  to   { background-position: 195% 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-steps .tf-card:hover::after,
  .tf-steps .tf-card:focus-within::after { animation: none; }
}

/* Comparison table */
.tf-compare { margin-top: 2.5rem; border: 1px solid var(--tf-gray-soft); border-radius: var(--tf-radius); overflow: hidden; box-shadow: var(--tf-shadow-sm); background: #fff; }
.tf-compare table { margin: 0; }
.tf-compare th, .tf-compare td { border: 0; border-bottom: 1px solid var(--tf-gray-soft); padding: 0.95rem 1.2rem; }
.tf-compare tr:last-child td { border-bottom: 0; }
.tf-compare th:first-child, .tf-compare td:first-child { border-right: 1px solid var(--tf-gray-soft); }
.tf-compare thead th { background: var(--tf-navy); color: #fff; }
.tf-compare td:first-child { color: var(--tf-blue); }
.tf-compare td:last-child { color: var(--tf-navy); font-weight: 500; }

/* ==========================================================================
   Posts / Resources
   ========================================================================== */
.tf-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; margin-top: 2.5rem; }
@media (max-width: 980px) { .tf-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tf-post-grid { grid-template-columns: 1fr; } }
.tf-post-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--tf-gray-soft); border-radius: var(--tf-radius);
  padding: 1.7rem 1.6rem 1.5rem;
  box-shadow: var(--tf-shadow-sm);
  transition: transform .25s var(--tf-ease), box-shadow .25s var(--tf-ease), border-color .25s var(--tf-ease);
}
.tf-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tf-shadow-md);
  border-color: rgba(98, 135, 91, 0.45);
}
.tf-post-card__cat {
  display: inline-flex; align-self: flex-start;
  font-size: 0.68rem; font-weight: 650; letter-spacing: 0.11em; text-transform: uppercase;
  color: #fff;
  background: var(--tf-green); border-radius: 99px;
  padding: 0.3rem 0.75rem; margin-bottom: 0.95rem;
}
.tf-post-card h3 { font-size: 1.13rem; line-height: 1.36; margin-bottom: 0.55em; }
.tf-post-card h3 a { color: var(--tf-navy); text-decoration: none; }
.tf-post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.tf-post-card h3 a:hover { color: var(--tf-green-dark); }
.tf-post-card p { font-size: 0.93rem; color: var(--tf-text-soft); flex: 1; }
.tf-post-card__meta { font-size: 0.79rem; color: var(--tf-blue); margin-top: 0.85rem; }

.tf-article { padding: var(--tf-section) 0; }
.tf-article__inner { max-width: 46em; margin: 0 auto; }
/* Wider than the measure it sits in, so the picture reads as a plate in the
   article rather than as another paragraph. Capped at the container so it
   never pushes the page sideways on a phone. */
.tf-article__photo {
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 clamp(1.8rem, 4vw, 2.6rem);
  width: min(100%, 52em); margin-left: 50%; transform: translateX(-50%);
  border-radius: var(--tf-radius); overflow: hidden;
  box-shadow: var(--tf-shadow-md);
}
.tf-article__photo img { display: block; width: 100%; height: auto; }
.tf-article__meta { font-size: 0.85rem; color: var(--tf-blue); margin-bottom: 0.75rem; }
.tf-article h1 { font-size: clamp(1.85rem, 3.5vw, 2.55rem); }
.tf-article .entry-content h2 { margin-top: 1.8em; }
.tf-article .entry-content h3 { margin-top: 1.5em; }

.tf-pagination { margin-top: 3.25rem; display: flex; justify-content: center; gap: 0.45rem; }
/* Circles, and green rather than navy. Navy is the structural color and it is
   already carrying the header, the hero and the footer of any page a
   pagination appears on; the control a reader actually presses should not be
   the same color as the furniture. A round page number also reads as a
   number rather than as a small button, which is what it is.
   Fixed width and height rather than padding, or "10" would be an oval next to
   a circular "9". */
.tf-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.65rem; height: 2.65rem; padding: 0;
  border: 1px solid var(--tf-gray-soft); border-radius: 50%;
  background: #fff; text-decoration: none; color: var(--tf-navy); font-weight: 600;
  transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s;
}
/* Next and Previous carry words, so they keep a pill rather than being squeezed
   into a circle they do not fit. */
.tf-pagination .page-numbers.next,
.tf-pagination .page-numbers.prev {
  width: auto; padding: 0 1.05rem; border-radius: 999px;
}
.tf-pagination .page-numbers.current {
  background: var(--tf-green-dark); color: #fff; border-color: var(--tf-green-deep);
}
.tf-pagination a.page-numbers:hover {
  border-color: var(--tf-green); background: var(--tf-green-tint);
  color: var(--tf-navy); box-shadow: var(--tf-shadow-xs);
}
.tf-pagination .page-numbers.dots { border-color: transparent; background: none; }
/* The same green .tf-btn--green already uses everywhere else, rather than a
   gradient mixed for this one page: an off-brand green is worse than a blue
   button. */
.search .tf-noresults .tf-btn--primary {
  background: var(--tf-green-dark); color: #fff;
  box-shadow: 0 8px 20px -10px rgba(79, 111, 73, 0.55);
}
.search .tf-noresults .tf-btn--primary:hover { background: var(--tf-green-deep); color: #fff; }

/* Live search states and matches. */
/* Working, without taking the list away. A hairline across the top says the
   panel is busy while the rows already found stay where they are and keep
   their marks. */
.tf-searchres.is-busy::before {
  content: ""; position: sticky; top: -0.5rem; z-index: 2;
  display: block; height: 2px; margin: -0.5rem -0.5rem 0;
  background: linear-gradient(90deg, transparent, var(--tf-green), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: tf-searchbar-sweep 1s linear infinite;
}
@keyframes tf-searchbar-sweep {
  0%   { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-searchres.is-busy::before {
    animation: none; background: var(--tf-green); opacity: 0.5;
  }
}
.tf-searchres__hit {
  background: rgba(98, 135, 91, 0.22); color: inherit;
  border-radius: 3px; padding: 0 1px; font-weight: 700;
}
/* Inline flow, not flex: the no-results message is three nodes (text, the
   quoted query, text) and flex renders them as three separate columns that
   wrap independently on a narrow panel. Only the searching state needs flex,
   to seat the spinner beside its label. */
.tf-searchres__note {
  margin: 0; padding: 1.05rem 1.15rem;
  font-size: 0.92rem; line-height: 1.5; color: var(--tf-text-soft);
  overflow-wrap: anywhere;
}
.tf-searchres__note--searching { display: flex; align-items: center; gap: 0.55rem; }
/* Selectable on purpose: a reader checking what they typed should be able to
   pick the word out of the message rather than out of the field. */
.tf-searchres__note, .tf-searchres__q { user-select: text; }
.tf-searchres__q { color: var(--tf-navy); font-weight: 700; }
.tf-searchres__q::before { content: "\201C"; }
.tf-searchres__q::after { content: "\201D"; }
.tf-searchres__spin {
  width: 15px; height: 15px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid var(--tf-gray); border-top-color: var(--tf-green-dark);
  animation: tf-spin .7s linear infinite;
}
@keyframes tf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .tf-searchres__spin { animation-duration: 1.6s !important; }
}

/* Entry content (interior pages) */
.entry-content { font-size: 1.045rem; }
.entry-content > * { max-width: 46em; }
.entry-content > .alignwide, .entry-content > .wp-block-columns, .entry-content > .tf-fullw { max-width: none; }
.entry-content h2 { margin-top: 1.7em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content li { margin-bottom: 0.6em; }
.entry-content .wp-block-buttons { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* --------------------------------------------------------------------------
   Prose pages as panels

   The capability pages and the other inner pages are written as headings and
   lists. Rather than rewrite each one as bespoke sections, the default page
   body gives that structure the same shape the homepage uses: a tinted ground,
   headings that read as section heads, and list items as cards.
   -------------------------------------------------------------------------- */
.tf-page-body { background: linear-gradient(180deg, var(--tf-panel) 0%, #FBFCFD 42%, #FFFFFF 100%); }
.tf-page-body .entry-content > * { max-width: 52em; }
.tf-page-body .entry-content > p { color: var(--tf-text-soft); }
.tf-page-body .entry-content > p:first-child {
  font-size: 1.17rem; line-height: 1.7; color: var(--tf-text);
}
.tf-page-body .entry-content > h2 {
  max-width: 46em; margin-top: 2.6em; margin-bottom: 1.1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}
.tf-page-body .entry-content > h2::before {
  content: ""; display: block; width: 2.2rem; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--tf-green), rgba(98,135,91,0.35));
  margin-bottom: 0.9rem;
}
.tf-page-body .entry-content > h2:first-child { margin-top: 0; }

/* Lists become cards, two across where there is room. */
/* Plain lists. Every item boxed as a card gave equal weight to everything and
   turned each page into a field of pills; the panels above are where emphasis
   belongs. A small dot, no border, no tick. */
.tf-page-body .entry-content > ul {
  max-width: 52em; list-style: none; margin: 0 0 1.6rem; padding: 0;
  display: grid; gap: 0.75rem;
}
.tf-page-body .entry-content > ul > li {
  margin: 0; position: relative; padding: 0 0 0 1.5rem;
  font-size: 1rem; line-height: 1.65; color: var(--tf-text-soft);
}
.tf-page-body .entry-content > ul > li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--tf-green);
}
.tf-page-body .entry-content > ul > li strong { color: var(--tf-navy); }

/* The closing list of links reads as navigation, not as more content. */
.tf-page-body .entry-content > ul:last-child > li { padding: 0; }
.tf-page-body .entry-content > ul:last-child > li::before { display: none; }
.tf-page-body .entry-content > ul:last-child > li > a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1.05rem 1.3rem; text-decoration: none;
  font-weight: 600; color: var(--tf-navy);
}
.tf-page-body .entry-content > ul:last-child > li > a::after {
  content: "\2192"; color: var(--tf-green-dark); transition: transform .2s var(--tf-ease);
}
.tf-page-body .entry-content > ul:last-child > li:hover > a::after { transform: translateX(4px); }

/* The call to action paragraph sits in a panel of its own. */
.tf-page-body .entry-content > p:has(> strong:first-child) {
  max-width: none; margin: 2.2rem 0;
  background: var(--tf-green-tint); border: 1px solid rgba(98,135,91,0.28);
  border-radius: var(--tf-radius); padding: 1.35rem 1.5rem;
  color: var(--tf-text); font-size: 1.04rem;
}
@media (max-width: 760px) {
  .tf-page-body .entry-content > ul { grid-template-columns: 1fr; }
}
.entry-content .wp-block-button__link {
  display: inline-block;
  background: linear-gradient(180deg, #16395C 0%, var(--tf-navy) 55%, var(--tf-navy-deep) 100%);
  color: #fff; border-radius: 10px;
  font-weight: 600; font-size: 0.96rem; padding: 1rem 1.6rem; text-decoration: none;
  box-shadow: 0 1px 2px rgba(15,45,74,0.25), 0 10px 22px -10px rgba(15,45,74,0.45);
  transition: transform .18s var(--tf-ease), box-shadow .18s var(--tf-ease);
}
.entry-content .wp-block-button__link:hover { transform: translateY(-1px); }
.entry-content .is-style-outline .wp-block-button__link {
  background: rgba(255,255,255,0.6); color: var(--tf-navy); border: 1.5px solid rgba(15,45,74,0.28); box-shadow: none;
}
.entry-content .is-style-outline .wp-block-button__link:hover { border-color: var(--tf-navy); background: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.tf-footer {
  position: relative;
  background:
    radial-gradient(50rem 28rem at 90% -20%, rgba(98, 135, 91, 0.14), transparent 60%),
    linear-gradient(165deg, var(--tf-navy) 0%, var(--tf-navy-ink) 100%);
  color: #B9C6D3;
  font-size: 0.94rem;
}
.tf-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--tf-green), rgba(98,135,91,0.1));
}
.tf-footer a { color: #DCE5ED; text-decoration: none; }
.tf-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--tf-green); }
.tf-footer__cta { border-bottom: 1px solid rgba(255,255,255,0.1); padding: clamp(2.75rem, 6vw, 4.25rem) 0; }
.tf-footer__cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem; }
.tf-footer__cta h2 { color: #fff; margin: 0 0 0.3em; }
.tf-footer__cta p { margin: 0; color: #B9C6D3; max-width: 34em; }
/* Button plus its reassurance. The column is centered on the button rather than
   left-aligned under it, so the short line reads as belonging to the button and
   not as a stray caption. On a narrow screen the flex row above has already
   stacked, and this sits left with everything else. */
.tf-footer__cta-action {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.tf-footer__cta-note {
  color: #93A5B6; font-size: 0.8125rem; letter-spacing: 0.01em;
}
@media (max-width: 640px) {
  .tf-footer__cta-action { align-items: flex-start; }
}
.tf-footer__main {
  /* The Features column carries the longest labels on the site -- "Events &
     Meeting Calendar" needs about 200px at this size and an even quarter share
     gave it 189, so it broke across two lines while the columns either side ran
     short. The extra comes from the brand column, whose blurb was already
     wrapping inside its own 26em limit and so loses nothing by being narrower. */
  display: grid; grid-template-columns: 1.75fr 1fr 1.3fr 1fr; gap: clamp(2rem, 4vw, 3.5rem);
  /* longhand only: must not clobber .tf-container's horizontal padding */
  padding-top: clamp(2.5rem, 6vw, 3.75rem);
  padding-bottom: clamp(2.5rem, 6vw, 3.75rem);
}
.tf-footer__main > * { min-width: 0; }
@media (max-width: 980px) { .tf-footer__main { grid-template-columns: 1fr 1fr; gap: 2.25rem; } }
@media (max-width: 560px) { .tf-footer__main { grid-template-columns: 1fr; } }
/* The reverse lockup, drawn as one file. It replaces a mark-plus-live-text
   assembly whose sage was mixed by hand for this ground; the file carries Sage
   Light, which is the value the guidelines specify for green on navy.

   Compact, because this is a footer, which is the case section 02 names for it.
   The primary configuration cannot go below 320px without its tagline becoming
   illegible, and this column is 1.75fr of four: about 288px at a 1000px
   viewport, so the lockup overhung it between roughly 981px and 1100px and
   cleared it by only 17px at full width, which is less than its own clear
   space. Compact has no tagline to protect and a 110px minimum, so 240px sits
   inside the column at every width with room to spare.

   Clear space is x = the wordmark's cap height, 29px at this size. Below the
   lockup that is this margin plus the blurb's own 1rem top margin, which comes
   to 30px; the footer's padding and the grid gap cover the other three sides. */
.tf-footer__lockup {
  display: block; width: 240px; height: auto;
  aspect-ratio: 8209.45 / 1264.75;
  margin-bottom: 0.9rem;
}
.tf-footer a.tf-btn--reverse { color: var(--tf-navy); }
.tf-footer a.tf-btn--reverse:hover { color: var(--tf-navy); text-decoration: none; }
.tf-footer__about { font-size: 0.88rem; margin-top: 1rem; max-width: 26em; color: #9DB0C2; overflow-wrap: break-word; }
.tf-footer__h {
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase;
  color: #8FA3B5; margin: 0 0 1.05rem;
}
.tf-footer__h a { color: inherit; text-decoration: none; }
.tf-footer__h a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--tf-green); }
.tf-footer ul { list-style: none; margin: 0; padding: 0; }
/* One column, so the list reads in the menu's order straight down rather than
   snaking across two. It is the tallest column in the footer as a result, and
   the others no longer need to reserve width for a second list. */
.tf-footer__caps { display: block; }
.tf-footer li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.tf-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; }
.tf-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.85rem; font-size: 0.8rem; color: #8FA3B5; }
.tf-footer__legal { text-align: right; }
.tf-footer__legal a { color: #B9C6D3; }
.tf-footer__motto {
  display: block; margin-top: 1.4rem;
  letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.7rem; font-weight: 550; color: #B9C6D3;
}
.tf-footer__motto::after { content: ""; display: block; width: 34px; height: 2px; border-radius: 2px; background: var(--tf-green); margin-top: 0.45rem; }

/* The accessibility button is fixed bottom-left, 48px tall and 20px off both
   edges, so it covers everything in the bottom 68px of the last screen. This
   block is the last thing on the page and carried only 1.5rem beneath it, which
   put its final line at 24-43px -- squarely underneath the button.
   On a phone .tf-footer__bottom-inner wraps and that final line is the Privacy
   Policy and Terms of Use links, so the button was swallowing the tap. Reserve
   the button's height plus clearance. 620px is the theme's own narrow
   breakpoint; the line wraps below about 500px, so this covers it with room. */
@media (max-width: 620px) {
  .tf-footer__bottom { padding-bottom: var(--tf-float-clearance, 5.5rem); }
}

/* ==========================================================================
   Search form
   ========================================================================== */
.tf-search-form { display: flex; gap: 0.55rem; max-width: 30rem; }
.tf-search-form input[type="search"] {
  flex: 1; font-family: var(--tf-font); font-size: 1rem;
  padding: 0.85rem 1.05rem 0.85rem 2.85rem;
  border: 1px solid var(--tf-gray); border-radius: 10px;
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7C93' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.7-3.7'/%3E%3C/svg%3E") no-repeat 1.05rem center;
  background-size: 17px 17px;
  box-shadow: var(--tf-shadow-xs);
}
.tf-search-form input[type="search"]:focus,
.tf-search-form input[type="search"]:focus-visible {
  outline: 3px solid var(--tf-green); outline-offset: 2px; box-shadow: none; border-color: var(--tf-gray);
}
/* The browser's own clear control is a small gray cross that belongs to the
   browser rather than to this site. Restyled to the same green the button
   beside it uses, so the two controls in the field read as a pair. */
.tf-search-form input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; display: block;
  width: 19px; height: 19px; border-radius: 50%; cursor: pointer;
  background: var(--tf-green-dark) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}
.tf-search-form input[type="search"]::-webkit-search-cancel-button:hover { background-color: var(--tf-green-deep); }
/* The header field prints the same partial, so the ring above reached it too,
   later in the file at equal specificity, and drew as four corner brackets
   around the pill. The header field has its own focus treatment. */
.tf-navsearch__form .tf-search-form input[type="search"]:focus,
.tf-navsearch__form .tf-search-form input[type="search"]:focus-visible {
  outline: none; box-shadow: none; border-color: var(--tf-green);
}
/* The header panel prints the same searchform partial, so it carries
   .tf-search-form too, and the rule above -- later in the file at equal
   specificity -- switched the browser's cross back on inside a field that
   already has a cross of its own beside it. One more class outranks it.
   Bounded to the widths where that toggle exists: below 1180px the toggle is
   hidden and the header deliberately restores the browser's control, because
   otherwise the field has no way to clear itself at all. */
@media (min-width: 1181px) {
  .tf-navsearch__form .tf-search-form input[type="search"]::-webkit-search-cancel-button,
  .tf-navsearch__form .tf-search-form input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none; appearance: none; display: none;
  }
}

/* ==========================================================================
   TownFront Forms — the contact form (and any other tf_form) in the theme's
   own dress. The plugin ships structure only; palette and field treatment
   are the theme's. Same look the Formidable form had before it.
   ========================================================================== */
.tff-form-wrap {
  font-family: var(--tf-font); max-width: 44rem;
  background: #fff;
  border: 1px solid var(--tf-gray-soft);
  border-top: 3px solid var(--tf-green);
  border-radius: var(--tf-radius);
  box-shadow: var(--tf-shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0;
}
.tff-form-wrap .tff-form__description { color: var(--tf-blue); margin-bottom: 1.5rem; }
.tff-form-wrap .tf-field { margin-bottom: 1.4rem; }
.tff-form-wrap .tf-field__label,
.tff-form-wrap .tff-legend {
  display: block; font-size: 0.92rem; font-weight: 600;
  color: var(--tf-navy); margin-bottom: 0.45rem;
}
.tff-form-wrap .tf-required { color: #A63D3D; margin-left: 0.15em; }
.tff-form-wrap .tf-field__optional { font-weight: 400; color: var(--tf-blue); font-size: 0.85em; }
.tff-form-wrap .tff-field__help { font-size: 0.85rem; color: var(--tf-blue); margin: 0.35rem 0 0; }
/* Field treatment lifted from the staff-view demo, which is the version people
   said they liked: a pale border that sits back until you approach it, an
   inset highlight rather than a drop shadow so the field reads as a recess,
   and on focus a soft green halo instead of a hard outline standing off the
   edge. */
.tff-form input[type="text"],
.tff-form input[type="email"],
.tff-form input[type="tel"],
.tff-form input[type="url"],
.tff-form input[type="number"],
.tff-form input[type="date"],
.tff-form input[type="time"],
.tff-form input[type="password"],
.tff-form select,
.tff-form textarea {
  width: 100%; font-family: var(--tf-font); font-size: 1rem; color: var(--tf-text);
  background: #fff; border: 1px solid var(--tf-gray); border-radius: 8px;
  padding: 0.85rem 1rem; line-height: 1.4;
  box-shadow: inset 0 1px 2px rgba(15, 45, 74, 0.05);
  transition: border-color .16s var(--tf-ease), box-shadow .16s var(--tf-ease);
}
.tff-form textarea { min-height: 8rem; resize: vertical; }
.tff-form select {
  -webkit-appearance: none; appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7C93' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 15px 15px;
}
.tff-form select[multiple], .tff-form select[size]:not([size="1"]) { background-image: none; padding-right: 1rem; }
.tff-form input[type="text"]:hover,
.tff-form input[type="email"]:hover,
.tff-form input[type="tel"]:hover,
.tff-form input[type="url"]:hover,
.tff-form input[type="number"]:hover,
.tff-form input[type="date"]:hover,
.tff-form input[type="time"]:hover,
.tff-form input[type="password"]:hover,
.tff-form select:hover,
.tff-form textarea:hover { border-color: var(--tf-blue); }
/* Typed rather than a bare input:focus, so the submit button and the radio and
   checkbox controls keep the focus treatment written for them further down. */
.tff-form input[type="text"]:focus,
.tff-form input[type="email"]:focus,
.tff-form input[type="tel"]:focus,
.tff-form input[type="url"]:focus,
.tff-form input[type="number"]:focus,
.tff-form input[type="date"]:focus,
.tff-form input[type="time"]:focus,
.tff-form input[type="password"]:focus,
.tff-form select:focus,
.tff-form textarea:focus {
  outline: 2px solid var(--tf-green); outline-offset: 2px; border-color: var(--tf-green-dark);
  box-shadow: 0 0 0 3px rgba(98, 135, 91, 0.22);
}
@media (forced-colors: active) {
  .tff-form input:focus, .tff-form select:focus, .tff-form textarea:focus {
    outline: 3px solid Highlight; outline-offset: 1px;
  }
}
.tff-form input[type="radio"], .tff-form input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem; accent-color: var(--tf-green-dark);
}
.tff-form .tff-choice label, .tff-form .tff-consent__label { font-weight: 400; margin: 0; }
.tff-form input[type="file"] { font-family: var(--tf-font); font-size: 0.92rem; }
/* Errors: the summary at the top and the line under the field are the same
   message at two distances. Hover and focus are listed too, so the blue hover
   border and the green halo do not paint over the one signal telling the
   person which field still needs an answer. */
.tff-form-wrap .tff-field__error { color: #8C2F2F; font-size: 0.86rem; font-weight: 500; margin: 0.4rem 0 0; }
.tff-form-wrap .tff-errors {
  color: #8C2F2F; background: #FBEDED; border: 1px solid #DFB1B1; border-radius: 10px;
  padding: 0.95rem 1.15rem; margin-bottom: 1.5rem; font-size: 0.92rem;
}
.tff-form-wrap .tff-errors a { color: #8C2F2F; }
.tff-form .tf-field--error input,
.tff-form .tf-field--error select,
.tff-form .tf-field--error textarea,
.tff-form .tf-field--error input:hover,
.tff-form .tf-field--error select:hover,
.tff-form .tf-field--error textarea:hover { border-color: #B96A6A; }
.tff-form .tf-field--error input:focus,
.tff-form .tf-field--error select:focus,
.tff-form .tf-field--error textarea:focus {
  outline-color: #B96A6A; border-color: #A34A4A; box-shadow: 0 0 0 3px rgba(185, 106, 106, 0.24);
}
.tff-form-wrap .tf-notice--success {
  background: var(--tf-green-tint); border: 1px solid var(--tf-green);
  color: var(--tf-green-dark); border-radius: 10px; padding: 1.05rem 1.25rem; font-weight: 500;
}
.tff-form-wrap .tf-notice--success p:last-child { margin-bottom: 0; }
.tff-form-wrap .tf-notice--success .tf-btn--ghost { color: var(--tf-green-dark); border-color: var(--tf-green); }
.tff-form .cf-turnstile, .tff-form .g-recaptcha { margin: 0.25rem 0 0.5rem; }
.tff-form .tff-actions { margin-top: 0.5rem; }
.tff-form .tff-submit {
  font-family: var(--tf-font); font-size: 0.98rem; font-weight: 600;
  background: linear-gradient(180deg, #16395C 0%, var(--tf-navy) 55%, var(--tf-navy-deep) 100%);
  color: #fff; border: 0; border-radius: 10px;
  padding: 1rem 1.8rem; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15,45,74,0.25), 0 10px 22px -10px rgba(15,45,74,0.45);
  transition: transform .18s var(--tf-ease), box-shadow .18s var(--tf-ease);
}
.tff-form .tff-submit:hover { transform: translateY(-1px); background: linear-gradient(180deg, #16395C 0%, var(--tf-navy) 55%, var(--tf-navy-deep) 100%); color: #fff; }
.tff-form .tff-submit:focus-visible { outline: 3px solid var(--tf-green); outline-offset: 2px; }
/* Multi-step progress, should a form ever use it. */
.tff-form .tff-steps__item.is-current .tff-steps__label { color: var(--tf-navy); font-weight: 600; }
.tff-form .tff-steps__item.is-current .tff-steps__num { background: var(--tf-green); color: #fff; }

/* ==========================================================================
   Utility / misc
   ========================================================================== */
.tf-note {
  background: linear-gradient(180deg, #FBFCFD, var(--tf-panel));
  border: 1px solid var(--tf-gray-soft); border-left: 3px solid var(--tf-green);
  border-radius: 10px; padding: 1.05rem 1.3rem; font-size: 0.93rem; color: var(--tf-text-soft);
  box-shadow: var(--tf-shadow-xs);
}
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--tf-blue); }
.sticky, .bypostauthor, .gallery-caption { /* WP required classes */ }

/* Reveal on scroll */
.tf-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--tf-ease), transform .7s var(--tf-ease); }
.tf-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tf-reveal { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Before / after transformation

   Two browser mockups stacked in one frame, drawn with plain markup and sample
   copy: no screenshots, no real site, nothing to keep in sync. The dated one
   fades back while the modern one rises through it and assembles in sequence,
   driven by .tf-reveal, which fires once and unobserves, so that part never
   reverses. After it has played, scroll position drives a focus attribute on
   the wrapper and the three regions take turns being highlighted.
   ========================================================================== */
/* Both demo frames start here, and the number is shared with .tf-staff below
   rather than each having its own: the two views are the same object seen from
   two sides, so a frame that begins at a different height on the second tab
   reads as a jump rather than as a turn. */
.tf-shift__wrap { margin-top: 1.6rem; }
/* No pinning: the section scrolls at the page's own pace and the phones lift
   into place on a plain transition as their frame appears. Holding the page
   still to play an animation buys a nice moment at the cost of every reader
   who just wanted to keep going. */
@media (prefers-reduced-motion: no-preference) {
  .tf-phone {
    opacity: 0; transform: translate3d(0, 12%, 0);
    transition: opacity .34s var(--tf-ease), transform .4s var(--tf-ease);
  }
  .tf-shift__wrap.is-visible .tf-shift__stage .tf-phone {
    opacity: 1; transform: none; transition-delay: .3s;
  }
}
.tf-shift__stage {
  position: relative;
  max-width: 860px; margin: 0 auto;
  aspect-ratio: 16 / 11.2;
  container-type: inline-size;
  font-size: 9px;
}
@supports (font-size: 1cqw) {
  .tf-shift__stage { font-size: clamp(6.5px, 1.2cqw, 10.5px); }
}
.tf-mock {
  position: relative; height: 100%;
  border-radius: 12px; overflow: hidden;
  background: #fff;
  border: 1px solid var(--tf-gray);
  box-shadow: var(--tf-shadow-md);
  display: flex; flex-direction: column;
  line-height: 1.35;
}
.tf-mock__chrome {
  flex-shrink: 0; height: 8.5%;
  display: flex; align-items: center; gap: 0.5em;
  padding: 0 0.9em;
  background: linear-gradient(180deg, #EDEFF3 0%, #E4E7ED 100%);
  border-bottom: 1px solid var(--tf-gray);
}
.tf-mock__chrome span { width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--tf-gray); flex-shrink: 0; }
.tf-mock__chrome em {
  flex: 1; min-width: 0; margin-left: 0.4em;
  display: flex; align-items: center; gap: 0.5em;
  font-style: normal; font-size: 0.8em; color: var(--tf-text);
  background: #fff; border: 1px solid var(--tf-gray); border-radius: 999px;
  padding: 0.26em 0.95em;
  box-shadow: inset 0 1px 2px rgba(15, 45, 74, 0.06);
}
/* The town's own mark sits in the address bar, the way a favicon does in a
   real browser, which says more about whose site this is than a padlock did. */
.tf-mock__fav { width: 0.95em; height: auto; flex-shrink: 0; }
.tf-mock__body { flex: 1; min-height: 0; padding: 2.6%; display: flex; flex-direction: column; }
/* Utility strip above the header: where the town puts its address, the
   weather and its social accounts. Full width, so it sits outside the body's
   padding. */
.tf-mock__utility {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  /* Same inset as the body below it, so the address and the icons line up
     with the logo and the nav rather than sitting against the frame. */
  gap: 1em; padding: 0.5em 2.6%;
  background: var(--tf-navy-deep); color: #C6D5E4;
  font-size: 0.74em;
}
.tf-mock__addr { display: inline-flex; align-items: center; gap: 0.5em; min-width: 0; }
.tf-mock__addr svg { width: 1.15em; height: 1.15em; flex-shrink: 0; color: #9DC694; }
.tf-mock__utilright { display: flex; align-items: center; gap: 1.1em; flex-shrink: 0; }
.tf-mock__weather { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; color: #fff; }
.tf-mock__weather svg { width: 1.2em; height: 1.2em; color: #F0C05A; }
.tf-mock__social { display: inline-flex; align-items: center; gap: 0.65em; }
.tf-mock__social svg { width: 1.1em; height: 1.1em; display: block; color: #C6D5E4; }

/* --- the modern site --- */
.tf-mock--after .tf-mock__body { gap: 2.6%; font-family: var(--tf-font); padding-bottom: 0; }
.tf-mock__hero {
  position: relative; flex-shrink: 0; overflow: hidden; will-change: transform;
  border-radius: 0.8em; padding: 3.8em 1.8em 5.2em;
  background-color: var(--tf-navy);
  display: flex; flex-direction: column; justify-content: center;
  /* Tracks the frame height so the hero keeps the same rendered height
     whichever way the frame is trimmed: the room below it belongs to the
     content, not to the photo. */
  min-height: 47.5%;
}
/* Three photographs crossfading behind the wash, with the copy above both. */
.tf-mock__slides { position: absolute; inset: 0; z-index: 0; }
.tf-mock__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 58%;
  opacity: 0; transition: opacity .9s var(--tf-ease);
}
.tf-mock__slide.is-active { opacity: 1; }
/* The opening frame reads better lower down, where the street is. */
.tf-mock--after .tf-mock__slide:first-child { background-position: center 80%; }
.tf-mock__hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  /* At 0.86-0.94 the town behind the mock's hero was a navy rectangle, which
     rather undercuts a demo of a municipal website. The mock's own text is
     small, so this stays even rather than shaped, at a level that still clears
     4.5:1 on a white pixel. */
  background: linear-gradient(165deg, rgba(15,45,74,0.68) 0%, rgba(7,24,41,0.78) 100%);
}
.tf-mock__welcome { position: relative; z-index: 2; }
.tf-mock__arrows {
  position: absolute; z-index: 2; top: 0.9em; right: 1em;
  display: flex; gap: 0.4em;
}
.tf-mock__arrow {
  width: 1.7em; height: 1.7em; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.4);
  color: #fff; font-size: 0.95em; line-height: 1; cursor: pointer;
  transition: background-color .18s var(--tf-ease);
}
.tf-mock__arrow:hover { background: rgba(255,255,255,0.32); }
/* Top bar: brand, section nav, search and a contact button, the arrangement
   municipal sites almost universally settle on. */
.tf-mock__topbar {
  flex-shrink: 0; display: flex; align-items: center; gap: 1em;
  padding-bottom: 0.85em; margin-bottom: 0.15em;
  border-bottom: 1px solid var(--tf-gray-soft);
}
.tf-mock__nav { display: flex; align-items: center; gap: 1.1em; margin-left: auto; }
.tf-mock__nav span { font-size: 0.78em; font-weight: 700; color: var(--tf-navy); white-space: nowrap; }
.tf-mock__nav .has-sub { display: inline-flex; align-items: center; gap: 0.35em; }
.tf-mock__nav .has-sub::after {
  content: ""; width: 0; height: 0; flex-shrink: 0;
  border-left: 0.28em solid transparent; border-right: 0.28em solid transparent;
  border-top: 0.32em solid currentColor; opacity: 0.55;
}
.tf-mock__topactions { display: flex; align-items: center; gap: 0.6em; flex-shrink: 0; }
.tf-mock__iconbtn {
  flex-shrink: 0; color: var(--tf-navy);
  display: flex; align-items: center; justify-content: center;
}
.tf-mock__iconbtn svg { width: 1.35em; height: 1.35em; }
.tf-mock__btn {
  font-size: 0.72em; font-weight: 700; color: #fff; white-space: nowrap;
  background: var(--tf-navy); border-radius: 0.45em; padding: 0.5em 0.85em;
}
.tf-mock__welcome { display: flex; flex-direction: column; gap: 0.35em; }
.tf-mock__welcome b { font-size: 2.05em; font-weight: 700; color: #fff; letter-spacing: -0.015em; line-height: 1.15; }
.tf-mock__welcome span { font-size: 1.05em; color: #DCE5EE; }
.tf-mock__brand { display: flex; align-items: center; gap: 0.6em; flex-shrink: 0; }
.tf-mock__brand img { width: auto; height: 2.1em; flex-shrink: 0; display: block; }
.tf-mock__brand b { font-size: 1em; font-weight: 700; color: var(--tf-navy); letter-spacing: 0.01em; }
.tf-mock__search {
  height: 2.5em; border-radius: 999px; background: #fff;
  display: flex; align-items: center; padding: 0 1em;
  box-shadow: 0 0.5em 1.2em -0.7em rgba(0,0,0,0.55);
}
.tf-mock__search span { font-size: 0.86em; color: #9AA3AE; }
/* Quick action row: the six things a resident is most often there to do,
   sitting across the fold the way municipal sites conventionally place them. */
.tf-mock__actions {
  position: relative; z-index: 2; flex-shrink: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4%;
  /* Half the tile height sits above the hero's bottom edge and half below, so
     the row straddles the line rather than hanging under it. */
  margin: -6.9em 1.5em 0;
}
.tf-mock__action {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--tf-gray); border-radius: 0.6em;
  background: #fff; box-shadow: var(--tf-shadow-sm);
  padding: 0.12em 0.08em;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.18em; text-align: center;
}
.tf-mock__action i {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: var(--tf-green-dark);
}
.tf-mock__action i svg { width: 4.1em; height: 4.1em; stroke-width: 1.35; }
/* The duotone fill layer is tuned for full-size icons; at mock scale it muddies
   the glyph, so everything in the stage runs as clean strokes. Scoped to the
   stage rather than to .tf-mock: the phone is a sibling of the frame, not a
   descendant, so a rule on the frame alone left its icons filled. */
.tf-shift__stage svg .duo { fill: none; }
.tf-mock__action u { text-decoration: none; font-size: 0.9em; font-weight: 700; line-height: 1.18; color: var(--tf-navy); }
/* The frame is a screenshot of a window, not a whole page, so the two panels
   run past its bottom edge and get cut there: the body drops its bottom
   padding and the row bleeds a little further still, leaving a partial card
   and a partial meeting the way a real homepage continues below the fold. */
.tf-mock__cols {
  flex: 1; min-height: 0; display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 2.4%;
  margin-bottom: -1.4em;
}
.tf-mock__panel {
  border: 1px solid var(--tf-gray-soft); border-radius: 0.6em 0.6em 0 0; border-bottom: 0;
  background: #fff;
  padding: 0.85em; display: flex; flex-direction: column; gap: 0.5em; overflow: hidden;
}
.tf-mock__panel b {
  font-size: 0.85em; font-weight: 700; color: var(--tf-navy);
  display: flex; align-items: center; gap: 0.45em;
}
.tf-mock__panel b svg { width: 1.35em; height: 1.35em; color: var(--tf-green-dark); flex-shrink: 0; }
.tf-mock__panel { border-color: var(--tf-gray); }
.tf-mock__panel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.42em; }
.tf-mock__panel li { margin: 0; font-size: 0.78em; color: var(--tf-text-soft); display: flex; gap: 0.55em; align-items: center; }
/* News items are cards: photograph on top, then the title, then the date. */
/* Three across, packed from the top: the second row is meant to be caught by
   the frame's edge rather than to fit inside it. */
.tf-mock__panel .tf-mock__newslist {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65em;
  align-content: start; grid-auto-rows: min-content; min-height: 0;
}
.tf-mock__newslist li {
  display: flex; flex-direction: column; gap: 0; align-items: stretch;
  background: #fff; border: 1px solid var(--tf-gray-soft);
  border-radius: 0.5em; overflow: hidden;
  box-shadow: var(--tf-shadow-xs);
}
.tf-mock__thumb {
  width: 100%; aspect-ratio: 3 / 2; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.tf-mock__newstext {
  min-width: 0; display: flex; flex-direction: column; gap: 0.2em;
  padding: 0.55em 0.6em 0.65em;
}
.tf-mock__newstext b { font-size: 0.95em; font-weight: 700; color: var(--tf-navy); line-height: 1.28; }
.tf-mock__newstext em { font-style: normal; font-size: 0.82em; font-weight: 600; color: var(--tf-green-deep); }

/* Meetings: a calendar block, a rule, then title over time over place. */
/* Two columns: the schedule is the densest thing in the frame and a single
   column could show three meetings where a real one shows a month. */
.tf-mock__panel .tf-mock__evlist {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85em 0.85em;
  align-content: start; grid-auto-rows: min-content; min-height: 0;
}
.tf-mock__evlist li { gap: 0.5em; align-items: stretch; }
/* Same calendar block as the phone, at desktop scale: white card, green header
   band, green day figure, no ring holes. */
.tf-mock__cal {
  width: 2.5em; flex-shrink: 0; align-self: flex-start; text-align: center;
  border: 1px solid rgba(98, 135, 91, 0.4); border-radius: 0.4em;
  overflow: hidden; background: #fff;
}
.tf-mock__cal em {
  display: block; font-style: normal;
  font-size: 0.6em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  background: var(--tf-green-dark); color: #fff; padding: 0.4em 0 0.28em;
}
.tf-mock__cal b {
  display: block; font-size: 1.25em; font-weight: 700;
  color: var(--tf-green-deep); line-height: 1.1; padding: 0.16em 0 0.24em;
}
.tf-mock__evtext {
  min-width: 0; display: flex; flex-direction: column; gap: 0.12em;
  padding-left: 0.75em; border-left: 1px solid var(--tf-gray-soft);
}
.tf-mock__evtext b { font-size: 0.9em; font-weight: 700; color: var(--tf-navy); line-height: 1.24; }
.tf-mock__evtext i { font-style: normal; font-size: 0.78em; font-weight: 500; color: var(--tf-text-soft); line-height: 1.3; }

/* ==========================================================================
   Demo: resident view and staff view
   The tabs are real tabs, the staff form is a real form. A picture of an
   editor proves nothing; filling one in and watching what it says happened is
   the whole argument for the product.
   ========================================================================== */
.tf-demo__tabs {
  display: inline-flex; gap: 0.3rem; margin: 0 auto 1.6rem;
  padding: 0.3rem; border-radius: 12px;
  background: var(--tf-panel); border: 1px solid var(--tf-gray-soft);
}
.tf-shift .tf-demo__tabs { display: flex; width: fit-content; }
.tf-demo__tab {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.15rem; border: 0; border-radius: 9px;
  background: none; cursor: pointer;
  font-family: inherit; font-size: 0.92rem; font-weight: 600; color: var(--tf-text-soft);
  transition: background-color .18s var(--tf-ease), color .18s var(--tf-ease), box-shadow .18s var(--tf-ease);
}
.tf-demo__tab svg { width: 17px; height: 17px; }
.tf-demo__tab:hover { color: var(--tf-navy); }
.tf-demo__tab.is-active {
  background: #fff; color: var(--tf-navy);
  box-shadow: var(--tf-shadow-sm);
}
.tf-demo__tab:focus-visible { outline: 3px solid var(--tf-green); outline-offset: 2px; }
.tf-demo__panel[hidden] { display: none; }
.tf-demo__intro, .tf-demo__note {
  max-width: 62ch; margin: 0 auto 1.5rem; text-align: center;
  font-size: 1rem; color: var(--tf-text-soft);
}
.tf-demo__note { margin: 1.5rem auto 0; }

/* --- resident frame additions --- */
.tf-mock__alert {
  flex-shrink: 0; display: flex; align-items: baseline; gap: 0.6em;
  padding: 0.5em 0.85em; margin-bottom: 0.15em;
  border-radius: 0.5em;
  background: #FBF3E3; border: 1px solid #E4CE9B;
  font-size: 0.78em; color: #6B5426;
}
.tf-mock__alert b { font-weight: 700; color: #7A5B18; flex-shrink: 0; }
.tf-mock__alert span { flex: 1; min-width: 0; }
.tf-mock__alert u { text-decoration: none; font-weight: 700; color: var(--tf-green-deep); flex-shrink: 0; }
.tf-mock__search {
  display: flex; align-items: center; gap: 0.55em;
  width: min(100%, 26em); margin-top: 0.55em;
  padding: 0.5em 0.5em 0.5em 0.85em;
  background: #fff; border-radius: 0.45em;
  box-shadow: 0 0.5em 1.4em -0.6em rgba(7, 24, 41, 0.6);
}
.tf-mock__search svg { width: 1.15em; height: 1.15em; color: var(--tf-blue); flex-shrink: 0; }
.tf-mock__search i { flex: 1; font-style: normal; font-size: 0.95em; color: #8A93A0; }
.tf-mock__search u {
  text-decoration: none; flex-shrink: 0;
  background: var(--tf-green-dark); color: #fff;
  font-size: 0.85em; font-weight: 700;
  padding: 0.4em 0.9em; border-radius: 0.35em;
}
.tf-mock__popular { display: block; margin-top: 0.5em; font-size: 0.72em; color: #C6D5E4; }
.tf-mock__contacts {
  flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35em 1.1em;
  padding: 0.5em 0.2em 0;
  font-size: 0.72em; color: var(--tf-text-soft);
}
.tf-mock__contacts span { display: inline-flex; align-items: center; gap: 0.4em; }
.tf-mock__contacts svg { width: 1.1em; height: 1.1em; color: var(--tf-green-dark); }
.tf-mock__contacts-all { font-weight: 700; color: var(--tf-green-deep); }

/* --- staff view, at a size a person can actually use --- */
/* The same distance below the tabs that .tf-shift__wrap gives the resident
   stage, so the two frames start at the same height and switching views does
   not jump. The staff panel used to inherit this from the intro paragraph that
   sat above it; that paragraph is now a tooltip inside the frame. */
.tf-staff {
  max-width: 900px; margin: 1.6rem auto 0; overflow: hidden;
  border: 1px solid var(--tf-gray); border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: var(--tf-shadow-md);
  font-size: 15px;
}
.tf-staff .tf-mock__chrome { height: auto; padding: 0.5rem 0.8rem; font-size: 13px; }
.tf-staff .tf-mock__chrome em { font-size: 0.85em; }
.tf-staff .tf-mock__fav { width: 15px; }
.tf-staff__bar {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 1rem;
  background: var(--tf-navy-ink); color: #C6D5E4; font-size: 0.85rem;
}
.tf-staff__bar img { width: 20px; height: auto; }
.tf-staff__bar b { color: #fff; }
.tf-staff__bar span { margin-left: auto; color: #9FB4C8; }
.tf-staff__body { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); min-width: 0; }
.tf-staff__menu { background: var(--tf-navy-deep); padding: 0.6rem 0; }
.tf-staff__menu span {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1rem; font-size: 0.85rem; font-weight: 600; color: #B9CBDC;
}
.tf-staff__menu svg { width: 17px; height: 17px; flex-shrink: 0; }
.tf-staff__menu .is-active { background: var(--tf-green-dark); color: #fff; box-shadow: inset 3px 0 0 #A9C8A2; }
.tf-staff__main { padding: 1.5rem 1.6rem 1.7rem; background: #FBFCFD; min-width: 0; }
/* Title and explanation on one row. The tooltip used to hang above the first
   field, which meant the form reserved five rems of empty space for it and the
   fields sat a long way under their own heading. */
.tf-staff__hrow {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.55rem 0.9rem; margin: 0 0 0.95rem;
}
.tf-staff__h { margin: 0; font-size: 1.25rem; color: var(--tf-navy); }
/* Says out loud that the form is live. Without it people read the whole thing
   as another screenshot and never click. */
/* Anchored to the first control instead of floating above the whole frame.
   Above the frame it was a caption on a picture; on the field it is a label on
   the thing it wants you to touch. Absolute, so the row it belongs to keeps its
   alignment with the row beside it, and the form reserves the height. */
/* A tooltip on the first field rather than a paragraph above the frame. The
   sentence explains the whole panel, and above the frame it was competing with
   the section's own lead; on the control it is an answer to the question a
   visitor is about to ask, which is "am I allowed to touch this". Absolute, so
   its row stays aligned with the row beside it, with the form reserving the
   height and the tail pointing at the field it belongs to.

   It does not dismiss. An earlier version cleared it once the field was
   opened, on the reasoning that the prompt had done its job; but this is a
   caption on a demonstration, not a nudge, and a caption that vanishes when
   you engage with the thing it captions is missing for everyone who reads it
   second. */
.tf-staff__try {
  position: relative; z-index: 4;
  margin-left: 0.9rem;
  display: flex; align-items: flex-start; gap: 0.5rem;
  width: max-content; max-width: 23rem;
  padding: 0.5rem 0.8rem 0.55rem; border-radius: 10px;
  background: var(--tf-green-dark); border: 1px solid var(--tf-green-deep);
  font-size: 0.74rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.005em; color: #fff;
  box-shadow: 0 10px 22px -12px rgba(67, 94, 62, 0.95);
}
.tf-staff__try .tf-staff__try-dot { margin-top: 0.28em; }
/* The tail drops from the bottom left, pointing at the first control rather
   than sideways at the heading: the sentence is about the form underneath it,
   not about the words beside it. Two triangles so the border reads round the
   point as well. */
.tf-staff__try::before,
.tf-staff__try::after {
  content: ""; position: absolute; top: 100%; left: 1.1rem;
  border: 6px solid transparent; border-bottom: 0;
}
.tf-staff__try::before { border-top-color: var(--tf-green-deep); }
.tf-staff__try::after { border-top-color: var(--tf-green-dark); margin-top: -1px; }
/* No reserved strip any more: the explanation moved up beside the heading, so
   the first row of fields starts directly under it. */
.tf-staff__form { position: relative; }
@media (max-width: 640px) {
  /* The row wraps here, so the tooltip takes the full width under the title
     and its tail turns back downward to point at the form below it. */
  /* The row wraps here, so the tooltip takes the full width under the title
     and keeps its downward tail, which now points at the single column of
     fields rather than across a two-column grid. */
  .tf-staff__try { font-size: 0.7rem; max-width: 100%; margin-left: 0; }
  /* At phone width the department directory wraps into a clipped stack of
     names and numbers that reads as stray text under the mock's hero. The
     mockup is an illustration, not a directory; it loses nothing here. */
  .tf-mock__contacts { display: none; }
}

/* Switching views turns the frame over. Only the arriving panel moves: see the
   note in nav.js for why the outgoing one is simply hidden. */
/* The turn follows the direction of travel: moving right along the tabs the
   panel arrives from the right, moving back it arrives from the left. A card
   that always spins the same way makes going back feel like going on again. */
.tf-demo__panel.is-flipping {
  transform-style: preserve-3d;
  opacity: 0;
  transition: transform .52s cubic-bezier(0.22, 1, 0.36, 1), opacity .3s ease-out;
}
.tf-demo__panel.is-flipping.is-flip-fwd { transform: perspective(1400px) rotateY(92deg); }
.tf-demo__panel.is-flipping.is-flip-back { transform: perspective(1400px) rotateY(-92deg); }
.tf-demo__panel.is-flipping.is-flipped {
  transform: perspective(1400px) rotateY(0deg);
  opacity: 1;
}
/* Reduced motion keeps the turn and shortens it: 26 degrees rather than 92,
   over a shorter time. The preference guards against large-amplitude movement,
   and a panel easing through a quarter of the angle is a different thing from
   one swinging through a half-turn. Cutting the rotation out entirely was the
   earlier reading, and it meant anyone with the preference on saw tabs that
   swapped with no sign anything had happened.
   !important because the global reduced-motion block collapses every duration
   on the page through the universal selector, and a class beats it. */
@media (prefers-reduced-motion: reduce) {
  .tf-demo__panel.is-flipping {
    opacity: 0;
    transition: transform .34s ease-out !important, opacity .24s ease-out !important;
  }
  .tf-demo__panel.is-flipping.is-flip-fwd { transform: perspective(1600px) rotateY(26deg); }
  .tf-demo__panel.is-flipping.is-flip-back { transform: perspective(1600px) rotateY(-26deg); }
  .tf-demo__panel.is-flipping.is-flipped {
    transform: perspective(1600px) rotateY(0deg); opacity: 1;
  }
}
/* A live dot, because a static chip reading "this works" is the same claim the
   rest of the page already makes and nobody believes it. */
/* A quiet pulse: the dot itself softens and brightens, and one ring drifts out
   a little way and fades. Two rings at 3.4x read as an alarm on a badge this
   small; this is meant to be noticed once and then ignored. */
.tf-staff__try-dot {
  position: relative; width: 11px; height: 11px; border-radius: 50%;
  /* A dark core against the tooltip's mid green, so the still part reads as a
     lamp and the moving part reads as what it is throwing off. The pale rim is
     not decoration: dark green on mid green measures about 2.5:1, which is
     under the 3:1 a graphical indicator needs, and it left the dot invisible
     between pulses for anyone whose ring is running short or not at all. */
  background: #2C4527; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(221, 240, 214, 0.95);
}
/* The ring is a box-shadow spread, not a scaled translucent block. A shadow
   leaves the dot from a hard edge and stays a ring the whole way out; a scaled
   background just grows fainter, which on a 9px dot was a flicker easy to look
   straight past. */
.tf-staff__try-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: tf-ring 2.1s cubic-bezier(0.22, 0.7, 0.3, 1) infinite;
}
/* Only the ring moves now. The core is a fixed dark green and the light ring
   leaves it, which is easier to read than a dot that changes color under a
   ring that is also changing: two things pulsing at once average out to
   flicker. 2.1s is the pace this settled at -- fast enough to catch, slow
   enough that it is not asking for anything. */
@keyframes tf-ring {
  0%   { box-shadow: 0 0 0 0 rgba(221, 240, 214, 0.9); }
  70%  { box-shadow: 0 0 0 10px rgba(221, 240, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(221, 240, 214, 0); }
}
@keyframes tf-ring-calm {
  0%   { box-shadow: 0 0 0 0 rgba(221, 240, 214, 0.8); }
  70%  { box-shadow: 0 0 0 8px rgba(221, 240, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(221, 240, 214, 0); }
}
/* !important is not decoration here. The global reduced-motion block further up
   collapses every animation on the page with
   `*, *::before, *::after { animation-duration: 0.01ms !important }`,
   the standard sledgehammer, and it was freezing this dot solid: anyone with
   Reduce Motion switched on saw a dead indicator on a panel captioned "live
   demo". A class beats the universal selector, so these win the !important
   contest and hand the dot its duration back.
   The preference is still honoured -- no scale, and a ring that travels a
   third as far -- because it guards against large-area motion and parallax,
   which a 10px circle brightening in place is not. */
@media (prefers-reduced-motion: reduce) {
  .tf-staff__try-dot::after { animation: tf-ring-calm 3.2s ease-out infinite !important; }
}
.tf-staff__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem 1.15rem; margin: 0; }
.tf-staff__field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.tf-staff__field--wide { grid-column: 1 / -1; }
.tf-staff__field label, .tf-staff__flabel {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em; color: var(--tf-navy);
}
.tf-staff__flabel em { font-style: normal; font-weight: 500; color: var(--tf-text-soft); }
.tf-staff__field select,
.tf-staff__field input {
  font-family: inherit; font-size: 0.95rem; color: var(--tf-text);
  padding: 0.65rem 0.75rem; border: 1px solid var(--tf-gray); border-radius: 8px;
  background: #fff; width: 100%;
  box-shadow: inset 0 1px 2px rgba(15, 45, 74, 0.05);
  transition: border-color .16s var(--tf-ease), box-shadow .16s var(--tf-ease);
}
.tf-staff__field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7C93' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 15px 15px;
}
.tf-staff__field select:hover,
.tf-staff__field input:hover { border-color: var(--tf-blue); }
.tf-staff__field select:focus,
.tf-staff__field input:focus {
  outline: 2px solid var(--tf-green); outline-offset: 2px; border-color: var(--tf-green-dark);
  box-shadow: 0 0 0 3px rgba(98, 135, 91, 0.22);
}
.tf-staff__file:focus-visible,
.tf-staff__publish:focus-visible,
.tf-staff__again:focus-visible { outline: 3px solid var(--tf-green); outline-offset: 2px; }
/* Custom select and calendar, written here rather than pulled in from a
   library: the whole point of the demo is that the product is light, and a
   dropdown is not worth a dependency. Both are keyboard operable. */
.tf-pick, .tf-cal { position: relative; }
.tf-pick__btn {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--tf-gray); border-radius: 8px; background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 45, 74, 0.05);
  font-family: inherit; font-size: 0.95rem; color: var(--tf-text);
  text-align: left; cursor: pointer;
  transition: border-color .16s var(--tf-ease), box-shadow .16s var(--tf-ease);
}
.tf-pick__btn > span:first-child { flex: 1; min-width: 0; }
.tf-pick__btn:hover { border-color: var(--tf-blue); }
.tf-pick__btn[aria-expanded="true"],
.tf-pick__btn:focus-visible {
  outline: none; border-color: var(--tf-green-dark);
  box-shadow: 0 0 0 3px rgba(98, 135, 91, 0.22);
}
.tf-pick__btn:focus-visible { outline: 2px solid var(--tf-green); outline-offset: 2px; }
.tf-pick__chev {
  width: 0.45rem; height: 0.45rem; flex-shrink: 0;
  border-right: 2px solid var(--tf-blue); border-bottom: 2px solid var(--tf-blue);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s var(--tf-ease);
}
.tf-pick__btn[aria-expanded="true"] .tf-pick__chev { transform: translateY(1px) rotate(-135deg); }
.tf-pick__cal svg, .tf-pick__clock svg { width: 17px; height: 17px; color: var(--tf-blue); display: block; }
.tf-pick__menu {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 0.35rem);
  margin: 0; padding: 0.3rem; list-style: none;
  background: #fff; border: 1px solid var(--tf-gray-soft); border-radius: 10px;
  box-shadow: var(--tf-shadow-lg);
}
.tf-pick__menu[hidden] { display: none; }
.tf-pick__menu--scroll { max-height: 15rem; overflow-y: auto; }
.tf-pick__menu li {
  margin: 0; padding: 0.5rem 0.65rem; border-radius: 7px;
  font-size: 0.92rem; color: var(--tf-text); cursor: pointer;
}
.tf-pick__menu li:hover, .tf-pick__menu li.is-active { background: var(--tf-panel); }
.tf-pick__menu li[aria-selected="true"] {
  background: var(--tf-green-tint); color: var(--tf-navy); font-weight: 700;
}

.tf-cal__pop {
  position: absolute; z-index: 30; left: 0; top: calc(100% + 0.35rem);
  width: 17.5rem; padding: 0.75rem;
  background: #fff; border: 1px solid var(--tf-gray-soft); border-radius: 10px;
  box-shadow: var(--tf-shadow-lg);
}
.tf-cal__pop[hidden] { display: none; }
.tf-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.tf-cal__head b { font-size: 0.9rem; color: var(--tf-navy); }
.tf-cal__head button {
  width: 28px; height: 28px; border-radius: 7px;
  border: 1px solid var(--tf-gray-soft); background: #fff;
  color: var(--tf-navy); font-size: 1rem; line-height: 1; cursor: pointer;
}
.tf-cal__head button:hover { border-color: var(--tf-green); background: var(--tf-green-tint); }
.tf-cal__dow, .tf-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tf-cal__dow span {
  text-align: center; font-size: 0.68rem; font-weight: 700; color: var(--tf-blue);
  text-transform: uppercase; letter-spacing: 0.04em; padding-bottom: 0.25rem;
}
.tf-cal__grid button {
  aspect-ratio: 1 / 1; border: 0; border-radius: 7px; background: none;
  font-family: inherit; font-size: 0.85rem; color: var(--tf-text); cursor: pointer;
}
.tf-cal__grid button:hover { background: var(--tf-panel); }
.tf-cal__grid button.is-today { box-shadow: inset 0 0 0 1px var(--tf-gray); font-weight: 700; }
.tf-cal__grid button.is-selected { background: var(--tf-green-dark); color: #fff; font-weight: 700; }
.tf-cal__grid button:focus-visible { outline: 3px solid var(--tf-green); outline-offset: -2px; }
.tf-cal__grid span { display: block; }

/* Empty is the honest starting state: a dashed drop target that has to be
   clicked, which is also what teaches a visitor the form is real. */
.tf-staff__file {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 0.9rem; width: 100%;
  border: 1.5px dashed var(--tf-gray); border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 0.92rem; color: var(--tf-text-soft);
  cursor: pointer; text-align: left;
  transition: border-color .16s var(--tf-ease), background-color .16s var(--tf-ease);
}
.tf-staff__file:hover { border-color: var(--tf-green); background: rgba(239, 243, 238, 0.6); }
/* One control blinks, and it is the one the tooltip's tail points at. Six of
   them pulsing together turned the form into a warning light and made the
   thing worth touching first indistinguishable from everything else. It stops
   on the first click, key or focus, so it stays an invitation. */
.tf-staff__form.is-untouched [aria-labelledby~="tf-sf-board-label"] {
  animation: tf-blink 1.9s var(--tf-ease) infinite;
}
@keyframes tf-blink {
  0%, 100% { border-color: var(--tf-gray); background: #fff; }
  50% { border-color: var(--tf-green); background: rgba(239, 243, 238, 0.85); }
}
/* The preference keeps the invitation and drops the pulse: the controls sit in
   the highlighted state instead of moving through it. */
@media (prefers-reduced-motion: reduce) {
  .tf-staff__form.is-untouched [aria-labelledby~="tf-sf-board-label"] {
    animation: none !important;
    border-color: var(--tf-green); background: rgba(239, 243, 238, 0.6);
  }
}
.tf-staff__file-ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--tf-panel); color: var(--tf-blue);
}
.tf-staff__file-ico svg { width: 17px; height: 17px; }
.tf-staff__file-text { font-weight: 600; color: var(--tf-navy); }
.tf-staff__file-hint { margin-left: auto; font-size: 0.82rem; color: var(--tf-blue); }
.tf-staff__file.is-set {
  border-style: solid; border-color: rgba(98, 135, 91, 0.55); background: var(--tf-green-tint);
}
.tf-staff__file.is-set .tf-staff__file-ico { background: var(--tf-green-dark); color: #fff; }
.tf-staff__file.is-set .tf-staff__file-hint { color: var(--tf-green-deep); font-weight: 600; }
.tf-staff__file.is-error { border-color: #C0563F; background: #FDF3F1; }
.tf-staff__error {
  margin: 0.15rem 0 0; font-size: 0.83rem; font-weight: 600; color: #A8452F;
}
.tf-staff__done-sub { margin: -0.2rem 0 0; font-size: 0.95rem; color: var(--tf-text-soft); }
.tf-staff__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 0.2rem; }
.tf-staff__publish {
  border: 0; border-radius: 8px; cursor: pointer;
  background: var(--tf-green-dark); color: #fff;
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 8px 16px -8px rgba(67, 94, 62, 0.85);
  transition: background-color .18s var(--tf-ease);
}
.tf-staff__publish:hover { background: var(--tf-green-deep); }
.tf-staff__hint { font-size: 0.8rem; color: var(--tf-text-soft); }
/* A pill is the wrong shape once the label wraps: the radius follows the ends
   of two lines and the whole thing bulges. Below 620px it becomes a rounded
   block with the dot aligned to the first line. */
@media (max-width: 620px) {
  .tf-staff__try {
    align-items: flex-start; justify-content: flex-start;
    max-width: 21rem; margin-bottom: 1.4rem;
    padding: 0.65rem 0.9rem; border-radius: 12px;
    font-size: 0.8rem; line-height: 1.4; text-align: left;
  }
  .tf-staff__try-dot { margin-top: 0.28rem; }
}
.tf-staff__done { display: grid; gap: 0.85rem; min-width: 0; }
.tf-staff__done li, .tf-staff__done-sub, .tf-staff__done-head b { min-width: 0; overflow-wrap: anywhere; }
/* A class that sets display outranks the browser's [hidden] rule, which is how
   the confirmation ended up visible before the form was ever submitted. */
.tf-staff__done[hidden], .tf-staff__form[hidden] { display: none; }
.tf-staff__done-head { display: flex; align-items: center; gap: 0.6rem; }
.tf-staff__done-head svg { width: 22px; height: 22px; color: #fff; background: var(--tf-green-dark); border-radius: 50%; padding: 4px; }
.tf-staff__done-head b { font-size: 1.15rem; color: var(--tf-navy); }
.tf-staff__done ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.tf-staff__done li {
  position: relative; margin: 0; padding-left: 1.6rem;
  font-size: 0.95rem; color: var(--tf-text-soft);
}
.tf-staff__done li::before {
  content: ""; position: absolute; left: 1px; top: 0.58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--tf-green);
}
.tf-staff__again {
  justify-self: start; margin-top: 0.2rem;
  background: none; border: 1px solid var(--tf-gray); border-radius: 8px;
  padding: 0.6rem 1.1rem; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--tf-navy);
}
.tf-staff__again:hover { border-color: var(--tf-green); background: var(--tf-green-tint); }
@media (max-width: 780px) {
  .tf-staff__body { grid-template-columns: 1fr; }
  /* The sidebar becomes a scrolling strip here. At the desktop spacing the
     items ran into each other, so they get their own padding, a real gap and
     room to breathe at both ends of the scroll. */
  .tf-staff__menu {
    display: flex; overflow-x: auto; gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .tf-staff__menu::-webkit-scrollbar { display: none; }
  .tf-staff__menu span {
    flex: 0 0 auto;
    padding: 0.6rem 0.95rem; gap: 0.5rem;
    white-space: nowrap; font-size: 0.84rem;
    border-radius: 8px; background: rgba(255, 255, 255, 0.06);
  }
  .tf-staff__menu svg { width: 16px; height: 16px; }
  .tf-staff__menu .is-active { border-radius: 8px; box-shadow: none; }
  .tf-staff__form { grid-template-columns: 1fr; }
  .tf-staff__main { padding: 1.2rem 1rem 1.4rem; }
}

/* --- the phone, overlapping the desktop frame --- */
.tf-phone {
  /* Above the action row, which carries z-index 2 so it can ride the hero's
     edge, or the last tile paints over the phone. Position and opacity are
     written by the scroll handler; the resting state here is what a visitor
     without JS, or with reduced motion, sees. */
  position: absolute; right: -1.5%; bottom: -7%; z-index: 4;
  width: 20%; aspect-ratio: 1 / 2.03;
  border-radius: 1.6em; padding: 0.42em;
  background: #14181D;
  box-shadow: 0 1.4em 2.6em -1em rgba(15,45,74,0.45), 0 0 0 1px rgba(255,255,255,0.06) inset;
  will-change: transform;
}
.tf-phone__screen {
  height: 100%; border-radius: 1.25em; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.tf-phone__status { height: 1.4em; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tf-phone__status i { width: 26%; height: 0.42em; border-radius: 999px; background: #14181D; }

/* The screen mirrors the desktop mock: utility strip, header, hero with a
   welcome, square action tiles, then a news card and a meeting row. */
.tf-phone__util {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0.28em 0.6em; background: var(--tf-navy-deep); color: #C6D5E4;
  font-size: 0.55em;
}
.tf-phone__weather { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 700; color: #fff; }
.tf-phone__weather svg { width: 1.2em; height: 1.2em; color: #F0C05A; }
.tf-phone__social { display: inline-flex; align-items: center; gap: 0.5em; }
.tf-phone__social svg { width: 1.05em; height: 1.05em; display: block; }
.tf-phone__bar {
  flex-shrink: 0; display: flex; align-items: center; gap: 0.4em;
  padding: 0.35em 0.6em 0.4em;
  border-bottom: 1px solid var(--tf-gray-soft);
}
.tf-phone__bar img { width: auto; height: 1.4em; display: block; flex-shrink: 0; }
.tf-phone__bar b {
  font-size: 0.62em; font-weight: 700; color: var(--tf-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.tf-phone__tools { margin-left: auto; display: flex; align-items: center; gap: 0.5em; flex-shrink: 0; }
.tf-phone__search { display: flex; color: var(--tf-navy); }
.tf-phone__search svg { width: 0.8em; height: 0.8em; }
.tf-phone__burger {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 0.85em; height: 0.62em; flex-shrink: 0;
}
.tf-phone__burger i { display: block; height: 0.1em; border-radius: 0.05em; background: var(--tf-navy); }
.tf-phone__hero {
  position: relative; flex-shrink: 0; overflow: hidden;
  background-color: var(--tf-navy);
  padding: 2.6em 0.6em 2.4em; min-height: 26%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5em;
}
.tf-phone__hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,45,74,0.68) 0%, rgba(7,24,41,0.95) 100%);
}
/* Same two lines as the desktop hero, set smaller for the frame. */
.tf-phone__welcome { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 0.2em; }
.tf-phone__welcome b { font-size: 0.82em; font-weight: 700; color: #fff; line-height: 1.22; }
.tf-phone__welcome span { font-size: 0.56em; color: #DCE5EE; line-height: 1.35; }
.tf-phone__arrows { top: 0.5em; right: 0.5em; gap: 0.3em; }
.tf-phone__arrows .tf-mock__arrow { width: 1.25em; height: 1.25em; font-size: 0.72em; }
.tf-phone__actions {
  flex-shrink: 0; position: relative; z-index: 2;
  display: flex; gap: 0.32em;
  margin: -1.5em 0 0; padding: 0 0.5em;
  overflow: hidden;
  /* The row runs past the edge, so fade the last tile out: it reads as
     something you swipe rather than as a tile that got clipped. */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 78%, transparent 99%);
  mask-image: linear-gradient(90deg, #000 0, #000 78%, transparent 99%);
}
.tf-phone__actions > div {
  flex: 0 0 27%; aspect-ratio: 1 / 1;
  border: 1px solid var(--tf-gray); border-radius: 0.45em; background: #fff;
  box-shadow: var(--tf-shadow-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.18em; padding: 0.12em 0.08em; text-align: center;
}
.tf-phone__actions i { display: flex; color: var(--tf-green-dark); }
.tf-phone__actions i svg { width: 1.7em; height: 1.7em; stroke-width: 1.45; }
.tf-phone__actions u { text-decoration: none; font-size: 0.46em; font-weight: 700; line-height: 1.18; color: var(--tf-navy); }
.tf-phone__panel {
  flex: 1; min-height: 0; margin: 0.5em 0.5em 0.4em; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.32em;
}
/* The first notice shows in full, image, title and date; the meetings below it
   take whatever height is left and clip there. */
.tf-phone__newscard { flex: 0 0 auto; }
.tf-phone__event:nth-of-type(n+2) { flex-shrink: 0; }
.tf-phone__panel > b {
  font-size: 0.6em; font-weight: 700; color: var(--tf-navy);
  display: flex; align-items: center; gap: 0.4em;
}
.tf-phone__panel > b svg { width: 1.15em; height: 1.15em; color: var(--tf-green-dark); flex-shrink: 0; }
.tf-phone__subhead { margin-top: 0.15em; }
.tf-phone__newscard {
  border: 1px solid var(--tf-gray-soft); border-radius: 0.4em; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.tf-phone__thumb { width: 100%; aspect-ratio: 3 / 1.35; flex-shrink: 0; background-size: cover; background-position: center; }
.tf-phone__newstext { display: flex; flex-direction: column; gap: 0.1em; padding: 0.35em 0.45em 0.45em; }
.tf-phone__newstext b { font-size: 0.56em; font-weight: 700; color: var(--tf-navy); line-height: 1.25; }
.tf-phone__newstext em { font-style: normal; font-size: 0.5em; font-weight: 600; color: var(--tf-green-deep); }
.tf-phone__event { display: flex; align-items: stretch; gap: 0.45em; }
.tf-phone__cal {
  width: 2.1em; flex-shrink: 0; align-self: flex-start; text-align: center;
  border: 1px solid rgba(98,135,91,0.4); border-radius: 0.3em; overflow: hidden; background: #fff;
}
.tf-phone__cal em {
  display: block; font-style: normal; font-size: 0.42em; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--tf-green-dark); color: #fff; padding: 0.3em 0 0.2em;
}
.tf-phone__cal b { display: block; font-size: 0.8em; font-weight: 700; color: var(--tf-green-deep); padding: 0.12em 0 0.2em; }
.tf-phone__evtext {
  display: flex; flex-direction: column; justify-content: center; gap: 0.08em;
  min-width: 0; padding-left: 0.45em; border-left: 1px solid var(--tf-gray-soft);
}
.tf-phone__evtext b { font-size: 0.54em; font-weight: 700; color: var(--tf-navy); line-height: 1.22; }
.tf-phone__evtext i { font-style: normal; font-size: 0.47em; color: var(--tf-text-soft); line-height: 1.3; }

/* The front frame arrives the way the back-office one does: the whole window
   fades up as a single piece through .tf-reveal on its wrapper. It used to
   assemble itself row by row, which was a lot of choreography for a picture
   the reader has already understood by the time it finishes. */

/* On a phone both devices stay in the picture: the whole point of the
   illustration is that the desktop screen and the phone are the same site.
   The frame's type stops being readable at this width, but the layout still
   reads, so the composition survives where the copy does not. The phone grows
   relative to the frame, and its own type grows with it, or the screen would
   render at desktop proportions inside a much smaller device. */
@media (max-width: 720px) {
  .tf-shift__stage { font-size: 4.4px; }
  .tf-phone { width: 27%; right: 0; bottom: -6%; font-size: 1.35em; }
}
@supports (font-size: 1cqw) {
  @media (max-width: 720px) {
    .tf-shift__stage { font-size: clamp(3.6px, 1.35cqw, 7px); }
  }
}

/* <picture> wrappers: the img inside keeps every rule written for it. */
picture { display: contents; }
/* Further reading on a page: same block as an article's Keep reading, spaced from the prose above it. */
.tf-related--page { margin-top: 2.75rem; }
.tf-section--reading { padding-top: 0; }
