/*
 * The site's shell, linked first by every page (scripts/build.mjs shell()): the Geist faces, the colours and focus
 * ring of the new design (layer "design"), then the skip link, header, Menu panel, footer and phone bar (unlayered
 * classes sh-*). Layer "nojs" (src/landing-nojs.css, in <noscript> on the home page) comes first so its !important
 * rules win. The shell sets its own font, sizes, colours and box sizing, so it looks the same on every page whatever
 * the page's own stylesheets do to plain elements.
 */
@layer nojs, design;

@font-face{font-family:Geist;src:url(/assets/fonts/geist.206f01ed08e0.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Geist Mono";src:url(/assets/fonts/geist-mono.55419aa06f58.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

:root{--accent:#F2B866}

@layer design {
  body{margin:0;background:#0F1A2B;color:#E8EEF7;font-family:Geist,'Segoe UI',system-ui,sans-serif}
  a{color:#E8EEF7}a:hover{color:#FFFFFF}
  a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #9CC4FF;outline-offset:3px}[tabindex="-1"]:focus{outline:0}
}

.sh-skip,.sh-head,.sh-panel,.sh-foot,.sh-bar{font-family:Geist,'Segoe UI',system-ui,sans-serif;font-size:17px;line-height:1.55;color:#E8EEF7;font-style:normal}
.sh-skip{position:absolute;left:12px;top:-80px;z-index:70;background:#F2B866;color:#0B1424;padding:12px 16px;border-radius:10px;font-weight:700;text-decoration:none}
.sh-skip:focus{top:12px;color:#0B1424}

/* Header: opaque, so nothing scrolled under it shows through (owner check, 2026-11-18). Same colour as before at scroll 0. */
.sh-head{position:sticky;top:0;z-index:50;border-bottom:1px solid #22324F;background:#0F1A2B}
/* The navigation's icons (content/nav.mjs), drawn once per page and used by reference. */
.sh-sprite{position:absolute;width:0;height:0;overflow:hidden}
.sh-ic{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sh-chev{width:14px;height:14px}
.sh-in{box-sizing:content-box;max-width:1240px;margin:0 auto;padding:16px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.sh-brand{flex:none;display:flex;align-items:center;gap:10px;min-height:44px;text-decoration:none;color:#E8EEF7}
.sh-brand:hover{color:#FFFFFF}
.sh-brand img{display:block}
.sh-word{font-weight:700;font-size:17px;letter-spacing:.02em}
/* Wide screens (Smart Navigation, 2026-11-30): the Products, Resources and Company dropdowns, then the language,
   My purchases and Explore all tools. */
.sh-links{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-left:12px;font-size:15px;font-weight:500}
.sh-grps,.sh-acts{display:flex;align-items:center;gap:4px}
.sh-acts{gap:10px}
.sh-dd{box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0;padding:0 12px;border:0;border-radius:10px;background:transparent;font:inherit;line-height:1.2;color:#C3CEDF;cursor:pointer;white-space:nowrap}
.sh-dd:hover,.sh-dd:has(+ .sh-drop:popover-open){color:#FFFFFF;background:#16233A}
.sh-dd:has(+ .sh-drop:popover-open) .sh-chev{transform:rotate(180deg)}
.sh-ddl{gap:6px;padding:0 10px}
/* A dropdown: a native popover under its button (CSS anchor positioning), or under the header where that is missing. */
.sh-drop{display:none}
.sh-drop:popover-open{display:block;position:fixed;inset:auto;top:anchor(bottom);left:anchor(left);box-sizing:border-box;min-width:260px;max-width:calc(100vw - 32px);width:auto;height:auto;margin:8px 0 0;padding:8px;border:1px solid #2E4166;border-radius:14px;background:#16233A;color:#E8EEF7;box-shadow:0 18px 40px rgba(5,10,20,.55);font-size:15px;line-height:1.3;overflow:visible}
.sh-drop.sh-dlang:popover-open{left:auto;right:anchor(right);min-width:200px}
.sh-dd[popovertarget="sh-d-products"]{anchor-name:--sh-products}
.sh-dd[popovertarget="sh-d-resources"]{anchor-name:--sh-resources}
.sh-dd[popovertarget="sh-d-company"]{anchor-name:--sh-company}
.sh-dd[popovertarget="sh-d-lang"]{anchor-name:--sh-lang}
#sh-d-products{position-anchor:--sh-products}
#sh-d-resources{position-anchor:--sh-resources}
#sh-d-company{position-anchor:--sh-company}
#sh-d-lang{position-anchor:--sh-lang}
@supports not (anchor-name: --sh){
  .sh-drop:popover-open,.sh-drop.sh-dlang:popover-open{inset:84px 0 auto;margin:0 auto;width:fit-content}
}
.sh-drop::backdrop{background:transparent}
.sh-dl,.sh-al{margin:0;padding:0;list-style:none}
.sh-dl{display:flex;flex-direction:column;gap:2px}
.sh-dl>li,.sh-al>li{margin:0;padding:0}
.sh-di{box-sizing:border-box;display:flex;align-items:center;gap:12px;min-height:44px;padding:6px 12px 6px 6px;border-radius:10px;text-decoration:none;color:#E8EEF7;font-weight:500;white-space:nowrap}
.sh-di:hover{background:#1C2C47;color:#FFFFFF}
.sh-dic{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#1C2C47;color:var(--accent)}
.sh-di:hover .sh-dic{background:#22324F}
.sh-dlang .sh-di{padding-left:12px}
.sh-di[aria-current]{color:#FFFFFF;font-weight:600}
.sh-ok{margin-left:auto;color:var(--accent)}
/* My purchases: outlined, beside the call to action. */
.sh-mine{box-sizing:border-box;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid #3A4E73;border-radius:10px;text-decoration:none;color:#E8EEF7;white-space:nowrap}
.sh-mine:hover{color:#FFFFFF;border-color:#5A6E92}
.sh-mine .sh-ic{color:var(--accent)}
.sh-cta{box-sizing:border-box;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid #F2B866;border-radius:10px;background:var(--accent);color:#0B1424;font-weight:700;text-decoration:none;white-space:nowrap}
.sh-cta:hover{color:#0B1424;background:#FFD9A3;border-color:#FFD9A3}
.sh-menu{display:none;box-sizing:border-box;align-items:center;gap:8px;margin:0;font:inherit;font-size:15px;font-weight:600;min-height:44px;padding:0 14px;border-radius:10px;border:1px solid #3A4E73;background:#16233A;color:#E8EEF7;cursor:pointer}
.sh-i-close{display:none}

/* Menu panel (small screens): a native popover under the header that scrolls on its own: Blog & Guides and My
   purchases as tiles, the three groups as an accordion (one open at a time), the language and Explore all tools. */
.sh-panel{display:none}
.sh-panel:popover-open{display:flex;flex-direction:column;gap:14px;position:fixed;inset:77px 0 0;box-sizing:border-box;width:auto;height:auto;max-width:none;max-height:none;margin:0;border:0;border-top:1px solid #22324F;padding:16px 32px calc(28px + env(safe-area-inset-bottom));background:#0F1A2B;color:#E8EEF7;overflow-y:auto;overscroll-behavior:contain}
.sh-panel::backdrop{background:transparent}
.sh-head:has(.sh-panel:popover-open) .sh-i-open{display:none}
.sh-head:has(.sh-panel:popover-open) .sh-i-close{display:inline}
.sh-quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.sh-qt{box-sizing:border-box;display:flex;align-items:center;gap:10px;min-height:56px;padding:10px 14px;border:1px solid #2E4166;border-radius:12px;background:#16233A;text-decoration:none;color:#E8EEF7;font-size:16px;font-weight:600;line-height:1.25}
.sh-qt:hover{color:#FFFFFF;border-color:#5A6E92}
.sh-qt .sh-ic{color:var(--accent)}
/* Blog & Guides, in the accent (SEO Phase 2). */
.sh-qt.sh-pblog{color:var(--accent)}
.sh-qt.sh-pblog:hover{color:#FFD9A3}
.sh-acc{border-bottom:1px solid #22324F}
.sh-acc:first-of-type{border-top:1px solid #22324F}
.sh-sum{display:flex;align-items:center;gap:12px;min-height:56px;list-style:none;cursor:pointer;font-size:18px;font-weight:600;color:#E8EEF7}
.sh-sum::-webkit-details-marker{display:none}
.sh-sum:hover{color:#FFFFFF}
.sh-sum .sh-chev{width:18px;height:18px;margin-left:auto;color:#A3B1C8}
.sh-acc[open] .sh-chev{transform:rotate(180deg)}
.sh-al{padding:0 0 10px 44px}
.sh-plink{display:flex;align-items:center;min-height:48px;text-decoration:none;color:#C3CEDF;font-size:17px;font-weight:500}
.sh-plink:hover{color:#FFFFFF}
.sh-plink[aria-current]{color:var(--accent)}
.sh-plangs{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
.sh-plabel{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:600}
.sh-seg{display:flex;gap:2px;padding:3px;border:1px solid #2E4166;border-radius:12px;background:#16233A}
.sh-plang{box-sizing:border-box;display:flex;justify-content:center;align-items:center;min-width:52px;min-height:44px;border-radius:9px;text-decoration:none;color:#C3CEDF;font-size:15px;font-weight:600}
.sh-plang:hover{color:#FFFFFF;background:#1C2C47}
.sh-plang[aria-current],.sh-plang[aria-current]:hover{background:var(--accent);color:#0B1424}
.sh-pcta{display:flex;justify-content:center;align-items:center;gap:10px;min-height:52px;border-radius:12px;background:var(--accent);color:#0B1424;text-decoration:none;font-weight:700}
.sh-pcta:hover{color:#0B1424;background:#FFD9A3}

/* Footer */
.sh-foot{border-top:1px solid #22324F;background:#0F1A2B}
.sh-foot-in{box-sizing:content-box;max-width:1240px;margin:0 auto;padding:48px 32px 56px;display:flex;flex-wrap:wrap;gap:32px 64px;font-size:15px}
.sh-fbrand{flex:2 1 360px;min-width:0;display:flex;flex-direction:column;gap:8px}
.sh-fword{display:flex;align-items:center;gap:8px;font-weight:700;letter-spacing:.02em}
.sh-fmark{display:block}
.sh-ftag{margin:0;color:#A3B1C8;max-width:30em}
.sh-legal{margin:0;color:#A3B1C8;font-size:13px}
.sh-col{flex:1 1 160px;display:flex;flex-direction:column;gap:8px}
.sh-h{margin:0;font-weight:600}
.sh-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.sh-list>li{display:flex;flex-direction:column}
.sh-flink{color:#C3CEDF;text-decoration:underline;text-decoration-thickness:auto;text-underline-offset:auto}
.sh-flink:hover{color:#FFFFFF}

/* Phone bar */
.sh-bar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:40;box-sizing:border-box;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:rgba(11,20,36,.95);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid #22324F}
.sh-b1,.sh-b2{flex:1;box-sizing:border-box;display:flex;justify-content:center;align-items:center;min-height:48px;border-radius:12px;text-decoration:none;font-size:15px}
.sh-b1{gap:8px;border:1px solid #3A4E73;background:#16233A;font-weight:600;color:#E8EEF7}
.sh-b1:hover{color:#FFFFFF}
.sh-b2{background:var(--accent);color:#0B1424;font-weight:700}
.sh-b2:hover{color:#0B1424}
/* A tool page's phone bar (owner, 2026-11-29): the tool's name, the payment methods' marks and "Windows app", and
   "Buy now" with the price, which opens the payment sheet (a native popover); browsers without popovers get a link to
   the page's purchase card instead (the @supports block below). The rows inside the sheet are src/tool.css's (tl-pay-*). */
.sh-buy{align-items:center}
.sh-buy-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sh-buy-name{font-size:15px;font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-buy-sub{display:flex;align-items:center;gap:6px;min-width:0;font-size:13px;line-height:1.3;color:#A3B1C8;white-space:nowrap}
.sh-minis{flex:none;display:inline-flex}
/* The marks of the live payment methods (src/tool.css .tl-pay-logo), small and overlapping, each ringed in the bar's colour. */
.sh-minis .tl-pay-logo{width:20px;height:20px;box-shadow:0 0 0 2px #0B1424}
.sh-minis .tl-pay-logo+.tl-pay-logo{margin-left:-4px}
.sh-minis .tl-pay-mark{width:12px;height:12px}
.sh-buy-btn{flex:none;box-sizing:border-box;display:flex;justify-content:center;align-items:center;min-height:48px;margin:0;padding:0 18px;border:1px solid #F2B866;border-radius:12px;background:var(--accent);color:#0B1424;font:inherit;font-size:15px;font-weight:700;line-height:1.2;white-space:nowrap;text-decoration:none;cursor:pointer}
.sh-buy-btn:hover{color:#0B1424;text-decoration:underline;text-underline-offset:3px}
.sh-buy-go{display:none}
/* The payment sheet: rises from the bottom edge, clear of the phone's home indicator, and scrolls on its own when the
   screen is short. Tapping outside it or Escape closes it (popover="auto"), as does its close button. */
.sh-sheet{display:none}
.sh-sheet:popover-open{display:block;position:fixed;inset:auto 0 0;box-sizing:border-box;width:auto;height:auto;max-width:none;max-height:88vh;max-height:88dvh;margin:0;border:0;border-top:1px solid #2E4166;border-radius:20px 20px 0 0;padding:0;background:#16233A;color:#E8EEF7;overflow-y:auto;overscroll-behavior:contain;font-family:Geist,'Segoe UI',system-ui,sans-serif;font-size:17px;line-height:1.55}
.sh-sheet::backdrop{background:rgba(5,10,20,.66)}
.sh-sheet-in{box-sizing:border-box;max-width:560px;margin:0 auto;padding:20px max(20px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:14px}
.sh-sheet-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sh-sheet-h{margin:0;min-width:0;font-size:19px;font-weight:700;line-height:1.25;overflow-wrap:break-word}
.sh-x{flex:none;box-sizing:border-box;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:1px solid #3A4E73;border-radius:12px;background:#1C2C47;color:#E8EEF7;cursor:pointer}
.sh-x:hover{color:#FFFFFF;border-color:#5A6E92}
.sh-x svg{width:20px;height:20px}

/* One focus ring on every page, whatever the page's own stylesheet sets for :focus-visible. */
.sh-skip:focus-visible,.sh-head :focus-visible,.sh-panel :focus-visible,.sh-foot :focus-visible,.sh-bar :focus-visible{outline:2px solid #9CC4FF;outline-offset:3px;border-radius:0}
.sh-menu:focus-visible,.sh-skip:focus-visible,.sh-dd:focus-visible,.sh-di:focus-visible,.sh-mine:focus-visible,.sh-cta:focus-visible{border-radius:10px}
.sh-plang:focus-visible{border-radius:9px}
.sh-sum:focus-visible{border-radius:8px}
.sh-pcta:focus-visible,.sh-qt:focus-visible,.sh-b1:focus-visible,.sh-b2:focus-visible{border-radius:12px}
.sh-sheet :focus-visible{outline:2px solid #9CC4FF;outline-offset:3px}
.sh-buy-btn:focus-visible,.sh-x:focus-visible{border-radius:12px}

/* The wide row (brand, three dropdowns, language, My purchases, Explore all tools), measured in Chromium with Geist on
   2026-11-30: it needs a 996 px window in English, 1036 px in French and 1060 px in Spanish, plus a 15 px scrollbar.
   Up to 1100 px the Menu takes over, so every language keeps 25 px or more to spare. Wide screens start at
   1100.02 px, not 1101: with display scaling or zoom the width can fall between 1100 and 1101, where neither query
   would match. */
@media (max-width: 1100px){
  .sh-links{display:none}
  .sh-menu{display:inline-flex}
  /* A dropdown left open when the screen narrows (a tablet turned) would float without its button. */
  .sh-drop:popover-open{display:none}
}
@media (min-width: 1100.02px){
  .sh-panel:popover-open{display:none}
}
/* Browsers without popovers have no dropdowns and no Menu: the Menu's contents (whose accordion is plain <details>)
   show under the header, in the page, at every width. */
@supports not selector(:popover-open){
  .sh-head{position:static}
  .sh-links,.sh-menu{display:none}
  .sh-panel{display:flex;flex-direction:column;gap:14px;box-sizing:content-box;max-width:1240px;margin:0 auto;padding:0 32px 20px}
  /* A tool page's phone bar links to the page's purchase card instead of opening the payment sheet. */
  .sh-buy-open{display:none}
  .sh-buy-go{display:flex}
}
@media (max-width: 640px){
  /* .sh-panel: the Menu's contents shown in the page where popovers are missing (the @supports block above). */
  .sh-in,.sh-foot-in,.sh-panel,.sh-panel:popover-open{padding-left:20px;padding-right:20px}
  .sh-bar{display:flex}
  .sh-pad{padding-bottom:84px}
  /* Whatever gets keyboard focus is scrolled clear of the bar. */
  html:has(.sh-bar){scroll-padding-bottom:84px}
}
@media (pointer: coarse){
  .sh-flink{display:inline-flex;align-items:center;min-height:44px}
  .sh-col,.sh-list{gap:0}
  /* A footer link that wraps (the Guides column's) keeps space from its neighbours; one line stays 44px tall. */
  .sh-flink{box-sizing:border-box;padding-block:6px}
}
/* Forced colours (Windows High Contrast) drop backgrounds: the filled buttons keep a visible edge there, the current
   language a thicker one. */
@media (forced-colors: active){
  .sh-pcta,.sh-b2{border:1px solid CanvasText}
  .sh-plang[aria-current]{border:2px solid Highlight}
}
