/* Shared styles for the static pages (guides in /guides, privacy.html, terms.html). They load without the app, so crawlers and
   readers without JavaScript get the whole page. The header, footer and color tokens copy the app's
   (.app-bar, Footer.tsx and location-history.css) so the guides feel like part of the same site.
   theme-init.js sets data-theme when someone picked light or dark in the app. */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/nunito-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/playfair-display.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg-canvas: #faf8f5;
  --bg-surface: #ffffff;
  --bg-code: #f1ede6;
  --border-subtle: #ebe7df;
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #635d58;
  --accent-primary: #1d4ed8;
  --accent-primary-hover: #1e40af;
  --accent-primary-btn: #2563eb;
  --accent-primary-btn-hover: #1d4ed8;
  --accent-subtle: #eff6ff;
  --accent-border: #bfdbfe;
  --accent-terracotta: #9a3412;
  --bg-surface-elevated: #f5f3ef;
  --bg-surface-hover: #ebe7e1;
  --border-strong: #d5cfc4;
  --danger-text: #b91c1c;
  --danger-text-hover: #991b1b;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow-modal: 0 24px 48px -12px rgba(28, 25, 23, 0.18), 0 8px 16px -4px rgba(28, 25, 23, 0.08);
  --tile-blue: #1d4ed8;
  --tile-green: #047857;
  --tile-amber: #92400e;
  --tile-violet: #6d28d9;
  --tile-orange: #9a3412;
  --tile-rose: #be123c;
  --font-ui: "Nunito Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-canvas: #090d16;
    --bg-surface: #0f172a;
    --bg-code: #1e293b;
    --border-subtle: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-primary: #60a5fa;
    --accent-primary-hover: #93c5fd;
    --accent-primary-btn: #2563eb;
    --accent-primary-btn-hover: #1d4ed8;
    --accent-subtle: rgba(59, 130, 246, 0.12);
    --accent-border: rgba(59, 130, 246, 0.3);
    --accent-terracotta: #fb923c;
    --bg-surface-elevated: #1e293b;
    --bg-surface-hover: #253247;
    --border-strong: #475569;
    --danger-text: #f87171;
    --danger-text-hover: #fca5a5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-modal: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
    --tile-blue: #60a5fa;
    --tile-green: #34d399;
    --tile-amber: #fbbf24;
    --tile-violet: #a78bfa;
    --tile-orange: #fb923c;
    --tile-rose: #fb7185;
  }
}
:root[data-theme="dark"] {
  --bg-canvas: #090d16;
  --bg-surface: #0f172a;
  --bg-code: #1e293b;
  --border-subtle: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-primary: #60a5fa;
  --accent-primary-hover: #93c5fd;
  --accent-primary-btn: #2563eb;
  --accent-primary-btn-hover: #1d4ed8;
  --accent-subtle: rgba(59, 130, 246, 0.12);
  --accent-border: rgba(59, 130, 246, 0.3);
  --accent-terracotta: #fb923c;
  --bg-surface-elevated: #1e293b;
  --bg-surface-hover: #253247;
  --border-strong: #475569;
  --danger-text: #f87171;
  --danger-text-hover: #fca5a5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-modal: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  --tile-blue: #60a5fa;
  --tile-green: #34d399;
  --tile-amber: #fbbf24;
  --tile-violet: #a78bfa;
  --tile-orange: #fb923c;
  --tile-rose: #fb7185;
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html:has(.hub-toc) {
  scroll-padding-top: 4.5rem;
}
body {
  font-family: var(--font-ui);
  background: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Header: the app's top bar */
.site-header {
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  margin: 0 -6px;
  border-radius: 8px;
  text-decoration: none;
}
.brand:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 2px;
}
.brand-mark {
  display: block;
  flex-shrink: 0;
}
.brand-mark-outline,
.brand-mark-arrow {
  stroke: var(--accent-terracotta);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-mark-outline {
  fill: none;
}
.brand-mark-arrow {
  fill: var(--accent-terracotta);
}
.brand-mark-dot {
  fill: var(--text-primary);
}
.brand-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text-primary);
  transition: color 0.15s ease;
}
.brand:hover .brand-title {
  color: var(--accent-terracotta);
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  background: var(--accent-primary-btn);
  color: #ffffff;
  transition: background 0.15s ease;
}
.pill-btn:hover {
  background: var(--accent-primary-btn-hover);
  color: #ffffff;
}
.pill-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.pill-short {
  display: none;
}
.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Square icon buttons: the support heart and the menu, styled like the app bar's menu button: no box
   until hovered or open */
.icon-btn {
  --bar-fill: color-mix(in srgb, var(--text-primary) 10%, transparent);
  --bar-fill-hover: color-mix(in srgb, var(--text-primary) 6%, transparent);
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.icon-btn:hover {
  background: var(--bar-fill-hover);
  color: var(--text-primary);
}
.icon-btn.active {
  background: var(--bar-fill);
  color: var(--text-primary);
}
.icon-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.icon-btn svg,
.site-menu svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn svg .solid,
.site-menu svg .solid {
  fill: currentColor;
  stroke: none;
}
/* The heart keeps its color; the button around it behaves like the menu button */
.support-btn svg {
  color: var(--danger-text);
}
.menu-btn .icon-close,
.menu-btn.active .icon-open {
  display: none;
}
.menu-btn.active .icon-close {
  display: block;
}
/* The menu needs pages.js, which theme-init.js announces with the js class */
html:not(.js) .menu-anchor {
  display: none;
}

/* Header menu: the app's DataMenu (location-history-shell.css), a popover under its button and a
   full-screen page on phones */
.menu-anchor {
  position: relative;
}
.site-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 1100;
  width: 320px;
  max-height: calc(100dvh - 98px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-modal);
  font-family: var(--font-ui);
  color: var(--text-primary);
  overscroll-behavior: contain;
  animation: site-menu-in 140ms ease-out;
}
@keyframes site-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
/* The popover needs no head; on phones it is the page's title bar */
.site-menu-head {
  display: none;
}
.site-menu-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.site-menu-item:hover,
.site-menu-item:focus-visible {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  outline: none;
}
.site-menu-item:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent-primary);
}
.site-menu-item > svg {
  flex-shrink: 0;
  color: var(--text-muted);
}
.site-menu-sep {
  height: 1px;
  margin: 6px 4px;
  background: var(--border-subtle);
}
.site-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 10px;
}
.site-menu-row-label {
  font-size: 14px;
  font-weight: 700;
}
.site-menu-segmented {
  display: flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--bg-surface-elevated);
}
.site-menu-segmented button {
  height: 28px;
  padding: 0 11px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.site-menu-segmented button:hover {
  color: var(--text-primary);
}
.site-menu-segmented button.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.site-menu-segmented button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}
/* Guides and Support share the last line, centered as a pair */
.site-menu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 8px;
}
.site-menu-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-menu-foot-link:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}
.site-menu-foot-link:focus-visible,
.site-menu-close:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.site-menu-foot-link > svg.heart {
  color: var(--danger-text);
}

@media (max-width: 768px) {
  /* The bar's icon buttons grow to touch size, as in the app */
  .icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--text-primary);
  }
  .icon-btn.active {
    background: var(--bg-surface-elevated);
  }
  .site-menu-layer {
    position: fixed;
    inset: 0;
    z-index: 1200;
  }
  html.site-menu-open,
  html.site-menu-open body {
    overflow: hidden;
    overscroll-behavior: none;
  }
  /* A full-screen page over the site, its groups as cards */
  .site-menu {
    inset: 0;
    width: auto;
    height: 100%;
    max-height: none;
    gap: 14px;
    padding: 0 0 calc(28px + env(safe-area-inset-bottom, 0px));
    border: none;
    border-radius: 0;
    background: var(--bg-canvas);
    box-shadow: none;
    animation: site-menu-page 260ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .site-menu-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(72px, 1fr) minmax(0, auto) minmax(72px, 1fr);
    align-items: center;
    min-height: 56px;
    padding: env(safe-area-inset-top, 0px) max(6px, env(safe-area-inset-right)) 0
      max(6px, env(safe-area-inset-left));
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface);
  }
  .site-menu-title {
    grid-column: 2;
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
  }
  .site-menu-close {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
  }
  .site-menu-head + .site-menu-group {
    margin-top: 2px;
  }
  .site-menu-group,
  .site-menu-foot {
    margin: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  }
  .site-menu-group {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: var(--bg-surface);
  }
  .site-menu-group > * + * {
    box-shadow: inset 0 1px 0 var(--border-subtle);
  }
  .site-menu-sep {
    display: none;
  }
  .site-menu-item {
    gap: 14px;
    min-height: 54px;
    padding: 8px 14px;
    border-radius: 0;
    font-size: 15.5px;
  }
  .site-menu-row {
    min-height: 56px;
    padding: 0 14px;
  }
  .site-menu-row-label {
    font-size: 15.5px;
  }
  .site-menu-segmented button {
    height: 34px;
    padding: 0 13px;
    font-size: 14px;
  }
  .site-menu-foot-link {
    height: 44px;
    padding: 0 10px;
    font-size: 15px;
  }
}
@keyframes site-menu-page {
  from {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu {
    animation: none !important;
  }
}

/* Article */
.guide {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 24px 3.5rem;
  flex: 1;
}
.crumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.crumbs ol > li {
  display: inline-flex;
  align-items: center;
  font-size: inherit;
  color: inherit;
  margin: 0;
}
.crumbs ol > li + li::before {
  content: "/" / "";
  color: var(--text-muted);
  margin-inline-end: 0.35rem;
}
.crumbs a {
  color: inherit;
  text-underline-offset: 2px;
}
.crumbs a:hover {
  color: var(--text-primary);
}
.crumbs a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: 3px;
  position: relative;
  z-index: 1;
}
.crumbs a[aria-current="page"] {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
}
@media (forced-colors: active) {
  .crumbs a[aria-current="page"] {
    text-decoration: underline;
  }
}
h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 0.85rem;
}
.lede {
  font-size: 1.08rem;
  color: var(--text-secondary);
}
.updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-wrap: balance;
  margin: 2.5rem 0 0.75rem;
}
h3 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
  margin: 1.4rem 0 0.3rem;
}
p,
li {
  font-size: 1rem;
  color: var(--text-secondary);
  text-wrap: pretty;
}
p + p {
  margin-top: 0.7rem;
}
ul {
  padding-left: 1.25rem;
}
li + li {
  margin-top: 0.45rem;
}
li::marker {
  color: var(--text-muted);
}
strong {
  font-weight: 700;
  color: var(--text-primary);
}
a {
  color: var(--accent-primary);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent-primary-hover);
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: var(--bg-code);
  padding: 0.08rem 0.35rem;
  border-radius: 5px;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.callout {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
}
.callout p {
  color: var(--text-primary);
}
.callout p + p {
  margin-top: 0.55rem;
}

.download-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.download-action .pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}
.download-action .pill-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Responsive data tables: sticky headers on desktop, stacked cards inside narrow containers */
.table-wrapper {
  margin-top: 1.25rem;
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(560px, 80vh);
  container-type: inline-size;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.table-wrapper:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.formats-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.94rem;
  text-align: left;
  --label-1: "Source";
  --label-2: "Files";
  --label-3: "What it adds";
}
.formats-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.formats-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}
.formats-table thead th {
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.formats-table tbody th,
.formats-table tbody td {
  padding: 0.8rem 0.9rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.formats-table tbody tr:last-child th,
.formats-table tbody tr:last-child td {
  border-bottom: none;
}
.formats-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface);
  white-space: nowrap;
}
@container (width < 560px) {
  .table-wrapper {
    max-block-size: none;
    border: none;
    background: transparent;
    overflow: visible;
  }
  .formats-table,
  .formats-table thead,
  .formats-table tbody,
  .formats-table tr,
  .formats-table th,
  .formats-table td {
    display: block;
  }
  .formats-table thead {
    display: none;
  }
  .formats-table tr {
    margin-block-end: 0.85rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-surface);
    overflow: hidden;
  }
  .formats-table tr:last-child {
    margin-block-end: 0;
  }
  .formats-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    padding: 0.7rem 0.9rem;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-subtle);
    white-space: normal;
  }
  .formats-table tbody td {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .formats-table tbody td:last-child {
    border-bottom: none;
  }
  .formats-table td:nth-child(2)::before {
    content: var(--label-2) ": ";
    font-weight: 700;
    color: var(--text-primary);
  }
  .formats-table td:nth-child(3)::before {
    content: var(--label-3) ": ";
    font-weight: 700;
    color: var(--text-primary);
  }
}

/* Numbered steps, each with its screenshot */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 0 1.5rem 3rem;
  border-top: 1px solid var(--border-subtle);
}
.steps > li:first-child {
  border-top: none;
  padding-top: 0.5rem;
}
.steps > li + li {
  margin-top: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-primary-btn);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps > li:first-child::before {
  top: 0.4rem;
}
.steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
}
.path {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

figure {
  margin: 1.5rem 0;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}
figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
/* Phone screenshots stay narrow so a whole screen fits without scrolling */
.shot {
  max-width: 280px;
  margin: 1rem 0 0;
}
.shot img {
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 250px));
  gap: 0.85rem;
  align-items: start;
  margin-top: 1rem;
}
.shot-pair .shot {
  margin: 0;
}
/* Settings lists have small text, so these pairs stack on phones instead of shrinking to half width */
@media (max-width: 560px) {
  .shot-pair.stack-narrow {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cta-row {
  margin-top: 2.75rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-row p {
  font-weight: 700;
  color: var(--text-primary);
}
.cta-row .pill-btn {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.related {
  margin-top: 2.25rem;
}
.related h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

/* Footer: the app's Footer.tsx (location-history-shell.css). Brand and year, the links, then Support
   as a pill; the disclaimer centered on its own row. On narrow screens Support moves up beside the
   brand and the links spread across the row below, so the footer stays two short rows. */
.site-footer {
  margin-top: auto;
  padding: 28px clamp(16px, 5vw, 64px) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.5;
}
.site-footer-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand links support";
  align-items: center;
  column-gap: 28px;
  max-width: 1152px;
  margin-inline: auto;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.site-footer .site-footer-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  font-size: inherit;
  white-space: nowrap;
}
.site-footer-mark {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}
.site-footer-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.site-footer-sep {
  width: 1px;
  height: 16px;
  margin-inline: 2px;
  background: var(--border-strong);
}
.site-footer-year {
  font-size: 13.5px;
  color: var(--text-muted);
}
.site-footer-links {
  grid-area: links;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 28px;
  font-weight: 600;
}
.site-footer-links a,
.site-footer-support {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}
.site-footer-links a:hover,
.site-footer-links a[aria-current="page"] {
  color: var(--accent-terracotta);
}
.site-footer-support {
  grid-area: support;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--accent-terracotta) 11%, var(--bg-canvas));
  color: var(--accent-terracotta);
  font-weight: 700;
  white-space: nowrap;
}
/* Restates the color so the global a:hover blue doesn't win */
.site-footer-support:hover {
  background: color-mix(in srgb, var(--accent-terracotta) 18%, var(--bg-canvas));
  color: var(--accent-terracotta);
}
.site-footer-support svg {
  display: block;
  flex-shrink: 0;
  fill: currentColor;
}
.site-footer-links a:focus-visible,
.site-footer-support:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 2px;
}
.site-footer .site-footer-disclaimer {
  max-width: 1152px;
  margin: 16px auto 0;
  text-align: center;
  text-wrap: balance;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}
@media (pointer: coarse) {
  .site-footer-support {
    min-height: 44px;
  }
}
@media (max-width: 720px) {
  .site-footer {
    padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .site-footer-main {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand support"
      "links links";
    column-gap: 12px;
    padding-bottom: 6px;
  }
  .site-footer-links {
    justify-self: stretch;
    justify-content: space-between;
    column-gap: 16px;
  }
  .site-footer .site-footer-disclaimer {
    margin-top: 12px;
  }
}
/* The pill's tint and the current page's color drop out in forced colors: keep a border and an underline */
@media (forced-colors: active) {
  .site-footer-support {
    border: 1px solid;
  }
  .site-footer-links a[aria-current="page"] {
    text-decoration: underline;
  }
}
/* Too narrow for the brand and Support side by side: everything stacks, centered */
@media (max-width: 359px) {
  .site-footer-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "links"
      "support";
    justify-items: center;
    padding-bottom: 12px;
  }
  .site-footer-links {
    justify-content: center;
  }
}

@media (pointer: coarse) {
  .icon-btn::after {
    content: "";
    position: absolute;
    inset: -4px;
  }
  .pill-btn {
    min-block-size: 40px;
  }
  .header-end {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .brand-title {
    font-size: 17px;
  }
  .guide {
    padding: 1.75rem 16px 2.5rem;
  }
  .steps > li {
    padding-left: 2.6rem;
  }
  .steps > li::before {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.88rem;
  }
  .shot {
    max-width: 100%;
  }
  .shot-pair {
    gap: 0.6rem;
  }
  .cta-row {
    padding: 1.15rem;
  }
}

@media (max-width: 400px) {
  .pill-long {
    display: none;
  }
  .pill-short {
    display: inline;
  }
  .header-end {
    gap: 8px;
  }
}

/* Guides landing page: editorial index with sticky chapter rail and mobile quick-start grid */
.guide.hub {
  max-width: 1060px;
  padding: 2.5rem 32px 4rem;
}
.hub-head {
  max-width: 660px;
  padding-bottom: 1.85rem;
}
.hub-layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 3.25rem;
  align-items: start;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.15rem;
}
.hub-rail {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.hub-rail-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.hub-toc-links {
  scroll-target-group: auto;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border-inline-start: 1px solid var(--border-subtle);
}
.hub-toc-links a {
  display: flex;
  align-items: center;
  min-block-size: 32px;
  padding: 0.3rem 0 0.3rem 0.85rem;
  margin-inline-start: -1px;
  border-inline-start: 2px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.hub-toc-links a:hover {
  color: var(--text-primary);
}
.hub-toc-links a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
/* :is() keeps the rule valid in browsers that don't yet recognize :target-current */
.hub-toc-links a:is(:target-current, .target-current) {
  color: var(--text-primary);
  font-weight: 800;
  border-inline-start-color: var(--accent-terracotta);
}
html:not(.js) .hub-filter {
  display: none;
}
.hub-filter {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.hub-filter-segmented {
  display: flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}
.hub-filter-segmented button {
  flex: 1;
  min-block-size: 30px;
  padding: 0 8px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.hub-filter-segmented button:hover {
  color: var(--text-primary);
}
.hub-filter-segmented button.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.hub-filter-segmented button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}
.hub-rail-cta {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.hub-rail-cta p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.hub-rail-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.hub-rail-cta a:hover {
  text-decoration: underline;
}

.hub-main {
  min-inline-size: 0;
}
.hub-main section {
  margin-top: 3rem;
}
.hub-main section:first-child {
  margin-top: 0;
}
.hub-main section[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}
.hub-main section h2 {
  margin: 0 0 0.25rem;
}
.hub-intro {
  margin-bottom: 1.15rem;
}

.hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--tile) 13%, transparent);
  color: var(--tile);
}
.hub-icon svg,
.hub-arrow svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.hub-arrow {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition:
    transform 0.15s ease,
    color 0.15s ease;
}

.hub-card[data-tone="green"],
.hub-row[data-tone="green"],
.hub-feature[data-tone="green"] {
  --tile: var(--tile-green);
}
.hub-card[data-tone="amber"],
.hub-row[data-tone="amber"],
.hub-feature[data-tone="amber"] {
  --tile: var(--tile-amber);
}
.hub-card[data-tone="violet"],
.hub-row[data-tone="violet"],
.hub-feature[data-tone="violet"] {
  --tile: var(--tile-violet);
}
.hub-card[data-tone="orange"],
.hub-row[data-tone="orange"],
.hub-feature[data-tone="orange"] {
  --tile: var(--tile-orange);
}
.hub-card[data-tone="rose"],
.hub-row[data-tone="rose"],
.hub-feature[data-tone="rose"] {
  --tile: var(--tile-rose);
}

/* Section 1: Quick-start / import cards */
.hub-start-wrap {
  container: hub-start / inline-size;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}
.hub-card {
  --tile: var(--tile-blue);
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.hub-card[hidden] {
  display: none;
}
.hub-card:hover {
  color: inherit;
  border-color: color-mix(in srgb, var(--tile) 45%, var(--border-subtle));
  box-shadow: 0 10px 28px -14px rgba(28, 25, 23, 0.28);
  transform: translateY(-2px);
}
.hub-card:hover .hub-arrow {
  transform: translateX(3px);
  color: var(--text-primary);
}
.hub-card:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.hub-card-top .hub-arrow {
  display: none;
}
.hub-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-inline-size: 0;
}
.hub-title {
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}
.hub-title-short,
.hub-meta-short {
  display: none;
}
.hub-text {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.hub-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.35rem;
}
.hub-meta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Subgrid keeps sibling card titles, descriptions, and footers aligned on wider screens */
@container hub-start (inline-size >= 480px) {
  @supports (grid-template-rows: subgrid) {
    .hub-card {
      grid-row: span 3;
      grid-template-rows: subgrid;
    }
  }
  .hub-start-grid[data-odd="true"] .hub-card:not([hidden]):last-child {
    grid-column: 1 / -1;
    grid-row: auto;
    display: flex;
    align-items: center;
    gap: 1.1rem;
  }
  .hub-start-grid[data-odd="true"] .hub-card:not([hidden]):last-child .hub-body {
    flex: 1;
  }
  .hub-start-grid[data-odd="true"] .hub-card:not([hidden]):last-child .hub-meta-row {
    padding-top: 0;
    flex-shrink: 0;
  }
}

/* Mobile quick-start 2x2 tile grid so all 4 starting guides fit above the fold */
@container hub-start (inline-size < 480px) {
  .hub-start-grid:not([data-filtered="true"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .hub-start-grid:not([data-filtered="true"]) .hub-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.9rem;
    border-radius: 14px;
  }
  .hub-start-grid:not([data-filtered="true"]) .hub-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .hub-start-grid:not([data-filtered="true"]) .hub-icon svg {
    width: 18px;
    height: 18px;
  }
  .hub-start-grid:not([data-filtered="true"]) .hub-card-top .hub-arrow {
    display: inline-flex;
  }
  .hub-start-grid:not([data-filtered="true"]) .hub-arrow-desktop {
    display: none;
  }
  .hub-start-grid:not([data-filtered="true"]) .hub-title-full,
  .hub-start-grid:not([data-filtered="true"]) .hub-meta-full,
  .hub-start-grid:not([data-filtered="true"]) .hub-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .hub-start-grid:not([data-filtered="true"]) .hub-title-short {
    display: inline;
    font-size: 0.95rem;
    line-height: 1.25;
  }
  .hub-start-grid:not([data-filtered="true"]) .hub-meta-row {
    margin-top: auto;
    padding-top: 0;
  }
  .hub-start-grid:not([data-filtered="true"]) .hub-meta-short {
    display: inline;
    font-size: 0.78rem;
    font-weight: 600;
  }
  .hub-start-grid[data-filtered="true"] {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .hub-start-grid[data-filtered="true"] .hub-card:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
  }
}

.hub-main [hidden] {
  display: none !important;
}

/* Ultra-narrow screens (<= 340px viewport): single column so nothing clips */
@container hub-start (inline-size < 315px) {
  .hub-start-grid:not([data-filtered="true"]) {
    grid-template-columns: 1fr;
  }
}

/* Section 2: Grouped editorial list for Timeline care guides */
.hub-list {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: clip;
}
.hub-row {
  --tile: var(--tile-blue);
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.15rem;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--border-subtle);
  transition: background-color 0.14s ease;
}
.hub-row:first-child {
  border-top: none;
}
.hub-row:hover {
  background: var(--bg-surface-elevated);
  color: inherit;
}
.hub-row:hover .hub-arrow {
  transform: translateX(3px);
  color: var(--text-primary);
}
.hub-row:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: -2px;
  position: relative;
  z-index: 1;
}
.hub-row .hub-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.hub-row-body {
  flex: 1;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hub-row-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}
.hub-row-text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
.hub-row-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.hub-row-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Section 3: Full-width editorial feature card with real Year in Dots preview */
.hub-feature-wrap {
  container: hub-feature / inline-size;
}
.hub-feature {
  --tile: var(--tile-violet);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 46%);
  gap: 1.5rem;
  align-items: center;
  padding: 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.hub-feature:hover {
  color: inherit;
  border-color: color-mix(in srgb, var(--tile) 45%, var(--border-subtle));
  box-shadow: 0 10px 28px -14px rgba(28, 25, 23, 0.28);
  transform: translateY(-2px);
}
.hub-feature:hover .hub-arrow {
  transform: translateX(3px);
}
.hub-feature:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.hub-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-inline-size: 0;
}
.hub-feature-copy .hub-title {
  font-size: 1.15rem;
  margin-top: 0.15rem;
}
.hub-read-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
}
.hub-read-cue .hub-arrow {
  color: inherit;
}
.hub-feature-media {
  display: block;
  border-radius: 10px;
  overflow: clip;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
}
.hub-feature-media img {
  display: block;
  width: 100%;
  height: auto;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hub-feature-media {
    border-color: var(--border-strong);
  }
  :root:not([data-theme="light"]) .hub-feature-media img {
    filter: brightness(0.92) contrast(1.03);
  }
}
:root[data-theme="dark"] .hub-feature-media {
  border-color: var(--border-strong);
}
:root[data-theme="dark"] .hub-feature-media img {
  filter: brightness(0.92) contrast(1.03);
}

@container hub-feature (inline-size < 540px) {
  .hub-feature {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.1rem;
  }
}

/* Tablet and below: rail collapses into sticky horizontal jump bar */
@media (max-width: 959px) {
  .guide.hub {
    max-width: 780px;
    padding: 1.85rem 24px 3rem;
  }
  .hub-head {
    padding-bottom: 1.25rem;
  }
  .hub-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    border-top: none;
    padding-top: 0;
  }
  .hub-rail {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-inline: -24px;
    padding: 0 24px;
    background: color-mix(in srgb, var(--bg-canvas) 92%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }
  .hub-rail-label,
  .hub-rail-cta {
    display: none;
  }
  .hub-toc-links {
    flex-direction: row;
    align-items: stretch;
    gap: 0.25rem;
    border-inline-start: none;
  }
  .hub-toc-links a {
    min-block-size: 46px;
    padding: 0.45rem 0.65rem;
    margin-inline-start: 0;
    margin-block-end: -1px;
    border-inline-start: none;
    border-block-end: 2px solid transparent;
    white-space: nowrap;
  }
  .hub-toc-links a:first-child {
    padding-inline-start: 0.1rem;
  }
  .hub-toc-links a:is(:target-current, .target-current) {
    border-inline-start-color: transparent;
    border-block-end-color: var(--accent-terracotta);
  }
  .hub-filter {
    padding: 0.4rem 0;
    border-top: none;
    flex-shrink: 0;
  }
  .hub-filter-segmented {
    width: auto;
  }
  .hub-filter-segmented button {
    flex: initial;
    padding: 0 11px;
  }
}

/* Phone: slim sticky section bar + non-sticky full-width device filter + compact list rows */
@media (max-width: 639px) {
  .guide.hub {
    padding: 1.25rem 16px 2.5rem;
  }
  .hub-head {
    padding-bottom: 0.9rem;
  }
  .hub-head .crumbs {
    margin-bottom: 0.6rem;
  }
  .hub-head .lede {
    font-size: 0.98rem;
  }
  .hub-layout {
    gap: 1.1rem;
  }
  .hub-rail {
    display: contents;
  }
  .hub-toc {
    position: sticky;
    top: 0;
    z-index: 10;
    margin-inline: -16px;
    padding: 0 16px;
    background: color-mix(in srgb, var(--bg-canvas) 94%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }
  .hub-toc-links {
    overflow-x: auto;
    gap: 0.15rem;
  }
  .hub-toc-links a {
    min-block-size: 44px;
    padding: 0.4rem 0.6rem;
    font-size: 0.88rem;
  }
  .hub-toc-links a:first-child {
    padding-inline-start: 0.1rem;
  }
  .hub-filter {
    padding: 0;
  }
  .hub-filter-segmented {
    width: 100%;
  }
  .hub-filter-segmented button {
    flex: 1;
    min-block-size: 36px;
  }
  .hub-main section {
    margin-top: 2.25rem;
  }
  .hub-main section h2 {
    font-size: 1.2rem;
  }
  .hub-intro {
    font-size: 0.94rem;
    margin-bottom: 0.9rem;
  }
  .hub-row {
    align-items: flex-start;
    padding: 0.95rem 1rem;
    gap: 0.85rem;
  }
  .hub-row .hub-icon {
    width: 38px;
    height: 38px;
    margin-top: 0.1rem;
  }
  .hub-row-meta {
    display: none;
  }
  .hub-row-end {
    align-self: center;
  }
}

/* Very narrow phones (320px-360px): keep all 3 jump links comfortably visible without clipping */
@media (max-width: 375px) {
  .hub-toc {
    padding: 0 12px;
  }
  .hub-toc-links {
    gap: 0.1rem;
  }
  .hub-toc-links a {
    font-size: 0.82rem;
    padding: 0.4rem 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-card,
  .hub-row,
  .hub-feature,
  .hub-arrow {
    transition: none;
  }
  .hub-card:hover,
  .hub-feature:hover,
  .hub-card:hover .hub-arrow,
  .hub-row:hover .hub-arrow,
  .hub-feature:hover .hub-arrow {
    transform: none;
  }
}

/* Privacy policy and terms */
.legal .callout {
  margin: 1.25rem 0 0.5rem;
  color: var(--text-primary);
  font-size: 0.98rem;
}
.legal section h2 {
  font-size: 1.12rem;
  margin: 2rem 0 0.5rem;
}
.legal p + ul,
.legal ul + p {
  margin-top: 0.7rem;
}

.nowrap {
  white-space: nowrap;
}

/* 404 Not Found Page */
.not-found {
  min-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem 4rem;
  max-width: 640px;
  margin: 0 auto;
}
.not-found-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  margin-bottom: 1.75rem;
}
.not-found-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
  animation: not-found-pulse 3s ease-in-out infinite;
}
@keyframes not-found-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.4;
  }
}
.not-found-icon {
  position: relative;
  width: 72px;
  height: 72px;
}
.not-found-ring {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}
.not-found-pin {
  fill: none;
  stroke: var(--accent-primary);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.not-found-arrow {
  fill: var(--accent-primary);
  stroke: var(--accent-primary);
  stroke-linejoin: round;
}
.not-found-dot {
  fill: var(--accent-terracotta);
}
.not-found-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  margin-bottom: 1.15rem;
}
.not-found-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}
.not-found-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 480px;
}
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.not-found-primary {
  height: 42px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: 10px;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn-secondary:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}
.btn-secondary svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.not-found-quicklinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.not-found-quicklinks a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.not-found-quicklinks a:hover {
  color: var(--text-primary);
}
@media (max-width: 480px) {
  .not-found-actions {
    flex-direction: column;
    width: 100%;
  }
  .not-found-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .not-found-halo {
    animation: none;
  }
}
