/*
 * /guides (#235). The owner chose, on 2026-10-01, option A "Field notes" for
 * the /guides directory and option C "Trip line" for each article. Copy lives
 * in apps/ios/docs/marketing/guides-sketch. The capsule and footer repeat the
 * homepage's (site.css `.home`) so these pages do not inherit the homepage's
 * hero and bento rules. Pages link /site.css (fonts and tokens) before this file.
 */
.guides {
  --g-display: Syne, system-ui, sans-serif;
  --g-narrative: Literata, "Iowan Old Style", Georgia, serif;
  --g-rail: rgba(47, 111, 106, 0.3);
  --g-shadow: 0 1px 2px rgba(28, 43, 42, 0.06), 0 18px 40px -18px rgba(28, 43, 42, 0.28);
  --g-bar-shadow: 0 0 0 1px var(--color-border-hairline), 0 10px 30px -18px rgba(28, 43, 42, 0.5);
  min-height: 100vh; background: var(--color-surface-ground); color: var(--color-text-primary); font-family: var(--chrome);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .guides { --g-rail: rgba(111, 184, 175, 0.35); --g-shadow: 0 0 0 1px var(--color-border-hairline); --g-bar-shadow: 0 0 0 1px var(--color-border-hairline); }
}
:root[data-theme="dark"] .guides { --g-rail: rgba(111, 184, 175, 0.35); --g-shadow: 0 0 0 1px var(--color-border-hairline); --g-bar-shadow: 0 0 0 1px var(--color-border-hairline); }

/* Header capsule, as on the homepage. A curiosa_session hint picks Sign in or My Trips. */
.guides .bar { position: sticky; top: 0; z-index: 10; padding: 14px 20px 0; pointer-events: none; }
.guides .bar-in {
  pointer-events: auto; max-width: 1040px; height: 68px; margin: 0 auto; padding: 0 10px 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: 999px; background: var(--color-surface-raised); box-shadow: var(--g-bar-shadow);
}
.guides .brand { display: flex; align-items: center; gap: 6px; flex: none; color: inherit; font-size: inherit; font-weight: inherit; }
.guides .brand img { display: block; width: 64px; height: 64px; margin: -8px -6px -8px -8px; }
.guides .word { font-family: var(--g-display); font-weight: 700; font-size: 24px; line-height: 1; letter-spacing: -0.01em; }
.guides .head-link {
  display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; white-space: nowrap; background: var(--color-text-primary); color: var(--color-surface-ground);
}
.guides .head-link:hover { background: var(--color-brand-accent); color: var(--color-text-on-accent); }
html[data-signed-in="1"] .guides .head-link-out { display: none; }
html:not([data-signed-in="1"]) .guides .head-link-in { display: none; }
.guides a:focus-visible { outline: 2px solid var(--color-brand-accent); outline-offset: 3px; }

.guides > footer {
  max-width: 1040px; margin: 0 auto; border-top: 1px solid var(--color-border-hairline); padding: 28px 0 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--color-text-secondary);
}
.guides > footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.guides > footer a:hover, .guides > footer a[aria-current="page"] { color: var(--color-text-primary); }
.guides > footer a[aria-current="page"] { font-weight: 600; }

.guides .eyebrow, .guides .back {
  display: inline-block; margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-brand-accent);
}
.guides :is(.index, .article) :is(p, li, dd) a:not(.track a, .q) { color: var(--color-brand-accent); text-decoration: underline; text-underline-offset: 2px; }

/* Directory (option A, Field notes): one column of questions, each with its one-line answer. */
.guides .index { max-width: 760px; margin: 0 auto; padding: 72px 20px 88px; }
.guides .index h1 { margin: 0 0 20px; font-family: var(--g-display); font-weight: 700; font-size: 48px; line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; }
.guides .lede { margin: 0 0 56px; font-family: var(--g-narrative); font-size: 21px; line-height: 1.6; color: var(--color-text-secondary); }
.guides .group + .group { margin-top: 48px; }
.guides .group h2 {
  margin: 0; padding: 0 0 12px; border-bottom: 1px solid var(--color-border-hairline);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-secondary);
}
.guides .group ul { margin: 0; padding: 0; list-style: none; }
.guides .q { display: block; padding: 24px 0; border-bottom: 1px solid var(--color-border-hairline); }
.guides .q h3 { margin: 0 0 8px; font-family: var(--g-narrative); font-weight: 600; font-size: 24px; line-height: 1.3; }
.guides .q p { margin: 0; font-family: var(--g-narrative); font-size: 17px; line-height: 1.6; color: var(--color-text-secondary); }
.guides .q:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Article (option C, Trip line): where the guide sits in a trip, steps on a rail, the facts as a stamp. */
.guides .article { max-width: 800px; margin: 0 auto; padding: 56px 20px 96px; }
.guides .article .track { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 40px; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.guides .article .track li { display: flex; align-items: center; gap: 6px; margin: 0; font-family: var(--chrome); font-size: inherit; line-height: 1; }
.guides .track li + li::before { content: ""; width: 10px; height: 2px; background: var(--g-rail); }
.guides .track li.apart::before { background: none; }
.guides .track a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; white-space: nowrap; border-radius: 999px; color: var(--color-text-secondary); box-shadow: inset 0 0 0 1px var(--color-border-hairline); }
.guides .track a:hover { color: var(--color-text-primary); }
.guides .track a[aria-current="page"] { background: var(--color-brand-accent); color: var(--color-text-on-accent); box-shadow: none; }
.guides .article h1 { margin: 0 0 28px; font-family: var(--g-display); font-weight: 700; font-size: 46px; line-height: 1.07; letter-spacing: -0.01em; text-wrap: balance; }
.guides .article p, .guides .article li, .guides .article dd { font-family: var(--g-narrative); font-size: 18px; line-height: 1.65; }
.guides .article p { margin: 0 0 14px; }
.guides .article h2 { margin: 56px 0 18px; font-family: var(--g-display); font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.guides .article ul { margin: 0 0 14px; padding-left: 1.2em; }
.guides .article li { margin: 6px 0; }
.guides .answer { padding: 30px 34px; border-radius: 30px; background: var(--color-surface-raised); box-shadow: var(--g-shadow); }
.guides .article .answer h2 {
  margin: 0 0 10px; font-family: var(--chrome); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-brand-accent);
}
.guides .article .answer p { margin: 0; font-size: 23px; line-height: 1.5; }
.guides .article .habit { margin: 28px 0 0; color: var(--color-text-secondary); }
.guides .steps { margin: 8px 0 14px; padding: 0; list-style: none; counter-reset: step; }
.guides .steps li { position: relative; display: grid; grid-template-columns: 72px 28px minmax(0, 1fr); column-gap: 18px; margin: 0; counter-increment: step; }
.guides .steps li::before {
  content: "Step " counter(step); grid-column: 1; grid-row: 1; padding-top: 5px; text-align: right; font-family: var(--chrome); font-size: 13px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-secondary);
}
.guides .steps li.done::before { content: "Done"; }
.guides .steps li::after {
  content: ""; position: absolute; left: 97px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-surface-ground); box-shadow: inset 0 0 0 3px var(--color-brand-accent);
}
.guides .steps li.done::after { background: var(--color-brand-accent); }
.guides .steps li > span { grid-column: 3; padding-bottom: 22px; }
.guides .article .steps li > span { font-size: 19px; line-height: 1.55; }
.guides .steps li > i { grid-column: 2; grid-row: 1; justify-self: center; width: 2px; background: var(--g-rail); }
.guides .steps li:last-child > i { align-self: start; height: 10px; }
.guides .steps li.done > span { color: var(--color-text-secondary); }
.guides .k {
  display: inline-block; padding: 0 8px; border-radius: 7px; background: var(--color-surface-raised);
  box-shadow: 0 0 0 1px var(--color-border-hairline); font-family: var(--chrome); font-weight: 600; font-size: 15px; line-height: 26px; white-space: nowrap;
}
.guides .facts { margin: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px 24px; }
.guides .facts dt { padding-top: 4px; font-size: 15px; font-weight: 600; }
.guides .facts dd { margin: 0; }
/* The product facts sit in a passport stamp, the brand's mark. */
.guides .stamp { margin-top: 56px; padding: 6px; border-radius: 22px; box-shadow: inset 0 0 0 2px var(--color-brand-attention); transform: rotate(-1deg); }
.guides .stamp > div { padding: 24px 28px; border-radius: 17px; background: var(--color-surface-raised); box-shadow: inset 0 0 0 1px var(--color-brand-attention); }
.guides .article .stamp h2 {
  margin: 0 0 14px; font-family: var(--chrome); font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--color-brand-attention);
}
.guides .next {
  margin-top: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 26px; border-radius: 24px; background: var(--color-brand-accent); color: var(--color-text-on-accent);
}
.guides .next small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.88; }
.guides .next strong { font-family: var(--g-display); font-weight: 700; font-size: 21px; }
.guides .next svg { flex: none; width: 28px; height: 14px; }
.guides .article .help { margin: 28px 0 0; font-family: var(--chrome); font-size: 15px; color: var(--color-text-secondary); }
@media (prefers-reduced-motion: reduce) {
  .guides .stamp { transform: none; }
}

@media (max-width: 900px) {
  .guides .bar { padding: 10px 10px 0; }
  .guides .bar-in { height: 58px; padding: 0 7px 0 18px; }
  .guides .brand img { width: 54px; height: 54px; margin-left: -7px; }
  .guides .word { font-size: 20px; }
  .guides .head-link { height: 44px; padding: 0 18px; font-size: 14px; }
  .guides > footer { margin: 0 16px; flex-direction: column-reverse; padding: 24px 0 36px; }
  .guides > footer nav { gap: 20px; }
  .guides .index { padding: 36px 16px 56px; }
  .guides .index h1 { font-size: 34px; line-height: 1.08; }
  .guides .lede { margin-bottom: 40px; font-size: 18px; }
  .guides .group + .group { margin-top: 36px; }
  .guides .group h2 { font-size: 12px; padding-bottom: 10px; }
  .guides .q { padding: 20px 0; }
  .guides .q h3 { margin-bottom: 6px; font-size: 20px; }
  .guides .q p { font-size: 16px; line-height: 1.55; }
  .guides .article { padding: 28px 16px 56px; }
  .guides .article .track { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px; scrollbar-width: none; font-size: 13px; }
  .guides .track a { height: 32px; padding: 0 12px; white-space: nowrap; }
  .guides .article h1 { margin-bottom: 22px; font-size: 32px; line-height: 1.1; }
  .guides .article p, .guides .article li, .guides .article dd { font-size: 17px; line-height: 1.6; }
  .guides .article h2 { margin-top: 44px; margin-bottom: 16px; font-size: 21px; }
  .guides .answer { padding: 22px 20px; border-radius: 24px; }
  .guides .article .answer p { font-size: 19px; }
  .guides .steps li { grid-template-columns: 20px minmax(0, 1fr); column-gap: 14px; }
  .guides .steps li::before { grid-column: 2; grid-row: 1; padding: 0; text-align: left; font-size: 12px; }
  .guides .steps li::after { left: 3px; top: 5px; }
  .guides .steps li > i { grid-column: 1; grid-row: 1 / span 2; }
  .guides .steps li > span { grid-column: 2; grid-row: 2; padding-bottom: 20px; }
  .guides .article .steps li > span { font-size: 17px; }
  .guides .facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .guides .facts dd { margin-bottom: 10px; }
  .guides .stamp { margin-top: 44px; padding: 5px; border-radius: 20px; }
  .guides .stamp > div { padding: 20px 18px; border-radius: 16px; }
  .guides .article .stamp h2 { font-size: 12px; }
  .guides .next { margin-top: 48px; padding: 18px 20px; gap: 16px; }
  .guides .next strong { font-size: 18px; }
}
@media (max-width: 359px) {
  .guides .word { display: none; }
}
