/* Qtyni theme A (trust blue) — swap this file per site (multi-site rule).
   Components reference tokens only, never hex. RTL-safe: logical properties. */

:root {
  --accent: #185FA5;
  --accent-hover: #0C447C;
  --accent-soft: #E6F1FB;
  --accent-soft-text: #0C447C;
  --bg: #FFFFFF;
  --surface: #F6F7F9;
  --text: #1C1E21;
  --text-muted: #5F6570;
  --border: #E2E5E9;
  --danger: #B3261E;
  --danger-soft: #FBEAE9;
  --danger-soft-text: #7A1A15;
  --radius: 8px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6BA6DE;
    --accent-hover: #8FBCE8;
    --accent-soft: #12283C;
    --accent-soft-text: #B5D4F4;
    --bg: #131417;
    --surface: #1C1E23;
    --text: #E8EAED;
    --text-muted: #9AA0A8;
    --border: #2C2F36;
    --danger: #E5766E;
    --danger-soft: #3A1815;
    --danger-soft-text: #F2B8B4;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  display: flex; min-height: 100vh; flex-direction: column;
}

/* ---- shell ---- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--surface);
  border-block-end: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 17px; color: var(--text); text-decoration: none; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav-links a { color: var(--text-muted); text-decoration: none;
  margin-inline-start: 18px; font-size: 14px; }
.nav-links a:hover { color: var(--accent); }
.nav-code { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.main { flex: 1; width: 100%; max-width: 1100px; margin-inline: auto; padding: 2rem 20px; }
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 14px 20px; background: var(--surface);
  border-block-start: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}
.footer a { color: var(--text-muted); text-decoration: none; margin-inline-start: 12px; }
.footer a:hover { color: var(--accent); }
.footer-lang a.lang-on { color: var(--accent); font-weight: 600; }

/* ---- home ---- */
.hero { text-align: center; padding-block: 2rem 1rem; }
.hero h1 { font-size: 28px; font-weight: 600; margin: 0 0 8px; }
.hero p { color: var(--text-muted); margin: 0 0 1.6rem; }
.shorten-form { display: flex; gap: 8px; }
.shorten-form input[type=url] {
  flex: 1; min-width: 0; padding: 11px 14px; font-size: 15px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
}
.shorten-form input[type=url]:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
button, .btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 11px 20px; font-size: 15px; font-weight: 500; cursor: pointer;
  border: none; border-radius: var(--radius);
  background: var(--accent); color: #fff; text-decoration: none;
}
button:hover, .btn:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-soft-text); }
.btn-danger { background: var(--danger); }
.form-row { display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-block-start: 12px; font-size: 14px; color: var(--text-muted); }
.form-row select { padding: 7px 10px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg); color: var(--text); font-size: 14px; }
.note { font-size: 13px; color: var(--text-muted); text-align: center; margin-block-start: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: var(--text-muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 11px; }

/* ---- result / error cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; margin-block-start: 1.6rem;
}
.card-code { font-family: var(--font-mono); font-size: 17px; color: var(--accent);
  word-break: break-all; }
.card-dest { font-size: 13px; color: var(--text-muted); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.error-card { background: var(--danger-soft); color: var(--danger-soft-text);
  border: 1px solid var(--danger); border-radius: var(--radius);
  padding: 12px 16px; margin-block-start: 1.2rem; font-size: 14px; }

/* ---- interstitial ---- */
.inter { text-align: center; padding-block: 2.5rem; }
.inter-count {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-soft-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 600; margin: 0 auto 1rem;
}
.inter-count.nf { background: var(--danger-soft); color: var(--danger-soft-text); font-size: 26px; }
.inter h1 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.inter .sub { color: var(--text-muted); margin: 0 0 4px; }
.inter .dest { font-size: 13px; color: var(--text-muted); max-width: 480px;
  margin: 0 auto 1.4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-slot { border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 2rem 1rem; text-align: center; color: var(--text-muted);
  font-size: 12px; margin-block-start: 1.6rem; }

/* ---- legal ---- */
.legal { max-width: 720px; margin-inline: auto; }
.login-box { }  /* already narrow */
.legal h1 { font-size: 24px; } .legal h2 { font-size: 18px; margin-block-start: 1.6rem; }
.legal p, .legal li { font-size: 15px; color: var(--text); }

/* ---- admin ---- */
.admin-tabs { display: flex; gap: 4px; margin-block-end: 1.2rem; flex-wrap: wrap; }
.admin-tabs a { padding: 8px 14px; border-radius: var(--radius); font-size: 14px;
  color: var(--text-muted); text-decoration: none; }
.admin-tabs a.on { background: var(--accent-soft); color: var(--accent-soft-text); font-weight: 600; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: start; padding: 8px 10px; border-block-end: 1px solid var(--border); }
.tbl th { color: var(--text-muted); font-weight: 500; font-size: 13px; }
.tbl td.mono { font-family: var(--font-mono); font-size: 13px; }
.badge { font-size: 12px; border-radius: 999px; padding: 2px 10px; }
.badge-on { background: var(--accent-soft); color: var(--accent-soft-text); }
.badge-off { background: var(--danger-soft); color: var(--danger-soft-text); }
.inline-form { display: inline; }
.admin-form { display: flex; gap: 8px; flex-wrap: wrap; margin-block-start: 1rem; }
.admin-form input, .admin-form select { padding: 8px 10px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg); color: var(--text); font-size: 14px; }
.login-box { max-width: 340px; margin: 3rem auto; display: flex; flex-direction: column; gap: 10px; }
.login-box input { padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg); color: var(--text); font-size: 15px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-block-end: 1.4rem; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 14px; }
.stat .n { font-size: 24px; font-weight: 600; }
.stat .l { font-size: 13px; color: var(--text-muted); }

/* ---- responsive ---- */
@media (max-width: 640px) {
  .shorten-box { flex-wrap: wrap; align-items: stretch; padding: 10px; gap: 8px; }
  .shorten-box .shorten-icon { display: none; }
  .shorten-box input[type=url] { flex: 1 0 100%; }
  .shorten-box .opt-toggle { flex: 0 0 auto; }
  .shorten-box button[type=submit] { flex: 1; }
  .shorten-box input[type=url] { padding: 10px 6px; font-size: 16px; }  /* 16px stops iOS zoom */
  /* full width is for the submit button; the icon toggles keep their size */
  .hero-wordmark { font-size: 32px; }
  .hero-tag { font-size: 18px; }
  .hero { padding-block: 1.6rem 1.2rem; }
  .card-row { flex-direction: column; align-items: stretch; }
  .nav { flex-wrap: wrap; gap: 8px; }
  .nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
  .nav-links a { margin-inline-start: 0; }
  .hero-example .ex-long { display: none; }  /* keep the short-code lesson, drop the long half */
}
@media (min-width: 1100px) {
  .hero { padding-block: 3.5rem 2.6rem; }
}

/* ---- v2 additions: asset paths note, navbar lang form, cookie banner ---- */
.lang-form { display: inline; margin-inline-start: 14px; }
.lang-form select { padding: 5px 8px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg); color: var(--text); font-size: 13px; }
/* the cookie bar and panel are styled together further down, in the
   "cookie consent" block — this older single-banner rule was superseded */
.cookie-banner a { color: var(--accent); }

/* ---- home redesign (hero wash, wordmark, shorten box, feature cards) ---- */
:root {
  --shield-bg: #EEEBFB;
  --shield-grad-1: #8B7CE8;
  --shield-grad-2: #6C5CE7;
  --green: #1F8A5D;   --green-soft: #E3F4EC;
  --amber: #B8860B;   --amber-soft: #FCF3DC;
}
@media (prefers-color-scheme: dark) {
  :root {
    --shield-bg: #262042;
    --shield-grad-1: #9C8FF0;
    --shield-grad-2: #7B6BE8;
    --green: #5CC898; --green-soft: #14301F;
    --amber: #D9A93F; --amber-soft: #33270E;
  }
}
.brand-mark { flex-shrink: 0; }
.brand-tld { color: var(--accent); }
.hero-wash {
  background:
    linear-gradient(160deg, var(--accent-soft) 0%, transparent 45%),
    linear-gradient(320deg, var(--accent-soft) 0%, transparent 40%);
  border-radius: 12px;
}
.hero-wordmark { font-size: 42px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.hero-tag { font-size: 21px; font-weight: 600; margin: 10px 0 4px; }
.hero-sub { color: var(--text-muted); margin: 0 0 1.8rem; }
.shorten-box {
  max-width: 600px; margin-inline: auto; display: flex; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 12%, transparent);
}
.shorten-box .shorten-icon { display: flex; align-items: center;
  padding-inline: 12px; color: var(--accent); }
.shorten-box input[type=url] { flex: 1; min-width: 0; border: none; background: transparent;
  font-size: 15px; color: var(--text); }
.shorten-box input[type=url]:focus { outline: none; }
.shorten-box button[type=submit] { border-radius: 9px; padding: 12px 22px; white-space: nowrap; }
.hero-example { font-size: 13.5px; color: var(--text-muted); margin-block-start: 1.4rem; }
.hero-example .ex-long { color: var(--text); opacity: .75; }
.hero-example .ex-short { color: var(--accent); font-weight: 600; font-family: var(--font-mono); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-block-start: 1.6rem; }
.feature { border: 1px solid var(--border); border-radius: 12px;
  padding: 1.2rem 1rem; text-align: center; background: var(--bg); }
.feature .fi { width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.fi-accent { background: var(--accent-soft); }
.fi-green  { background: var(--green-soft); color: var(--green); }
.fi-shield { background: var(--shield-bg); }
.fi-amber  { background: var(--amber-soft); color: var(--amber); }
.feature .ft { font-weight: 600; font-size: 14.5px; margin: 0 0 4px; }
.feature .fd { font-size: 12.5px; color: var(--text-muted); margin: 0; }

/* ---- admin pager ---- */
.pager { display: flex; justify-content: space-between; gap: 10px; margin-block-start: 12px; }
.pager .btn-ghost { padding: 7px 14px; font-size: 13px; }
.pager a:only-child { margin-inline-start: auto; }

/* ---- legal binding-language note ---- */
.legal-lang-note {
  max-width: 720px; margin: 0 auto 1rem;
  background: var(--accent-soft); color: var(--accent-soft-text);
  border-radius: var(--radius); padding: 10px 14px; font-size: 13.5px;
}

/* ---- admin logs + capacity ---- */
.logbox { background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; font-family: var(--font-mono);
  font-size: 12px; line-height: 1.5; overflow-x: auto; white-space: pre-wrap;
  word-break: break-word; max-height: 420px; }
.badge-warn { background: var(--amber-soft); color: var(--amber); }

/* ---- bidi: URLs are always LTR content, even on an RTL page ---- */
.ex-pair { display: inline-block; unicode-bidi: isolate; }
.card-code, .dest { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .card-code, [dir="rtl"] .dest { text-align: right; }
[dir="rtl"] .shorten-box input[type=url] { text-align: left; }

/* ---- result card: share row + QR ---- */
.card-label { font-size: 12px; color: var(--text-muted); margin-block-end: 4px; }
.card-actions { display: flex; gap: 8px; align-items: center; }
.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 9px 18px; font-size: 14px; cursor: pointer; }
.btn-primary:hover { filter: brightness(1.06); }
.share-btn { width: 36px; height: 36px; border: 1px solid var(--border);
  border-radius: var(--radius); display: inline-flex; align-items: center;
  justify-content: center; color: var(--text-muted); text-decoration: none; }
.share-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 640px) {
  .card-actions { width: 100%; }
  .card-actions .btn-primary, .card-actions .btn-ghost { flex: 1; min-height: 44px; }
  .share-btn { width: 44px; height: 44px; }
  .qr-toggle { margin-inline-start: 0; min-height: 44px; }
  .qr-panel { justify-content: center; }
}

/* ---- password-protected links ---- */
.protect-row { align-items: center; }
.protect-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px;
  color: var(--text-muted); cursor: pointer; }
.protect-toggle input { accent-color: var(--accent); }
.pass-input { width: 5.5em; text-align: center; letter-spacing: .32em;
  font-family: var(--font-mono); font-size: 15px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text); }
.protect-note { margin: 0; }
.card-pass { display: flex; align-items: center; gap: 8px; margin-block-start: 8px;
  font-size: 12.5px; color: var(--text-muted); flex-wrap: wrap; }
.pass-chip { font-family: var(--font-mono); font-size: 15px; letter-spacing: .3em;
  background: var(--accent-soft); color: var(--accent); border-radius: var(--radius);
  padding: 3px 10px 3px 13px; }
.inter-lock { color: var(--accent); margin-block-end: 10px; }
.pass-form { display: flex; gap: 8px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-block: 14px; }
.pass-form .pass-input { width: 6.5em; font-size: 20px; padding: 12px 10px; }
.lock-badge { font-size: 12px; margin-inline-start: 4px; }
@media (max-width: 640px) {
  .protect-row { flex-wrap: wrap; }
  .pass-form .pass-input { font-size: 22px; min-height: 48px; }
  .pass-form button { min-height: 48px; }
}

/* ---- ad slot (interstitial) ---- */
.ad-slot { width: 300px; max-width: 100%; min-height: 250px; margin: 18px auto 0;
  display: flex; align-items: center; justify-content: center; }
.ad-slot[hidden] { display: none; }
.ad-slot iframe { border: 0; display: block; max-width: 100%; }
.cookie-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cookie-actions .btn-primary, .cookie-actions .btn-ghost { padding: 8px 16px; font-size: 13.5px; }
@media (max-width: 640px) {
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; min-height: 44px; }
}

/* ---- interstitial: the button unlocks when the countdown ends ---- */
/* explicit greys, not theme tokens: this state must read as "not yet"
   at a glance, in both colour schemes */
.btn.is-locked,
.btn.is-locked:hover {
  background: #d7dce2 !important;
  color: #7b8794 !important;
  border-color: #d7dce2 !important;
  box-shadow: none !important;
  pointer-events: none;
  cursor: not-allowed;
}
@media (prefers-color-scheme: dark) {
  .btn.is-locked,
  .btn.is-locked:hover {
    background: #2c3440 !important;
    color: #6b7684 !important;
    border-color: #2c3440 !important;
  }
}
.btn { transition: background .25s ease, color .25s ease; }

/* ---- cookie consent: bar + preferences panel ---- */
.cookie-banner, .cookie-panel {
  position: fixed; inset-inline: 12px; inset-block-end: 12px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.14);
}
.cookie-banner { display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px; max-width: 1100px; margin-inline: auto; }
/* an explicit display beats the UA rule for [hidden]; without this the bar
   stays on screen after a choice and the panel cannot replace it */
.cookie-banner[hidden], .cookie-panel[hidden] { display: none !important; }
.cookie-icon { font-size: 20px; font-style: normal; line-height: 1.4; flex-shrink: 0; }
.cookie-body { flex: 1; min-width: 220px; }
.cookie-head { font-size: 15px; font-weight: 600; margin: 0 0 3px; }
.cookie-text { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.cookie-text a { color: var(--accent); }
.cookie-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cookie-actions button { font-size: 13px; padding: 8px 14px; white-space: nowrap; }

.cookie-panel { max-width: 560px; margin-inline: auto; padding: 18px 20px; }
.cookie-panel-head { display: flex; justify-content: space-between;
  align-items: center; margin-block-end: 4px; }
.cookie-close { background: none; border: none; font-size: 24px; line-height: 1;
  color: var(--text-muted); cursor: pointer; padding: 0 4px; }
.cookie-cat { display: flex; gap: 14px; align-items: flex-start;
  border-top: 1px solid var(--border); padding-block: 14px; margin-block-start: 12px; }
.cookie-cat:first-of-type { margin-block-start: 14px; }
.cookie-cat-icon { font-size: 18px; line-height: 1.4; flex-shrink: 0; }
.cookie-cat-body { flex: 1; min-width: 0; }
.cookie-cat-row { display: flex; justify-content: space-between;
  align-items: center; gap: 12px; margin-block-end: 3px; }
.cookie-cat-name { font-size: 14px; font-weight: 600; margin: 0; }
.cookie-chip { font-size: 12px; color: var(--text-muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.cookie-panel-actions { display: flex; gap: 8px; justify-content: flex-end;
  flex-wrap: wrap; border-top: 1px solid var(--border); padding-block-start: 14px; }
.cookie-panel-actions button { font-size: 13px; padding: 8px 14px; }

/* the advertising switch: a real checkbox, drawn as a switch */
.cookie-switch { appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 42px; height: 23px; border-radius: 999px; background: var(--border);
  position: relative; cursor: pointer; transition: background .2s ease; margin: 0; }
.cookie-switch::after { content: ''; position: absolute; inset-block-start: 2px;
  inset-inline-start: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: #fff; transition: transform .2s ease; }
.cookie-switch:checked { background: var(--accent); }
.cookie-switch:checked::after { transform: translateX(19px); }
[dir="rtl"] .cookie-switch:checked::after { transform: translateX(-19px); }
.cookie-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; min-height: 44px; }
  .cookie-panel-actions button { flex: 1; min-height: 44px; }
}

/* ---- consent: why the ads exist ---- */
.cookie-fund { font-size: 12.5px; color: var(--text-muted); margin: 6px 0 0;
  padding-inline-start: 10px; border-inline-start: 2px solid var(--accent); }

/* ---- shorten form: folded options ---- */
/* spacing between the input, the two toggles and Shorten — applied as a
   start-margin so it also works when the row wraps on small screens */
.shorten-box .opt-toggle,
.shorten-box button[type=submit] { margin-inline-start: 6px; }

.shorten-box .opt-toggle,
.opt-toggle {
  width: 38px; height: 38px; min-width: 38px; padding: 0; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 9px; cursor: pointer;
}
.shorten-box .opt-toggle:hover,
.opt-toggle:hover { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.shorten-box .opt-toggle[aria-pressed="true"],
.opt-toggle[aria-pressed="true"] {
  color: var(--accent); background: var(--accent-soft); border-color: var(--accent);
}
.opt-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.opt-row {
  max-width: 600px; margin: 10px auto 0;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; text-align: start;
}
.opt-row.is-collapsed { display: none; }
.opt-row-accent { border-color: var(--accent); }
.opt-row-icon { color: var(--text-muted); flex-shrink: 0; }
.opt-row-accent .opt-row-icon { color: var(--accent); }
.opt-row label { font-size: 13.5px; color: var(--text-muted); }
.opt-hint { font-size: 12.5px; color: var(--text-muted); }

@media (max-width: 640px) {
  .opt-toggle { width: 46px; height: 46px; }
  .opt-row { justify-content: flex-start; }
}
.opt-hint-soft { flex-basis: 100%; opacity: .75; font-size: 12px; }

/* ---- QR button leaves the site (partner) ---- */
.qr-toggle { text-decoration: none; }
.qr-toggle .ext-icon { opacity: .55; margin-inline-start: 2px; }
.qr-toggle:hover .ext-icon { opacity: .9; }

/* ---- result card actions: Copy / Share / QR ---- */
.card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.act-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px;
  padding-inline: 15px; font-size: 14px; text-decoration: none; }
.act-btn.is-on { background: var(--accent-soft); color: var(--accent);
  border-color: var(--accent); }
.act-btn .ext-icon { opacity: .55; margin-inline-start: 1px; }
.act-btn:hover .ext-icon { opacity: .9; }

.share-targets { display: flex; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--border); margin-block-start: 14px; padding-block-start: 14px; }
.share-targets[hidden] { display: none; }

@media (max-width: 640px) {
  /* icons only: the labels stay in the DOM for screen readers */
  .act-label { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .act-btn { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .act-btn .ext-icon { display: none; }
  .share-btn { width: 44px; height: 44px; }
}

/* ---- FAQ ---- */
.faq h2 { font-size: 16px; margin-block: 1.6rem .4rem; }
.faq h2:first-of-type { margin-block-start: 1rem; }
.faq-intro { color: var(--text-muted); }
.faq-foot { margin-block-start: 2rem; padding-block-start: 1rem;
  border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13.5px; }
