/* The tfx look on every page type that is not home, a post, pricing, a form or customers
   (tallyfy/website-astro#760). The system's own tokens only; nothing here changes a word, a size
   or a position.

   Scope. Body carries no page class, so a page is told by its canonical link. The page families,
   written once in the selector below: the comparison pages (ending -alternative), alternatives,
   solutions, features, integrations, templates, tools, guides, academy, about-tallyfy, careers,
   partners, press-and-media-kit, status, for-agents, national-holidays, authors, legal, govcloud,
   documentation, workflow, tasks-and-approvals, tracking, conditionals-and-automations,
   client-facing-views, ai, vault, mcp-server and search.
   Components that belong to another builder are left alone even on these pages: the hero's
   process card, the process wall, feature and category stories, OperationsSpectrum, the tcl- run
   table (70-visuals.css); the comparison table, AI scorecard, positioning chart, competitor pricing
   card, cost calculator and the "Book a demo" twin (40-pricing-forms.css); testimonials, logos,
   badges, stars and the template showcase card (50-proof.css). */

/* =========================================================================================
   1. The 404: on the system's paper and type
   src/pages/404.astro is a self-contained page with no look switch, so 80-pages.js puts the
   look's classes on its body (and r3-404 beside them) when the look is on.
   ========================================================================================= */
body.tfx.r3-404 .code {
  font-family: var(--c1-display);
  font-weight: var(--c1-w-strong, 600);
  color: var(--c1-ink);
  letter-spacing: var(--c1-track-h12, 0em);
}
body.tfx.r3-404 h1 { color: var(--c1-ink); line-height: var(--c1-lh-h1, 1.26); }
body.tfx.r3-404 .lede { color: var(--c1-ink-soft); }
body.tfx.r3-404 .popular {
  background-color: var(--c1-sheet);
  border: 1px solid var(--c1-hair);
  border-radius: var(--c1-r-card);
}
body.tfx.r3-404 .popular p {
  font-family: var(--c1-body);
  font-variant-caps: all-small-caps; font-synthesis: small-caps;
  letter-spacing: var(--c1-label-track);
  font-weight: var(--c1-w-strong, 600);
  color: var(--c1-orange-text);
}
body.tfx.r3-404 .popular a {
  color: var(--c1-ink);
  text-decoration: underline; text-decoration-color: var(--c1-ink); text-decoration-thickness: 1px; text-underline-offset: 0.24em;
}
body.tfx.r3-404 .popular a:hover { text-decoration-color: var(--c1-orange); text-decoration-thickness: 2px; }
body.tfx.r3-404 .skip-link { background-color: var(--c1-green); color: var(--c1-ink); border-radius: 0 0 var(--c1-r-ctl) var(--c1-r-ctl); }

/* =========================================================================================
   1b. The task reliability widget (.tnj), wherever it is drawn: the solution pages, /ai/, the free
   tool, the return-on-investment page and the posts that embed it. One printed sheet with the thin
   ink edge and the card corner, no lift or shadow (as every boxed block on my pages); the failing
   case in the attention orange, the gated case in the action green, the sum as an information
   callout; each slider's value is a square tag (kitchen sink 23); every word in the system's two
   faces, the percentages included (set at 20 and 22px, under the 30px of a big figure, so they keep
   the body face). Colors, corners and edges only: nothing changes size. Weights (TYPE-RULING.md):
   the heading, the percentages, the chips and the link at 600, the most the look sets.
   ========================================================================================= */
body.tfx.tfx .tnj.tnj:not(.dark *) {
  --tnj-green: var(--c1-green);
  --tnj-green-dark: var(--c1-green-text);
  --tnj-green-tint: var(--c1-green-tint);
  --tnj-bad: var(--c1-orange-text);
  --tnj-bad-tint: var(--c1-orange-tint);
  --tnj-text: var(--c1-ink);
  --tnj-muted: var(--c1-ink-soft);
  --tnj-track: var(--c1-band);
  font-family: var(--c1-body);
  color: var(--c1-ink);
  background-color: var(--c1-sheet) !important;
  border-color: var(--c1-hair) !important;
  border-radius: var(--c1-r-card) !important;
  box-shadow: none !important;
  & .tnj-heading { font-family: var(--c1-display); font-weight: var(--c1-w-strong, 600); letter-spacing: var(--c1-track-h12, 0em); color: var(--c1-ink); }
  & .tnj-pct { font-family: var(--c1-body); font-weight: var(--c1-w-strong, 600); }
  & .tnj-chip { font-weight: var(--c1-w-strong, 600); color: var(--c1-ink); background: var(--c1-band); border-radius: var(--c1-r-ctl); box-shadow: inset 0 0 0 1px var(--c1-hair-firm); }
  & .tnj-results { border-color: var(--c1-hair); }
  & .tnj-bar { border-radius: var(--c1-r-ctl); box-shadow: inset 0 0 0 1px var(--c1-hair); }
  & .tnj-bar-fill { border-radius: var(--c1-r-ctl); box-shadow: inset 0 0 0 1px var(--c1-hair-firm); }
  & .tnj-fill-good { background: var(--c1-green); }
  & .tnj-fill-bad { background: var(--c1-orange); }
  & .tnj-math { background: var(--c1-blue-tint); border-radius: var(--c1-r-card); box-shadow: inset 0 0 0 1px var(--c1-hair); color: var(--c1-ink); }
  & .tnj-range { accent-color: var(--c1-green-text); }
  & .tnj-cta { font-weight: var(--c1-w-strong, 600); color: var(--c1-ink); text-decoration: underline; text-decoration-color: var(--c1-ink); text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
  & .tnj-cta:hover { text-decoration-color: var(--c1-orange); text-decoration-thickness: 2px; }
}

/* =========================================================================================
   2. Every page of mine
   ========================================================================================= */
body.tfx:is(html:root[data-tfx-canonical]:is([data-tfx-canonical$='-alternative/'], [data-tfx-canonical*='/alternatives/'], [data-tfx-canonical*='/solutions/'], [data-tfx-canonical$='/features/'], [data-tfx-canonical$='/integrations/'], [data-tfx-canonical*='/templates/'], [data-tfx-canonical*='/tools/'], [data-tfx-canonical*='/guides/'], [data-tfx-canonical*='/academy/'], [data-tfx-canonical$='/about-tallyfy/'], [data-tfx-canonical$='/careers/'], [data-tfx-canonical$='/partners/'], [data-tfx-canonical$='/press-and-media-kit/'], [data-tfx-canonical$='/status/'], [data-tfx-canonical$='/for-agents/'], [data-tfx-canonical*='/national-holidays/'], [data-tfx-canonical*='/authors/'], [data-tfx-canonical*='/legal/'], [data-tfx-canonical$='/govcloud/'], [data-tfx-canonical$='/documentation/'], [data-tfx-canonical$='/workflow/'], [data-tfx-canonical$='/tasks-and-approvals/'], [data-tfx-canonical$='/tracking/'], [data-tfx-canonical$='/conditionals-and-automations/'], [data-tfx-canonical$='/client-facing-views/'], [data-tfx-canonical$='/ai/'], [data-tfx-canonical$='/vault/'], [data-tfx-canonical$='/mcp-server/'], [data-tfx-canonical$='/search/']) *) { /* Page-type tests read two marks on <html> written when the page is built (data-tfx-canonical, data-tfx-has; see page-marks.mjs), not a :has() on html or main, which Chrome checks again after every change; html:root[...] and main:is(main, X) keep the old weight (tallyfy/website-astro#760). */

  /* (the plain hero, Hero.astro, is the system's: system.css section 42) */

  /* --- a boxed block (the theme's card-snipped: soft green-tinted shadows, 12px corner, white) ---
     the sheet, a 1px ink edge, the card corner, no shadow; a linked card's hover is the band paper */
  /* other builders' boxed blocks are left to them, the boxes themselves as well as their insides:
     the cost calculator ([data-roi-widget]) and the template showcase card (.tsc-card); a quoted
     source (.tf-quote) is the system's inline quote block (system.css section 50a) */
  & main .card-snipped:not(.ps *, .process-wall *, .tallyfy-control-layer *, [data-roi-widget], [data-roi-widget] *, .tsc-card, .tsc-card *, .tf-quote, .comparison-table-section *, .ai-scorecard-section *) {
    background-color: var(--c1-sheet) !important;
    border-color: var(--c1-hair) !important;
    border-radius: var(--c1-r-card) !important;
    box-shadow: none !important;
  }
  & main a.card-snipped:not(.ps *, .process-wall *):hover { background-color: var(--c1-band) !important; }
  /* (no boxed card lifts on hover: system.css section 7, Cards) */

  /* --- a white card with a soft corner and no edge: the sheet with an ink line drawn inside.
     Boxes only: a link drawn as a button is the system's (button family, system.css section 50b) --- */
  & main :is(div, li, article).bg-white:is(.rounded-xl, .rounded-2xl, .rounded-lg):not(.border, .border-2, [class*='shadow'], .ps *, .process-wall *, .tallyfy-control-layer *, [data-roi-widget] *) {
    background-color: var(--c1-sheet) !important;
    border-radius: var(--c1-r-card) !important;
    box-shadow: inset 0 0 0 1px var(--c1-hair) !important;
  }

  /* (small labels in gray take the label ink from the system: system.css section 3) */

  /* --- item 10, everywhere on my pages: a card or step title set as a div or p in the body face
     (ItemGrid's vertical layout, Timeline) takes the heading face, as every h3 beside it does, with the
     h3's weight, letter spacing and least line height (TYPE-RULING.md) --- */
  & main :is(div, p).text-xl.font-bold:not(.ps *, .process-wall *, .tallyfy-control-layer *, [data-roi-widget] *, .comparison-table-section *, .ai-scorecard-section *, .tier-card *, .hero-dark-forced *) {
    font-family: var(--c1-display);
    font-weight: var(--c1-w-strong, 600);
    letter-spacing: var(--c1-track-h34, 0em);
    line-height: var(--c1-lh-h34, 1.48);
    color: var(--c1-ink);
  }

  /* --- icons: one ink. Astrowind's round green icon disc becomes the printed tile of the menu (sheet,
     ink edge, ink glyph, the control corner); a bare green icon becomes ink; a check keeps the green,
     since green means done --- */
  & main svg.bg-primary.rounded-full:not(.ps *, .process-wall *) {
    background-color: var(--c1-sheet) !important;
    color: var(--c1-ink) !important;
    border-radius: var(--c1-r-ctl) !important;
    box-shadow: inset 0 0 0 var(--c1-line) var(--c1-hair);
  }
  & main svg.text-primary:not(.bg-primary, .ps *, .process-wall *, .tallyfy-control-layer *, [data-roi-widget] *, .comparison-table-section *, .ai-scorecard-section *, .tier-card *) { color: var(--c1-ink) !important; }
  & main svg.text-primary[data-icon*='check']:not(.bg-primary, .ps *, .process-wall *, .comparison-table-section *, .tier-card *) { color: var(--c1-green-text) !important; }
  & main svg.text-primary.border-primary { border-color: var(--c1-hair-firm) !important; }

  /* (a link drawn as a dark-green button is the system's green ticket: system.css sections 25 and 50b) */

  /* --- a closing band or a message block set on today's dark green (the /solutions/ closing band, the
     /vault/ accountability block): the night paper, flat, with cream words, like every other dark band.
     Its buttons are the system's (button family, system.css section 50b) --- */
  & main section.bg-\[\#01803d\]:has(h2):not(.ps *, .process-wall *, .tallyfy-control-layer *), & main section.bg-brand-green-dark:has(h2):not(.ps *, .process-wall *, .tallyfy-control-layer *), & main div.bg-\[\#01803d\]:has(h2):not(.ps *, .process-wall *, .tallyfy-control-layer *), & main div.bg-brand-green-dark:has(h2):not(.ps *, .process-wall *, .tallyfy-control-layer *) {
    background-color: var(--c1-night) !important;
    background-image: var(--c1-grain-night) !important;
    & h2 { color: var(--c1-cream) !important; -webkit-text-fill-color: var(--c1-cream) !important; }
    & p { color: var(--c1-cream) !important; }
  } /* These selectors are written out, not ended in an :is() list, so Chrome files each under its class, id or tag and does not try it on every element; a :where(x):is(...) keeps the old weight (tallyfy/website-astro#760). */
  & main div.rounded-lg.bg-brand-green-dark:has(h2) { border-radius: var(--c1-r-card) !important; }

  /* --- an icon tile in the old green tint: the sheet with an ink edge, the icon in ink (as the menu's tiles) --- */
  & main [class*='bg-[#01803d]/10'][class*='rounded'] {
    background-color: var(--c1-sheet) !important;
    box-shadow: inset 0 0 0 var(--c1-line) var(--c1-hair);
  }
  & main [class*='bg-[#01803d]/10'] :where(svg):is(svg, [class*='text-[#01803d]']), & main [class*='bg-[#01803d]/10'] [class*='text-[#01803d]'] { color: var(--c1-ink) !important; }

  /* --- a link set in the old green: ink with the system's underline. A bordered link is a button (only its
     hover class names the green), so it is left to the button family, which draws no underline --- */
  & main a:is([class*='text-[#01803d]'], [class*='text-brand-green'], .text-green-600, .text-green-700):not([class*='bg-'], .border, .ps *, .process-wall *) {
    color: var(--c1-ink) !important;
    text-decoration: underline; text-decoration-color: var(--c1-ink); text-decoration-thickness: 1px; text-underline-offset: 0.24em;
  }
  & main a:is([class*='text-[#01803d]'], [class*='text-brand-green'], .text-green-600, .text-green-700):not([class*='bg-'], .border, .ps *, .process-wall *):hover { text-decoration-color: var(--c1-orange); text-decoration-thickness: 2px; }

  /* --- related posts at the foot of a page (blog/GridItem): a photo framed in ink with a sheet arrow stamp ---
     the system turned the photo's green fade into a flat night block over its lower 96px, so the
     photo looked cut off; the frame now shows the whole photo */
  & main article > .relative.bg-gray-400.rounded-lg {
    background-color: var(--c1-band) !important;
    border-radius: var(--c1-r-card) !important;
    box-shadow: 0 0 0 1px var(--c1-hair) !important;
  }
  & main article > .relative.bg-gray-400.rounded-lg img { border-radius: 0; background-color: var(--c1-band) !important; }
  & main article > .relative.bg-gray-400.rounded-lg .absolute.bottom-0[class*='bg-gradient-to-t'] {
    background: transparent !important; background-image: none !important; box-shadow: none !important; border-radius: 0 !important;
  }
  & main article > .relative.bg-gray-400.rounded-lg .absolute.bottom-3.right-3 {
    background-color: var(--c1-sheet) !important;
    border-radius: var(--c1-r-ctl) !important;
    box-shadow: inset 0 0 0 1px var(--c1-hair-firm) !important;
  }
  & main article > .relative.bg-gray-400.rounded-lg .absolute.bottom-3.right-3 svg { color: var(--c1-ink) !important; }
  & main article > .relative.bg-gray-400.rounded-lg a:hover .absolute.bottom-3.right-3 { background-color: var(--c1-orange-tint) !important; }

  /* --- the signup band (SignupCTA): a flat band of the band paper; its edge is its change of ground, never an ink rule --- */
  & section.signup-cta {
    background-color: var(--c1-band) !important;
    /* the paper's grain shows here as on every other band */
    background-image: var(--c1-grain) !important;
    box-shadow: none;
  }

  /* (the task reliability widget is drawn wherever it appears, posts included: section 1b) */


  /* --- "Why Tallyfy is the AI control layer": three printed phase sheets --- */
  & .control-layer-positioning {
    --clp-brand-green: var(--c1-green);
    --clp-brand-green-dark: var(--c1-green-text);
    --clp-brand-tint: var(--c1-green-tint);
    --clp-card: var(--c1-sheet);
    --clp-text: var(--c1-ink);
    --clp-muted: var(--c1-ink-soft);
    --clp-border: var(--c1-hair);
    font-family: var(--c1-body);
    & .clp-phase-card { border-color: var(--c1-hair); border-radius: var(--c1-r-card); box-shadow: none; }
    & .clp-phase-badge { font-weight: var(--c1-w-strong, 600); color: var(--c1-green-deep); border-radius: var(--c1-r-pill); box-shadow: inset 0 0 0 1px rgb(20 83 43 / 0.3); }
    & .clp-phase-title { font-family: var(--c1-display); font-weight: var(--c1-w-strong, 600); letter-spacing: var(--c1-track-h34, 0em); }
  }
}

/* =========================================================================================
   3. One paper: the search page forces a white body with an inline !important
   ========================================================================================= */
body.tfx:is(html:root[data-tfx-canonical][data-tfx-canonical$='/search/'] *) {
  background-color: var(--c1-paper) !important;
  background-image: var(--c1-grain) !important;
}

/* =========================================================================================
   4. Solution pages (SolutionPageTemplate)
   ========================================================================================= */
body.tfx:is(html:root[data-tfx-canonical][data-tfx-canonical*='/solutions/'] *) {
  /* item 10: the tagline is display type set in the body face at 300; it takes the heading face and wraps
     in balance, as every display line does. Where a tagline sits near a break its line count changes
     (the sales manual page at 1440 goes from two lines to one): a chosen type change, not a fault */
  & p:has(> .solution-tagline-brand) {
    font-family: var(--c1-display);
    font-weight: 500;
    letter-spacing: var(--c1-track-h12, 0em);
    text-wrap: balance;
    color: var(--c1-ink);
    & .solution-tagline-brand, & :where(strong):is(.solution-tagline-brand, strong) { font-weight: var(--c1-w-strong, 600); color: var(--c1-ink); letter-spacing: var(--c1-track-h12, 0em); }
  }
  /* the FAQ: a hairline in the middle of each gap between questions (the top edge of the second of the
     two spacers there), so the list reads as a ruled, printed list; no box changes */
  & .spacer + .spacer:has(+ .row .solution-faq-question) { box-shadow: inset 0 1px 0 var(--c1-hair); }
  & .solution-faq-answer a { color: var(--c1-ink); text-decoration: underline; text-decoration-color: var(--c1-ink); text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
  & .solution-faq-answer a:hover { text-decoration-color: var(--c1-orange); text-decoration-thickness: 2px; }
  /* the support block's team photo: a print with an ink line round it */
  & img[src*='Tallyfy-STL-team'] { border-radius: var(--c1-r-card); box-shadow: 0 0 0 var(--c1-line) var(--c1-hair); }
}

/* =========================================================================================
   5. Alternative pages (every /<name>-alternative/), outside the comparison parts 40-pricing-forms.css draws
   ========================================================================================= */
body.tfx:is(html:root[data-tfx-canonical][data-tfx-canonical$='-alternative/'] *) {
  /* "Which tool is right for you?": two printed sheets; Tallyfy's is the sheet that matters, so it
     carries the firm ink edge and the fold; the competitor's takes the quiet edge */
  & .grid > .rounded-xl.border-2 {
    background-color: var(--c1-sheet) !important;
    border-color: var(--c1-hair) !important;
    border-radius: var(--c1-r-card) !important;
    box-shadow: none !important;
  }
  & .grid > .rounded-xl.border-2:not(.bg-green-50) { border-color: var(--c1-edge) !important; }
  & .grid > .rounded-xl.border-2.bg-green-50 {
    position: relative;
    &::before, &::after { content: ''; position: absolute; top: -2px; right: -2px; width: var(--c1-fold); height: var(--c1-fold); pointer-events: none; z-index: 3; }
    &::before { background: var(--c1-paper); clip-path: polygon(0 0, 100% 0, 100% 100%); }
    /* the flap is the system's own drawing (--c1-fold-flap, whose fill is --c1-flap) */
    &::after { background: var(--c1-fold-flap) center / 100% 100% no-repeat; }
  }
  /* the round marks beside each heading: a spot ink with an ink edge and an ink glyph, as on a printed button */
  & :is(.bg-green-500, .bg-amber-500, .bg-gray-400, .bg-purple-500).rounded-full {
    box-shadow: none;
    & svg { color: var(--c1-ink) !important; }
  }
  & .bg-green-500.rounded-full { background-color: var(--c1-green) !important; color: var(--c1-ink) !important; }
  & .bg-amber-500.rounded-full { background-color: var(--c1-orange) !important; }
  & :is(.bg-gray-400, .bg-purple-500).rounded-full { background-color: var(--c1-sheet) !important; }
  /* list marks: done in the green's text step, the competitor's in soft ink, the cautions in the orange's text step */
  & :is(li, .inline-flex) > svg.text-green-500 { color: var(--c1-green-text) !important; }
  & li > svg.text-gray-400 { color: var(--c1-ink-soft) !important; }
  & li > svg.text-amber-500 { color: var(--c1-orange-text) !important; }
  /* "Tallyfy might not be right for you if...": the one caution, on the sheet with an ink edge */
  & .bg-amber-50.rounded-xl { background-color: var(--c1-sheet) !important; border-color: var(--c1-hair) !important; border-radius: var(--c1-r-card) !important; }
  /* the migration: the migrator note is an information callout; the steps hang on an ink line */
  & .bg-purple-50.rounded-xl { background-color: var(--c1-blue-tint) !important; border-color: var(--c1-hair) !important; border-radius: var(--c1-r-card) !important; box-shadow: none !important; }
  & a.text-purple-600 { color: var(--c1-ink) !important; text-decoration: underline; text-decoration-color: var(--c1-ink); text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
  & a.text-purple-600:hover { text-decoration-color: var(--c1-orange); text-decoration-thickness: 2px; }
  & .relative > .absolute.bg-green-200.w-0\.5 { background-color: var(--c1-ink) !important; }
  & .bg-green-50.rounded-lg.inline-flex { background-color: var(--c1-sheet) !important; border-color: var(--c1-hair) !important; border-radius: var(--c1-r-card) !important; }
  /* the team photo beside it, framed in ink as on the solution pages */
  & .grid img.rounded-xl { border-radius: var(--c1-r-card); box-shadow: 0 0 0 var(--c1-line) var(--c1-hair); }
  /* "See Tallyfy run your own process": a sheet with an ink edge (its button is drawn by 40-pricing-forms.css) */
  & .bg-green-50.rounded-xl.text-center { background-color: var(--c1-sheet) !important; border-radius: var(--c1-r-card) !important; box-shadow: inset 0 0 0 1px var(--c1-hair) !important; }
  /* (competitor review quotes, TfQuote, are the system's inline quote block: system.css section 50a) */
  & .tf-quote .quote-content { color: var(--c1-ink); }
  /* the other alternatives: printed cards; the category is a kind, so the system's square tag (kitchen sink 23); the arrow in ink */
  & .alternative-card {
    background: var(--c1-sheet) !important;
    border-color: var(--c1-hair) !important;
    border-radius: var(--c1-r-card) !important;
    box-shadow: none !important;
    & .category-badge { color: var(--c1-ink); background: var(--c1-band); border-radius: var(--c1-r-ctl); box-shadow: inset 0 0 0 1px var(--c1-hair-firm); }
    & .vendor-summary, & .vendor-bullets { color: var(--c1-ink-soft); }
    & .vendor-bullets li::marker { color: var(--c1-ink-soft); }
    & .vendor-name { font-family: var(--c1-display); font-weight: var(--c1-w-strong, 600); letter-spacing: var(--c1-track-h34, 0em); color: var(--c1-ink); }
    & .arrow-icon { color: var(--c1-ink); }
  }
  & .alternative-card:hover { background: var(--c1-band) !important; & .arrow-icon { color: var(--c1-orange-text); } }
  & .alternative-card-grid-section .section-subtitle { color: var(--c1-ink-soft); }
}

/* =========================================================================================
   6b. Templates and examples (/templates/ and below)
   ========================================================================================= */
body.tfx:is(html:root[data-tfx-canonical][data-tfx-canonical*='/templates/'] *) {
  /* a template page's step numbers (the round figures beside each step) at 600, the most the look sets */
  & main div.flex-shrink-0.w-8.h-8.rounded-full.font-bold { font-weight: var(--c1-w-strong, 600); }
  /* the three kinds of template: a printed card with the menu's printed icon tile, not violet,
     screen green and screen blue app icons */
  & main a.group.block.rounded-xl {
    background-color: var(--c1-sheet) !important;
    border-color: var(--c1-hair) !important;
    border-radius: var(--c1-r-card) !important;
    box-shadow: none !important;
  }
  & main a.group.block.rounded-xl:hover { background-color: var(--c1-band) !important; }
  & main a.group.block.rounded-xl > .inline-flex.rounded-lg:is(.bg-green-500, .bg-purple-500, .bg-blue-500, .bg-orange-500, .bg-amber-500) {
    background-color: var(--c1-sheet) !important;
    color: var(--c1-ink) !important;
    border-radius: var(--c1-r-ctl) !important;
    box-shadow: inset 0 0 0 var(--c1-line) var(--c1-hair);
  }
  /* (the industry and topic chips and "View pricing" are round bordered links, which the system squares as
     quiet tickets: system.css section 50b) */
  /* the closing pair's "Try Tallyfy free" (bg-primary, which the system's green-link rule does not name) is the green ticket */
  & main a[href^='/start'].bg-primary.rounded-full {
    background-color: var(--c1-green) !important; color: var(--c1-ink) !important;
    border-radius: var(--c1-r-ctl) !important; box-shadow: inset 0 0 0 var(--c1-line) var(--c1-ink) !important;
  }
  & main a[href^='/start'].bg-primary.rounded-full:hover { background-color: var(--c1-green-hover) !important; }
  & main a[href^='/start'].bg-primary.rounded-full svg { color: var(--c1-ink) !important; }

  /* --- a template's own page (TemplateHero): its hero is a near-black band (#0D0D0D) whose headline
     the system's heading rule turned to dark ink, so the headline all but vanished. It is the night
     paper, flat, with cream words, like every other hero --- */
  & main section.bg-\[\#0D0D0D\] {
    background-color: var(--c1-night) !important;
    background-image: var(--c1-grain-night) !important;
    & h1 { color: var(--c1-cream) !important; }
    & :is(p, span, div).text-gray-100, & :is(span, div).text-white, & .text-white span, & .text-white div { color: var(--c1-cream) !important; }
    & svg.text-white { color: var(--c1-cream) !important; }
    /* the label over the headline names a kind of template, so it is square like every tag (kitchen sink 23); on the
       night paper it is the raised night sheet with the cream edge, as a quiet control there is; it keeps its size */
    & .inline-flex.rounded-full[class*='bg-white/10'] { background-color: var(--c1-night-2) !important; border-color: rgb(246 240 226 / 0.35) !important; border-radius: var(--c1-r-ctl) !important; }
    /* one button per job: the signup ("Import into Tallyfy") is the green ticket, the second button the orange */
    & a.btn-warning { background-color: var(--c1-green) !important; }
    & a.btn-warning:hover { background-color: var(--c1-green-hover) !important; }
    & a.btn-primary { background-color: var(--c1-orange) !important; }
    & a.btn-primary:hover { background-color: var(--c1-orange-hover) !important; }
    & a.btn-warning, & a.btn-primary { color: var(--c1-ink) !important; border-color: var(--c1-ink) !important; }
  }
  /* the category and topic under the breadcrumb name a kind, so each is the system's square tag (kitchen sink 23):
     the band paper, ink words; no green or blue, since a kind is not a state. Each is a link to its category,
     so its edge is the control's quiet edge, as the standard gives a tag you can open. Each keeps its own
     size and weight, so no tag changes width. (50-proof.css section 8 draws the step type and the related
     templates' tags; these two links are not among them) */
  & main a.rounded-full.text-xs:is([class*='bg-primary/10'], [class*='bg-accent/10']) {
    background-color: var(--c1-band) !important; color: var(--c1-ink) !important;
    border-radius: var(--c1-r-ctl) !important; box-shadow: inset 0 0 0 1px var(--c1-edge);
  }
  & main a.rounded-full.text-xs:is([class*='bg-primary/10'], [class*='bg-accent/10']):hover { text-decoration: underline; text-decoration-color: var(--c1-orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
  & main a.rounded-full.text-xs:is([class*='bg-primary/10'], [class*='bg-accent/10']) svg { color: currentColor !important; }
  /* the page numbers under a template list (/templates/procedures/ and its pages 2 to 9): the system's page numbers
     (system.css section 50b), painted with its --c1-pg-* properties so this pager, the posts' and the search results'
     cannot drift. Today's links have no border, so the 1px border sits inside today's box (its padding 1px less) and no
     box changes size. A step with nowhere to go is soft words, no box. Focus is the system's: its two-tone ring (section
     4) round the number's own edge, which stays */
  & main nav[aria-label='Pagination'] a.text-center, & main nav[aria-label='Pagination'] > a.flex {
    color: var(--c1-pg-ink) !important;
    background-color: var(--c1-pg-bg) !important;
    border: 1px solid var(--c1-pg-edge);
    border-radius: var(--c1-pg-radius) !important;
    box-shadow: var(--c1-pg-shadow);
    font-weight: var(--c1-pg-weight);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    padding: 7px 11px;
  }
  /* on a phone Previous and Next show only their arrow, which left them 8.5px shorter than the numbers: the numbers'
     own height (their padding and line box), so the row is even */
  & main nav[aria-label='Pagination'] > a.flex { min-height: calc(1.75em + 1rem); }
  & main nav[aria-label='Pagination'] a.text-center:hover, & main nav[aria-label='Pagination'] > a.flex:hover { background-color: var(--c1-pg-hover-bg) !important; }
  & main nav[aria-label='Pagination'] a.text-center[aria-current='page'] {
    background-color: var(--c1-pg-current-bg) !important;
    box-shadow: var(--c1-pg-current-shadow);
    font-weight: var(--c1-pg-current-weight);
    /* its neighbours take the theme's 1.75 line height through their grey text class, which this one lacks, so it
       stood 4.5px shorter; the same line height makes the row even (the nav keeps its height) */
    line-height: 1.75;
  }
  & main nav[aria-label='Pagination'] a.text-center[aria-current='page']:focus-visible { box-shadow: var(--c1-pg-current-shadow) !important; }
  & main nav[aria-label='Pagination'] > span[aria-disabled='true'], & main nav[aria-label='Pagination'] div > span { color: var(--c1-ink-soft) !important; }
  /* on a phone the row keeps the page's side margin, as the cards above it do: page 5's eleven steps ran 468px wide on a
     390px screen. The numbers and arrows narrow to 32px (their height stays), the gaps to 4px and the dots lose their
     padding, so every page fits one line at 390; on a narrower phone the row wraps rather than leave the column */
  @media (max-width: 639px) {
    & main nav[aria-label='Pagination'] { gap: 8px 4px; flex-wrap: wrap; }
    & main nav[aria-label='Pagination'] > div { gap: 8px 4px; flex-wrap: wrap; justify-content: center; }
    & main nav[aria-label='Pagination'] a.text-center { min-width: 32px; padding-inline: 7px; }
    & main nav[aria-label='Pagination'] > a.flex { padding-inline: 7px; }
    & main nav[aria-label='Pagination'] div > span { padding-inline: 0; }
  }
  /* two tags on a template card share one baseline: the first (a category, in the theme's grey text class) takes the
     theme's 1.75 line height and the second (a topic) the 16px of text-xs, so the topic's words sat 2.5px higher in the
     same 25px box (today's page too). Each tag's words are centred in their box, which sets them on one line; a box
     keeps its height, so a wrapped line of topics alone stays 20px */
  & main a.block span.rounded-sm.px-2.text-xs { display: flex; align-items: center; }
  /* the steps: a printed numeral and a band-paper head on each step's sheet (the step type is a tag drawn
     by 50-proof.css section 8) */
  /* the hairline under each step's head is drawn inside it, so no step grows */
  & main .rounded-lg.overflow-hidden > .flex.items-start.bg-gray-50 { background-color: var(--c1-band) !important; box-shadow: inset 0 -1px 0 var(--c1-hair); }
  & main div.rounded-full.bg-primary.text-white {
    background-color: var(--c1-sheet) !important; color: var(--c1-ink) !important;
    box-shadow: inset 0 0 0 var(--c1-line) var(--c1-hair);
    font-family: var(--c1-display);
  }
  & main .rounded.bg-gray-50 svg.text-gray-400 { color: var(--c1-ink-soft) !important; }
  & main span.text-red-500 { color: var(--c1-orange-text) !important; }
}

/* =========================================================================================
   6c. The academy (/academy/ and its courses)
   ========================================================================================= */
body.tfx:is(html:root[data-tfx-canonical][data-tfx-canonical*='/academy/'] *) {
  /* the three promises: printed icon tiles in one ink, not blue, mint and lilac */
  & main .inline-flex.w-12.h-12.rounded-lg:is(.bg-blue-100, .bg-green-100, .bg-purple-100) {
    background-color: var(--c1-sheet) !important;
    border-radius: var(--c1-r-ctl) !important;
    box-shadow: inset 0 0 0 var(--c1-line) var(--c1-hair);
    & svg { color: var(--c1-ink) !important; }
  }
  /* (the hero's Sign In is the system's quiet button on night: system.css sections 42 and 45) */
  /* the course card: a printed sheet; its picture panel is the night paper, flat, with a cream glyph */
  & .course-card {
    background: var(--c1-sheet) !important;
    border-color: var(--c1-hair) !important;
    border-radius: var(--c1-r-card) !important;
    box-shadow: none !important;
  }
  & .course-card:hover .card-title { color: var(--c1-ink) !important; text-decoration: underline; text-decoration-color: var(--c1-orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
  & .course-card .card-image { background: var(--c1-night) var(--c1-grain-night) !important; box-shadow: inset 0 calc(var(--c1-rule) * -1) 0 var(--c1-hair); }
  & .course-card .image-placeholder svg { color: var(--c1-cream) !important; }
  & .course-card .card-title { font-family: var(--c1-display); color: var(--c1-ink) !important; }
  & .course-card .card-description, & .course-card .card-meta, & .course-card .meta-item { color: var(--c1-ink-soft) !important; }
  & .course-card .card-action, & .course-card .progress-section { border-color: var(--c1-hair) !important; }
  /* the course level names a kind, so it is the system's square tag; the course status names a state, so it is
     the system's round pill, done in green and in progress in blue (kitchen sink 23) */
  & .course-card .level-badge, & .course-card .status-badge { box-shadow: inset 0 0 0 1px var(--c1-hair-firm); }
  & .course-card .level-badge { background: var(--c1-band) !important; color: var(--c1-ink) !important; border-radius: var(--c1-r-ctl) !important; }
  & .course-card .status-badge.completed { background: var(--c1-green-tint) !important; color: var(--c1-green-deep) !important; }
  & .course-card .status-badge.in-progress { background: var(--c1-blue-tint) !important; color: var(--c1-blue-deep) !important; }
  /* start is the green ticket; continue the quiet button; review the quiet button */
  & .course-card .action-btn { border-radius: var(--c1-r-ctl) !important; box-shadow: inset 0 0 0 var(--c1-line) var(--c1-edge) !important; border-color: transparent !important; }
  & .course-card .action-btn.start { background: var(--c1-green) !important; color: var(--c1-ink) !important; }
  & .course-card .action-btn.start:hover { background: var(--c1-green-hover) !important; }
  & .course-card .action-btn:is(.continue, .review) { background: var(--c1-sheet) !important; color: var(--c1-ink) !important; }
  & .course-card .action-btn:is(.continue, .review):hover { background: var(--c1-band) !important; }
  & .course-card .action-btn svg { color: var(--c1-ink) !important; }
  & .course-card .progress-bar { background: var(--c1-green) !important; }
  & .course-card .progress-fill { background: var(--c1-green) !important; box-shadow: inset 0 0 0 1px var(--c1-hair-firm); }
  & .course-card .progress-percent { color: var(--c1-green-text) !important; }
  & .course-card .completed-overlay { background: rgb(22 52 42 / 0.55) !important; }

  /* the academy's own navigation (CourseNavigation): a printed table of contents, not a mint panel.
     The sheet with an ink edge, ink numerals in printed tiles, ink lesson titles; the current lesson
     is marked by a 2px ink rule at its left and the band paper; a hover underlines in orange */
  & nav.course-navigation {
    background: var(--c1-sheet) !important;
    border-color: var(--c1-hair) !important;
    border-radius: var(--c1-r-card) !important;
    box-shadow: none !important;
    & .course-nav-header:hover { background: var(--c1-band) !important; }
    & .course-nav-icon { background: var(--c1-sheet) !important; color: var(--c1-ink) !important; box-shadow: inset 0 0 0 var(--c1-line) var(--c1-edge) !important; border-radius: var(--c1-r-ctl) !important; }
    & .course-nav-title, & .module-title { color: var(--c1-ink) !important; font-family: var(--c1-display); }
    & .course-nav-meta, & .module-description, & .lesson-duration { color: var(--c1-ink-soft) !important; }
    & .course-nav-toggle { color: var(--c1-ink) !important; }
    & .course-nav-content { border-top-color: var(--c1-hair) !important; }
    & .course-nav-module { border-bottom-color: var(--c1-hair) !important; }
    & .course-nav-module.is-current { background: transparent !important; }
    & .module-number {
      background: var(--c1-sheet) !important; color: var(--c1-ink) !important;
      box-shadow: inset 0 0 0 var(--c1-line) var(--c1-hair) !important;
      font-family: var(--c1-display);
    }
    & a.lesson-link { color: var(--c1-ink) !important; text-decoration: none !important; }
    & a.lesson-link .lesson-title { color: var(--c1-ink) !important; text-decoration: none !important; }
    & a.lesson-link .lesson-duration { text-decoration: none !important; }
    & a.lesson-link:hover { background: var(--c1-band) !important; color: var(--c1-ink) !important; }
    & a.lesson-link:hover .lesson-title { text-decoration: underline !important; text-decoration-color: var(--c1-orange) !important; text-decoration-thickness: 2px !important; text-underline-offset: 0.2em; }
    & a.lesson-link.is-current { background: var(--c1-band) !important; color: var(--c1-ink) !important; box-shadow: inset var(--c1-rule) 0 0 var(--c1-ink); }
    & .indicator-pending { border-color: var(--c1-edge) !important; }
    & .lesson-link:hover .indicator-pending { border-color: var(--c1-edge) !important; }
    & .indicator-current { color: var(--c1-ink) !important; }
    & .course-nav-quiz { border-top-color: var(--c1-hair) !important; }
    & a.quiz-link {
      background: var(--c1-band) !important; background-image: none !important;
      border-color: var(--c1-edge) !important; color: var(--c1-ink) !important;
      border-radius: var(--c1-r-card) !important;
    }
    & a.quiz-link:hover { background: var(--c1-orange-tint) !important; }
  }
  /* enrol and take the quiz: the green ticket (they start something); the round mint mark is a printed tile */
  & main :is(button, a).bg-green-600 {
    background-color: var(--c1-green) !important; color: var(--c1-ink) !important;
    border-radius: var(--c1-r-ctl) !important; box-shadow: inset 0 0 0 var(--c1-line) var(--c1-ink) !important;
    & svg { color: var(--c1-ink) !important; }
  }
  & main :is(button, a).bg-green-600:hover { background-color: var(--c1-green-hover) !important; }
  & main div.bg-green-100.rounded-full { background-color: var(--c1-sheet) !important; border-radius: var(--c1-r-ctl) !important; box-shadow: inset 0 0 0 var(--c1-line) var(--c1-hair-firm); }
  & main div.bg-green-100.rounded-full svg { color: var(--c1-green-text) !important; }
  /* the final assessment: the one sheet that matters here, so the band paper with the 2px ink rule along its top */
  & main .border-2.border-green-500.rounded-xl[class*='bg-gradient-to-'] {
    background-color: var(--c1-sheet) !important; border-color: var(--c1-hair) !important;
    border-radius: var(--c1-r-card) !important;
    box-shadow: none !important;
  }
}

/* =========================================================================================
   7. The plain pages (LegalPageTemplate: legal, privacy, terms, security and compliance,
   trademarks, accessibility, SOC 2, GDPR, DPA). The most sober pages on the site: paper, ink,
   type, the two rules and tables, and nothing else. No spot ink at all except the focus ring.
   ========================================================================================= */
body.tfx .legal-page-template {
  /* on a phone the text column is the page's column: today's 90 percent width leaves 36px of empty paper at the
     right only, so the title, the quote and every line sit off centre */
  @media (max-width: 767px) {
    & .legal-content { width: auto; }
  }
  /* the tab bars: ink words; the open tab is marked by the 2px ink rule and 600, never a green block
     or a heavier weight */
  & .legal-tabs, & .legal-subnav { border-bottom-color: var(--c1-hair) !important; }
  & .legal-tab { color: var(--c1-ink-soft) !important; }
  & .legal-tab:hover { color: var(--c1-ink) !important; background: var(--c1-band) !important; }
  & .legal-tab.active {
    font-weight: var(--c1-w-strong, 600) !important;
    color: var(--c1-ink) !important;
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: inset 0 calc(var(--c1-rule) * -1) 0 var(--c1-ink);
  }
  & .subnav-item { color: var(--c1-ink-soft) !important; border-radius: var(--c1-r-ctl) !important; }
  & .subnav-item:hover { color: var(--c1-ink) !important; background: var(--c1-band) !important; }
  /* the current policy in the second row is marked as the open tab is, by the 2px ink rule, not a box
     (website-astro#773) */
  & .subnav-item.active {
    color: var(--c1-ink) !important;
    background: transparent !important;
    box-shadow: inset 0 calc(var(--c1-rule) * -1) 0 var(--c1-ink);
  }
  /* the title is one colour: the first word's green goes */
  & .legal-title .text-thin-emphasis {
    color: var(--c1-ink) !important; -webkit-text-fill-color: var(--c1-ink) !important;
    background: none !important; animation: none !important;
  }
  /* body: ink, the lead in soft ink, list marks in soft ink, links underlined in ink */
  & .legal-body { color: var(--c1-ink) !important; }
  & .legal-body p, & .legal-body li, & .legal-body td { color: var(--c1-ink) !important; }
  & .legal-body :where(.lead):is(.lead, p.lead), & .legal-body p.lead { color: var(--c1-ink-soft) !important; }
  & .legal-body li::marker { color: var(--c1-ink-soft); }
  & .legal-body a:not([class*='btn']) {
    color: var(--c1-ink) !important;
    text-decoration: underline; text-decoration-color: var(--c1-ink) !important; text-decoration-thickness: 1px; text-underline-offset: 0.24em;
  }
  & .legal-body a:not([class*='btn']):hover { text-decoration-thickness: 2px; }
  & .legal-body h2, & .legal-body h3, & .legal-body h4, & .legal-body strong { color: var(--c1-ink) !important; }
  & .legal-body h2, & .legal-body h3 { border-color: transparent !important; }
  /* tables: the system's table, ruled in ink */
  & .legal-body table { border-collapse: collapse; }
  & .legal-body th, & .legal-body td { border-color: var(--c1-hair) !important; }
  & .legal-body th {
    /* paper, ink and rule only: the head keeps its face and size, since small capitals rewrap the DPA table's head cells */
    background: var(--c1-band) !important; color: var(--c1-ink) !important;
    /* the 2px ink rule under the head: today's 1px border in ink plus 1px drawn inside, so no row grows */
    border-bottom-color: var(--c1-hair) !important;
    box-shadow: none;
  }
  /* a quotation in a legal text keeps its own border width (so nothing rewraps) and takes the ink;
     a customer's quote here is a testimonial, drawn by 50-proof.css, and is left alone */
  & .legal-body blockquote:not(.tf-quote *) { background: transparent !important; border-left-color: var(--c1-hair) !important; }
  & .legal-body hr { border-color: var(--c1-hair) !important; }
  /* evidence screenshots: a plain 1px ink frame, the card corner, no soft shadow */
  & .legal-body img { border-radius: var(--c1-r-card) !important; box-shadow: 0 0 0 1px var(--c1-hair) !important; }
  /* an architecture diagram or a screenshot standing alone in its own block is mounted as a print, the way the
     video poster is: the system's sheet mat round it (14px, 8px on a phone) with the thin ink edge, drawn outside
     the box so nothing moves. The picture is a bitmap, so it is printed onto the sheet: multiplied over it, its
     white ground becomes the sheet, and a little less saturation calms its screen colors */
  & .legal-body div:has(> img:only-child) {
    background-color: var(--c1-sheet);
    isolation: isolate;
    box-shadow: 0 0 0 var(--c1-mat) var(--c1-sheet), 0 0 0 calc(var(--c1-mat) + 1px) var(--c1-hair);
  }
  & .legal-body div:has(> img:only-child) > img {
    border-radius: 0 !important; box-shadow: none !important;
    mix-blend-mode: multiply; filter: saturate(0.78);
  }
}

/* =========================================================================================
   6d. About and careers
   ========================================================================================= */
body.tfx:is(html:root[data-tfx-canonical]:is([data-tfx-canonical$='/about-tallyfy/'], [data-tfx-canonical$='/careers/'], [data-tfx-canonical$='/press-and-media-kit/'], [data-tfx-canonical$='/for-agents/'], [data-tfx-canonical$='/partners/']) *) {
  /* (round grey-edged links, small and large, are squared by the system as quiet tickets: system.css section 50b) */
  /* code names in a table are ink, as all text is */
  & main td.font-mono.text-brand-green-dark { color: var(--c1-ink) !important; }
  /* the partner photos: an ink ring, not a white ring with a soft shadow */
  & main img.rounded-full.object-cover[class*='border'] { border-color: var(--c1-sheet) !important; box-shadow: 0 0 0 1px var(--c1-hair) !important; }
  & main p:not(:not([class*='text-[#01803d]'])) { color: var(--c1-ink-soft) !important; } /* Double not: filed under the tag (tallyfy/website-astro#760). */
  /* the press kit's grey info boxes: the band paper with the card corner */
  & main div.bg-gray-50.rounded-lg { background-color: var(--c1-band) !important; border-radius: var(--c1-r-card) !important; }
  /* the light logo's tile (today bg-gray-900, which the system's card rule turned to the sheet, so the cream
     wordmark vanished): the night paper with the card corner and the ink edge; its download link is cream on night */
  & main div.bg-gray-900.rounded-lg:has(> img) {
    background-color: var(--c1-night) !important;
    background-image: var(--c1-grain-night) !important;
    border-color: var(--c1-hair) !important;
    & a { color: var(--c1-cream) !important; text-decoration: underline; text-decoration-color: var(--c1-orange) !important; text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
    & a:hover { text-decoration-thickness: 2px; }
  }
  /* "Coming next": an orange pill from the system, not a yellow-brown one */
  & .about-next { background: var(--c1-orange-tint) !important; color: var(--c1-orange-deep) !important; box-shadow: inset 0 0 0 1px rgb(124 52 9 / 0.3); border-radius: var(--c1-r-pill) !important; }
  /* a role line under a name: soft ink, not a fourth green */
  & main :is(span, p).text-brand-green-dark:not([class*='uppercase']) { color: var(--c1-ink-soft) !important; }
  /* "With AI" and similar small labels in green: the label ink */
  & main p.text-brand-green-dark[class*='uppercase'] { color: var(--c1-orange-text) !important; }
  /* a quotation set in running text: the printed pull quote of the menu panels, a 2px orange rule at its left */
  & main blockquote.border-l-4 { border-left-color: transparent !important; box-shadow: inset var(--c1-rule) 0 0 var(--c1-orange); color: var(--c1-ink) !important; }
}

/* =========================================================================================
   6e. Guides, tools, the author page and the closing call to action on my pages
   ========================================================================================= */
body.tfx:is(html:root[data-tfx-canonical][data-tfx-canonical*='/guides/'] *) {
  /* the summary at the top of a guide: a callout on the sheet with the 2px ink rule at its left, not a green fade */
  & .guide-summary-box {
    background: var(--c1-sheet) !important; background-image: none !important;
    border-left-color: var(--c1-hair) !important;
    border-radius: 0 var(--c1-r-card) var(--c1-r-card) 0 !important;
    box-shadow: inset 0 0 0 1px var(--c1-hair);
    & .summary-heading { color: var(--c1-orange-text) !important; }
    & :where(.summary-quote p):is(.summary-quote p, .summary-bullets li, .summary-bullets li strong), & :where(.summary-bullets li):is(.summary-quote p, .summary-bullets li, .summary-bullets li strong), & .summary-bullets li strong { color: var(--c1-ink) !important; }
    & .summary-quote cite { color: var(--c1-ink-soft) !important; }
    & .summary-bullets li::marker { color: var(--c1-ink-soft); }
  }
  & main .prose li::marker { color: var(--c1-ink-soft); }
  /* links in a guide's running text and summary: ink with the system's underline */
  & main :is(.prose, .guide-summary-box) a:not([class*='btn'], [class*='bg-']) {
    color: var(--c1-ink) !important;
    text-decoration: underline !important; text-decoration-color: var(--c1-ink) !important; text-decoration-thickness: 1px !important; text-underline-offset: 0.24em;
  }
  & main :is(.prose, .guide-summary-box) a:not([class*='btn'], [class*='bg-']):hover { text-decoration-color: var(--c1-orange) !important; text-decoration-thickness: 2px !important; }
}
body.tfx:is(html:root[data-tfx-canonical][data-tfx-canonical*='/tools/'] *) {
  /* the two tools: printed cards; hover takes the ink, the "open" line is ink, not a fourth green and a burnt orange */
  & main a.block.rounded-lg.border-2 { background-color: var(--c1-sheet) !important; border-color: var(--c1-edge) !important; border-radius: var(--c1-r-card) !important; }
  & main a.block.rounded-lg.border-2:hover { border-color: var(--c1-edge) !important; background-color: var(--c1-band) !important; }
  & main a.block.rounded-lg.border-2 span.inline-block:is(.text-brand-green-dark, .text-brand-orange-dark) { color: var(--c1-ink) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
  & main a.block.rounded-lg.border-2:hover span.inline-block:is(.text-brand-green-dark, .text-brand-orange-dark) { text-decoration-color: var(--c1-orange); text-decoration-thickness: 2px; }
  & main a.text-brand-orange-dark.underline { color: var(--c1-ink) !important; text-decoration-color: var(--c1-ink); }
  & main a.text-brand-orange-dark.underline:hover { text-decoration-color: var(--c1-orange); text-decoration-thickness: 2px; }
  /* the closing pair under a tool (trial and "Read the full story"): the system's pair, 16px apart side by side or
     stacked (today's gap-3 sets them 12px apart) */
  & main div.flex.flex-wrap.gap-3.justify-center:has(> a.btn-primary + a.border) { gap: 16px; }
}
body.tfx:is(html:root[data-tfx-canonical][data-tfx-canonical*='/authors/'] *) {
  /* the author's photo: an ink ring, not a green one; the topic chips are the system's neutral pill */
  & main img.rounded-full.border-4 { border-color: var(--c1-hair) !important; }
  /* a topic names a kind, so it is the system's square tag (kitchen sink 23) */
  & main span.rounded-full.border[class*='border-[#01803d]'] { background-color: var(--c1-band) !important; border-color: var(--c1-hair-firm) !important; color: var(--c1-ink) !important; border-radius: var(--c1-r-ctl) !important; }
}
/* the closing call to action (CallToAction) on my pages: a "Contact Sales" second button that is not the
   demo booking is the quiet printed button (the system's .btn-secondary), not a green twin of the trial. Its edge is
   the system's quiet edge with no inset line (website-astro#773: it drew the ink line and an inset ink line, as loud
   as the primary button). */
body.tfx:is(html:root[data-tfx-canonical]:is([data-tfx-canonical$='-alternative/'], [data-tfx-canonical*='/alternatives/'], [data-tfx-canonical*='/solutions/'], [data-tfx-canonical$='/features/'], [data-tfx-canonical$='/integrations/'], [data-tfx-canonical*='/templates/'], [data-tfx-canonical*='/tools/'], [data-tfx-canonical*='/guides/'], [data-tfx-canonical*='/academy/'], [data-tfx-canonical$='/about-tallyfy/'], [data-tfx-canonical$='/careers/'], [data-tfx-canonical$='/partners/'], [data-tfx-canonical$='/press-and-media-kit/'], [data-tfx-canonical$='/status/'], [data-tfx-canonical$='/for-agents/'], [data-tfx-canonical*='/national-holidays/'], [data-tfx-canonical*='/authors/'], [data-tfx-canonical*='/legal/'], [data-tfx-canonical$='/govcloud/'], [data-tfx-canonical$='/documentation/'], [data-tfx-canonical$='/workflow/'], [data-tfx-canonical$='/tasks-and-approvals/'], [data-tfx-canonical$='/tracking/'], [data-tfx-canonical$='/conditionals-and-automations/'], [data-tfx-canonical$='/client-facing-views/'], [data-tfx-canonical$='/ai/'], [data-tfx-canonical$='/vault/'], [data-tfx-canonical$='/mcp-server/'], [data-tfx-canonical$='/search/']) *) .cta-section a.cta-button.btn-secondary:not([href^='/booking']) {
  background-color: var(--c1-sheet) !important; color: var(--c1-ink) !important;
  border-color: var(--c1-edge) !important; border-radius: var(--c1-r-ctl) !important;
  box-shadow: none !important;
}
body.tfx:is(html:root[data-tfx-canonical]:is([data-tfx-canonical$='-alternative/'], [data-tfx-canonical*='/alternatives/'], [data-tfx-canonical*='/solutions/'], [data-tfx-canonical$='/features/'], [data-tfx-canonical$='/integrations/'], [data-tfx-canonical*='/templates/'], [data-tfx-canonical*='/tools/'], [data-tfx-canonical*='/guides/'], [data-tfx-canonical*='/academy/'], [data-tfx-canonical$='/about-tallyfy/'], [data-tfx-canonical$='/careers/'], [data-tfx-canonical$='/partners/'], [data-tfx-canonical$='/press-and-media-kit/'], [data-tfx-canonical$='/status/'], [data-tfx-canonical$='/for-agents/'], [data-tfx-canonical*='/national-holidays/'], [data-tfx-canonical*='/authors/'], [data-tfx-canonical*='/legal/'], [data-tfx-canonical$='/govcloud/'], [data-tfx-canonical$='/documentation/'], [data-tfx-canonical$='/workflow/'], [data-tfx-canonical$='/tasks-and-approvals/'], [data-tfx-canonical$='/tracking/'], [data-tfx-canonical$='/conditionals-and-automations/'], [data-tfx-canonical$='/client-facing-views/'], [data-tfx-canonical$='/ai/'], [data-tfx-canonical$='/vault/'], [data-tfx-canonical$='/mcp-server/'], [data-tfx-canonical$='/search/']) *) .cta-section a.cta-button.btn-secondary:not([href^='/booking']):hover { background-color: var(--c1-band) !important; }

/* =========================================================================================
   6. The alternatives index and its two sub-indexes
   ========================================================================================= */
body.tfx:is(html:root[data-tfx-canonical][data-tfx-canonical*='/alternatives/'] *) {
  /* vendor chips hover to the band, not green */
  & main a.inline-flex.rounded-lg.border:hover { background-color: var(--c1-band) !important; border-color: var(--c1-edge) !important; & span { color: var(--c1-ink) !important; } }
  & main details > summary:hover { color: var(--c1-ink) !important; text-decoration: underline; text-decoration-color: var(--c1-orange); text-decoration-thickness: 2px; text-underline-offset: 0.24em; }
}

/* =========================================================================================
   7. The calm rules for these pages (the calm ruling, owner decisions 55 to 59)
   ========================================================================================= */
/* ---------- 8. A template's page ---------- */
/* a step: one sheet with a hairline. Its head stands on the same sheet (three band heads in one view were three
   bands), with one hairline between head and words, 24px of room inside, and its number on a small band disc
   with no ring. (80-pages.css draws these inside its page-family rule, hence the weight here.) */
body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .rounded-lg.overflow-hidden > .flex.items-start.bg-gray-50 { background-color: transparent !important; padding: var(--c1-s-5); }
body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main div.rounded-full.bg-primary.text-white { background-color: var(--c1-band) !important; box-shadow: none; }
body.tfx main #steps .rounded-lg > div.border-t { padding: var(--c1-s-5); border-top-color: transparent; }
@media (max-width: 639.98px) {
  body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .rounded-lg.overflow-hidden > .flex.items-start.bg-gray-50 { padding: var(--c1-s-4); }
  body.tfx main #steps .rounded-lg > div.border-t { padding: var(--c1-s-4); }
}
/* (a step's words run to the card's inner width, as a card's paragraph does: the measure of 31em then 42.5em
   that stood here until 16:18Z left a third of the card empty beside them) */

/* the three phase sheets of "Why Tallyfy is the AI control layer" (80-pages.css): a rule in that sheet's
   page-family block draws their ink edge, hence the weight here */
body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .clp-phase-card { border-color: var(--c1-hair); }
/* a tinted line inside a card (the sum on a solution page, 80-pages.css) is told by its tint: no ink box in a box */
body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .tnj-math { box-shadow: none; }

/* the boxes 80-pages.css draws on its page families (templates, solutions, alternatives and the rest), each in
   the ink there: a link card on the templates index, a boxed block, a white card with no border of its own.
   (Seven .tfx: that sheet's rules sit inside its page-family selector.) */
body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main a.group.block.rounded-xl { border-color: var(--c1-hair) !important; }
body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .card-snipped:not(.ps *, .process-wall *, .tallyfy-control-layer *, .tf-quote) { border-color: var(--c1-hair) !important; }
body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main div.bg-white.rounded-xl:not(.border, .border-2, [class*='shadow'], .ps *, .process-wall *, .tallyfy-control-layer *, [data-roi-widget] *),
body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main div.bg-white.rounded-2xl:not(.border, .border-2, [class*='shadow'], .ps *, .process-wall *, .tallyfy-control-layer *, [data-roi-widget] *),
body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main div.bg-white.rounded-lg:not(.border, .border-2, [class*='shadow'], .ps *, .process-wall *, .tallyfy-control-layer *, [data-roi-widget] *),
body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main li.bg-white.rounded-xl:not(.border, .border-2, [class*='shadow']),
body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main article.bg-white.rounded-xl:not(.border, .border-2, [class*='shadow']) { box-shadow: inset 0 0 0 1px var(--c1-hair) !important; }
/* the link cards under "alternatives to ..." (80-pages.css line 308): a card in a grid, so the hairline */
body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .alternative-card { border-color: var(--c1-hair) !important; box-shadow: none !important; }

/* ---------- 12. A long-text page under a centered heading (about, press) ----------
   The page's heading is centered, and its text column must be centered under it. The source gives the page one
   section of 56rem (832px inside its padding) and holds the text in it to 48rem on the left, so at 1440 the text
   stood 304 to 1072, 32px left of centre, while the cards beside it ran the full 832. The section takes the
   text's own 48rem inside its padding, so its headings, text and cards share one centered column.
   (Its padding is 1.5rem a side from 640px and 2rem from 1024px; below 640px the screen is narrower than this.)
   Keyed on the two pages by their built mark: 1,133 pages of the site carry a section with max-w-4xl (1,010 tag
   pages, the alternative and solution pages), and they are not this layout. */
html[data-tfx-canonical$='/about-tallyfy/'] body.tfx main > section.max-w-4xl,
html[data-tfx-canonical$='/press-and-media-kit/'] body.tfx main > section.max-w-4xl { max-width: 51rem; }
@media (min-width: 1024px) {
  html[data-tfx-canonical$='/about-tallyfy/'] body.tfx main > section.max-w-4xl,
  html[data-tfx-canonical$='/press-and-media-kit/'] body.tfx main > section.max-w-4xl { max-width: 52rem; }
}

/* A guide's Summary is the post's Summary: one sheet with a hairline, no ink bar down its left. Its 4px bar goes
   and its left padding takes the 4px, so its words keep their place. (80-pages.css section 6e draws the bar in
   ink inside its page-family selector, hence the weight.) */
body.tfx.tfx.tfx.tfx.tfx .guide-summary-box {
  border-left-width: 0 !important;
  padding-left: calc(2rem + 4px);
  border-radius: var(--c1-r-card) !important;
}
@media (max-width: 639.98px) {
  /* on a phone its words stand 16px inside the sheet, as a post's Summary does: at 36px a side the list had
     246px of a 390px screen */
  body.tfx.tfx.tfx.tfx.tfx .guide-summary-box { padding-left: var(--c1-s-4); padding-right: var(--c1-s-4); }
}

/* a guide's Summary: 16px to 17px */
body.tfx.tfx .guide-summary-box li { font-size: 1.0625rem; }
/* an answer under a question on a solution page */
body.tfx.tfx main p.solution-faq-answer { font-size: var(--c1-read); }
/* a step's words on a template's page: 14px to 15px. They are that page's reading text, ten lines and more a step.
   "Small text in cards", which does not change, means labels and a card's blurb, not the steps a visitor came to read. */
body.tfx.tfx main #steps .prose.prose-sm { font-size: 0.9375rem; }

/* a long-text page (about, press): a block set at the reading size carries it to its paragraphs; a paragraph or a
   bulleted list with no size of its own takes the page's base size, which grows with the window (16.2px at 390, 17.3px at
   768, 18px from about 1000px): 17px, then 18px, then the reading size. Text inside a card keeps its size: a card's
   title is 18px, and at 19px its words stood larger than their own title. */
html[data-tfx-canonical$='/about-tallyfy/'] body.tfx main > section.max-w-4xl div.text-lg:not(.font-semibold, .font-bold),
html[data-tfx-canonical$='/press-and-media-kit/'] body.tfx main > section.max-w-4xl div.text-lg:not(.font-semibold, .font-bold) { font-size: var(--c1-read); }
html[data-tfx-canonical$='/about-tallyfy/'] body.tfx main > section.max-w-4xl p:not(.text-xs, .text-sm, .text-base, .text-lg, .text-xl, .text-2xl, .font-mono, .text-xs *, .text-sm *, .text-lg *, .text-xl *, .rounded-lg *, .rounded-xl *, .rounded-2xl *),
html[data-tfx-canonical$='/about-tallyfy/'] body.tfx main > section.max-w-4xl ul:not(.text-xs, .text-sm, .text-base, .text-lg, .text-xl, .text-2xl, .font-mono, .text-xs *, .text-sm *, .text-lg *, .text-xl *, .rounded-lg *, .rounded-xl *, .rounded-2xl *),
html[data-tfx-canonical$='/press-and-media-kit/'] body.tfx main > section.max-w-4xl p:not(.text-xs, .text-sm, .text-base, .text-lg, .text-xl, .text-2xl, .font-mono, .text-xs *, .text-sm *, .text-lg *, .text-xl *, .rounded-lg *, .rounded-xl *, .rounded-2xl *),
html[data-tfx-canonical$='/press-and-media-kit/'] body.tfx main > section.max-w-4xl ul:not(.text-xs, .text-sm, .text-base, .text-lg, .text-xl, .text-2xl, .font-mono, .text-xs *, .text-sm *, .text-lg *, .text-xl *, .rounded-lg *, .rounded-xl *, .rounded-2xl *) { font-size: 1.0625rem; }
@media (min-width: 768px) {
  html[data-tfx-canonical$='/about-tallyfy/'] body.tfx main > section.max-w-4xl p:not(.text-xs, .text-sm, .text-base, .text-lg, .text-xl, .text-2xl, .font-mono, .text-xs *, .text-sm *, .text-lg *, .text-xl *, .rounded-lg *, .rounded-xl *, .rounded-2xl *),
  html[data-tfx-canonical$='/about-tallyfy/'] body.tfx main > section.max-w-4xl ul:not(.text-xs, .text-sm, .text-base, .text-lg, .text-xl, .text-2xl, .font-mono, .text-xs *, .text-sm *, .text-lg *, .text-xl *, .rounded-lg *, .rounded-xl *, .rounded-2xl *),
  html[data-tfx-canonical$='/press-and-media-kit/'] body.tfx main > section.max-w-4xl p:not(.text-xs, .text-sm, .text-base, .text-lg, .text-xl, .text-2xl, .font-mono, .text-xs *, .text-sm *, .text-lg *, .text-xl *, .rounded-lg *, .rounded-xl *, .rounded-2xl *),
  html[data-tfx-canonical$='/press-and-media-kit/'] body.tfx main > section.max-w-4xl ul:not(.text-xs, .text-sm, .text-base, .text-lg, .text-xl, .text-2xl, .font-mono, .text-xs *, .text-sm *, .text-lg *, .text-xl *, .rounded-lg *, .rounded-xl *, .rounded-2xl *) { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  html[data-tfx-canonical$='/about-tallyfy/'] body.tfx main > section.max-w-4xl p:not(.text-xs, .text-sm, .text-base, .text-lg, .text-xl, .text-2xl, .font-mono, .text-xs *, .text-sm *, .text-lg *, .text-xl *, .rounded-lg *, .rounded-xl *, .rounded-2xl *),
  html[data-tfx-canonical$='/about-tallyfy/'] body.tfx main > section.max-w-4xl ul:not(.text-xs, .text-sm, .text-base, .text-lg, .text-xl, .text-2xl, .font-mono, .text-xs *, .text-sm *, .text-lg *, .text-xl *, .rounded-lg *, .rounded-xl *, .rounded-2xl *),
  html[data-tfx-canonical$='/press-and-media-kit/'] body.tfx main > section.max-w-4xl p:not(.text-xs, .text-sm, .text-base, .text-lg, .text-xl, .text-2xl, .font-mono, .text-xs *, .text-sm *, .text-lg *, .text-xl *, .rounded-lg *, .rounded-xl *, .rounded-2xl *),
  html[data-tfx-canonical$='/press-and-media-kit/'] body.tfx main > section.max-w-4xl ul:not(.text-xs, .text-sm, .text-base, .text-lg, .text-xl, .text-2xl, .font-mono, .text-xs *, .text-sm *, .text-lg *, .text-xl *, .rounded-lg *, .rounded-xl *, .rounded-2xl *) { font-size: var(--c1-read); }
}

/* a callout is its tint with a hairline (A3). The two cards set side by side are a pair: both take the hairline,
   drawn inside the card's own 2px border so nothing moves. The folded corner on the green one goes with its ink
   edge: a fold is the hero card's. */
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .grid > .rounded-xl.border-2:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *) { border-color: transparent !important; box-shadow: inset 0 0 0 1px var(--c1-hair) !important; }
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .grid > .rounded-xl.border-2.bg-green-50:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *)::before,
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .grid > .rounded-xl.border-2.bg-green-50:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *)::after { content: none; }
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .bg-amber-50.rounded-xl:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *),
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .bg-purple-50.rounded-xl:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *),
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .bg-green-50.rounded-lg.inline-flex:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *) { border-color: var(--c1-hair) !important; }
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .bg-green-50.rounded-xl.text-center:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *) { box-shadow: inset 0 0 0 1px var(--c1-hair) !important; }
/* a card that drew a second, half pixel line in ink on its ::after */
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .rounded-xl.border.shadow-sm:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *)::after { box-shadow: none !important; }
/* a picture set in the page: one hairline round it */
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .grid img.rounded-xl:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *),
html[data-tfx-canonical*='/solutions/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main img.rounded-xl:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *) { box-shadow: 0 0 0 1px var(--c1-hair); }
/* the steps of "Switching to Tallyfy" and the marks beside a heading: a disc is told by its fill, with no ink
   ring, as a step's number is on a template's page; a disc with no colour of its own takes the band paper. The
   line that joins the steps is a hairline. */
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .bg-green-500.rounded-full:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *),
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .bg-amber-500.rounded-full:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *),
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .bg-gray-400.rounded-full:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *),
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .bg-purple-500.rounded-full:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *) { box-shadow: none; }
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .bg-gray-400.rounded-full:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *),
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .bg-purple-500.rounded-full:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *) { background-color: var(--c1-band) !important; }
html[data-tfx-canonical$='-alternative/'] body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .relative > .absolute.bg-green-200.w-0\.5:not(section.hero-dark-forced *, section.cta-section *, section.signup-cta *) { background-color: var(--c1-hair) !important; }
/* the two bars of the task sum (a chart, on solution pages and in posts): a firm hairline tells a bar from its
   track, not an ink box */
body.tfx.tfx.tfx.tfx.tfx.tfx.tfx main .tnj-bar-fill { box-shadow: inset 0 0 0 1px var(--c1-hair-firm) !important; }

/* =========================================================================================
   10. Page kinds the look missed (website-astro#773, a check of all 2,468 pages in 57 kinds on build 17)
   Each rule was read against the built page first: the fault before, the rule added, the fault gone after,
   and the rule's reach counted on the pages it touches. Items are named as in the issue.
   ========================================================================================= */
/* B1. A secondary button inside a night hero kept today's white label on the sheet fill (1.06 to 1): the notice
   hero's own rule (.hero-dark-forced [cid] { color: #fff !important }) outranked the system's ink. Three pages:
   the thank-you page, /capitalone/ and the components page. Ink on the sheet reads 15.13 to 1. */
body.tfx .hero-dark-forced a.btn-secondary:not(.btn-gooey) { color: var(--c1-ink) !important; }
/* B2. The academy quiz header (six pages) is today's dark green gradient with white words; the system's tint rule
   for pale green gradients (class*='from-green-50') also matches 'from-green-500', so the field went pale and the
   words stayed pale (1.09 to 1). The header takes the band, its line the soft ink (5.81 to 1). */
body.tfx.tfx.tfx .quiz-container > div:first-child { background-color: var(--c1-band) !important; }
body.tfx.tfx.tfx .quiz-container > div:first-child p { color: var(--c1-ink-soft) !important; }
/* B3. A lesson table (12 lessons) is a block that scrolls, but today's table { min-width: 400px } kept it 400px wide
   in a 358px column at 390, so its right side was cut off by the window. It now fits and scrolls inside itself. */
body.tfx .lesson-content table { min-width: 0; }
/* B4. On a phone the campaign page's comparison rows took the width of the 1526px diagram (576px tracks on a 390px
   screen). One column that never grows past the window. */
@media (max-width: 767px) {
  body.tfx main .grid.md\:grid-cols-12 { grid-template-columns: minmax(0, 1fr); }
}
/* U1 and U2. No rule under a heading (the calm ruling, A4): the green rule under headings inside .prose (template
   previews, lessons, tools) and the hairline under headings that carry Tailwind's border-b (holiday months, the
   solutions index). The legal pages keep their headings' spacing: their line was already clear (legal-body), and
   taking its padding away moved every heading 13px closer to its text. */
body.tfx .prose :is(h2, h3):not(.legal-body *) { border-bottom: 0; padding-bottom: 0; }
body.tfx main :is(h2, h3, h4).border-b { border-bottom-width: 0; padding-bottom: 0; }
/* U4. Two buttons kept today's dark green: a template collection's "Create your own template" (round, soft shadow)
   and the lesson's Next button (its label was white, its link colour the fill's green). Both are the system's
   primary button: the green fill, the ink line, an ink label (6.15 to 1), 3px corners. */
body.tfx main a.bg-primary.rounded-full {
  background: var(--c1-green); color: var(--c1-ink);
  border: 1px solid var(--c1-ink); border-radius: var(--c1-r-ctl); box-shadow: none;
}
body.tfx a.nav-button.next {
  background-color: var(--c1-green) !important; color: var(--c1-ink) !important;
  border: 1px solid var(--c1-ink) !important; border-radius: var(--c1-r-ctl) !important;
  box-shadow: none !important; text-decoration: none !important;
}
body.tfx a.nav-button.next:hover { background-color: var(--c1-green-hover) !important; }
body.tfx a.nav-button.next :is(.nav-label, .nav-title, .nav-icon) { color: var(--c1-ink) !important; text-decoration: none !important; }
/* The third: the capstone page's closing call has a second button, "See the project ideas", which the call's own rule
   (.cta-section .cta-button, white on dark green) paints over the system. It is a secondary button and goes to
   another page, so it is the quiet one (system.css section 16: the green ticket is "Try Tallyfy free"). A second
   button that goes to /booking/ stays the orange one, and the template pages' quiet one is unchanged. */
body.tfx .cta-section a.cta-button.btn-secondary { background-color: var(--c1-sheet) !important; border-color: var(--c1-edge) !important; color: var(--c1-ink) !important; }
body.tfx .cta-section a.cta-button.btn-secondary:hover { background-color: var(--c1-band) !important; border-color: var(--c1-edge) !important; }
/* U5. No soft drop shadow under a picture (careers, guides, the alternatives index). */
body.tfx main img { box-shadow: none; }
/* U6. The tag header (1,010 tag pages) is the page's own paper, not a blue field; its icon box is the blue ink's
   tint, not screen blue. */
body.tfx.tfx main > section.bg-gradient-to-br[class*='from-blue-50'] { background-color: var(--c1-paper) !important; }
body.tfx.tfx main > section.bg-gradient-to-br .bg-blue-500\/10 { background-color: var(--c1-blue-tint) !important; color: var(--c1-blue-text) !important; }
/* U7 and U8. A table is one sheet with a hairline edge and a quiet head row, not a band (the calm ruling, A5): the
   lesson table's frame and the pale green head band on post tables. */
body.tfx .lesson-content table { border-color: var(--c1-hair); border-radius: var(--c1-r-card); background: var(--c1-sheet); color: var(--c1-ink-text); }
body.tfx .lesson-content :is(th, td) { background: transparent; }
body.tfx .prose thead tr { background-color: transparent !important; }
/* U10. A box that scrolls and takes keyboard focus (the table wrapper, a JSON sample) shows the one focus ring. */
body.tfx :is(.overflow-x-auto, pre):focus-visible { box-shadow: none !important; outline: 2px solid var(--c1-focus) !important; outline-offset: 2px !important; }
/* U11. Today's alarm red is the orange ink (the return on investment page, campaign pages): its tint and its text
   colour (4.69 to 1 on the tint). A heading keeps the ink the system already gives it. */
body.tfx main .bg-red-50 { background-color: var(--c1-orange-tint) !important; }
body.tfx main :is(.text-red-600, .text-red-500):not(h1, h2, h3, h4) { color: var(--c1-orange-text) !important; }
/* U12. A quote card on the analysts page draws one edge, not a green bar and a hairline, and its words run the card's
   width. */
body.tfx main div.bg-white.border-l-4 { border-left: 0; border-radius: var(--c1-r-card); }
body.tfx main div.bg-white.border-l-4 p { max-width: none; }
/* U13. A notice page's second button is square like its first, not a round pill. */
body.tfx main a.btn { border-radius: var(--c1-r-ctl); }
/* U15. A boxed card (the demo page's closing card, the /forms/ cards, the /capitalone/ summary): no soft shadow, and
   the sheet, not the green tint or white. Other builders' boxes are left to them, as in section 2: the cost
   calculator keeps its half-line edge. */
body.tfx.tfx.tfx main .card-snipped:not(.ps *, .process-wall *, .tallyfy-control-layer *, [data-roi-widget], [data-roi-widget] *, .tsc-card, .tsc-card *, .tf-quote, .comparison-table-section *, .ai-scorecard-section *) { box-shadow: none !important; background-color: var(--c1-sheet) !important; }
/* P1. The quiz's note is information, so it is the blue ink's: its tint, its words and its icon. The six quiz pages
   only: the same class is a green box on the alternative pages, /integrations/ and the ROI page. */
html[data-tfx-canonical*='/quiz/'] body.tfx.tfx main div.bg-green-50 { background-color: var(--c1-blue-tint) !important; border-color: var(--c1-hair) !important; }
html[data-tfx-canonical*='/quiz/'] body.tfx.tfx main div.bg-green-50 :is(p, h3, h4, span, strong, svg) { color: var(--c1-blue-text) !important; }
/* P2. A document preview's window dots are quiet marks, not red, yellow and green. */
body.tfx main :is(.bg-red-400, .bg-yellow-400, .bg-green-400).rounded-full { background-color: var(--c1-hair-firm) !important; }
/* P3. The "Guides" label on a guide's hero is a label in tracked capitals, not a pill. */
body.tfx.tfx .blog-hero-wrapper span[class*='bg-white/20'] {
  background: transparent !important; padding: 0 !important;
  text-transform: uppercase; letter-spacing: var(--c1-label-track); font-size: 12px; color: var(--c1-orange-night) !important;
}
/* P4. The contact page's night band meets the night footer: no strip of paper between them. Keyed on the page's own
   mark (its canonical address, /contact/; it was /contact-us/ until website-astro#784), not a :has() on main, which
   Chrome checks again after every change and which the page marks exist to avoid. A scan of all 2,468 built pages
   found /contact/ the only one whose main ends in a green band (website-astro#775). */
html[data-tfx-canonical$='/contact/'] body.tfx main { padding-bottom: 0 !important; }
/* P6. The academy sign-in error note is the orange ink's tint and text, not pink and red (4.69 to 1). */
body.tfx main #login-error { background-color: var(--c1-orange-tint) !important; color: var(--c1-orange-text) !important; }
/* P7. A card icon on the guides index takes the ink like the others, not the green. */
body.tfx main .card-snipped svg.text-primary { color: var(--c1-ink) !important; }
/* The guides index's green icon is the GRC card's shield-check, which section 2's check rule (a check is done) paints
   green. On that page it is a picture like the other nine. */
html[data-tfx-canonical$='tallyfy.com/guides/'] body.tfx.tfx.tfx.tfx.tfx main .card-snipped svg.text-primary[data-icon*='check'] { color: var(--c1-ink) !important; }
