/*
 * Smart Mobi Tools: shared light theme
 * Served at /shared/theme.css on both the main site and the support site
 * (see server.js). Every page uses these tokens and components; page-specific
 * styling (e.g. the landing page) lives in its own small stylesheet.
 */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --bg-hover: #f1f1ef;
  --surface: #ffffff;

  --text: #191919;
  --text-2: #37352f;
  --muted: #6b6a66;
  --faint: #9b9a97;

  --border: #e9e9e7;
  --border-strong: #dcdbd8;

  --accent: #0b6bcb;
  --accent-hover: #0959ab;
  --accent-soft: #e8f1fb;
  --on-accent: #ffffff;

  /* Soft tints for icon tiles, Notion-style */
  --tint-blue: #e7f3f8;      --tint-blue-fg: #2e75a6;
  --tint-red: #fdebec;       --tint-red-fg: #c4403b;
  --tint-yellow: #fbf3db;    --tint-yellow-fg: #a87a1f;
  --tint-green: #edf3ec;     --tint-green-fg: #3f7a59;
  --tint-purple: #f4f0f8;    --tint-purple-fg: #8358a8;
  --tint-orange: #fbecdd;    --tint-orange-fg: #c4660c;
  --tint-gray: #f1f1ef;      --tint-gray-fg: #6b6a66;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 15, 15, 0.04);
  --shadow: 0 1px 3px rgba(15, 15, 15, 0.06), 0 6px 20px rgba(15, 15, 15, 0.05);
  --shadow-lg: 0 2px 6px rgba(15, 15, 15, 0.05), 0 24px 60px rgba(15, 15, 15, 0.08);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --nav-h: 64px;
  --container: 1120px;
  --container-narrow: 780px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: #cfe3f7;
  color: var(--text);
}

img,
svg {
  max-width: 100%;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
  user-select: none;
}

.no-select {
  user-select: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.container--narrow {
  width: min(var(--container-narrow), calc(100% - 48px));
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 56px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand__kicker {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.brand__name {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease;
}

.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text);
  text-decoration: none;
}

.nav-link .material-symbols-outlined {
  font-size: 1.15rem;
  color: var(--muted);
}

.nav-links .btn {
  margin-left: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
  text-decoration: none;
}

.btn .material-symbols-outlined {
  font-size: 1.15rem;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn--secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.btn--soft {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn--soft:hover {
  background: #dbe9f8;
  color: var(--accent-hover);
}

.btn--sm {
  height: 34px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.btn--lg {
  height: 48px;
  padding: 0 22px;
  font-size: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 56px;
  text-align: center;
}

.hero--compact {
  padding: 64px 0 32px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
}

.pill .material-symbols-outlined {
  font-size: 1rem;
  color: var(--accent);
}

.display {
  max-width: 900px;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.display--md {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.display .accent {
  color: var(--accent);
}

.hero__lead {
  max-width: 640px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.hero .btn-row {
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Cards ---------- */
.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.card--soft {
  border-color: transparent;
  background: var(--bg-soft);
}

.card--link {
  display: block;
  color: inherit;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.card--link:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.card__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card__text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.label--accent {
  color: var(--accent);
}

/* Small summary tiles: label + text */
.tile {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.tile p:not(.label) {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Icon tile used on cards and topic links */
.icon-tile {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--tint-blue);
  color: var(--tint-blue-fg);
}

.icon-tile .material-symbols-outlined {
  font-size: 1.35rem;
}

.icon-tile--red    { background: var(--tint-red);    color: var(--tint-red-fg); }
.icon-tile--yellow { background: var(--tint-yellow); color: var(--tint-yellow-fg); }
.icon-tile--green  { background: var(--tint-green);  color: var(--tint-green-fg); }
.icon-tile--purple { background: var(--tint-purple); color: var(--tint-purple-fg); }
.icon-tile--orange { background: var(--tint-orange); color: var(--tint-orange-fg); }
.icon-tile--gray   { background: var(--tint-gray);   color: var(--tint-gray-fg); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 500;
}

.chip .material-symbols-outlined {
  font-size: 1rem;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Call-to-action band at the end of content pages */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.cta-band h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cta-band p {
  margin-top: 6px;
  color: var(--muted);
}

/* ---------- Long-form documents (privacy, terms, credits) ---------- */
.doc {
  display: flex;
  flex-direction: column;
}

.doc-main {
  padding: 8px 0 96px;
}

.doc-summary {
  margin-bottom: 40px;
}

.doc-tiles .tile p:not(.label) {
  font-size: 0.9rem;
}

.doc-section {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.doc-cta {
  margin-top: 40px;
}

.doc-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.doc-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.doc-section__meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.prose {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 14px;
}

.prose h3 {
  margin-top: 24px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose ul,
.prose ol {
  margin-bottom: 0;
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 6px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  word-break: break-word;
}

.prose pre,
.prose code {
  font-family: var(--mono);
  font-size: 0.85rem;
}

.prose pre {
  margin-top: 14px;
  padding: 16px;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text-2);
  white-space: pre-wrap;
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.contact-main {
  padding: 36px;
}

.contact-main__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.contact-main__head h2 {
  margin-top: 8px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.contact-main__head .icon-tile--lg {
  margin-bottom: 0;
}

.contact-main__intro {
  margin-top: 12px;
  color: var(--muted);
}

.contact-email {
  margin: 28px 0 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.contact-email__text {
  margin: 8px 0 20px;
  color: var(--text-2);
  font-size: 1.05rem;
}

.contact-email .btn {
  max-width: 100%;
  height: auto;
  min-height: 48px;
  padding-block: 12px;
  white-space: normal;
  text-align: left;
}

.contact-email__hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-link,
.not-found__link {
  padding: 20px;
}

.contact-link .icon-tile,
.not-found__link .icon-tile {
  margin-bottom: 14px;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- 404 page ---------- */
.not-found__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 64px;
}

.not-found__copy .btn-row {
  margin-top: 32px;
}

.not-found__copy .chip-row {
  margin-top: 24px;
}

.not-found__card {
  max-width: 460px;
  width: 100%;
  justify-self: center;
  box-shadow: var(--shadow-lg);
}

.not-found__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.not-found__card-head .card__text {
  margin-top: 6px;
}

.not-found__card-head .icon-tile--lg {
  margin-bottom: 0;
}

.not-found__code {
  margin-bottom: 16px;
  text-align: center;
}

.tile .not-found__number {
  margin-top: 4px;
  color: var(--text);
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.not-found__code p:last-child {
  margin-top: 12px;
}

.not-found__help {
  width: 100%;
  margin-top: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-brand strong {
  color: var(--text);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* =====================================================================
 * Support site components
 * Class names and ids here are used by page scripts (FAQ toggle, tabs,
 * helpfulness feedback); keep them stable.
 * ===================================================================== */

/* Article page header (Notion-like doc header: breadcrumb, icon, title) */
.article-hero {
  padding: 56px 0 8px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb [aria-hidden="true"] {
  color: var(--faint);
}

.icon-tile--lg {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 14px;
}

.icon-tile--lg .material-symbols-outlined {
  font-size: 1.9rem;
}

.article-hero .hero__lead {
  margin-top: 16px;
}

.article-main {
  padding: 32px 0 96px;
}

.article-main > .article-card {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Topic links */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.topic-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.topic-card:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.topic-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.topic-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* FAQ accordion */
.faq-grid {
  border-top: 1px solid var(--border);
}

.question {
  border-bottom: 1px solid var(--border);
}

.question-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.question-container:hover .question-copy h2 {
  color: var(--accent);
}

.question-copy {
  flex: 1;
  min-width: 0;
}

.question-copy h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
  transition: color 120ms ease;
}

.chevron {
  order: 2;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 6px;
  color: var(--muted);
  transition: transform 200ms ease, background-color 120ms ease;
}

.question-container:hover .chevron {
  background: var(--bg-hover);
}

.question.active .chevron {
  transform: rotate(180deg);
}

.answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 4px;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.75;
  transition: max-height 260ms ease, opacity 200ms ease, padding 260ms ease;
}

.question.active .answer {
  max-height: 120rem;
  opacity: 1;
  padding: 0 44px 22px 4px;
}

.answer p,
.answer ul,
.answer ol {
  margin: 0;
}

.answer ul,
.answer ol {
  padding-left: 1.25rem;
}

.answer p + p,
.answer p + ul,
.answer p + ol,
.answer ul + p,
.answer ol + p,
.answer ul + ul,
.answer ol + ol {
  margin-top: 12px;
}

.answer strong {
  color: var(--text);
  font-weight: 600;
}

/* Contact + feedback strip */
.support-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}

.info-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.info-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.info-card p {
  margin-top: 10px;
  color: var(--text-2);
  line-height: 1.7;
}

.info-card .btn-row {
  margin-top: 18px;
}

/* Articles */
.article-card {
  padding: 8px 0 0;
  overflow-wrap: break-word; /* long file paths must not widen the page */
}

.section-block + .section-block {
  margin-top: 40px;
}

.text-section {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.article-card p,
.article-card ol,
.article-card ul {
  margin: 0;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
}

.article-card ol,
.article-card ul {
  padding-left: 1.3rem;
}

.article-card li + li {
  margin-top: 4px;
}

.article-card strong {
  color: var(--text);
  font-weight: 600;
}

.article-card p + p,
.article-card p + ol,
.article-card p + ul,
.article-card ol + p,
.article-card ul + p,
.article-card ul + ul,
.article-card ol + ol {
  margin-top: 14px;
}

.lead {
  color: var(--text);
  font-weight: 600;
}

.article-card .lead {
  color: var(--text);
}

.lead.secondary {
  margin-top: 24px;
}

.support-note {
  margin-top: 14px;
  font-size: 0.94rem;
}

.article-card .support-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.summary-box,
.language-box,
.code-block {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.summary-box ul,
.summary-box ol,
.language-box ul {
  margin: 0;
}

/* Notion-style callout */
.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--tint-yellow);
}

.section-block > .warning-box:first-child,
.tab-content > .warning-box:first-child {
  margin-top: 0;
}

.warning-box + p {
  margin-top: 18px !important;
}

.warning-icon {
  color: var(--tint-yellow-fg);
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.article-card .warning-box p {
  color: var(--text-2);
}

.warning-box + ol,
.warning-box + ul {
  margin-top: 18px !important;
}

/* Callout colour variants: red for data-loss warnings, blue for tips */
.warning-box--red { background: var(--tint-red); }
.warning-box--red .warning-icon { color: var(--tint-red-fg); }
.warning-box--blue { background: var(--tint-blue); }
.warning-box--blue .warning-icon { color: var(--tint-blue-fg); }

.warning-box ol,
.warning-box ul {
  margin-top: 8px;
}

/* Sub-heading inside an article section */
.article-card h3 {
  margin: 28px 0 10px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.article-card .text-section + h3 {
  margin-top: 6px;
}

/* "Quick answer" summary at the top of an article */
.quick-answer {
  margin-bottom: 8px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quick-answer .label {
  margin-bottom: 8px;
}

.quick-answer ul {
  margin: 0;
}

/* Callout or quick answer opening an article: no top gap, normal gap below */
.article-card > .warning-box:first-child {
  margin-top: 0;
}

.article-card > .warning-box + .section-block,
.article-card > .quick-answer + .section-block {
  margin-top: 40px;
}

/* Related articles list at the end of an article */
.related {
  margin-top: 48px;
}

.related .label {
  margin-bottom: 12px;
}

.related .grid {
  gap: 12px;
}

.related .card {
  padding: 18px 20px;
}

.related .card__title {
  margin: 0;
}

.related .card__text {
  margin-top: 4px;
}

/* Callout on the support home page */
.home-callout {
  margin-top: 24px;
}

/* Notion-style inline code; long paths wrap instead of widening the page */
.article-card code,
.answer code {
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: rgba(135, 131, 120, 0.15);
  color: #c4403b;
  font-family: var(--mono);
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

.code-block {
  overflow-x: auto;
}

.code-block code {
  padding: 0;
  background: none;
}

.code-block code {
  font-family: var(--mono);
  color: var(--text);
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Tabs (segmented control) */
.tab-block + .tab-block {
  margin-top: 24px;
}

.tabs-container {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-hover);
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.tab:hover,
.tab:focus {
  color: var(--text);
  text-decoration: none;
}

.tab.current {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.08), 0 0 0 1px rgba(15, 15, 15, 0.04);
}

.divider {
  width: 100%;
  height: 1px;
  margin: 18px 0;
  background: var(--border);
}

.tab-block > .divider {
  margin: 16px 0 18px;
  background: transparent;
  height: 0;
}

.divider.wide {
  margin: 40px 0;
}

/* "Was this helpful?" feedback */
.consent,
.consent-panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.consent-panel {
  margin-top: 56px;
}

.consent h2,
.consent-panel h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

#consent-container,
#consent-summary {
  text-align: center;
}

.button-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.consent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.consent-button:hover {
  background: var(--bg-hover);
}

.button-container .consent-button:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.button-container .consent-button:first-child:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

#help-info {
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.88rem;
  line-height: 1.5;
}

#summary-text {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  opacity: 1;
  transition: opacity 2s ease;
}

#consent-summary {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid,
  .support-strip,
  .contact-layout,
  .not-found__grid {
    grid-template-columns: 1fr;
  }

  .not-found__grid {
    gap: 48px;
    text-align: center;
  }

  .not-found__copy .btn-row,
  .not-found__copy .chip-row {
    justify-content: center;
  }

  .not-found__copy .hero__lead {
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .container,
  .container--narrow {
    width: calc(100% - 32px);
  }

  .section {
    padding: 64px 0;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .hero--compact {
    padding: 44px 0 24px;
  }

  .brand__text {
    display: none;
  }

  .nav-link {
    padding: 0 10px;
  }

  .nav-link__label--wide,
  .nav-link--wide {
    display: none;
  }

  .nav-links .btn {
    margin-left: 4px;
  }

  .card,
  .info-card,
  .consent,
  .consent-panel {
    padding: 22px;
  }

  .contact-main {
    padding: 22px;
  }

  .contact-main__head .icon-tile {
    display: none;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .question.active .answer {
    padding: 0 4px 20px;
  }

  .button-container {
    flex-direction: column;
  }

  .consent-button {
    width: 100%;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .nav-link .material-symbols-outlined {
    display: none;
  }
}
