/* Knotteed website preview (W-024). Shared styles for EN and es-MX pages.
   System type only. No external fonts, no tracking, no network requests. */

:root {
  --navy: #132443;
  --panel: #203D50;
  --ivory: #F9F6ED;
  --paper: #FFFFFF;
  --ink: #1B2A3A;
  --ink-2: #33414F;
  --muted: #56626D;
  --mint: #A9E4CA;
  --mint-hover: #C4EEDB;
  --green: #176452;
  --green-dark: #0F4E40;
  --capture: #E6EFDF;
  --follow: #E9E6DB;
  --search: #EAF0ED;
  --quote: #EBF1E9;
  --line: #D9D6CB;
  --line-strong: #AEB4AE;
  --on-navy: #F7F3EA;
  --on-navy-dim: rgba(247, 243, 234, .84);
  --rule-navy: rgba(247, 243, 234, .24);
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1280px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
}

html { font-size: 106.25%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* iPhone Safari: follow the reader's Dynamic Type setting. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
/* Homepage: navy canvas so the iPhone status-bar area and top overscroll match the hero. */
html:has(body.home), body.home { background: var(--navy); }
body.home main { background: var(--ivory); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--green-dark); }

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

/* Focus: always visible, mint on navy, green on ivory. */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.on-navy :focus-visible, .band-reflect :focus-visible { outline-color: var(--mint); }

.skip {
  position: absolute; left: var(--gutter); top: -200px; z-index: 10;
  background: var(--paper); color: var(--ink); font-weight: 700;
  padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-head { background: var(--ivory); color: var(--ink); }
.site-head.on-navy { background: var(--navy); color: var(--on-navy); }
.head-in {
  max-width: var(--max); margin: 0 auto;
  padding: 14px var(--gutter) 0;
}
.head-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-strong);
}
.on-navy .head-bar { border-bottom-color: var(--rule-navy); }
.brand {
  display: inline-flex; align-items: center; gap: 12px; margin-right: auto;
  min-height: 48px; color: inherit; text-decoration: none;
  font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em;
}
.brand:hover { color: inherit; }
.brand img { width: 44px; height: 44px; border-radius: 10px; display: block; }
.site-nav { display: flex; align-items: center; gap: 0 clamp(4px, 2.4vw, 36px); }
.site-nav a, .lang a, .lang span[aria-current] {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 8px;
  color: inherit; text-decoration: none; font-size: 1.1rem;
}
.site-nav a:hover { text-decoration: underline; color: inherit; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.lang { display: inline-flex; align-items: center; margin-left: clamp(0px, 3vw, 64px); color: var(--green); font-weight: 700; }
.on-navy .lang { color: var(--mint); }
.lang a, .lang span[aria-current] { font-size: 1.05rem; padding: 0 4px; }
.lang a:hover { text-decoration: underline; color: inherit; }
.lang span[aria-current] { opacity: .62; }
.lang .sep { opacity: .7; }

@media (max-width: 560px) {
  .hide-narrow { display: none !important; }
}
@media (max-width: 400px) {
  .brand { font-size: 1.25rem; gap: 9px; }
  .brand img { width: 36px; height: 36px; border-radius: 8px; }
  .site-nav a { font-size: 1rem; padding: 0 6px; }
  .lang { margin-left: 0; }
}

/* ---------- Homepage hero ---------- */
.hero { background: var(--navy); color: var(--on-navy); }
.hero-in {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 3.4vw, 32px) var(--gutter) clamp(44px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
@media (max-width: 899px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
}
.eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green);
}
.on-navy .eyebrow, .band-reflect .eyebrow { color: var(--mint); }
.hero h1 {
  font-size: clamp(3rem, 7.2vw, 6.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.02;
  margin: .45em 0 .42em; hyphens: manual;
}
.hero-text { font-size: clamp(1.15rem, 1.75vw, 1.55rem); line-height: 1.5; color: var(--on-navy-dim); max-width: 32ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: clamp(28px, 3.4vw, 44px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: .65em 1.5em; border-radius: 999px;
  background: var(--mint); color: var(--navy); font-weight: 700; font-size: 1.15rem; text-decoration: none;
}
.btn:hover { background: var(--mint-hover); color: var(--navy); }
.link-strong {
  display: inline-flex; align-items: center; min-height: 44px;
  color: inherit; font-weight: 700; font-size: 1.15rem; text-decoration: none;
}
.link-strong:hover { color: inherit; text-decoration: underline; }
.fineprint { margin-top: clamp(28px, 3.4vw, 44px); color: var(--on-navy-dim); }

/* Editorial route artwork with real-text labels */
.art {
  position: relative; margin: 0; aspect-ratio: 610 / 588; border-radius: 6px; overflow: hidden;
  background: var(--panel); container-type: inline-size;
}
.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-cap {
  position: absolute; left: 5.6%; top: 5.6%; right: 5.6%;
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mint);
}
.tag {
  position: absolute; border-radius: 8px; padding: .55em .95em; line-height: 1.3;
  font-size: .85rem; font-size: clamp(.8rem, 3.6cqi, 1.3rem);
  box-shadow: 0 8px 22px rgba(4, 12, 26, .28);
}
.tag b, .tag span, .chip b, .chip span { display: block; }
.tag b { font-weight: 700; }
.tag span { font-size: .88em; }
.tag-time { right: 3.6%; top: 25.5%; max-width: 62%; background: var(--ivory); color: var(--ink); }
.tag-time span { color: var(--green); }
.tag-note { left: 4.4%; bottom: 4.6%; max-width: 70%; background: var(--navy); color: var(--on-navy); }
.tag-note span { color: var(--mint); }

/* ---------- Homepage story ---------- */
.section-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.story { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); scroll-margin-top: 8px; }
.story h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin: .3em 0 .35em; }
.story .lead { margin-bottom: clamp(24px, 3vw, 36px); }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--ink-2); max-width: 42em; }
.bands { display: grid; gap: 20px; }
.band {
  border-radius: 12px; padding: clamp(20px, 3vw, 32px);
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px 40px;
}
.band h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: .3em 0 .35em; }
.band-main p:last-child { font-size: 1.1rem; max-width: 40em; }
.band-side { border-left: 1px solid rgba(27, 42, 58, .28); padding-left: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.band-capture { background: var(--capture); }
.band-follow { background: var(--follow); }
.band-reflect { background: var(--navy); color: var(--on-navy); }
.band-reflect .band-side { border-left-color: var(--rule-navy); }
.chip { background: var(--paper); border-radius: 8px; padding: .5em .85em; line-height: 1.3; }
.chip b { font-weight: 700; }
.chip span { color: var(--green); font-size: .92em; }
.band-reflect .chip { background: rgba(247, 243, 234, .1); }
.band-reflect .chip span { color: var(--mint); }
.more { display: inline-block; padding: .68em 0; line-height: 1.35; font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.band-reflect .more { color: var(--mint); }
@media (max-width: 760px) {
  .band { grid-template-columns: minmax(0, 1fr); }
  .band-side { border-left: 0; border-top: 1px solid rgba(27, 42, 58, .2); padding: 16px 0 0; }
  .band-reflect .band-side { border-top-color: var(--rule-navy); }
}

.doors-sec { padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 7vw, 96px); }
.h-small { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 16px; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.door {
  display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 24px; text-decoration: none; color: var(--ink);
}
.door b { display: block; font-size: 1.35rem; color: var(--green); margin-bottom: 4px; }
.door span { color: var(--muted); }
.door:hover { border-color: var(--green); color: var(--ink); }
.door:hover b { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--ivory); color: var(--muted); }
.foot-in {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between;
  font-size: .92rem;
}
.foot-in nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-in nav a { display: inline-flex; align-items: center; min-height: 44px; }
.preview-flag { width: 100%; font-size: .85rem; color: var(--muted); }

/* ---------- Inner pages ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 4.5vw, 56px) var(--gutter) clamp(48px, 7vw, 88px); }
.page-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .3em 0 .35em; }
.crumbs { font-size: .95rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5em; }
.crumbs li + li::before { content: "/"; margin-right: .5em; color: var(--line-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Tour ---------- */
.tour-banner { position: relative; height: clamp(120px, 16vw, 170px); border-radius: 12px; overflow: hidden; margin-top: 24px; background: var(--panel); }
.tour-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.tour-banner p { position: absolute; left: 20px; bottom: 14px; right: 20px; color: var(--mint); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 32px clamp(28px, 4vw, 56px); margin-top: 32px; align-items: start; }
@media (max-width: 860px) { .tour-layout { grid-template-columns: minmax(0, 1fr); } }
.stop-index h2 { font-size: 1.05rem; letter-spacing: 0; margin: 0 0 6px; color: var(--ink-2); }
.stop-index h2 + ol { margin-bottom: 18px; }
.stop-index ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stop-index li { border-bottom: 1px solid var(--line); }
.stop-index a { display: flex; gap: 10px; align-items: center; min-height: 46px; padding: 6px 4px; color: var(--ink); text-decoration: none; }
.stop-index a:hover { color: var(--green); text-decoration: underline; }
.stop-index .n {
  flex: none; display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%;
  background: var(--quote); color: var(--green); font-weight: 700; font-size: .9rem;
}
.stop-index a[aria-current="step"] { font-weight: 700; color: var(--green); }
.stop-index a[aria-current="step"] .n { background: var(--green); color: var(--paper); }
.stop {
  background: var(--paper); border: 1px solid #E6E3D8; border-radius: 16px;
  padding: clamp(20px, 4vw, 40px); scroll-margin-top: 12px;
}
.stop + .stop { margin-top: 20px; }
.stop h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: .3em 0 .35em; }
.stop .lead { font-size: clamp(1.15rem, 1.9vw, 1.35rem); }
.example {
  background: var(--quote); border-radius: 12px; padding: .9em 1.2em; margin: 1.2rem 0;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.3; color: var(--ink);
}
.example small { display: block; margin-top: .35em; font-family: var(--sans); font-style: normal; font-size: .92rem; font-weight: 700; color: var(--green); }
.do { border-left: 4px solid var(--mint); padding: .2em 0 .2em 14px; margin: 1.2rem 0 .8rem; font-size: 1.08rem; }
.do-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.stop p + p { margin-top: .6em; }
.stop .help-link { margin-top: 1rem; }
.stop .help-link a { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.stop-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 1.6rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.stop-nav a { display: inline-flex; align-items: center; gap: .4em; min-height: 48px; font-weight: 700; text-decoration: none; }
.stop-nav a:hover { text-decoration: underline; }
.stop-nav .next { margin-left: auto; text-align: right; }
.stop-nav .next.primary { background: var(--mint); color: var(--navy); border-radius: 999px; padding: .5em 1.2em; }
.stop-nav .next.primary:hover { background: var(--mint-hover); }
.stop-end { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 1.2rem; }
.stop-end a { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }

/* One stop at a time when the browser supports :has(). Without it, every stop shows in order. */
@supports selector(:has(*)) {
  .stops:not(:has(.stop:target)) .stop:not(:first-of-type) { display: none; }
  .stops:has(.stop:target) .stop:not(:target) { display: none; }
}

/* ---------- Help ---------- */
.search { margin-top: 22px; max-width: 680px; }
.search input {
  width: 100%; min-height: 58px; padding: 0 1em; border: 2px solid transparent; border-radius: 12px;
  background: var(--search); color: var(--ink); font: inherit; font-size: 1.15rem;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #5E6B70; opacity: 1; }
.search input:focus-visible { border-color: var(--green); outline: 3px solid rgba(23, 100, 82, .25); outline-offset: 2px; }
.search-out { max-width: 680px; }
.search-status { margin-top: 12px; color: var(--muted); }
.results { list-style: none; margin: 8px 0 0; padding: 0; }
.results a { display: block; padding: 12px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.results a:hover b { text-decoration: underline; color: var(--green); }
.results b { display: block; font-size: 1.12rem; }
.results span { display: block; color: var(--muted); font-size: .95rem; }
.no-results { margin-top: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.no-results p + p { margin-top: .4em; }
.no-results .row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 10px; }
.no-results a { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.btn-quiet {
  font: inherit; font-weight: 700; color: var(--green); background: var(--quote); border: 0;
  border-radius: 999px; min-height: 44px; padding: 0 1.1em; cursor: pointer;
}
.btn-quiet:hover { background: var(--capture); }
.tasks { list-style: none; margin: 20px 0 0; padding: 0; max-width: 680px; }
.tasks a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 12px 2px; border-bottom: 1.5px solid var(--line-strong);
  color: var(--ink); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.3rem); text-decoration: none;
}
.tasks a:hover { color: var(--green); }
.tasks a span[aria-hidden] { color: var(--green); }
.help-sec { margin-top: clamp(40px, 6vw, 64px); scroll-margin-top: 12px; }
.help-sec > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .3em; }
.help-sec > p { color: var(--ink-2); max-width: 42em; }
.qref { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.qref li { background: var(--paper); border: 1px solid #E6E3D8; border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; }
.qref .want { font-weight: 700; font-size: 1.1rem; }
.qref .route { margin-top: .35em; color: var(--ink-2); }
.qref a { margin-top: auto; padding-top: .4em; font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.manual { margin-top: 18px; background: var(--paper); border: 1px solid #E6E3D8; border-radius: 12px; padding: 18px 22px; max-width: 680px; }
.manual h3 { font-size: 1.25rem; }
.manual h3 a { display: inline-flex; min-height: 44px; align-items: center; }
.manual ul { margin: 6px 0 0; padding-left: 1.2em; }
.manual li a { display: inline-flex; min-height: 44px; align-items: center; }
.manual .soon { margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* ---------- Article ---------- */
.article { max-width: 760px; }
.article .lead { margin-top: .2em; }
.article .needs { margin-top: 1em; color: var(--ink-2); }
.toc { margin: 1.6rem 0 0; background: var(--paper); border: 1px solid #E6E3D8; border-radius: 12px; padding: 14px 20px; }
.toc h2 { font-size: 1rem; letter-spacing: 0; color: var(--ink-2); }
.toc ul { margin: 4px 0 0; padding-left: 1.2em; }
.toc a { display: inline-flex; min-height: 44px; align-items: center; }
.article section { scroll-margin-top: 12px; }
.article h2.sec { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.8em 0 .55em; }
.steps { padding-left: 1.5em; margin: 0; }
.steps li { margin: .6em 0; padding-left: .2em; }
.steps li::marker { font-weight: 700; color: var(--green); }
.article section > p { margin-top: .9em; }
.callout { background: var(--quote); border-radius: 12px; padding: 14px 18px; margin-top: 1em; }
.trouble { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.trouble li { background: var(--paper); border: 1px solid #E6E3D8; border-radius: 12px; padding: 14px 18px; scroll-margin-top: 12px; }
.trouble li:target, .article section:target > h2 { box-shadow: 0 0 0 3px var(--mint); border-radius: 12px; }
.trouble h3 { font-size: 1.1rem; letter-spacing: 0; margin-bottom: .3em; }
.related { margin-top: 2.4em; padding-top: 1em; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.15rem; letter-spacing: 0; }
.related ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.related a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }

.walk-story { max-width: 46ch; margin-top: 1.6rem; padding-inline-start: 1rem; border-inline-start: 2px solid var(--mint); color: var(--on-navy-dim); }
.walk-story strong { color: var(--mint); white-space: nowrap; }
.walk-capture { width: min(100%, 334px); justify-self: center; margin: 0; }
.iphone-frame {
  position: relative;
  padding: 8px;
  border: 2px solid #a7aaae;
  border-radius: 16% / 7.6%;
  background: #151619;
  box-shadow: inset 0 0 0 2px #43464a, 0 10px 30px rgb(0 0 0 / 20%);
}
.iphone-frame::before, .iphone-frame::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px;
  background: #9a9da2;
}
.iphone-frame::before { left: -4px; top: 25%; height: 7%; }
.iphone-frame::after { right: -4px; top: 29%; height: 11%; }
.iphone-screen { position: relative; overflow: hidden; border-radius: 14% / 6.6%; }
.iphone-screen::after {
  content: ""; position: absolute; top: 1.3%; left: 36%; width: 28%; height: 3.6%;
  border-radius: 999px; background: #0b0b0c; pointer-events: none;
}
.walk-capture img { display: block; width: 100%; height: auto; }
.walk-capture figcaption { margin-top: .75rem; font-size: .86rem; text-align: center; color: var(--on-navy-dim); }
.walk-capture figcaption a { display: inline-block; padding: .55rem .25rem; color: var(--mint); }
.story .art {aspect-ratio:3/1;margin-bottom:1.7rem}
@media(max-width:899px){.hero-in{gap:1rem}.hero .actions,.hero .fineprint{margin-top:1rem}.story .art{aspect-ratio:1.7}}
