/* The how-to guides under /guides/: reading pages next to the home page, with its tokens (warm neutrals, ink buttons,
   jade only for "on"), Inter from /welcome/fonts/ (SIL OFL 1.1, /welcome/fonts/OFL.txt), light and dark by the system
   setting. One stylesheet for all guides; each page carries only its text and its structured data. Facts on the pages
   follow the extension's README and the official help pages they cite; update them together. No scripts of our own:
   Umami is added by firebase-deploy.sh (the site's CSP is script-src 'self' plus Umami on these paths).
   The install path is visible on every page: "Chrome extension" under the logo, Add to Chrome in the header (computers),
   a link to the product card from "At a glance", and the card itself with a note for phones (review R1, 4 Nov 2026). */
@font-face { font-family: "Inter"; src: url(/welcome/fonts/Inter-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/welcome/fonts/Inter-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(/welcome/fonts/InterDisplay-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --bg: #eeeeea; --surface: #ffffff; --ink: #1b1c1e; --muted: #66686d; --line: #dcdcd6; --soft: #f5f5f2;
  --jade: #28be78; --focus: #07875e; --btn: #1b1c1e; --btn-ink: #ffffff; --link: #1a4fa0;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #27282c; --surface: #2f3034; --ink: #ecedee; --muted: #a3a6ac; --line: #3a3b40; --soft: #35363b;
    --focus: #28be78; --btn: #ecedee; --btn-ink: #1b1c1e; --link: #8ab4f8; }
}
:root[data-theme="dark"] { --bg: #27282c; --surface: #2f3034; --ink: #ecedee; --muted: #a3a6ac; --line: #3a3b40; --soft: #35363b;
  --focus: #28be78; --btn: #ecedee; --btn-ink: #1b1c1e; --link: #8ab4f8; }

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: 3px; }
p a, li a, td a, .sources a, .toc a { color: var(--link); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nw { white-space: nowrap; }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 24px 40px; }

/* header: the brand says it is a Chrome extension; on computers the install button sits next to "Guides" */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
header.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
header.top .brand img { width: 28px; height: 28px; }
header.top .name { display: block; font: 700 18px/1.15 var(--display); letter-spacing: -0.01em; }
header.top .kind { display: block; margin-top: 2px; font: 600 12.5px/1.2 var(--font); color: var(--muted); }
header.top nav { display: flex; align-items: center; gap: 18px; }
header.top .nav-link { font: 600 14px/1 var(--font); color: var(--muted); text-decoration: none; padding: 10px 0; }
header.top .nav-link:hover { color: var(--ink); text-decoration: underline; }
header.top .nav-link[aria-current="page"] { color: var(--ink); }

/* the article */
h1 { margin: 32px 0 10px; font: 700 40px/1.1 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.date { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.lead { margin: 0 0 24px; font-size: 19px; color: var(--muted); text-wrap: pretty; }
h2 { margin: 40px 0 10px; font: 700 27px/1.2 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
h3 { margin: 24px 0 6px; font: 600 19px/1.3 var(--font); letter-spacing: -0.01em; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin: 5px 0; }
li::marker { color: var(--muted); }
kbd { font: 500 15px/1 var(--font); padding: 2px 6px; border-radius: 6px; background: var(--soft); box-shadow: 0 0 0 1px var(--line); white-space: nowrap; }
code { font: 500 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.path { font-weight: 600; }

/* the box at the top: what the reader gets in a few lines, and where the extension is */
.glance { background: var(--surface); border-radius: 20px; padding: 20px 24px; box-shadow: 0 0 0 1px var(--line); margin: 0 0 14px; }
.glance h2 { margin: 0 0 8px; font: 600 14px/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.glance ul { margin: 0; padding-left: 20px; }
.glance li { margin: 6px 0; }
.glance a { font-weight: 600; }

/* on this page: jump links under the box */
.toc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; margin: 0 0 8px; font-size: 15px; color: var(--muted); }
.toc a { padding: 6px 0; }

/* numbered steps, each on its own line */
ol.steps { list-style: none; padding: 0; margin: 10px 0 16px; counter-reset: step; }
ol.steps > li { position: relative; padding: 0 0 0 44px; margin: 0 0 10px; counter-increment: step; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font: 600 14px/28px var(--font); text-align: center; }

/* a quiet line with an icon: limits, honest notes */
.note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.note .i { width: 18px; height: 18px; margin-top: 3px; }
.note b { color: var(--ink); font-weight: 600; }

/* tables scroll inside their frame on a phone; the page never scrolls sideways */
.tw { overflow-x: auto; margin: 12px 0 18px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.45; }
caption { caption-side: top; text-align: left; padding: 12px 14px 0; color: var(--muted); font-size: 14px; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); min-width: 9em; }
thead th { border-top: 0; background: var(--soft); font-weight: 600; }
thead th:first-child, tbody th { min-width: 7em; }
tbody th { font-weight: 600; }

/* the card with the extension: the main place with a button */
.cta { background: var(--surface); border-radius: 20px; padding: 24px 26px; box-shadow: 0 0 0 1px var(--line); margin: 18px 0; }
.cta .head { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 20px/1.2 var(--display); letter-spacing: -0.015em; margin: 0 0 14px; }
.cta .head img { width: 28px; height: 28px; }
.cta .shot { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0 0 14px; }
.cta .shot img { display: block; width: 112px; height: 112px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.cta .shot figcaption { color: var(--muted); font-size: 15px; line-height: 1.45; }
.cta p { color: var(--muted); font-size: 16px; }
.cta ul { color: var(--muted); font-size: 16px; }
.get { display: grid; gap: 10px; justify-items: start; margin: 18px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 26px; background: var(--btn); color: var(--btn-ink); font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer; position: relative; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--btn-ink); opacity: 0; transition: opacity 150ms cubic-bezier(0.2, 0, 0, 1); z-index: -1; }
.btn:hover::after { opacity: .08; }
.btn:active::after { opacity: .10; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn .i { width: 18px; height: 18px; }
.btn.sm { min-height: 40px; padding: 0 16px; gap: 8px; font-size: 15px; border-radius: 20px; }
.btn.sm .i { width: 16px; height: 16px; }
.meta { color: var(--muted); font-size: 15px; }
.phone { display: none; margin: 0; color: var(--muted); font-size: 15px; }
@media (hover: none) and (pointer: coarse) and (max-width: 600px) { .phone { display: block; } }

/* questions and answers stay visible on the page, as the structured data says */
.faq h3 { margin-top: 20px; }
.faq h3::before { content: ""; display: block; height: 1px; background: var(--line); margin: 0 0 18px; }
.faq h3:first-of-type::before { display: none; }

.sources { font-size: 14.5px; color: var(--muted); }
.sources ul { padding-left: 20px; }
.sources li { margin: 4px 0; }

/* other guides as cards: the whole card is the link */
.more { margin: 36px 0 0; }
.more h2 { margin-top: 0; font-size: 22px; }
.more ul { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.more li { margin: 0; }
.more a { display: block; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; }
.more a:hover { box-shadow: 0 0 0 1.5px var(--muted); }
.more a b { display: block; font-weight: 600; color: var(--ink); }
.more a span { display: block; color: var(--muted); font-size: 15.5px; }
.intro { margin: 0 0 20px; }

footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer .links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
footer .links a { padding-block: 2px; }
footer .guides { flex-basis: 100%; }
footer .guides a, footer .guides span { padding-block: 2px; }
footer .guides > * { margin-right: 8px; }
footer .guides > :not(:first-child):not(:last-child)::after { content: "·"; margin-left: 8px; color: var(--muted); display: inline-block; }
footer .guides [aria-current] { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .btn::after { transition: none; } }
@media (max-width: 599px) {
  header.top .btn.sm { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 18px 16px 32px; }
  h1 { font-size: 32px; margin-top: 26px; }
  .lead { font-size: 17.5px; }
  h2 { font-size: 24px; margin-top: 34px; }
  .glance { padding: 16px 18px; }
  .cta { padding: 20px 18px; }
  .get { justify-items: stretch; }
  .get .btn { width: 100%; }
  .cta .shot { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .cta .shot img { width: 88px; height: 88px; border-radius: 14px; }
  th, td { padding: 9px 12px; }
  /* a wide table becomes one card per row, each value with its column name */
  .tw.cards { overflow: visible; background: transparent; box-shadow: none; border-radius: 0; }
  .tw.cards table, .tw.cards caption, .tw.cards tbody, .tw.cards tr, .tw.cards th, .tw.cards td { display: block; }
  .tw.cards caption { padding: 0 0 8px; }
  .tw.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tw.cards tr { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); margin: 0 0 10px; padding: 12px 14px; }
  .tw.cards th, .tw.cards td { border: 0; min-width: 0; padding: 3px 0; }
  .tw.cards tbody th { font-size: 17px; padding-bottom: 4px; }
  .tw.cards td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
  footer .guides > a, footer .guides > span { display: block; padding-block: 9px; }
  footer .guides > :not(:first-child):not(:last-child)::after { content: none; }
}
