@charset "UTF-8";
/* ===========================================================
   AFTER — LAYER 1 of 3: GLOBAL
   Loaded by every recreated After page, right after that page's frozen
   baseline stylesheet. Never by a Before page.

   Belongs here: header/nav, footer, typography, buttons, inputs,
   selects and custom dropdowns, common control states
   (hover/focus/active/disabled), shared spacing and radius rules
   — anything that must change identically across all tools.

   Load order: baseline → after-global → after-family-* → <tool>-after
   =========================================================== */

/* -----------------------------------------------------------
   HEADER — two-row global header
   Markup: "After Header.dc.html" (imported by every After page).
   Row 1: mask icon + the page-specific brand/title (unchanged) on the
          left, account/utility controls on the right.
   Row 2: one stable global navigation set, indented to the brand text and
          hung on the header's bottom divider.
   No divider between the rows — they read as one header; the only line
   is the existing #nav.scrolled bottom border.
   Typography, colours, radii and icon style are the baseline's own.

   Every rule here is scoped under .nav-2row, which exists only in After
   markup: helmet <link>s persist in document.head after a DC unmounts, so an
   unscoped rule would keep applying while a Before page is on screen.
   ----------------------------------------------------------- */
.nav-2row{
  /* row 2 aligns to the left edge of the whole brand group (icon + title),
     so the navigation reads as part of it rather than as an indent */
  --nav-brand-x:0px;
}
.nav-2row .nav-in{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:16px;
  row-gap:0;
  min-height:0;
  padding-block:9px 0;
}
.nav-2row .logo{grid-column:1;grid-row:1;min-height:40px}
/* a brand name longer than the room beside the utility controls takes a
   second line instead of running under them (Clever Grammar Checker on the
   SEO masks, 381–498px); names that fit stay on one line at every width */
.nav-2row .logo{min-width:0}
.nav-2row .logo-name{white-space:normal;line-height:1.12;min-width:0}

/* row 1 right — account / utility controls */
.nav-2row .nav-utils{
  grid-column:2;grid-row:1;justify-self:end;
  display:flex;align-items:center;gap:10px;flex-shrink:0;
}

/* press states for the top-right controls, matching the /tools/ filter
   language: tonal only, instant, no movement */
.nav-2row .nav-utils .btn:active{
  background:rgba(25,30,26,.035);
  transform:none;
  transition:none;
}
.nav-2row .nav-utils .theme-btn{transition:border-color .2s}
.nav-2row .nav-utils .theme-btn:hover{transform:none}
.nav-2row .nav-utils .theme-btn:active{
  background:rgba(25,30,26,.035);
  box-shadow:inset 0 1px 2px rgba(25,30,26,.07);
  transform:none;
  transition:none;
}

/* row 2 — global navigation. Separated from the identity/utility row by
   whitespace only — no divider, so the two rows stay one header. */
.nav-2row .nav-row2{
  grid-column:1/-1;grid-row:2;
  display:flex;align-items:center;flex-wrap:wrap;
  gap:4px 26px;
  /* breathing room above, nothing below — the row hangs on the header's own
     bottom divider, which the active indicator sits on */
  padding:13px 0 0 var(--nav-brand-x);
  font-size:15px;font-weight:600;
}
/* Partial release (release.json): the server strips the link of a section
   that is not live yet (PDF Tools / Student Tools before their hub ships) and
   leaves its label behind. The header and the mobile menu only ever hold
   links, so anything else there is such a leftover and stays hidden. */
#nav .nav-links > :not(a), #nav .mobile-links > :not(a){display:none}
.nav-2row .nav-row2 a{
  position:relative;display:inline-flex;align-items:center;
  padding:0 0 9px;color:var(--muted);
}
.nav-2row .nav-row2 a:hover{color:var(--ink)}

/* active section — existing green accent, stronger weight, thin indicator.
   No filled pill, no new visual language.
   Each label reserves its ACTIVE width via a hidden bold sizer (see .nav-l
   below), so promoting an item to active never nudges its neighbours. */
.nav-2row .nav-row2 a[aria-current="page"]{color:var(--green-deep);font-weight:800}
/* indicator sits on the header's bottom divider rather than floating above it */
.nav-2row .nav-row2 a[aria-current="page"]::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;
  height:3px;background:var(--green);
}

/* label width sizer: a block ::before renders the same text at the ACTIVE
   weight, so the inline-block's shrink-to-fit width is always the bold width.
   height:0 + overflow:hidden keeps it out of the vertical flow, and
   visibility:hidden keeps it out of the accessibility tree — no duplicate
   text is announced. */
.nav-2row .nav-row2 .nav-l{display:inline-block}
.nav-2row .nav-row2 .nav-l::before{
  content:attr(data-label);
  display:block;height:0;overflow:hidden;visibility:hidden;
  font-weight:800;
}

/* All Tools counter — persistent solid green badge, compact, never dominant */
.nav-2row .nav-count{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:21px;height:18px;padding:0 6px;margin-left:7px;
  border-radius:99px;background:var(--green);
  font-family:var(--font-mono);font-size:10.5px;font-weight:500;line-height:1;
  color:#fff;
}
:root[data-theme="dark"] .nav-2row .nav-count{color:#0D1F17}

/* NEW marker on the two newest destinations — same inline mono marker the
   baseline already uses in .mobile-menu, reused verbatim on row 2. Sits after
   the .nav-l sizer so the label's active-width reservation is untouched. */
.nav-2row .nav-row2 .new{
  font-family:var(--font-mono);font-size:10px;color:var(--green);
  margin-left:7px;letter-spacing:.08em;
}
.nav-2row .mobile-menu a[aria-current="page"]{color:var(--green-deep)}
/* the baseline's .mobile-menu.open{max-height:360px} was sized for the old
   link set and clipped the last row of the unified navigation */
.nav-2row .mobile-menu.open{max-height:min(80vh,520px);overflow-y:auto}

/* -----------------------------------------------------------
   HERO — no decorative glow
   The baseline paints a radial green wash via .hero::before. Safe to target
   unscoped: the shell disables every After layer while Before is on screen.
   ----------------------------------------------------------- */
.hero::before{display:none}

/* -----------------------------------------------------------
   FAQ toggle — geometric + / ×
   One shared pattern across every tool and hub: .faq-q .plus is a 28px circle
   holding a text "+", which the open state rotates 45° into an ×. Text metrics
   left the glyph optically off-centre and small, and no baseline nudge fixes
   that reliably — so the glyph is replaced by two centred bars. Circle size,
   border, the green open state and the rotation are the baseline's own.
   Scoped under .faq-item: the baseline declares the same .faq-q .plus at
   equal specificity, and live tool switching appends baselines into this
   document in visit order, so a later one would win font-size and bring the
   literal "+" text back on top of the drawn bars. One extra ancestor class
   settles ownership without !important.
   ----------------------------------------------------------- */
.faq-item .faq-q .plus{position:relative;font-size:0;line-height:0}
.faq-item .faq-q .plus::before,
.faq-item .faq-q .plus::after{
  content:"";position:absolute;top:50%;left:50%;
  width:11px;height:1.75px;border-radius:2px;background:currentColor;
  transform:translate(-50%,-50%);
}
.faq-item .faq-q .plus::after{transform:translate(-50%,-50%) rotate(90deg)}

/* -----------------------------------------------------------
   MESSAGE BAR SEVERITY
   Before renders every status line in one of two skins: neutral grey, or
   green when the engine reports success. That collapses four genuinely
   different meanings — a finished job, a neutral process note, something
   the user must fix, and an actual runtime failure — into one flat strip,
   so "Try Strong mode for a real reduction" and "Conversion service is not
   available" look identical.

   After keeps the bar's box (size, placement, radius, 14px/600 type) and
   only varies ground, border, ink and a leading icon. Tints stay very
   light: this is a line of text in a workspace, not an alert banner.
   The icon carries the severity for anyone who cannot separate the hues.

   Shared by every family that renders a status bar (PDF tools, Translation):
   one component, one set of severity tokens, one icon per severity. The box
   below normalises the two baselines' slightly different strips (14px/600,
   10px/14px padding, 12px radius, 1px border) so the same message reads
   identically in either workspace; per-family placement stays in the family
   layer. The identical unused .tool-msg block in student-tools-baseline.css
   is copy-paste inheritance, not a third user.
   ----------------------------------------------------------- */
.tool .tool-msg.show{
  display:flex;align-items:flex-start;gap:9px;line-height:1.45;
  text-wrap:pretty;
}
/* the glyph is a mask so it always inherits the row's ink colour.
   The icon box is one text line tall and the mask is centred inside it, so
   all three severities land on the optical centre of the first line —
   never on the font baseline, and never drifting to the top edge when the
   message wraps to two lines. */
.tool .tool-msg.ok::before,
.tool .tool-msg.info::before,
.tool .tool-msg.warn::before,
.tool .tool-msg.err::before{
  content:"";flex:0 0 auto;
  width:16px;height:1.45em;
  background:currentColor;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:16px 16px;mask-size:16px 16px;
}
.tool .tool-msg.ok::before{-webkit-mask-image:var(--msg-i-ok);mask-image:var(--msg-i-ok)}
.tool .tool-msg.info::before{-webkit-mask-image:var(--msg-i-info);mask-image:var(--msg-i-info)}
.tool .tool-msg.warn::before{-webkit-mask-image:var(--msg-i-warn);mask-image:var(--msg-i-warn)}
.tool .tool-msg.err::before{-webkit-mask-image:var(--msg-i-err);mask-image:var(--msg-i-err)}

:root{
  --msg-i-ok:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.45'/%3E%3Cpath d='M5.2 8.3l2 2 3.6-4.1'/%3E%3C/svg%3E");
  --msg-i-info:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.45'/%3E%3Cpath d='M8 7.3v4'/%3E%3Cpath d='M8 4.85h.01'/%3E%3C/svg%3E");
  --msg-i-warn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.9 14.9 13.6H1.1Z'/%3E%3Cpath d='M8 6.4v3.2'/%3E%3Cpath d='M8 11.75h.01'/%3E%3C/svg%3E");
  --msg-i-err:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.45'/%3E%3Cpath d='M5.9 5.9l4.2 4.2'/%3E%3Cpath d='M10.1 5.9l-4.2 4.2'/%3E%3C/svg%3E");
  /* severity grounds — tinted just enough to read as a state */
  --msg-info-bg:#EEF3F8;   --msg-info-line:#C6D6E6;  --msg-info-ink:#31506E;
  --msg-warn-bg:#FDF4E4;   --msg-warn-line:#EBCE94;  --msg-warn-ink:#7A5310;
  --msg-err-bg:#FCEFEF;    --msg-err-line:#EBB9B9;   --msg-err-ink:#8C2B2B;
}
:root[data-theme="dark"]{
  --msg-info-bg:#18242E;   --msg-info-line:#2E4658;  --msg-info-ink:#A8C6DF;
  --msg-warn-bg:#2A2114;   --msg-warn-line:#57431F;  --msg-warn-ink:#E3BE78;
  --msg-err-bg:#2B1818;    --msg-err-line:#573030;   --msg-err-ink:#E5A3A3;
}

.tool .tool-msg.info{background:var(--msg-info-bg);border-color:var(--msg-info-line);color:var(--msg-info-ink)}
.tool .tool-msg.warn{background:var(--msg-warn-bg);border-color:var(--msg-warn-line);color:var(--msg-warn-ink)}
.tool .tool-msg.err {background:var(--msg-err-bg); border-color:var(--msg-err-line); color:var(--msg-err-ink)}
/* success keeps the baseline green, only picking up the flex row */

/* One box for every workspace strip, whichever baseline it came from.
   Scoped under .tool on purpose: live tool switching appends each family's
   baseline into the same document in VISIT order, so a baseline mounted
   after this sheet would otherwise win the shared rules on equal
   specificity and drag the strip back to its own geometry (which also
   collapsed the icon, since the ::before needs the flex row). One extra
   class puts ownership beyond append order without !important. */
.tool .tool-msg{
  font-size:14px;font-weight:600;
  padding:10px 14px;
  border-radius:12px;
  border-width:1px;
}
/* success: the accepted green treatment, shared rather than per-baseline */
.tool .tool-msg.ok{background:var(--green-tint);border-color:var(--diff-line);color:var(--green-deep)}

/* -----------------------------------------------------------
   WORKSPACE PRIMARY CTA
   One primary action across every workspace that has one (PDF tools,
   Translation): the baselines already agree on fill, hover, focus-visible
   and disabled, so only the box and the press state are stated here. The
   CTA is the only control large enough to move — it drops the 2px hover
   lift and pulls its shadow in, reading as weight going down, while every
   smaller control answers with tone alone. Per-family rules may place it,
   never restyle it.
   ----------------------------------------------------------- */
/* the same box when the primary action sits in the controls row beside
   58px fields (the Student tool pages) */
.tool .tool-actions .btn-primary,
.tool .opt-row .btn-primary{
  height:58px;
  padding:0 32px;
  border-radius:999px;
}
/* a workspace button's label is centred at any width — a CTA stretched to
   the full line on phones (Student rows) reads left-aligned otherwise. Same
   page condition as the tool-page hero below, so the Grammar Checker and the
   hubs are not matched; all in :where(), specificity stays zero. */
:where(.hero .wrap:has(> .tool):has(> .hero-more) > .tool) :where(.btn, .qa-btn){justify-content:center;text-align:center}
/* the press also answers when the primary action sits in the controls row
   (the Student tool pages); the 58px box above stays with .tool-actions */
.tool-actions .btn-primary:not([disabled]):active,
.tool .opt-row .btn-primary:not([disabled]):active{
  transform:translateY(1px);
  background:var(--green-deep);
  box-shadow:0 1px 4px rgba(14,123,84,.26);
  transition:none;
}

/* -----------------------------------------------------------
   CUSTOM SELECT — the open listbox
   One picker for every workspace select (PDF tools, Translation, Student
   tool pages): a fixed listbox next to its trigger, 40px rows, a tick on the
   selected option, the same active / hover / pressed states. Each family keeps
   its own CLOSED field (trigger box and chevron), because the fields differ;
   the open list is identical everywhere and lives here once.
   ----------------------------------------------------------- */
:root{
  --psel-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7.4l3 3 6-6.6'/%3E%3C/svg%3E");
}
.psel-menu{
  position:fixed;
  z-index:60;
  margin:0;
  padding:5px;
  list-style:none;
  background:var(--surface);
  border:1.5px solid var(--line);
  border-radius:12px;
  box-shadow:0 10px 28px rgba(17,34,28,.14);
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.psel-opt{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:8px 11px;
  border-radius:8px;
  font-size:14.5px;
  font-weight:600;
  color:var(--ink);
  cursor:pointer;
  user-select:none;
}
.psel-opt .psel-tick{
  flex:0 0 auto;
  width:14px;height:14px;
  background:var(--green);
  opacity:0;
  -webkit-mask:var(--psel-tick) no-repeat center/14px 14px;
  mask:var(--psel-tick) no-repeat center/14px 14px;
}
.psel-opt[aria-selected="true"]{color:var(--green-deep)}
.psel-opt[aria-selected="true"] .psel-tick{opacity:1}
.psel-opt.is-active,
.psel-opt:hover{background:var(--surface2)}
.psel-opt:active{background:var(--green-tint);color:var(--green-deep)}

/* -----------------------------------------------------------
   HERO ORDER — workspace first
   On every tool page whose workspace sits directly in the hero (the PDF,
   Translation and Student templates' .tool, the Photo Editor's .pe-wrap):
   the eyebrow and heading, then the workspace; its description and checkmark
   benefits directly under it as one supporting block; then the tool
   navigation. The hero column is ordered explicitly, at every width, so the
   baseline's <=960px order rules, written for the old sequence, cannot
   re-shuffle it. The condition — workspace and description both direct
   children of the hero column — sits in :where(), so these selectors keep
   the plain .hero .wrap > … specificity. Hubs and the catalog have no
   workspace in the hero, and the Grammar Checker nests its description in
   its own hero grid, so none of them is touched.
   ----------------------------------------------------------- */
.hero .wrap:where(:has(> .tool, > .pe-wrap):has(> .hero-more)){display:flex;flex-direction:column}
.hero .wrap:where(:has(> .tool, > .pe-wrap):has(> .hero-more)) > .eyebrow{order:1}
.hero .wrap:where(:has(> .tool, > .pe-wrap):has(> .hero-more)) > h1{order:2}
.hero .wrap:where(:has(> .tool, > .pe-wrap):has(> .hero-more)) > :is(.tool, .pe-wrap){order:3;margin-top:18px}
.hero .wrap:where(:has(> .tool, > .pe-wrap):has(> .hero-more)) > .hero-more{order:4;margin-top:26px}
.hero .wrap:where(:has(> .tool, > .pe-wrap):has(> .hero-more)) > .toolnav{order:5}

/* description + benefits read as one block, and the description uses the full
   content width instead of the baseline's 62ch column */
.hero .wrap:where(:has(> .tool, > .pe-wrap):has(> .hero-more)) > .hero-more .sub{max-width:none;margin-bottom:12px}
.hero .wrap:where(:has(> .tool, > .pe-wrap):has(> .hero-more)) > .hero-more .hero-features{margin-bottom:0}

/* -----------------------------------------------------------
   HERO EYEBROW — breadcrumbs (SEO + GEO checklist, C9)
   The eyebrow is the page's place in the site: All Tools / hub / page — the
   trail production's BreadcrumbList describes, under an All Tools root. Same
   mono eyebrow language as before (the .eyebrow class keeps size, tracking and
   hero order); links in green, the "/" separator muted, the current page muted
   and not a link. Phones (≤600) drop the current page when a hub precedes it
   (All Tools / hub / page): the H1 right below names it, and the trail stays
   on one line whatever the tool name's length. A two-step trail (All Tools /
   page: the hubs, the AI Translator, the SEO masks) keeps the page on phones
   too — alone, "All Tools" read as a label, not a path.
   ----------------------------------------------------------- */
.hero .crumbs ol{display:flex;flex-wrap:wrap;align-items:baseline;list-style:none;margin:0;padding:0;row-gap:4px}
.hero .crumbs li{display:inline-flex;align-items:baseline;min-width:0}
.hero .crumbs li + li::before{content:"/";margin:0 .7em;color:var(--muted);opacity:.7}
.hero .crumbs a{color:var(--green);text-decoration:none;transition:color .12s ease}
.hero .crumbs a:hover{color:var(--green-deep);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.hero .crumbs a:active{color:var(--green-deep);transition:none}
.hero .crumbs a:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:3px}
.hero .crumbs [aria-current]{color:var(--muted)}
@media(max-width:600px){
  .hero .crumbs li:nth-child(n+3)[aria-current]{display:none}
}
/* the longest two-step trails (All Tools / Punctuation Checker) are ~10px wider
   than a 320px column at the eyebrow's .16em tracking; slightly tighter
   tracking keeps them on one line */
@media(max-width:340px){
  .hero .crumbs{letter-spacing:.1em}
}

/* -----------------------------------------------------------
   MOBILE — wrap exception for long highlighted phrases
   Reusable capability; each page applies .mark-wrap only to the fragments a
   375px audit found wider than the content column (the renderers'
   WRAP_MARKS). Below 600px the fragment may break, and since the baseline
   highlight is an absolutely positioned bar that cannot follow wrapped
   fragments, the stroke is drawn as a cloned inline background: slanted caps
   + flat body, same colour and the same sweep timing. Wider viewports keep
   the baseline stroke.
   ----------------------------------------------------------- */
@media(max-width:600px){
  .mark-wrap{
    white-space:normal;
    -webkit-box-decoration-break:clone;box-decoration-break:clone;
    padding-inline:.12em;margin-inline:-.12em;
    background-image:
      linear-gradient(to top right,transparent 0 50%,var(--mark-bg) 50%),
      linear-gradient(var(--mark-bg),var(--mark-bg)),
      linear-gradient(to bottom left,transparent 0 50%,var(--mark-bg) 50%);
    background-repeat:no-repeat;
    background-position:left 0 bottom .06em,left .08em bottom .06em,right 0 bottom .06em;
    background-size:.08em .44em,calc(100% - .16em) .44em,.08em .44em;
    animation:mark-wrap-sweep .7s cubic-bezier(.3,.9,.4,1) both;
  }
  .mark-wrap::after{display:none}
}
@keyframes mark-wrap-sweep{
  from{background-size:0 .44em,0 .44em,0 .44em}
  to{background-size:.08em .44em,calc(100% - .16em) .44em,.08em .44em}
}

/* -----------------------------------------------------------
   TOOL NAVIGATION — the tool's catalog category
   Under the workspace, every tool page lists the tools of its own All Tools
   catalog category as one section: a wave rule (same tile and rhythm as the
   catalog), a section heading in the catalog's category-heading language, a
   compact wrapped pill flow, and a pressed state. One component across the
   PDF, Student and standalone pages; each family only places it.
   ----------------------------------------------------------- */
.hero .wrap > .toolnav{margin:0 0 6px}
.hero .wrap > .toolnav::before{
  content:"";
  display:block;
  height:12px;
  width:calc(100% - 8px);
  margin:40px auto;
  background:var(--line);
  -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='12'%3E%3Cpath%20d='M0%208%20Q6%203%2012%208%20T24%208'%20fill='none'%20stroke='%23000'%20stroke-width='1.4'%20stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 24px 12px;
  mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='12'%3E%3Cpath%20d='M0%208%20Q6%203%2012%208%20T24%208'%20fill='none'%20stroke='%23000'%20stroke-width='1.4'%20stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 24px 12px;
}

.toolnav h2.tn-cap{
  font-family:var(--font-display);font-size:20px;line-height:1.25;
  letter-spacing:normal;text-transform:none;color:var(--ink);
  display:block;margin:0 0 14px;
}
.toolnav ul{gap:10px}

/* pressed state — pills stay stationary; immediate wash on the way in so the
   feedback is never late, transition only on release. Kept lighter than the
   dark aria-current pill so it cannot read as the current page. */
.toolnav a:not([aria-current="page"]):active{
  border-color:var(--green);color:var(--green);
  background:var(--green-tint);
  box-shadow:inset 0 1px 3px rgba(14,123,84,.22);
  transition:none;
}

/* -----------------------------------------------------------
   FOOTER — synchronised Tools column + single company/legal block
   Markup: "After Footer.dc.html" (imported by every After page).
   Upper three-column grid, dark background, width and spacing rhythm are
   the baseline's own. Scoped under .after-foot so nothing reaches Before.
   ----------------------------------------------------------- */

/* All Free Tools counter — same treatment as the header badge */
.after-foot .foot-count{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:21px;height:18px;padding:0 6px;margin-left:6px;
  border-radius:99px;background:var(--green);
  font-family:var(--font-mono);font-size:10.5px;font-weight:500;line-height:1;
  color:#fff;vertical-align:1px;
}
/* dark theme: the green lightens, so the number turns dark like the header's */
:root[data-theme="dark"] .after-foot .foot-count{color:#0D1F17}

/* one left-aligned company/legal block: logo, then address, then legal links.
   Replaces the address-left / links-right split; the divider above stays. */
.after-foot .foot-legal{
  display:block;
  text-align:left;
}
.after-foot .foot-legal .cf-logo{
  /* the supplied SVG is already white, so it needs no white card */
  display:inline-block;background:none;border-radius:0;padding:0;
  margin:0 0 12px;opacity:.8;transition:opacity .2s;
}
.after-foot .foot-legal .cf-logo:hover{opacity:1}
.after-foot .foot-legal .cf-logo img{display:block;width:119px;height:18px}
.after-foot .foot-addr{
  font-size:13.5px;color:#B9BDB2;margin:0 0 9px;max-width:none;
}
.after-foot .foot-legal-links{
  font-size:13.5px;color:#B9BDB2;margin:0;
}

/* narrow: the burger owns navigation, so the second row steps aside */
@media(max-width:900px){
  .nav-2row .nav-row2{display:none}
  .nav-2row .nav-in{padding-block:0}
  .nav-2row .logo{min-height:56px}
}
/* Every baseline sheet bumps the hero's top padding from 30px to 48px below
   600px. Keep the compact bottom padding, but hold the top at 30px. */
@media(max-width:600px){
  .hero{padding-top:30px}
}
@media(max-width:520px){
  .nav-2row .nav-utils{gap:7px}
}
/* Below 480px the baseline shrinks the brand badge (36→30) and the mode button
   (38→34) but leaves the burger at 38, so the row reads as three different
   sizes. Carry the tablet dimensions through instead; only the brand text still
   drops out (baseline <=380px). */
@media(max-width:480px){
  .nav-2row .logo-badge{width:36px;height:36px}
  .nav-2row .nav-utils .theme-btn{width:38px;height:38px}
}
/* Phones 381–480px: Sign in keeps only its person icon, square like the
   theme and menu buttons, so the brand name beside the logo fits on every
   current iPhone (390–440px: it ran into Sign in); same fill and corner as
   its neighbours. At 380px and below the baseline hides the brand name, so
   Sign in keeps its word there. The label stays in the markup (font-size 0),
   so screen readers still announce "Sign in". */
@media(min-width:381px) and (max-width:480px){
  .nav-2row .nav-utils .btn-outline{
    flex:none;width:38px;height:38px;padding:0!important;gap:0;
    font-size:0!important;justify-content:center;
    background:var(--surface);border-radius:10px
  }
}

/* ---------- Touch targets: at least 44×44 (SEO + GEO checklist, U7) ----------
   An invisible hit area centred on each small control; what is drawn does not
   change. :where() keeps specificity at 0, so a component's own position rule
   (absolute, fixed) still wins. Only shared product UI and recreated tool
   bodies are listed — the flagship pages carry none of these hooks. Family
   controls (Translation pills, PDF file rows, catalog filters) get the same
   recipe in their family / tool sheet. */
:where(#nav .theme-btn, #nav .burger, #nav .nav-utils .btn-outline,
  .after-foot .socials a, .after-foot .cf-logo,
  .toolnav a, .lf-card h3 > a,
  #toolBody .qa-btn, .bib-row .fc-b, #toolBody .opt-checks > .opt-l){position:relative}
:where(#nav .theme-btn, #nav .burger, #nav .nav-utils .btn-outline,
  .after-foot .socials a, .after-foot .cf-logo,
  .toolnav a, .lf-card h3 > a,
  #toolBody .qa-btn, .bib-row .fc-b, #toolBody .opt-checks > .opt-l)::after{
  content:"";position:absolute;left:50%;top:50%;
  width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%);
}
/* the active menu item draws its green indicator with ::after, so menu links
   take their area from ::before */
:where(#nav .nav-links a){position:relative}
:where(#nav .nav-links a)::before{
  content:"";position:absolute;left:50%;top:50%;
  width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%);
}
/* breadcrumb links: the full link width, 44px tall */
:where(.hero .crumbs a){position:relative}
:where(.hero .crumbs a)::after{
  content:"";position:absolute;left:0;right:0;top:50%;
  height:44px;transform:translateY(-50%);
}
/* footer link lists: rows are 33px apart, so the area fills the row pitch
   (19px text + 7px above and below) instead of overlapping the next link */
:where(.after-foot li > a){position:relative}
:where(.after-foot li > a)::after{content:"";position:absolute;left:0;right:0;top:-7px;bottom:-7px}
/* file-row buttons (PDF and Student lists) are 26px with 10px between them:
   the area takes the row's full 44px height and 5px sideways, stopping short
   of the neighbour. Stepper arrows (PDF and Student number fields) share the
   field: each takes its half of the field's height and 44px of width. */
:where(.fcard .fc-b, .num-step .ns-b){position:relative}
:where(.fcard .fc-b)::after{content:"";position:absolute;left:-5px;right:-5px;top:-9px;bottom:-9px}
:where(.num-step .ns-b)::after{content:"";position:absolute;left:-12px;right:-12px}
:where(.num-step .ns-b:first-child)::after{top:-13px;bottom:-1px}
:where(.num-step .ns-b:last-child)::after{top:-1px;bottom:-13px}

/* ---------- Dark theme: placeholder contrast (SEO + GEO checklist, U7) ----------
   Tool fields showed the browser's default placeholder grey (#757575): 4.6:1 on
   the light field, only 3.7:1 on the dark one. The product's --placeholder is
   weaker still, so the dark theme gets its own hint colour — 5.4:1 on the dark
   field, still clearly dimmer than typed text. Student, Translation and
   catalog fields only; the PDF options keep their own placeholder rule. */
:root[data-theme="dark"] :is(#toolBody, .tr-grid) :where(input, textarea)::placeholder{color:#8E938B;opacity:1}

/* ---------- Readable captions (SEO + GEO checklist, U7) ----------
   The mono uppercase captions — field labels, captions over fields, counters
   under fields, calculator result captions, longform kickers — were 10–10.5px
   everywhere; they are 11.5px now (inside a 58px field the label keeps 4px of
   air above the value). Badges (NEW, the 99 counters) are not captions and
   keep their size. Scoped to the recreated tool bodies and longform cards, so
   the flagship pages are untouched; the Student caption and Flashcards side
   rules set the same size in their own sheets. */
/* (body … .kicker: Translation's longform brings its own <style> after these
   sheets with the same .lf-card .kicker selector) */
:is(#toolBody, .tool .opt-row, .tr-grid) label.opt-l:not(:has(input)),
#toolBody span.opt-l,
#toolBody :is(.field-cap, .score-cap, #ccStat, #tcStat),
#toolBody .cf-chip .n,
.tr-grid .tr-meta, .tr-grid .tr-meta span,
body .lf-card .kicker{font-size:11.5px}
