/* Shared site look (October 2026 refresh). Pages opt in with <body class="tma-v2">.
   Every rule is scoped to .tma-v2 so it outranks the older page sheets and the generated
   dark rules (which use :where() and add no specificity). Colours come from the tokens below,
   so light and dark both follow them. Loads before dark-mode.generated.css and dark-mode.css. */

body.tma-v2 {
  --v-bg: #faf8f4;
  --v-surface: #ffffff;
  --v-surface-2: #f3efe8;
  --v-ink: #1a1917;
  --v-text: #3d3a35;
  --v-muted: #69645c;
  --v-line: #e8e2d8;
  --v-line-strong: #d6cec1;
  --v-accent: #c4581f;
  --v-accent-soft: #fbeee4;
  --v-button: #1a1917;
  --v-button-ink: #ffffff;
  --v-button-hover: #34312d;
  --v-shadow: 0 1px 2px #1a191708, 0 12px 32px -18px #1a19172e;
  --v-radius: 18px;
  --v-radius-sm: 12px;
  /* Older components read these. */
  --paper: var(--v-bg);
  --soft: var(--v-surface-2);
  --line: var(--v-line);
  --ink: var(--v-ink);
  --muted: var(--v-muted);
  --warm: var(--v-accent);
  background: var(--v-bg);
  color: var(--v-text);
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] body.tma-v2 {
  --v-bg: #121110;
  --v-surface: #1a1917;
  --v-surface-2: #22201d;
  --v-ink: #f2efe9;
  --v-text: #d3cec5;
  --v-muted: #a49e94;
  --v-line: #2e2b27;
  --v-line-strong: #423e38;
  --v-accent: #ee8a50;
  --v-accent-soft: #2c1d14;
  --v-button: #f2efe9;
  --v-button-ink: #121110;
  --v-button-hover: #d9d4cb;
  --v-shadow: 0 1px 2px #0006, 0 16px 36px -20px #000c;
}

/* ---------- layout ---------- */
.tma-v2 .site-header,
.tma-v2 main,
.tma-v2 footer { max-width: 1120px; width: min(calc(100% - 48px), 1120px); }
.tma-v2 :focus-visible { outline: 2px solid var(--v-accent); outline-offset: 3px; }
.tma-v2 h1, .tma-v2 h2, .tma-v2 h3 { color: var(--v-ink); }

/* ---------- header ---------- */
.tma-v2 .site-header { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border: 0; }
.tma-v2 .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--v-ink); font-size: 16px; font-weight: 620; letter-spacing: -.02em; }
.tma-v2 .brand img { width: 30px; height: 30px; border-radius: 9px; }
.tma-v2 .brand span { max-width: none; white-space: nowrap; }
.tma-v2 .site-header nav { display: flex; align-items: center; gap: 6px; }
.tma-v2 .site-header nav > a:not(.nav-account) { padding: 8px 12px; border-radius: 999px; color: var(--v-muted); font-size: 14px; font-weight: 500; }
.tma-v2 .site-header nav > a:not(.nav-account):hover { color: var(--v-ink); background: var(--v-surface-2); }
.tma-v2 .nav-account { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; margin-left: 6px; padding: 9px 16px; border: 1px solid var(--v-button); border-radius: 999px; background: var(--v-button); color: var(--v-button-ink); font-size: 13px; font-weight: 560; box-shadow: none; }
.tma-v2 .nav-account:hover { background: var(--v-button-hover); border-color: var(--v-button-hover); color: var(--v-button-ink); }
.tma-v2 .theme-toggle { width: 36px; height: 36px; margin-left: 4px; color: var(--v-muted); }
.tma-v2 .theme-toggle:hover { color: var(--v-ink); background: var(--v-surface-2); }
.tma-v2 .language-switcher { position: relative; display: inline-flex; align-items: center; }
.tma-v2 .language-switcher::before { content: ""; position: absolute; left: 10px; width: 16px; height: 16px; background: currentColor; color: var(--v-muted); pointer-events: none; -webkit-mask: var(--v-globe) center / contain no-repeat; mask: var(--v-globe) center / contain no-repeat; }
.tma-v2 .language-switcher::after { display: none; }
.tma-v2 .language-switcher select { appearance: none; -webkit-appearance: none; min-height: 36px; max-width: 132px; padding: 8px 12px 8px 32px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--v-muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.tma-v2 .language-switcher select:hover { color: var(--v-ink); background: var(--v-surface-2); }
.tma-v2 { --v-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E"); }

/* ---------- buttons ---------- */
.tma-v2 .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 12px 22px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 580; letter-spacing: -.01em; line-height: 1.2; text-decoration: none; cursor: pointer; transform: none; }
.tma-v2 .button--primary { border: 1px solid var(--v-button); background: var(--v-button); color: var(--v-button-ink); box-shadow: 0 1px 0 #ffffff1f inset, 0 8px 18px -10px #1a191780; }
.tma-v2 .button--primary:hover { border-color: var(--v-button-hover); background: var(--v-button-hover); color: var(--v-button-ink); transform: none; }
.tma-v2 .button--secondary { border: 1px solid var(--v-line-strong); background: var(--v-surface); color: var(--v-ink); box-shadow: none; }
.tma-v2 .button--secondary:hover { border-color: var(--v-ink); background: var(--v-surface); color: var(--v-ink); }
.tma-v2 .button .chrome-logo, .tma-v2 .button .firefox-logo { width: 20px; height: 20px; flex: 0 0 20px; }
.tma-v2 .button span:not(.chrome-logo) { font: inherit; }

/* ---------- section headings ---------- */
.tma-v2 .v-section { padding: 88px 0; }
.tma-v2 .v-section + .v-section { border-top: 1px solid var(--v-line); }
.tma-v2 .v-heading { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.tma-v2 .v-eyebrow, .tma-v2 .v-heading .v-eyebrow { display: inline-block; margin: 0 0 14px; color: var(--v-accent); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: none; }
.tma-v2 .v-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 640; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.tma-v2 .v-heading p { margin: 16px auto 0; max-width: 560px; color: var(--v-muted); font-size: 17px; line-height: 1.6; }

/* ---------- footer ---------- */
.tma-v2 footer.tool-footer { margin-top: 24px; padding: 48px 0 40px; border-top: 1px solid var(--v-line); }
.tma-v2 footer.tool-footer .tool-footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--v-ink); font-size: 16px; font-weight: 640; }
.tma-v2 footer.tool-footer .tool-footer__group h2 { color: var(--v-ink); font-size: 13px; font-weight: 640; letter-spacing: 0; }
.tma-v2 footer.tool-footer a { color: var(--v-muted); font-size: 14px; }
.tma-v2 footer.tool-footer a:hover, .tma-v2 footer.tool-footer a:focus-visible { color: var(--v-ink); }
.tma-v2 footer.tool-footer .tool-footer__note { color: var(--v-muted); font-size: 13px; }

@media (max-width: 760px) {
  .tma-v2 .site-header, .tma-v2 main, .tma-v2 footer { width: calc(100% - 32px); }
  .tma-v2 .site-header { padding: 14px 0; }
  .tma-v2 .brand { font-size: 15px; gap: 8px; }
  .tma-v2 .brand img { width: 28px; height: 28px; }
  .tma-v2 .site-header nav { gap: 2px; }
  .tma-v2 .site-header nav > a:not(.nav-account) { display: none; }
  .tma-v2 .nav-account { min-height: 36px; padding: 8px 14px; }
  .tma-v2 .language-switcher select { width: 36px; max-width: 36px; padding: 0; color: transparent; }
  .tma-v2 .language-switcher select option { color: var(--v-ink); }
  .tma-v2 .language-switcher::before { left: 10px; }
  .tma-v2 .v-section { padding: 56px 0; }
  .tma-v2 .v-heading { margin-bottom: 32px; }
  .tma-v2 .v-heading p { font-size: 16px; }
}
