/* 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; }
}
