/* InDemand Tools: premium design layer (Nov 2026).
   Loaded after main.css + theme.css on every public page. Keeps the brand palette from the
   Nov 2026 rebrand (ink #183340, utility blue #1F5C99) and adds: warm paper, a deep ink
   surface, a brass accent for decoration only, Schibsted Grotesk headings, Instrument Serif
   italic for accent words, JetBrains Mono for small index labels.
   Selectors are prefixed with `html` where a page-level <style> block (which loads later in
   the document) would otherwise win on equal specificity. */

:root {
  --ink: #0F1E27;
  --ink-2: #183340;
  --ink-soft: #2A4351;
  --paper: #F4F2EC;
  --paper-2: #ECE8DF;
  --paper-3: #E3DED2;
  --line: #DAD5C9;
  --line-strong: #C5BEAE;
  --blue: #1F5C99;
  --blue-ink: #184A7C;
  --blue-tint: #EAF1F8;
  --brass: #C9973A;
  --brass-text: #8A5A00;
  --muted: #55636A;
  --on-ink: #F4F2EC;
  --on-ink-2: #AFC0C8;

  --f-display: 'Schibsted Grotesk', 'Schibsted Grotesk Fallback', 'DM Sans', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-body: 'DM Sans', 'DM Sans Fallback', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --sh-1: 0 1px 0 rgba(15,30,39,.03), 0 1px 2px rgba(15,30,39,.05);
  --sh-2: 0 1px 2px rgba(15,30,39,.05), 0 12px 32px -14px rgba(15,30,39,.18);
  --sh-3: 0 2px 4px rgba(15,30,39,.06), 0 28px 60px -24px rgba(15,30,39,.32);
  --ease: cubic-bezier(.2,.7,.2,1);

  /* Old names, re-pointed so every page and tool picks up the new surface */
  --bg: var(--paper);
  --surface-2: #F1EEE6;
  --surface-3: var(--paper-2);
  --border: var(--line);
  --border-hover: var(--line-strong);
  --c-border: var(--line);
  --c-surface-2: #F1EEE6;
  --tc-surface2: #F1EEE6;
}

html body { background: var(--paper); color: var(--ink-2); }
::selection { background: #F0DDB4; color: var(--ink); }

/* ── Type ─────────────────────────────────────────────────────────────────── */
html h1, html h2, html h3, html h4 { font-family: var(--f-display); letter-spacing: -.022em; }
html .section-title { font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.serif-accent, html h1 em, html h2 em, html .section-title em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
}
.idx-label, html .section-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: max(12px, .72rem); font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink);
  margin-bottom: 1rem;
}
html .section-eyebrow::before, .idx-label::before {
  content: ''; width: 22px; height: 1px; background: currentColor; opacity: .55;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
html .btn { border-radius: 999px; font-family: var(--f-body); font-weight: 600; letter-spacing: -.005em; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s; }
html .btn-primary {
  background: var(--ink) !important; color: var(--on-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px -8px rgba(15,30,39,.55) !important;
}
html .btn-primary:hover { background: var(--blue-ink) !important; transform: translateY(-1px); }
html .btn-ghost, html .btn-secondary {
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong);
}
html .btn-ghost:hover, html .btn-secondary:hover { background: #fff; border-color: var(--ink-2); color: var(--ink); }
html .btn-lg { padding: .9rem 1.6rem; font-size: .98rem; }
.btn-arrow { display: inline-flex; transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ── Badges ───────────────────────────────────────────────────────────────── */
html .badge, html .badge-purple {
  background: transparent; color: var(--ink-soft); border: 1px solid var(--line-strong);
  border-radius: 999px; font-weight: 600; letter-spacing: 0; gap: .35rem;
}
html .badge .idt-icon { color: var(--blue); }

/* ── Header ───────────────────────────────────────────────────────────────── */
html .navbar {
  height: 68px; background: rgba(244,242,236,.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(197,190,174,.55);
}
html .nav-inner { gap: 1.75rem; }
html .nav-logo { gap: .6rem; }
html .nav-logo-mark { width: 30px; height: 30px; display: block; flex-shrink: 0; }
html .nav-logo-text { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.025em; }
html .nav-logo-text em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.2em; letter-spacing: 0; color: var(--blue-ink); margin-left: .08em; }
html .nav-link { font-size: .92rem; color: var(--muted); border-radius: 999px; padding: .45rem .9rem; }
html .nav-link:hover, html .nav-link.active { color: var(--ink); background: rgba(15,30,39,.055); }
html .nav-actions { gap: .6rem; }
.nav-search {
  display: inline-flex; align-items: center; gap: .6rem; height: 40px; padding: 0 .55rem 0 .9rem;
  min-width: 232px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.7);
  color: var(--muted); font: 500 .88rem var(--f-body); cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.nav-search:hover { border-color: var(--ink-2); background: #fff; box-shadow: var(--sh-1); }
.nav-search .idt-icon { color: var(--ink-2); }
.nav-search-label { flex: 1; text-align: left; white-space: nowrap; }
.nav-search kbd {
  font: 500 12px var(--f-mono); color: var(--ink-soft); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 6px; padding: .15rem .4rem;
}
@media (max-width: 1024px) { .nav-search { min-width: 0; } .nav-search kbd { display: none; } }
@media (max-width: 768px) {
  html .navbar { height: 64px; }
  html .nav-links { top: 64px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); }
  html .nav-link { border-radius: 12px; font-size: 1rem; min-height: 48px; display: flex; align-items: center; }
  .nav-search { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .nav-search-label { display: none; }
  html .nav-actions { gap: .25rem; }
}
@media (max-width: 380px) { html .nav-logo-text { font-size: 1rem; } html .nav-logo-mark { width: 26px; height: 26px; } }

/* ── Search palette (assets/js/premium.js) ────────────────────────────────── */
.cmdk {
  width: min(640px, calc(100vw - 2rem)); max-height: min(70vh, 560px); padding: 0; margin: 12vh auto auto;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #FBFAF6; color: var(--ink-2);
  box-shadow: 0 40px 100px -30px rgba(15,30,39,.55), 0 0 0 1px rgba(15,30,39,.04); overflow: hidden;
}
.cmdk[open] { display: flex; flex-direction: column; animation: cmdk-in .22s var(--ease); }
.cmdk::backdrop { background: rgba(15,30,39,.42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes cmdk-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.cmdk-head { display: flex; align-items: center; gap: .75rem; padding: .35rem .5rem .35rem 1.15rem; border-bottom: 1px solid var(--line); }
.cmdk-head:focus-within { border-bottom-color: var(--ink-2); box-shadow: inset 0 -1px 0 var(--ink-2); }
.cmdk-head .idt-icon { color: var(--muted); }
html .cmdk-input {
  flex: 1; border: 0 !important; background: transparent !important; box-shadow: none !important;
  font: 500 1.05rem var(--f-body); color: var(--ink); padding: .95rem 0; outline: none; min-width: 0;
}
.cmdk-close {
  width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; color: var(--muted);
  font: 500 .72rem var(--f-mono); cursor: pointer;
}
.cmdk-close:hover { background: var(--paper-2); color: var(--ink); }
.cmdk-list { list-style: none; margin: 0; padding: .5rem; overflow-y: auto; }
.cmdk-group { font: 400 max(12px,.7rem) var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .7rem .75rem .35rem; }
.cmdk-item a {
  display: flex; align-items: center; gap: .85rem; padding: .6rem .75rem; border-radius: 12px;
  text-decoration: none; color: var(--ink-2); min-height: 52px;
}
.cmdk-item a[aria-selected="true"], .cmdk-item a:hover { background: var(--ink); color: var(--on-ink); }
.cmdk-item a[aria-selected="true"] .cmdk-desc, .cmdk-item a:hover .cmdk-desc { color: var(--on-ink-2); }
.cmdk-item a[aria-selected="true"] .cmdk-ico, .cmdk-item a:hover .cmdk-ico { background: rgba(244,242,236,.1); color: var(--on-ink); }
.cmdk-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); flex-shrink: 0; }
.cmdk-text { min-width: 0; display: flex; flex-direction: column; }
.cmdk-title { font-weight: 600; font-size: .95rem; }
.cmdk-desc { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-cat { margin-left: auto; font: 400 max(12px,.7rem) var(--f-mono); color: var(--ink-soft); white-space: nowrap; }
.cmdk-item a[aria-selected="true"] .cmdk-cat, .cmdk-item a:hover .cmdk-cat { color: #C9D3D8; }
.cmdk-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: .92rem; }
.cmdk-foot { display: flex; gap: 1rem; padding: .6rem 1.15rem; border-top: 1px solid var(--line); font: 400 max(12px,.7rem) var(--f-mono); color: var(--muted); }
@media (max-width: 640px) { .cmdk { margin-top: 1rem; max-height: calc(100vh - 2rem); } .cmdk-cat, .cmdk-foot { display: none; } }

/* ── Footer ───────────────────────────────────────────────────────────────── */
html .footer {
  background: var(--ink); color: var(--on-ink-2); border-top: 0; padding: 0 0 2rem; position: relative; overflow: hidden;
}
.footer-statement {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: 4.5rem 0 3rem; margin-bottom: 3rem; border-bottom: 1px solid rgba(175,192,200,.16);
}
.footer-statement p {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.1; letter-spacing: -.035em; color: var(--on-ink); max-width: 15em; margin: 0;
}
.footer-statement p em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: #E2C68C; letter-spacing: -.01em; }
html .footer .btn-on-ink { background: var(--on-ink); color: var(--ink); border: 0; }
html .footer .btn-on-ink:hover { background: #fff; transform: translateY(-1px); }
html .footer-logo { color: var(--on-ink); font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .55rem; }
html .footer-logo em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.12em; color: #E2C68C; }
html .footer-tagline { color: var(--on-ink-2); }
html .footer-title { color: var(--on-ink); font-family: var(--f-mono); font-weight: 400; font-size: max(12px,.72rem); letter-spacing: .14em; text-transform: uppercase; }
html .footer-link { color: var(--on-ink-2); }
html .footer-link:hover { color: var(--on-ink); }
html .footer .footer-social a { color: var(--on-ink-2); }
html .footer .footer-social a:hover { color: var(--on-ink); }
html .footer-newsletter-input { background: rgba(244,242,236,.06) !important; border: 1px solid rgba(175,192,200,.28) !important; color: var(--on-ink) !important; border-radius: 999px; }
html .footer-newsletter-input::placeholder { color: #8FA2AB; }
html .footer .btn-primary { background: var(--on-ink) !important; color: var(--ink) !important; box-shadow: none !important; }
html .footer-bottom { border-top: 1px solid rgba(175,192,200,.16); color: #8FA2AB; }
.footer-note { font-size: .875rem; color: var(--on-ink-2); margin-bottom: 1rem; line-height: 1.6; }
.footer-wordmark {
  position: absolute; left: 50%; bottom: -.18em; transform: translateX(-50%); pointer-events: none; user-select: none;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(6rem, 19vw, 17rem); line-height: 1; white-space: nowrap;
  color: rgba(244,242,236,.035);
}
html .footer .container { position: relative; z-index: 1; }

/* ── Cookie notice: a small card, not a full-width bar ────────────────────── */
.cookie-card {
  display: none; position: fixed; z-index: 9999; left: 1.25rem; bottom: 1.25rem; width: min(400px, calc(100vw - 2.5rem));
  background: var(--ink); color: var(--on-ink-2); border-radius: var(--r); padding: 1.1rem 1.2rem 1rem;
  box-shadow: 0 24px 60px -20px rgba(15,30,39,.6); font-size: .86rem; line-height: 1.55;
}
.cookie-card.is-visible { display: block; animation: cmdk-in .3s var(--ease); }
html .cookie-card p { margin: 0 0 .85rem; color: #C9D5DA; font-size: inherit; line-height: inherit; }
.cookie-card a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-card-actions { display: flex; gap: .5rem; }
.cookie-card button {
  min-height: 40px; padding: 0 1rem; border-radius: 999px; font: 600 .84rem var(--f-body); cursor: pointer;
}
.cookie-accept { background: var(--on-ink); color: var(--ink); border: 0; }
.cookie-accept:hover { background: #fff; }
.cookie-essential { background: transparent; color: var(--on-ink); border: 1px solid rgba(175,192,200,.35); }
.cookie-essential:hover { border-color: var(--on-ink); }
@media (max-width: 640px) {
  .cookie-card { left: .5rem; right: .5rem; bottom: .5rem; width: auto; padding: .75rem .9rem; font-size: .8rem; line-height: 1.45; }
  .cookie-card p { margin-bottom: .6rem; }
  .cookie-card button { min-height: 44px; flex: 1; }
}

/* ── Motion preference ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Page heroes (tools list, categories, blog, legal, tool pages) ────────── */
.paper-grid {
  background-image:
    linear-gradient(to right, rgba(15,30,39,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,30,39,.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 30%, transparent 75%);
}
html .page-hero, html .tool-hero, html .blog-hero, html .bp-header { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); }
html .page-hero::before, html .tool-hero::before, html .blog-hero::before, html .bp-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15,30,39,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,30,39,.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 20%, transparent 72%);
}
html .page-hero { padding: 4.5rem 1.5rem 3.5rem; }
html .page-hero h1, html .blog-hero h1 {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -.04em; line-height: 1.02; color: var(--ink);
}
html .page-hero p { font-size: 1.08rem; color: var(--muted); max-width: 540px; }
html .page-hero .badge { margin-bottom: 1.25rem; }
html #tools-search {
  background: #fff !important; border: 1px solid var(--line-strong) !important; border-radius: 999px !important;
  padding: .9rem 1.2rem .9rem 2.9rem !important; font-size: 1rem !important; box-shadow: var(--sh-2);
}
html #tools-search:focus { border-color: var(--ink-2) !important; box-shadow: 0 0 0 4px rgba(31,92,153,.14), var(--sh-2); }

/* ── Tool pages ───────────────────────────────────────────────────────────── */
html .tool-hero { padding: 2rem 0 0; background: transparent; }
html .tool-page-wrap { max-width: 960px; }
html .tool-breadcrumb { font-size: .82rem; margin-bottom: 1.6rem; }
html .tool-breadcrumb a { color: var(--muted); }
html .tool-breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
html .tool-breadcrumb .current { color: var(--ink-2); font-weight: 500; }
html .tool-title {
  font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.042em; line-height: 1.02;
  color: var(--ink); margin-bottom: 1rem; text-wrap: balance;
}
html .tool-desc { font-size: 1.08rem; color: var(--muted); max-width: 660px; line-height: 1.65; }
html .tool-header { padding-bottom: 2.25rem; }
.tool-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.tool-facts li { display: inline-flex; align-items: center; gap: .45rem; font: 400 max(12px,.74rem) var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.tool-facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

/* One surface for the tool instead of a card inside a card */
html .tool-content-box { background: transparent; border: 0; border-radius: 0; overflow: visible; }
html .tool-content-inner { padding: 0; }
html .tool-content-wrap .tc-section {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem;
  box-shadow: var(--sh-2);
}
html .tool-content-wrap .tc-section:hover { border-color: var(--line); }
html .tool-content-wrap .tc-section-title {
  font-family: var(--f-display); font-size: 1rem; letter-spacing: -.015em; color: var(--ink);
  border-bottom: 1px solid var(--paper-2); padding-bottom: 1rem; margin-bottom: 1.35rem;
}
html .tool-content-wrap .tc-section-title.is-duplicate { display: none; }
html .tool-content-wrap .tc-label {
  text-transform: none; letter-spacing: -.005em; font-size: .86rem; font-weight: 600; color: var(--ink-2);
}
html .tool-content-wrap .tc-input, html .tool-content-wrap .tc-textarea, html .tool-content-wrap .tc-select {
  border-radius: 12px; border-color: #B9B3A5; background-color: #FDFCF9;
}
html .tool-content-wrap .tc-input:focus, html .tool-content-wrap .tc-textarea:focus, html .tool-content-wrap .tc-select:focus {
  border-color: var(--ink-2); box-shadow: 0 0 0 4px rgba(31,92,153,.13); background-color: #fff;
}
html .tool-content-wrap .tc-btn {
  background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: .75rem 1.4rem; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 16px -8px rgba(15,30,39,.6);
}
html .tool-content-wrap .tc-btn:hover:not(:disabled) { background: var(--blue-ink); filter: none; transform: translateY(-1px); }
html .tool-content-wrap .tc-btn-success { background: #1E6B45; }
html .tool-content-wrap .tc-btn-danger { background: #A3241A; }
html .tool-content-wrap .tc-btn-ghost, html .tool-content-wrap .tc-copy-btn {
  border-radius: 999px; background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2);
}
html .tool-content-wrap .tc-btn-ghost:hover, html .tool-content-wrap .tc-copy-btn:hover { background: var(--paper); border-color: var(--ink-2); color: var(--ink); }
html .tool-content-wrap .tc-tab { border-radius: 999px; }
html .tool-content-wrap .tc-tab.active, html .tool-content-wrap .tc-tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
html .tool-content-wrap .tc-stat { border-radius: 14px; background: var(--paper); border-color: var(--line); }
html .tool-content-wrap .tc-section-title .idt-icon { color: var(--blue); }
@media (max-width: 640px) {
  html .tool-hero { padding-top: .5rem; }
  html .tool-title { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  html .tool-desc { font-size: 1rem; }
  html .tool-header { padding-bottom: 1.5rem; }
  html .tool-content-wrap .tc-section { padding: 1.15rem; border-radius: var(--r); }
}

/* Editorial copy under a tool, on hub pages and in posts */
html .tool-page-content { font-size: 1rem; color: #3E4F57; }
html .tool-page-content h2, html .hub-prose h2 {
  font-family: var(--f-display); font-size: clamp(1.35rem, 2.6vw, 1.7rem); letter-spacing: -.03em; color: var(--ink);
  margin: 2.75rem 0 .8rem; line-height: 1.2;
}
html .tool-page-content h3 { font-family: var(--f-display); font-size: 1.12rem; color: var(--ink); margin: 1.75rem 0 .5rem; letter-spacing: -.015em; }
html .tool-page-content p, html .tool-page-content ol, html .tool-page-content ul { font-size: 1rem; line-height: 1.78; }
html .tool-page-content a, html .hub-prose a, html .bp-content a { color: var(--blue-ink); text-decoration: underline; text-decoration-color: rgba(31,92,153,.35); text-underline-offset: 3px; text-decoration-thickness: 1px; }
html .tool-page-content a:hover, html .hub-prose a:hover, html .bp-content a:hover { text-decoration-color: currentColor; }
html .tool-page-content > section, html section.tool-page-content { margin-top: 3.5rem !important; }

/* FAQ: hairline accordion */
html .faq-section { margin-top: 4rem; }
html .faq-section-title, html .related-section-title {
  font-family: var(--f-display); font-size: clamp(1.4rem, 2.8vw, 1.85rem); letter-spacing: -.035em; color: var(--ink); margin-bottom: 1.25rem;
}
html .faq-item { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0; }
html .faq-item:last-of-type { border-bottom: 1px solid var(--line); }
html .faq-item[open] { border-color: var(--line); }
html .faq-q { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: var(--ink-2); padding: 1.15rem 3rem 1.15rem 0; letter-spacing: -.01em; }
html .faq-q::after { right: .35rem; border-color: var(--ink-2); }
html .faq-a { border-top: 0; padding: 0 2.5rem 1.35rem 0; font-size: .97rem; color: #3E4F57; }

/* Related cards */
html .related-section { margin-top: 3.75rem; }
html .related-grid { gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
html .related-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.3rem;
  box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
html .related-card:hover { background: #fff; border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-3px); }
html .related-card-title { font-size: .98rem; letter-spacing: -.015em; color: var(--ink); }
html .related-card-cta { color: var(--blue-ink); }

/* Guide cards with the post's cover (tool pages and category hubs) */
html .guide-cover {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover;
  background: #13293A; border-bottom: 1px solid var(--line);
}
html .related-card.related-card--guide { padding: 0; overflow: hidden; gap: 0; }
html .related-card--guide .related-card-body {
  display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1.1rem 1.3rem 1.25rem;
}
html .hub-guide { overflow: hidden; }
html .hub-guide .guide-cover { width: calc(100% + 2.4rem); max-width: none; margin: -1.1rem -1.2rem .55rem; }

/* ── Tool cards (home, tools list, category hubs) ─────────────────────────── */
html .tools-grid { gap: 1rem; }
html .tool-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--sh-1); gap: 0; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
html .tool-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--line-strong); }
html .tool-card .idt-plate { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); border-radius: 12px !important; transition: background .3s, color .3s, border-color .3s; }
html .tool-card:hover .idt-plate { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
html .tool-card h2, html .tool-card h3 { font-size: 1.06rem !important; letter-spacing: -.02em; color: var(--ink) !important; }
html .tool-card p { color: var(--muted) !important; font-size: .9rem !important; }
html .tool-card [title="Featured"] { display: none !important; }
html .tool-card .badge { border-color: transparent; padding-right: 0; color: var(--muted); font-weight: 500; }
html .tool-card .badge .idt-icon { display: none; }
html .tool-card > div:last-child { border-top: 1px dashed var(--line) !important; padding-top: .85rem !important; }
html .tool-card .tool-card-arrow {
  background: none !important; color: var(--ink-2) !important; padding: 0 !important; box-shadow: none !important;
  font: 600 .86rem var(--f-body); display: inline-flex; align-items: center; gap: .35rem; border-radius: 0 !important;
}
html .tool-card:hover .tool-card-arrow { color: var(--blue-ink) !important; transform: translateX(3px); }

/* Filter chips on /tools */
html .cat-filter-btn { border-radius: 999px; background: transparent; border-color: var(--line-strong); color: var(--ink-2); padding: .5rem 1rem; }
html .cat-filter-btn:hover { background: #fff; border-color: var(--ink-2); color: var(--ink); }
html .cat-filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
html .cat-filter-btn.active .idt-icon { color: var(--on-ink); }
html .cat-filter-btn .badge { border: 0; background: rgba(15,30,39,.06); color: inherit; padding: .05rem .5rem; }
html .cat-filter-btn.active .badge { background: rgba(244,242,236,.16); }
html .pg-btn { border-radius: 999px; }
html .pg-btn.active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* Category hub extras */
html .hub-table { border-radius: var(--r); overflow: hidden; }
html .hub-guide { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s; }
html .hub-guide:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
html .breadcrumb a { color: var(--muted); }

/* Sections are always visible. The old scroll-reveal (main.css) hid content until an
   IntersectionObserver fired, which left blank areas in full-page captures and print. */
html .animate-on-scroll { opacity: 1; transform: none; will-change: auto; }
html .nav-link::after { display: none !important; }
/* Reading column lines up with the tool card and the H1 instead of floating in the middle */
html .tool-body > .tool-page-content { margin-left: 0 !important; margin-right: auto !important; }

/* ── Blog list ────────────────────────────────────────────────────────────── */
html .blog-hero { padding-top: 4.5rem; padding-bottom: 3.5rem; }
html .blog-hero p { color: var(--muted); }
html .blog-featured {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.5rem; box-shadow: var(--sh-2);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
html .blog-featured:hover { border-color: var(--line); box-shadow: var(--sh-3); transform: translateY(-2px); }
html .blog-featured__img, html .blog-card__img-wrap img { border-radius: var(--r); }
html .blog-featured__badge { background: transparent; border: 0; padding: 0; color: var(--brass-text); font: 400 max(12px,.72rem) var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
html .blog-featured__title { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.035em; line-height: 1.08; color: var(--ink); }
html .blog-featured__cta, html .blog-card__read {
  background: var(--ink); color: var(--on-ink); border-radius: 999px; box-shadow: none; border: 0;
}
html .blog-featured__cta:hover { background: var(--blue-ink); color: var(--on-ink); }
html .blog-card__read { background: none; color: var(--ink-2); padding: 0; }
html .blog-card__read:hover { color: var(--blue-ink); background: none; }
html .blog-section-title {
  font-family: var(--f-mono); font-weight: 400; font-size: max(12px,.74rem); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink);
  display: flex; align-items: center; gap: .6rem;
}
html .blog-section-title::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .55; }
html .blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
html .blog-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--line-strong); }
html .blog-card__img-wrap img { border-radius: 0; }
html .blog-card__title, html .blog-card__title a { font-family: var(--f-display); letter-spacing: -.02em; color: var(--ink); }

/* ── Blog post ────────────────────────────────────────────────────────────── */
html .bp-header { padding-top: 3rem; }
html .bp-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.042em; line-height: 1.04; color: var(--ink); text-wrap: balance; }
html .bp-excerpt { font-size: 1.12rem; color: var(--muted); }
html .bp-hero-img { border-radius: var(--r-lg); box-shadow: var(--sh-2); }
html .bp-content { font-size: 1.04rem; line-height: 1.8; color: #34464F; }
html .bp-content h2 { font-family: var(--f-display); font-size: clamp(1.45rem, 2.8vw, 1.9rem); letter-spacing: -.032em; color: var(--ink); }
html .bp-content h3 { font-family: var(--f-display); letter-spacing: -.02em; color: var(--ink); }
html .bp-content blockquote { border-left: 2px solid var(--brass); font-family: var(--f-serif); font-style: italic; font-size: 1.3em; color: var(--ink-2); }
html .bp-sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
html .bp-sidebar-title { font-family: var(--f-mono); font-weight: 400; font-size: max(12px,.72rem); letter-spacing: .14em; color: var(--blue-ink); }
html .bp-share__btn { border-radius: 999px; }
html .bp-author { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
html .bp-further-reading { background: #fff !important; border-color: var(--line) !important; border-radius: var(--r) !important; }

/* ── Simple content pages (about, contact, legal) ─────────────────────────── */
html .prose h2 { font-family: var(--f-display); letter-spacing: -.03em; color: var(--ink); }
html .prose a { color: var(--blue-ink); text-underline-offset: 3px; }
html .container--narrow { max-width: 820px; }
html .legal-prose { max-width: 760px; margin-left: auto; margin-right: auto; }
html .prose p, html .prose li { font-size: 1rem; line-height: 1.78; }
html .card--feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
html .card__icon { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
html .form__input, html .form__textarea, html .form__select { border-radius: 12px; background: #FDFCF9; }
html .page-hero__title { font-family: var(--f-display); letter-spacing: -.04em; color: var(--ink); }
/* About page feature cards (the classes existed but were never styled) */
html .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; margin-top: 2rem; }
html .card--feature { padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
html .card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: .4rem; }
html .card__icon svg { width: 24px; height: 24px; }
html .card__title { font-size: 1.2rem; letter-spacing: -.025em; color: var(--ink); margin: 0; }
html .card--feature p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0; }

/* Design-check fixes (Nov 2026 redesign) */
@media (max-width: 768px) { html .nav-actions { gap: .6rem; } }
html .tool-content-wrap .tc-stat-label { font-size: max(12px, .72rem); }
html .form__input, html .form__select { min-height: 44px; padding-top: .6rem; padding-bottom: .6rem; }
html .form__group { margin-bottom: 1.1rem; }
html .btn { min-height: 44px; }
html .tool-content-wrap input[type="range"] { min-height: 44px; cursor: pointer; }
@media (max-width: 768px) {
  html .nav-links { align-items: stretch; padding: .5rem .75rem .9rem; }
  html .nav-link { justify-content: flex-start; padding: .75rem 1rem; }
}

/* Keyboard focus on dark panels: the site-wide blue ring is too faint on navy (2.5:1), so use light gold (11:1) */
html .footer :focus-visible, html .cookie-card :focus-visible, html .h-panel :focus-visible, html .h-ai :focus-visible {
  outline: 2px solid #F0DDB4 !important; outline-offset: 3px;
}
html .sp-panel :focus-visible { outline: 2px solid #F0DDB4 !important; outline-offset: 3px; }

/* ── Support / Buy Me a Coffee (Nov 2026: ads removed, funded by visitors) ───────────────────── */
/* The coffee button: brass on any background; --dark is the ink version for light cards. */
html .bmc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; padding: .55rem 1.2rem;
  border-radius: 999px; background: #E2C68C; color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 600 .95rem/1.2 var(--f-body); letter-spacing: -.005em; border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 22px -10px rgba(138,90,0,.55);
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
html .bmc-btn:hover { background: #EBD3A2; color: var(--ink); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 26px -10px rgba(138,90,0,.6); }
html .bmc-btn .idt-icon { flex-shrink: 0; }
html .bmc-btn--lg { min-height: 50px; padding: .8rem 1.5rem; font-size: 1rem; }
html .bmc-btn--dark { background: var(--ink); color: var(--on-ink); box-shadow: 0 8px 22px -10px rgba(15,30,39,.6); }
html .bmc-btn--dark .idt-icon { color: #E2C68C; }
html .bmc-btn--dark:hover { background: var(--blue-ink); color: var(--on-ink); }

/* Header link */
html .nav-link--support { display: inline-flex; align-items: center; gap: .4rem; }
html .nav-link--support .idt-icon { color: #9A6B1C; }

/* Footer: second button beside "Browse all tools" */
.footer-statement-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
html .footer .btn-ghost-on-ink { background: transparent; color: var(--on-ink); border: 1px solid rgba(175,192,200,.4); display: inline-flex; align-items: center; }
html .footer .btn-ghost-on-ink:hover { border-color: var(--on-ink); background: rgba(244,242,236,.06); transform: translateY(-1px); }

/* After-result ask under a tool (assets/js/premium.js shows it once a session, after a copy/download) */
.support-ask {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .9rem 1.1rem;
  margin: 1.25rem 0 0; padding: 1rem 1rem 1rem 1.2rem; border-radius: var(--r-lg);
  background: #FBF6EA; border: 1px solid #E9D9B4; color: var(--ink-2);
  animation: support-ask-in .45s var(--ease) both;
}
.support-ask[hidden] { display: none; }
@keyframes support-ask-in { from { opacity: 0; transform: translateY(8px); } }
.support-ask-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #E2C68C; }
html .support-ask p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
html .support-ask p strong { color: var(--ink); }
.support-ask-x {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.support-ask-x:hover { background: rgba(15,30,39,.06); color: var(--ink); }
@media (max-width: 600px) {
  .support-ask { grid-template-columns: auto minmax(0, 1fr) auto; padding: .9rem; }
  .support-ask .bmc-btn { grid-column: 1 / -1; width: 100%; }
  .support-ask-x { grid-row: 1; grid-column: 3; }
}
@media (prefers-reduced-motion: reduce) { .support-ask { animation: none; } }

/* End-of-post card on blog posts */
.support-card {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .5rem 1.25rem; align-items: center;
  margin: 2.5rem 0 0; padding: 1.4rem 1.5rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.support-card img { width: 76px; height: 76px; grid-row: span 2; }
html .support-card p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
html .support-card p a:not(.bmc-btn) { color: var(--blue-ink); }
.support-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
html .support-card-actions .support-card-more { font-size: .92rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 520px) {
  .support-card { grid-template-columns: 56px minmax(0, 1fr); padding: 1.2rem; }
  .support-card img { width: 56px; height: 56px; grid-row: auto; }
  .support-card-actions { grid-column: 1 / -1; }
}

/* ── Floating "Buy me a coffee" button + in-page checkout (Nov 2026) ────────
   Markup in templates/footer.php, behaviour in premium.js. Desktop: an ink pill with the cup and a
   label, bottom right. Phones: a round cup button, hidden while the full-width cookie card shows. */
.bmc-fab {
  position: fixed; z-index: 9990; right: 1.25rem; bottom: 1.25rem;
  display: grid; place-items: center; width: 92px; height: 92px; padding: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--ink-2), var(--ink) 70%); color: var(--on-ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(226,198,140,.28), 0 2px 4px rgba(15,30,39,.12), 0 18px 40px -16px rgba(15,30,39,.55);
  animation: bmc-fab-in .6s var(--ease) .9s both;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s, visibility .2s;
  -webkit-tap-highlight-color: transparent;
}
.bmc-fab:hover { color: var(--on-ink); transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(226,198,140,.6), 0 4px 8px rgba(15,30,39,.14), 0 24px 48px -16px rgba(15,30,39,.6); }
.bmc-fab:focus-visible { outline: 3px solid #E2C68C; outline-offset: 3px; }
.bmc-fab-cup {
  position: relative; z-index: 1; flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 50% 62%, rgba(226,198,140,.42), rgba(201,151,58,.12) 55%, transparent 72%), var(--ink-2);
  box-shadow: inset 0 0 0 1px rgba(226,198,140,.35);
}
.bmc-fab-cup img {
  position: absolute; left: 50%; top: 54%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  transform-origin: 50% 85%; animation: bmc-sip 7s ease-in-out 2.4s infinite;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
}
.bmc-fab-cup::after { /* one soft brass ring that pulses twice after the button arrives */
  content: ''; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(226,198,140,.55); animation: bmc-ring 1.8s ease-out 1.6s 2;
}
.bmc-fab-steam { position: absolute; left: 50%; top: -3px; width: 24px; height: 20px; margin-left: -14px; pointer-events: none; }
.bmc-fab-steam i {
  position: absolute; bottom: 0; width: 4px; height: 15px; border-radius: 4px;
  background: linear-gradient(to top, rgba(255,255,255,0), rgba(255,255,255,.95));
  filter: blur(.4px); opacity: 0; animation: bmc-steam 2.7s ease-out infinite;
}
.bmc-fab-steam i:nth-child(1) { left: 3px;  animation-delay: 0s; }
.bmc-fab-steam i:nth-child(2) { left: 11px; animation-delay: .9s; height: 17px; }
.bmc-fab-steam i:nth-child(3) { left: 19px; animation-delay: 1.8s; }
.bmc-fab:hover .bmc-fab-steam i { animation-duration: 1.6s; }
/* "Buy me a coffee" written around the cup, turning slowly */
.bmc-fab-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: bmc-spin 22s linear infinite; pointer-events: none; }
.bmc-fab-ring text { fill: #E2C68C; font-family: var(--f-display); font-weight: 700; font-size: 10.5px; letter-spacing: .02em; }
.bmc-fab:hover .bmc-fab-ring text { fill: #F1DDB2; }
.bmc-fab-label { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.bmc-fab.is-open, .bmc-fab.is-tucked { opacity: 0; visibility: hidden; transform: translateY(16px) scale(.92); }

@keyframes bmc-fab-in { from { opacity: 0; transform: translateY(24px) scale(.9); } }
@keyframes bmc-steam {
  0%   { opacity: 0; transform: translateY(6px) scaleY(.5); }
  25%  { opacity: .95; }
  100% { opacity: 0; transform: translate(2px, -16px) scaleY(1.15); }
}
@keyframes bmc-sip { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-9deg) translateY(-1px); } 94% { transform: rotate(5deg); } 97% { transform: rotate(-2deg); } }
@keyframes bmc-ring { to { box-shadow: 0 0 0 14px rgba(226,198,140,0); } }

/* Toasts sat in the same corner; lift them above the button */
html .toast-container { bottom: 7.75rem; }

@media (max-width: 640px) {
  .bmc-fab { right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); width: 80px; height: 80px; }
  .bmc-fab-cup { width: 46px; height: 46px; }
  .bmc-fab-cup img { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .bmc-fab-ring text { font-size: 11px; }
  body:has(#cookie-banner.is-visible) .bmc-fab { opacity: 0; visibility: hidden; }
  html .toast-container { bottom: 6.5rem; right: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bmc-fab-steam, .bmc-fab-cup::after { display: none; }
  .bmc-fab-cup img, .bmc-fab-ring { animation: none; }
}
@media print { .bmc-fab, .bmc-panel { display: none !important; } }

/* The checkout panel */
.bmc-panel { position: fixed; inset: 0; z-index: 10001; }
.bmc-panel[hidden] { display: none; }
.bmc-panel-backdrop { position: absolute; inset: 0; background: rgba(15,30,39,.28); animation: bmc-fade .25s ease both; }
.bmc-panel-sheet {
  position: absolute; right: 1.25rem; bottom: 1.25rem; display: flex; flex-direction: column;
  width: min(410px, calc(100vw - 2.5rem)); height: min(700px, calc(100vh - 2.5rem)); height: min(700px, calc(100dvh - 2.5rem));
  background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3), 0 0 0 1px rgba(15,30,39,.08);
  transform-origin: 100% 100%; animation: bmc-pop .32s var(--ease) both;
}
.bmc-panel-head {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: .75rem;
  padding: .75rem .6rem .75rem 1rem; background: var(--ink); color: var(--on-ink);
}
.bmc-panel-head img { width: 44px; height: 44px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
html .bmc-panel-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--on-ink); line-height: 1.25; }
html .bmc-panel-sub { margin: .1rem 0 0; font-size: .8rem; line-height: 1.4; color: var(--on-ink-2); }
.bmc-panel-x {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--on-ink); cursor: pointer; transition: background .2s;
}
.bmc-panel-x:hover { background: rgba(244,242,236,.12); }
.bmc-panel-x:focus-visible { outline: 3px solid #E2C68C; outline-offset: -3px; }
.bmc-panel-body { position: relative; flex: 1; min-height: 0; background: #fff; }
.bmc-panel-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .3s; }
.bmc-panel.is-loaded .bmc-panel-frame { opacity: 1; }
.bmc-panel-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  color: var(--muted); font-size: .88rem;
}
.bmc-panel-loading span { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--paper-3); border-top-color: var(--brass); animation: bmc-spin .8s linear infinite; }
.bmc-panel.is-loaded .bmc-panel-loading { display: none; }
html .bmc-panel-foot { margin: 0; padding: .65rem 1rem; border-top: 1px solid var(--line); background: var(--paper); font-size: .78rem; line-height: 1.45; color: var(--muted); }
html .bmc-panel-foot a { color: var(--blue-ink); font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
html.bmc-lock, html.bmc-lock body { overflow: hidden; }

@keyframes bmc-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes bmc-fade { from { opacity: 0; } }
@keyframes bmc-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .bmc-panel-backdrop { background: rgba(15,30,39,.55); }
  .bmc-panel-sheet {
    left: 0; right: 0; bottom: 0; width: 100%; height: 92vh; height: 92dvh;
    border-radius: var(--r-lg) var(--r-lg) 0 0; transform-origin: 50% 100%; animation-name: bmc-sheet;
  }
  html .bmc-panel-foot { padding-bottom: calc(.65rem + env(safe-area-inset-bottom, 0px)); }
}
@keyframes bmc-sheet { from { transform: translateY(100%); } }
