/* SQUAKE methodology library
   Design tokens: SQUAKE design system (light mode). Font: Approach (licensed, self-hosted).
   The shared header and footer use Inter, as on squake.earth (SIL Open Font License, see fonts/Inter-OFL.txt). */

@font-face { font-family: 'Approach'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/approach-400.woff2') format('woff2'); }
@font-face { font-family: 'Approach'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/approach-500.woff2') format('woff2'); }
@font-face { font-family: 'Approach'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/approach-600.woff2') format('woff2'); }
@font-face { font-family: 'Approach'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/approach-700.woff2') format('woff2'); }
@font-face { font-family: 'Approach'; font-weight: 900; font-style: normal; font-display: swap; src: url('fonts/approach-900.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #8055F8;
  --brand-faint: #F1EFFF;
  --brand-muted: #C5BFFD;
  --brand-matte: #8461C3;
  --bg: #FFFFFF;
  --bg-muted: #F2F2F4;
  --bg-emphasis: #1E1830;
  --bg-emphasis-2: #2A243A;
  --text: #4A4A4A;
  --text-muted: #858585;
  --text-emphasis: #6641CE;
  --text-inverted: #FFFFFF;
  --heading: #1E1830;
  --border: #E0E0E0;
  --border-brand: #E8DFFF;
  --ring: #8055F8;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 4px 16px rgba(30, 24, 48, 0.10);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-card: 12px;
  --font: 'Approach', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* squake.earth header and footer colours */
  --sq-purple: #7000FF;
  --sq-matte: #8263D5;
  --sq-text: #4A4A4A;
  --sq-gray-2: #EFEFEF;
  --sq-footer-muted: #8F86B8;
  --sq-footer-line: #44376C;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/24px var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--text-emphasis); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--heading); font-weight: 500; margin: 0; }
p { margin: 0 0 16px; }
button { font: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--brand); color: var(--text-inverted); padding: 8px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 8px; color: var(--text-inverted); }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section { padding-top: 48px; padding-bottom: 16px; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-emphasis); margin: 0 0 12px; }
.lead { font-size: 18px; line-height: 28px; color: var(--text); }

/* Shared SQUAKE header (copied from squake.earth so the library matches the other SQUAKE pages). */
.sq-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-family: var(--font-ui); }
.sq-header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1280px; height: var(--header-h); margin: 0 auto; padding: 0 20px; }
.sq-logo { display: inline-flex; color: var(--sq-purple); }
.sq-logo:hover { color: var(--sq-purple); }
.sq-logo-mark { width: auto; height: 26px; }
.sq-nav { display: none; align-items: center; gap: 4px; }
.sq-nav-group { position: relative; }
.sq-nav-button { display: flex; align-items: center; gap: 4px; padding: 8px 16px; border: 0; border-radius: 6px; background: none; color: var(--sq-text); font: 500 14px/20px var(--font-ui); cursor: pointer; }
.sq-nav-button:hover { color: var(--sq-purple); }
.sq-menu { position: absolute; left: 0; top: 100%; display: flex; flex-direction: column; gap: 4px; width: 256px; padding: 8px; border: 1px solid var(--sq-gray-2); border-radius: 12px; background: #FFFFFF; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); visibility: hidden; opacity: 0; transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.sq-nav-group:hover .sq-menu, .sq-nav-group.is-open .sq-menu { visibility: visible; opacity: 1; }
.sq-menu-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; color: var(--sq-text); font-size: 14px; line-height: 20px; text-decoration: none; }
.sq-menu-item:hover { background: var(--bg-muted); color: var(--sq-text); }
.sq-menu-item img, .sq-mobile-link img { width: 20px; height: 20px; flex: none; }
.sq-actions { display: none; align-items: center; gap: 12px; }
.sq-btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 20px; border-radius: 8px; font: 14px/20px var(--font-ui); text-decoration: none; white-space: nowrap; }
.sq-btn-outline { border: 1.5px solid var(--sq-matte); color: var(--sq-text); font-weight: 600; transition: background-color 0.15s; }
.sq-btn-outline:hover { background: var(--sq-gray-2); color: var(--sq-text); }
.sq-btn-gradient { border: 1px solid rgba(212, 208, 255, 0.8); background-image: linear-gradient(#A26CFF, #936CFF 29%, #8055F8); color: #FFFFFF; font-weight: 500; transition: filter 0.15s; }
.sq-btn-gradient:hover { color: #FFFFFF; filter: brightness(1.05); }
.sq-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--sq-text); cursor: pointer; }
.sq-menu-toggle svg { width: 24px; height: 24px; }
.sq-mobile-panel { max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 16px 20px; border-top: 1px solid var(--sq-gray-2); background: #FFFFFF; }
.sq-mobile-nav { display: flex; flex-direction: column; gap: 24px; }
.sq-mobile-label { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.sq-mobile-links { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.sq-mobile-link { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-radius: 8px; color: var(--sq-text); font-size: 16px; line-height: 24px; text-decoration: none; }
.sq-mobile-link:hover { color: var(--sq-purple); }
.sq-mobile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
@media (min-width: 768px) {
  .sq-nav, .sq-actions { display: flex; }
  .sq-menu-toggle, .sq-mobile-panel { display: none !important; }
}
@media (min-width: 1024px) {
  .sq-header-inner { padding: 0 40px; }
}

/* Library bar: the library's own name and travel types, under the shared header */
.lib-bar { border-top: 1px solid var(--sq-gray-2); border-bottom: 1px solid var(--border); background: var(--bg); }
.lib-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; }
.lib-title { color: var(--heading); font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lib-title:hover { color: var(--brand); }
.lib-nav { display: flex; gap: 4px; }
.lib-nav a { padding: 6px 12px; border-radius: var(--radius); color: var(--text); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; }
.lib-nav a:hover { background: var(--bg-muted); color: var(--heading); }
.lib-nav a[aria-current] { background: var(--brand-faint); color: var(--text-emphasis); font-weight: 600; }

/* Home */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(128, 85, 248, 0.35), transparent 60%), var(--bg-emphasis); color: var(--text-inverted); }
.hero-inner { padding-top: 64px; padding-bottom: 64px; }
.hero .eyebrow { color: var(--brand-muted); }
.hero h1 { color: var(--text-inverted); font-size: 36px; line-height: 44px; font-weight: 600; max-width: 720px; }
.hero .lead { color: var(--brand-muted); max-width: 640px; margin: 16px 0 32px; }
.search { position: relative; max-width: 640px; }
.search input { width: 100%; height: 56px; padding: 0 56px 0 52px; border: 1px solid transparent; border-radius: var(--radius-card); background: var(--bg); color: var(--heading); font: 400 16px var(--font); box-shadow: var(--shadow-elevated); appearance: none; }
.search input::placeholder { color: var(--text-muted); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(128, 85, 248, 0.35); }
.search-icon { position: absolute; left: 18px; top: 18px; color: var(--text); pointer-events: none; }
.search-hint { position: absolute; right: 16px; top: 16px; min-width: 24px; height: 24px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: 500 12px/22px var(--font); color: var(--text); text-align: center; background: var(--bg-muted); }

.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.activity-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.activity-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 24px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--brand-faint); color: var(--brand); }
.card-head h2 { font-size: 20px; line-height: 28px; }
.card-head h2 a { color: var(--heading); text-decoration: none; }
.card-head h2 a:hover { color: var(--brand); }
.card-text { font-size: 14px; line-height: 20px; margin-bottom: 16px; }
.method-list { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--border); }
.method-list li { border-bottom: 1px solid var(--border); }
.method-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 8px; margin: 0 -8px; border-radius: var(--radius); text-decoration: none; }
.method-list a:hover { background: var(--bg-muted); }
.m-name { color: var(--heading); font-weight: 500; }
.m-meta { color: var(--text); font-size: 13px; text-align: right; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; text-decoration: none; }
.no-results { margin-top: 24px; padding: 16px 24px; border-radius: var(--radius-card); background: var(--bg-muted); }

.terms { padding-bottom: 64px; }
.terms h2 { font-size: 24px; line-height: 32px; margin-bottom: 24px; }
.term-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.term { padding: 20px 24px; border-radius: var(--radius-card); background: var(--bg-muted); scroll-margin-top: calc(var(--header-h) + 24px); }
.term:target { background: var(--brand-faint); box-shadow: inset 0 0 0 1px var(--border-brand); }
.term dt { color: var(--heading); font-weight: 600; margin-bottom: 4px; }
.term dd { margin: 0; font-size: 14px; line-height: 20px; }

/* Shared page */
.page { padding-top: 24px; padding-bottom: 64px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 32px; }
.breadcrumbs a { color: var(--text); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs .sep { color: var(--border); }
.breadcrumbs [aria-current] { color: var(--heading); font-weight: 500; }
.page-head { max-width: 800px; margin-bottom: 24px; }
.page-head h1 { font-size: 36px; line-height: 44px; font-weight: 600; margin-bottom: 12px; }

.callout { display: flex; gap: 16px; align-items: flex-start; max-width: 800px; padding: 16px 24px; margin-bottom: 32px; border-radius: var(--radius-card); background: var(--brand-faint); border: 1px solid var(--border-brand); }
.callout > .icon { color: var(--brand); margin-top: 2px; }
.callout p { margin: 0; }
.callout .callout-title { color: var(--heading); font-size: 16px; line-height: 24px; font-weight: 600; margin-bottom: 4px; }
.method-notice { margin-bottom: 16px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.compare { border: 1px solid var(--border); border-radius: var(--radius-card); border-collapse: separate; border-spacing: 0; overflow: hidden; box-shadow: var(--shadow-card); }
.compare thead th { background: var(--bg-muted); color: var(--heading); font-size: 13px; line-height: 20px; font-weight: 600; text-align: left; padding: 12px 16px; white-space: nowrap; }
.compare th .term-link { display: inline-flex; vertical-align: -2px; margin-left: 2px; color: var(--text-emphasis); }
.compare tbody th, .compare tbody td { padding: 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); font-size: 14px; line-height: 20px; }
.compare tbody th { font-weight: 400; min-width: 200px; }
.compare tbody tr:hover { background: #FCFBFF; }
.row-link { display: inline-block; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--heading); text-decoration: none; }
.row-link:hover { color: var(--brand); text-decoration: underline; }
.row-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--text); }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 13px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.chip-brand { background: var(--brand-faint); color: var(--text-emphasis); }
.chip-neutral { background: var(--bg-muted); color: var(--heading); }
.chip-muted { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }

/* Method page */
.method-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr) 184px; gap: 48px; align-items: start; }
.side-nav, .toc { position: sticky; top: calc(var(--header-h) + 24px); }
.side-details summary { list-style: none; cursor: pointer; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-emphasis); margin-bottom: 12px; }
.side-details summary::-webkit-details-marker { display: none; }
.side-details ul { list-style: none; margin: 0 0 16px; padding: 0; border-left: 1px solid var(--border); }
.side-details li a { display: block; padding: 6px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text); font-size: 14px; line-height: 20px; text-decoration: none; }
.side-details li a:hover { color: var(--heading); background: var(--bg-muted); }
.side-details li a[aria-current] { border-left-color: var(--brand); color: var(--text-emphasis); font-weight: 600; background: var(--brand-faint); }
.side-compare { font-size: 14px; font-weight: 600; text-decoration: none; padding-left: 12px; }

.method { max-width: 760px; min-width: 0; }
.method-head h1 { font-size: 36px; line-height: 44px; font-weight: 600; }
.subtitle { font-size: 18px; line-height: 28px; color: var(--text); margin: 4px 0 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--brand); color: var(--text-inverted); }
.btn-primary:hover { background: var(--text-emphasis); color: var(--text-inverted); }
.btn-ghost { background: var(--bg); color: var(--heading); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-muted); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 40px; }
.facts > div { padding: 16px; border-radius: var(--radius-card); background: var(--bg-muted); }
.facts dt { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-emphasis); margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--heading); font-size: 15px; line-height: 22px; font-weight: 500; }

.doc-section { padding-top: 8px; margin-bottom: 40px; }
.doc-section h2 { font-size: 24px; line-height: 32px; margin-bottom: 16px; }
.doc-section h3 { font-size: 16px; line-height: 24px; font-weight: 600; margin-bottom: 12px; }
.bullets { margin: 0; padding: 0; list-style: none; }
.bullets li { position: relative; padding-left: 20px; margin-bottom: 12px; }
.bullets li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.section-note { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius); background: var(--bg-muted); font-size: 14px; line-height: 20px; }

.rating-list { margin: 0; border-top: 1px solid var(--border); }
.rating-list > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.rating-list dd { margin: 0; }
.tiers { list-style: none; margin: 0; padding: 0; counter-reset: tier; }
.tiers li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: var(--radius-card); }
.tiers li.tier-top { border-color: var(--border-brand); background: var(--brand-faint); }
.tiers li.tier-upcoming { border-style: dashed; border-color: var(--brand-muted); }
.tier-text p { margin: 0; }
.tier-name { color: var(--heading); font-weight: 600; margin-bottom: 2px !important; }

.inputs { font-size: 14px; line-height: 20px; }
.inputs thead th { text-align: left; font-size: 13px; font-weight: 600; color: var(--heading); padding: 0 12px 8px 0; border-bottom: 1px solid var(--border); }
.inputs tbody th, .inputs tbody td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); }
.inputs tbody th { width: 34%; color: var(--heading); font-weight: 600; }
.inputs tbody td:nth-child(2) { width: 28%; color: var(--heading); }

.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scope-col { padding: 20px; border-radius: var(--radius-card); border: 1px solid var(--border); }
.scope-in { border-color: var(--border-brand); background: #FCFBFF; }
.scope-col ul { list-style: none; margin: 0; padding: 0; }
.scope-col li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; font-size: 15px; line-height: 22px; }
.scope-col li:last-child { margin-bottom: 0; }
.scope-col li .icon { margin-top: 3px; }
.scope-in li .icon { color: var(--brand); }
.scope-out li .icon { color: var(--text); }

.source-list { margin: 0; padding: 0; list-style: none; counter-reset: src; }
.source-list li { position: relative; padding: 16px 16px 16px 52px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: var(--radius-card); counter-increment: src; }
.source-list li::before { content: counter(src); position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-faint); color: var(--text-emphasis); font-size: 12px; font-weight: 600; line-height: 24px; text-align: center; }
.source-list a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.source-list a:hover { text-decoration: underline; }
.source-domain { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--text); }
.source-list p { margin: 6px 0 0; font-size: 14px; line-height: 20px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.pager a { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-card); color: var(--heading); font-weight: 600; text-decoration: none; }
.pager a:hover { border-color: var(--brand); color: var(--text-emphasis); }
.pager small { display: block; font-size: 12px; font-weight: 500; color: var(--text); }
.pager-next { grid-column: 2; justify-content: flex-end; text-align: right; }
.pager-prev .icon, .pager-next .icon { color: var(--brand); }

.toc-title { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-emphasis); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--border); color: var(--text); font-size: 14px; line-height: 20px; text-decoration: none; }
.toc a:hover { color: var(--heading); }
.toc a.is-active { border-left-color: var(--brand); color: var(--text-emphasis); font-weight: 600; }

/* Shared SQUAKE footer (copied from squake.earth). Below 768px the columns stack; the rest matches the main site. */
.sq-footer { background: var(--bg-emphasis); border-top: 1px solid var(--sq-footer-line); color: var(--brand-muted); font-family: var(--font-ui); }
.sq-footer-inner { max-width: 1240px; margin: 0 auto; padding: 56px 40px 40px; }
.sq-footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.sq-footer-nav { display: contents; }
.sq-footer-brand { color: #FFFFFF; font-family: var(--font); font-weight: 900; font-size: 20px; line-height: 28px; letter-spacing: 0.02em; text-decoration: none; }
.sq-footer-brand:hover { color: #FFFFFF; }
.sq-footer-tagline { max-width: 300px; margin: 14px 0 0; color: var(--brand-muted); font-size: 13.5px; line-height: 1.6; }
.sq-footer-title { margin: 0; color: var(--sq-footer-muted); font-size: 10.5px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; }
.sq-footer-links { display: grid; gap: 10px; margin-top: 16px; }
.sq-foot-link { color: var(--brand-muted); font-size: 13.5px; line-height: 20px; text-decoration: none; transition: color 0.18s ease-out; }
.sq-foot-link:hover { color: #FFFFFF; }
.sq-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--sq-footer-line); }
.sq-footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.sq-footer-badges img { width: 50px; height: auto; border-radius: 4px; }
.sq-footer-badges span { color: var(--sq-footer-muted); font-size: 11px; letter-spacing: 0.06em; }
.sq-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; color: var(--sq-footer-muted); font-size: 12.5px; }
.sq-footer-legal .sq-foot-link { font-size: 12.5px; }
.sq-foot-button { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }

/* Responsive */
@media (max-width: 1023px) {
  .container { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 1199px) {
  .method-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
  .toc { display: none; }
}
@media (max-width: 899px) {
  .method-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side-nav { position: static; margin-bottom: 24px; }
  .side-details { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px 16px; }
  .side-details summary { margin: 0; display: flex; justify-content: space-between; }
  .side-details summary::after { content: '+'; font-size: 18px; line-height: 16px; }
  .side-details[open] summary::after { content: '\2212'; }
  .side-details[open] summary { margin-bottom: 12px; }
  .activity-grid, .term-grid { grid-template-columns: minmax(0, 1fr); }
  .activity-col { display: contents; }
  .activity-card[data-activity=flight] { order: 1; }
  .activity-card[data-activity=car] { order: 2; }
  .activity-card[data-activity=hotel] { order: 3; }
  .activity-card[data-activity=train] { order: 4; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare { border: 0; box-shadow: none; overflow: visible; }
  .compare thead { display: none; }
  .compare tbody tr { border: 1px solid var(--border); border-radius: var(--radius-card); margin-bottom: 12px; padding: 16px; box-shadow: var(--shadow-card); }
  .compare tbody tr:hover { background: var(--bg); }
  .compare tbody th, .compare tbody td { border: 0; padding: 0; }
  .compare tbody th { margin-bottom: 12px; min-width: 0; }
  .compare tbody td { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
  .compare tbody td::before { content: attr(data-label); font-size: 13px; font-weight: 600; color: var(--heading); }
  .compare .chip { white-space: normal; justify-self: start; }
}
@media (max-width: 767px) {
  .sq-footer-inner { padding: 48px 20px 32px; }
  .sq-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .sq-footer-intro { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .lib-bar-inner { flex-wrap: wrap; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
  .lib-nav { width: 100%; margin: 0 -12px; overflow-x: auto; }
  .lib-nav a { flex: 1; text-align: center; }
  .hero-inner { padding-top: 40px; padding-bottom: 40px; }
  .hero h1, .page-head h1, .method-head h1 { font-size: 30px; line-height: 38px; }
  .lead { font-size: 16px; line-height: 24px; }
  .search-hint { display: none; }
  .search input { padding-right: 16px; }
  .m-meta { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .scope-grid { grid-template-columns: minmax(0, 1fr); }
  .rating-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tiers li { flex-direction: column; gap: 8px; }
  .inputs thead { display: none; }
  .inputs, .inputs tbody, .inputs tr, .inputs th, .inputs td { display: block; width: auto !important; }
  .inputs tbody tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .inputs tbody th, .inputs tbody td { border: 0; padding: 0; }
  .inputs tbody td { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; margin-top: 6px; }
  .inputs tbody td:empty { display: none; }
  .inputs tbody td::before { content: attr(data-label); font-size: 13px; font-weight: 600; color: var(--heading); }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-next { grid-column: auto; }
  .compare tbody td { grid-template-columns: 104px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Print */
@media print {
  @page { size: A4; margin: 16mm; }
  body { font-size: 10.5pt; line-height: 1.45; color: #000; }
  .sq-header, .lib-bar, .sq-footer, .side-nav, .toc, .actions, .pager, .breadcrumbs, .skip-link, .search { display: none !important; }
  .container { max-width: none; padding: 0; }
  .page { padding: 0; }
  .method-grid { display: block; }
  .method { max-width: none; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lead, .hero .eyebrow { color: #000; }
  .facts > div, .callout, .scope-col, .source-list li, .tiers li, .compare tbody tr { break-inside: avoid; box-shadow: none; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .doc-section { margin-bottom: 18pt; }
  h2, h3, .doc-section h2 + p { break-after: avoid; }
  .source-list a::after { content: ' ' attr(href); font-weight: 400; font-size: 8.5pt; color: #4A4A4A; word-break: break-all; }
}
.table-note { margin: 16px 0 0; font-size: 14px; line-height: 22px; color: var(--text); }
.table-note-center { margin-top: 40px; text-align: center; }

/* ==========================================================================
   Library v2: search, integration guides, Help Centre links, motion and the pointer dot.
   These rules sit on top of the original rules above and override them where they overlap.
   Cloudflare caches this file for 24 hours and ignores query strings: after a change, rename the file
   (styles.v2.css -> styles.v3.css) and update the link tag on every page.
   ========================================================================== */

::selection { background: rgba(128, 85, 248, 0.22); }
mark { background: rgba(128, 85, 248, 0.2); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Purple pointer dot, as on the rest of squake.earth (created in site.v2.js, fine pointers only) */
@media (pointer: fine) {
  html[data-sq-dot], html[data-sq-dot] * { cursor: none !important; }
  html[data-sq-dot] [data-sq-native-cursor], html[data-sq-dot] [data-sq-native-cursor] * { cursor: auto !important; }
}

/* Header: shadow once the page scrolls, reading progress on method pages */
.sq-header { transition: box-shadow 0.2s ease; }
.sq-header.is-stuck { box-shadow: 0 1px 0 rgba(30, 24, 48, 0.06), 0 10px 24px -14px rgba(30, 24, 48, 0.25); }
.sq-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #A26CFF, var(--brand)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* Library bar: search button next to the travel types */
.lib-nav { margin-left: auto; }
.lib-search { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font: 500 14px/20px var(--font); text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
.lib-search:hover { border-color: var(--brand); color: var(--heading); box-shadow: 0 0 0 3px rgba(128, 85, 248, 0.12); }
.lib-search kbd, .search-status kbd, .sq-palette kbd { display: inline-block; min-width: 22px; padding: 0 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg-muted); color: var(--text); font: 500 12px/20px var(--font); text-align: center; }

/* Home: hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero::before { top: -240px; right: -120px; width: 620px; height: 620px; background: radial-gradient(closest-side, rgba(128, 85, 248, 0.38), transparent 72%); }
.hero::after { bottom: -300px; left: -160px; width: 560px; height: 560px; background: radial-gradient(closest-side, rgba(162, 108, 255, 0.2), transparent 70%); }
.search-icon { transition: color 0.15s ease; }
.search:focus-within .search-icon { color: var(--brand); }
.search-hint { transition: opacity 0.15s ease; }
.search:focus-within .search-hint { opacity: 0; }
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; margin: 16px 0 0; }
.type-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid rgba(197, 191, 253, 0.35); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: #FFFFFF; font: 500 14px/20px var(--font); cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.type-chip:hover { background: rgba(255, 255, 255, 0.14); }
.type-chip[aria-pressed="true"] { background: #FFFFFF; border-color: #FFFFFF; color: var(--heading); }
.type-chip .count { font-size: 12px; opacity: 0.7; }
@media (max-width: 420px) { .type-chips { gap: 6px; } .type-chip { gap: 5px; padding: 0 10px; font-size: 13px; } }
.hero-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 16px 0 0; color: var(--brand-muted); font-size: 14px; line-height: 20px; }
.hero-hint a { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #FFFFFF; font-size: 13px; text-decoration: none; transition: background-color 0.15s ease; }
.hero-hint a:hover { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
.hero .type-chip:focus-visible, .hero-hint a:focus-visible { outline-color: #FFFFFF; }

/* Home: search results */
.search-results { margin: 0 0 24px; }
.search-status { margin: 0 0 12px; color: var(--heading); font-size: 15px; line-height: 22px; }
.search-status .muted { color: var(--text-muted); }
.search-also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search-also .lbl { margin-right: 4px; color: var(--text-muted); font-size: 13px; }
.also-link { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--heading); font-size: 13px; line-height: 20px; text-decoration: none; transition: border-color 0.15s ease, background-color 0.15s ease; }
.also-link:hover { border-color: var(--brand); background: var(--brand-faint); color: var(--heading); }
.also-kind { color: var(--text-emphasis); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.no-results { border: 1px dashed var(--brand-muted); background: var(--brand-faint); }
.method-list li.is-top a { background: var(--brand-faint); box-shadow: inset 0 0 0 1px var(--border-brand); }

/* Home: cards, tags and the integration guides */
.activity-card { transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.activity-card:hover { border-color: var(--border-brand); box-shadow: var(--shadow-elevated); }
.method-list a { transition: background-color 0.15s ease; }
.m-name { transition: color 0.15s ease, transform 0.15s ease; }
.method-list a:hover .m-name { color: var(--text-emphasis); }
.card-link .icon { transition: transform 0.15s ease; }
.card-link:hover .icon { transform: translateX(3px); }
.m-tag { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; font: 600 11px/18px var(--font); letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; white-space: nowrap; }
.m-tag-default { background: var(--brand-faint); color: var(--text-emphasis); }
.m-tag-rec { background: var(--bg-emphasis); color: #FFFFFF; }
.tag-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin: 0 0 20px; font-size: 13px; line-height: 20px; }
.tag-legend .m-tag { margin: 0 8px 0 0; }
.guides { padding-bottom: 16px; }
.guides h2 { margin-bottom: 8px; font-size: 24px; line-height: 32px; }
.section-lead { max-width: 680px; margin-bottom: 24px; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); box-shadow: var(--shadow-card); color: var(--heading); text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.guide-card:hover { border-color: var(--brand); box-shadow: var(--shadow-elevated); color: var(--heading); }
.guide-title { display: block; font-size: 18px; line-height: 26px; font-weight: 600; }
.guide-sub { display: block; margin-top: 2px; color: var(--text); font-size: 13px; line-height: 18px; }
.guide-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--text-emphasis); font-size: 14px; font-weight: 600; }
.guide-go .icon { transition: transform 0.15s ease; }
.guide-card:hover .guide-go .icon { transform: translate(2px, -2px); }
.guide-extras { margin: 20px 0 0; font-size: 14px; line-height: 22px; }

/* Comparison pages: guide bar, API value column, sticky first column */
.guide-bar { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin: 0 0 24px; border: 1px solid var(--border-brand); border-radius: var(--radius-card); background: var(--brand-faint); }
.guide-bar-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius); background: var(--bg); color: var(--brand); }
.guide-bar-text { min-width: 0; }
.guide-bar-title { margin: 0; color: var(--heading); font-weight: 600; }
.guide-bar-sub { margin: 0; font-size: 14px; line-height: 20px; }
.guide-bar .btn { flex: none; margin-left: auto; }
.api-code, .doc-section code, .lead code, .help-copy code { padding: 1px 6px; border-radius: var(--radius-sm); background: var(--bg-muted); color: var(--heading); font: 500 13px/20px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.api-wrap { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
@media (max-width: 899px) { .api-wrap { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; } }
.compare .api-cell { white-space: nowrap; }
.guide-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; text-decoration: none; }
.guide-link:hover { text-decoration: underline; }
.compare { overflow: visible; }
.compare tbody th, .compare tbody td { background: var(--bg); }
.compare tbody tr:hover { background: transparent; }
.compare tbody tr:hover > * { background: #FCFBFF; }
.compare thead th:first-child { border-top-left-radius: 11px; }
.compare thead th:last-child { border-top-right-radius: 11px; }
.compare tbody tr:last-child > :first-child { border-bottom-left-radius: 11px; }
.compare tbody tr:last-child > :last-child { border-bottom-right-radius: 11px; }
@media (min-width: 900px) {
  .compare thead th:first-child, .compare tbody th { position: sticky; left: 0; z-index: 1; }
  .compare thead th:first-child { z-index: 2; }
  .table-wrap.is-scrolled .compare thead th:first-child, .table-wrap.is-scrolled .compare tbody th { box-shadow: 10px 0 12px -10px rgba(30, 24, 48, 0.3); }
}

/* Method pages */
.btn { transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.btn-primary:hover { box-shadow: 0 6px 16px -6px rgba(102, 65, 206, 0.6); }
.btn-ghost:hover { border-color: var(--brand-muted); }
.facts > div { border: 1px solid transparent; transition: border-color 0.2s ease, background-color 0.2s ease; }
.facts > div:hover { border-color: var(--border-brand); background: var(--brand-faint); }
.source-list li, .pager a { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.source-list li:hover { border-color: var(--border-brand); }
.pager a:hover { box-shadow: var(--shadow-card); }
.doc-section { position: relative; }
.anchor-link { position: absolute; left: -32px; top: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-sm); color: var(--text-muted); text-decoration: none; opacity: 0; transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease; }
.doc-section:hover > .anchor-link, .anchor-link:focus-visible { opacity: 1; }
.anchor-link:hover { color: var(--brand); background: var(--brand-faint); }
.toc a { transition: color 0.15s ease, border-color 0.15s ease; }
.toc-inline { margin: 0 0 32px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); }
.toc-inline summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: var(--text-emphasis); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; list-style: none; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: '+'; font-size: 18px; line-height: 16px; }
.toc-inline[open] summary::after { content: '\2212'; }
.toc-inline nav { display: grid; padding: 0 16px 12px; }
.toc-inline a { padding: 7px 0 7px 12px; border-left: 2px solid var(--border); color: var(--text); font-size: 14px; line-height: 20px; text-decoration: none; }
.toc-inline a.is-active { border-left-color: var(--brand); color: var(--text-emphasis); font-weight: 600; }
.link-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.link-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--heading); text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.link-card:hover { border-color: var(--brand); box-shadow: var(--shadow-card); color: var(--heading); }
.link-card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; line-height: 22px; font-weight: 600; }
.link-card-title .icon { color: var(--brand); transition: transform 0.15s ease; }
.link-card:hover .link-card-title .icon { transform: translate(2px, -2px); }
.link-card-sub { color: var(--text); font-size: 13px; line-height: 18px; }
pre.code { position: relative; margin: 0 0 4px; padding: 14px 56px 14px 16px; border-radius: var(--radius); background: var(--bg-emphasis); color: #EDE9FF; font: 400 13px/22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
pre.code code { padding: 0; background: none; color: inherit; font: inherit; }
.copy-btn { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(197, 191, 253, 0.25); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.06); color: #EDE9FF; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.copy-btn:hover { background: rgba(255, 255, 255, 0.16); }
.copy-btn[data-copied] { color: #B6F3D0; }
.copy-btn:focus-visible { outline-color: #FFFFFF; }
.related { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin: 20px 0 0; font-size: 14px; line-height: 22px; }
.related-label { color: var(--heading); font-weight: 600; }

/* Help Centre band at the end of every page */
.help-band { margin-top: 0; border-top: 1px solid var(--border-brand); background: var(--brand-faint); }
.help-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 56px; padding-bottom: 56px; }
.help-copy h2 { margin-bottom: 8px; font-size: 28px; line-height: 36px; }
.help-copy p { max-width: 460px; }
.help-form { position: relative; display: flex; gap: 8px; max-width: 460px; margin-top: 20px; }
.help-form input { flex: 1; min-width: 0; height: 48px; padding: 0 16px 0 44px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--heading); font: 400 16px var(--font); appearance: none; }
.help-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(128, 85, 248, 0.2); }
.help-form .btn { height: 48px; border-radius: var(--radius-card); }
.help-icon { position: absolute; left: 14px; top: 14px; color: var(--text); pointer-events: none; }
.help-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.help-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--border-brand); border-radius: var(--radius); background: var(--bg); color: var(--heading); font-weight: 500; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.help-links a:hover { border-color: var(--brand); box-shadow: var(--shadow-card); color: var(--heading); }
.help-links .icon { color: var(--brand); transition: transform 0.15s ease; }
.help-links a:hover .icon { transform: translateX(3px); }

/* Search panel (every page except the overview: / or Ctrl/Cmd+K) */
.sq-palette { display: none; flex-direction: column; width: min(640px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 96px)); margin: 12vh auto auto; padding: 0; border: 0; border-radius: 16px; background: var(--bg); color: var(--text); box-shadow: 0 24px 64px -12px rgba(30, 24, 48, 0.35), 0 0 0 1px rgba(30, 24, 48, 0.08); overflow: hidden; font-family: var(--font); }
.sq-palette[open] { display: flex; }
.sq-palette::backdrop { background: rgba(30, 24, 48, 0.45); }
.sq-palette-head { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.sq-palette-head .icon { color: var(--text); }
.sq-palette-input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; color: var(--heading); font: 400 17px var(--font); appearance: none; }
.sq-palette-input:focus, .sq-palette-input:focus-visible { outline: none; }
.sq-palette-list { flex: 1; margin: 0; padding: 8px; list-style: none; overflow-y: auto; }
.sq-group { padding: 12px 12px 4px; color: var(--text-emphasis); font: 600 11px/16px var(--font); letter-spacing: 0.08em; text-transform: uppercase; }
.sq-opt a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); color: var(--heading); text-decoration: none; }
.sq-opt[aria-selected="true"] a { background: var(--brand-faint); }
.sq-opt[aria-selected="true"] .icon { color: var(--brand); }
.sq-opt .icon { color: var(--text-muted); }
.sq-kind { flex: none; min-width: 76px; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--bg-muted); color: var(--heading); font: 600 11px/18px var(--font); letter-spacing: 0.04em; text-transform: uppercase; text-align: center; }
.sq-kind-m { background: var(--brand-faint); color: var(--text-emphasis); }
.sq-kind-d { background: var(--bg-emphasis); color: #FFFFFF; }
.sq-opt-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sq-opt-title { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sq-opt-sub { overflow: hidden; color: var(--text); font-size: 13px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.sq-empty { padding: 24px 16px; text-align: center; }
.sq-palette-foot { display: flex; gap: 16px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--bg-muted); color: var(--text); font-size: 12px; line-height: 20px; }
.sq-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--bg-emphasis); color: #FFFFFF; font: 500 14px/20px var(--font); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 0.2s ease, transform 0.2s ease; }
.sq-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (min-width: 1200px) {
  .toc-inline { display: none; }
}
@media (max-width: 899px) {
  .anchor-link { display: none; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .link-cards { grid-template-columns: minmax(0, 1fr); }
  .compare .api-cell { white-space: normal; }
}
@media (max-width: 639px) {
  .lib-search { order: 2; margin-left: auto; min-width: 40px; height: 40px; justify-content: center; padding: 0; }
  .lib-search span, .lib-search kbd { display: none; }
  .lib-nav { order: 3; margin-left: -12px; margin-right: -12px; }
  .guide-bar { flex-wrap: wrap; }
  .guide-bar .btn { width: 100%; justify-content: center; margin-left: 0; }
  .help-form { flex-direction: column; }
  .help-form .btn { justify-content: center; }
  .help-copy h2 { font-size: 24px; line-height: 32px; }
  .sq-palette { margin-top: 8vh; }
  .sq-kind { display: none; }
  .sq-palette-foot { display: none; }
}
@media (max-width: 420px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Motion: only for people who have not asked for less of it */
@keyframes sq-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sq-card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sq-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sq-pop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes sq-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-70px, 36px, 0) scale(1.14); } }
@keyframes sq-flash { from { background-color: rgba(128, 85, 248, 0.2); } to { background-color: transparent; } }
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: sq-drift 20s ease-in-out infinite alternate; }
  .hero::after { animation: sq-drift 26s ease-in-out infinite alternate-reverse; }
  .hero .eyebrow, .hero h1, .hero .lead, .hero .search, .hero .type-chips, .hero .hero-hint,
  .breadcrumbs, .page-head h1, .page-head .lead, .guide-bar, .method-head > *, .facts > div { animation: sq-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .hero h1 { animation-delay: 0.06s; }
  .hero .lead { animation-delay: 0.12s; }
  .hero .search { animation-delay: 0.18s; }
  .hero .type-chips { animation-delay: 0.24s; }
  .hero .hero-hint { animation-delay: 0.3s; }
  .page-head h1 { animation-delay: 0.06s; }
  .page-head .lead { animation-delay: 0.12s; }
  .guide-bar { animation-delay: 0.18s; }
  .method-head > :nth-child(2) { animation-delay: 0.06s; }
  .method-head > :nth-child(3) { animation-delay: 0.12s; }
  .method-head > :nth-child(4) { animation-delay: 0.18s; }
  .method-head > :nth-child(5) { animation-delay: 0.24s; }
  .activity-col:nth-child(1) > .activity-card:first-child, .activity-col:nth-child(2) > .activity-card:first-child { animation: sq-card-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s backwards; }
  .activity-col:nth-child(2) > .activity-card:first-child { animation-delay: 0.2s; }
  .activity-card:hover, .guide-card:hover { transform: translateY(-2px); }
  .method-list a:hover .m-name { transform: translateX(2px); }
  .reveal:not(.is-in) { opacity: 0; }
  .reveal.is-in { animation: sq-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--sq-delay, 0s) backwards; }
  .doc-section:target > h2, .term:target { animation: sq-flash 1.8s ease-out; }
  .sq-palette[open] { animation: sq-pop 0.18s ease-out; }
  .sq-palette[open]::backdrop { animation: sq-fade 0.18s ease-out; }
  @view-transition { navigation: auto; }
  .sq-header { view-transition-name: sq-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }
}

/* Print: the new interface stays out of the way */
@media print {
  .help-band, .guide-bar, .guides, .lib-search, .sq-progress, .toc-inline, .anchor-link, .sq-palette, .sq-toast, .type-chips, .hero-hint, .search-results, .link-cards, .copy-btn, .related, [data-sq-cursor] { display: none !important; }
  .reveal { opacity: 1 !important; animation: none !important; }
  pre.code { background: none; color: #000; border: 1px solid #999; padding: 8px 12px; }
  .m-tag { border: 1px solid #999; background: none; color: #000; }
}
@media (prefers-reduced-motion: no-preference) {
  .facts > div:nth-child(1) { animation-delay: 0.30s; }
  .facts > div:nth-child(2) { animation-delay: 0.34s; }
  .facts > div:nth-child(3) { animation-delay: 0.38s; }
  .facts > div:nth-child(4) { animation-delay: 0.42s; }
  .facts > div:nth-child(5) { animation-delay: 0.46s; }
  .facts > div:nth-child(6) { animation-delay: 0.50s; }
  .facts > div:nth-child(7) { animation-delay: 0.54s; }
  .facts > div:nth-child(8) { animation-delay: 0.58s; }
}
