/* guides.html: search in the hero, then a map of every guide in two lanes (company, career), each a row of
   steps joined by a line, then every guide again with its summary. Built only from site.css tokens. */

/* ---------- search ---------- */
.gh-search { position: relative; display: flex; align-items: center; max-width: 640px; height: 64px; margin-top: 8px; padding: 0 20px 0 56px; border-radius: 999px; border: 1px solid var(--hair); background: var(--row-hover); box-shadow: var(--emb-edge), var(--shadow-card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
.gh-search:focus-within { border-color: var(--accent-2); box-shadow: var(--emb-edge), var(--shadow-card), 0 0 0 5px var(--chip-hov); }
.gh-search-ic { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.gh-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 400 18px/1 var(--body); color: var(--ink); }
.gh-search input::placeholder { color: var(--ph); }
.gh-search input::-webkit-search-cancel-button { cursor: pointer; }
.gh-kbd { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--hair); font: 400 13px/1 var(--mono); color: var(--ink-2); }
.gh-search:focus-within .gh-kbd { opacity: 0; }
.gh-status { position: absolute; left: 24px; top: calc(100% + 12px); margin: 0; font: 400 12px/1.4 var(--mono); letter-spacing: .08em; color: var(--ink-2); }

/* hero: shorter than the site default so the map starts on the first screen */
.hero.gh-hero { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 96px)); padding-bottom: clamp(24px, 3vw, 40px); }

/* ---------- the map: one lane per audience ---------- */
.gm-lane { color: var(--ink); padding-block: clamp(56px, 7vw, 112px); }
.gm-lane.band-dark { background: var(--band-bg); }
.gm-lane-head { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: end; column-gap: clamp(24px, 4vw, 64px); row-gap: 20px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.gm-lane-head h2 { margin: 0; font: 300 clamp(28px, 3vw, 48px)/1.1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.gm-lane-note { margin: 0 0 4px; max-width: 56ch; font: 400 16px/1.55 var(--body); color: var(--ink-2); }
.gm-lane-note span { color: var(--ink); font-weight: 500; }
.gm-topics { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.gm-topics[hidden] { display: none; }
.gm-topic { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hair); background: var(--row-hover); font: 500 11.5px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.gm-topic:hover { border-color: var(--ink); }
.gm-topic[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.gm-topic:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* steps: columns joined by a line, a dot where each step starts */
.gm-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gm-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--hair); }
.gm-step { position: relative; min-width: 0; padding: 34px clamp(12px, 1.4vw, 22px) 0 0; }
.gm-step::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-2); box-sizing: border-box; }
.gm-lane.band-dark .gm-step::before { background: #0B0E13; }
.gm-step summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; column-gap: 10px; row-gap: 8px; margin-bottom: 18px; cursor: default; }
.gm-step summary::-webkit-details-marker { display: none; }
.gm-n { font: 300 34px/1 var(--head); color: var(--accent); font-variant-numeric: tabular-nums; }
.gm-name { font: 500 13px/1.3 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.gm-count { font: 400 11px/1 var(--mono); color: var(--ink-2); }
.gm-note { grid-column: 1 / -1; min-height: 2.9em; font: 400 13.5px/1.45 var(--body); color: var(--ink-2); }
.gm-links { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--hair-soft); display: grid; gap: 2px; }
.gm-links a { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; align-items: baseline; padding: 5px 0; font: 400 14.5px/1.35 var(--body); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; transition: color .25s, opacity .3s var(--ease); }
.gm-links a:hover, .gm-links a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--link-u); }
.gm-links a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 3px; }
.gm-links a.is-dim { opacity: .26; }
.gm-links a.is-lit .gm-l { font-weight: 500; }
.gm-links a.is-lit { color: var(--accent); }
.gm-step.is-empty .gm-n, .gm-step.is-empty .gm-name { opacity: .35; }

/* the mark in front of each map link: the guide's topic, or a dot */
.gm-tag { justify-self: start; display: inline-grid; place-items: center; min-width: 34px; height: 17px; padding: 0 4px; border-radius: 5px; border: 1px solid var(--hair); background: var(--bg); font: 400 9px/1 var(--mono); letter-spacing: .02em; white-space: nowrap; color: var(--ink-2); transform: translateY(-1px); transition: background .3s, color .3s, border-color .3s; }
.gm-tag--dot { min-width: 0; width: 6px; height: 6px; padding: 0; margin-left: 14px; border: 0; border-radius: 50%; background: var(--accent-2); opacity: .55; transform: translateY(-2px); }
.gm-lane.band-dark .gm-tag { background: #0B0E13; }
.gm-lane.band-dark .gm-tag--dot { background: var(--accent-2); }
.gm-links a:hover .gm-tag, .gm-links a.is-lit .gm-tag:not(.gm-tag--dot) { border-color: var(--accent-2); color: var(--accent); }

/* the falling particle layer behind the company steps (drawn by guides-hub.js, only on wide screens) */
.gm-steps > .gm-step { z-index: 1; }
.gm-field { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.gm-field.is-on { opacity: 1; }

/* ---------- every guide with a summary ---------- */
.gh-all { border-top: 1px solid var(--hair-soft); padding-top: clamp(56px, 7vw, 104px); }
.gh-all-h { margin: 0; font: 300 clamp(24px, 2.4vw, 38px)/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.gh-empty { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gut); font: 400 clamp(18px, 1.4vw, 22px)/1.5 var(--body); color: var(--ink-2); }
.gh-group { color: var(--ink); padding-block: clamp(40px, 5vw, 72px); scroll-margin-top: calc(var(--nav-h) + 24px); }
.gh-group + .gh-group { border-top: 1px solid var(--hair-soft); }
.gh-group[hidden] { display: none; }
.gh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.gh-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.gh-lane { margin: 0 0 10px; font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.gh-head h3 { margin: 0 0 16px; font: 300 clamp(22px, 2vw, 32px)/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; text-wrap: balance; color: var(--ink); }
.gh-count { margin: 0 0 12px; font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.gh-count span { color: var(--accent); }
.gh-note { margin: 0; max-width: 34ch; font: 400 15px/1.6 var(--body); color: var(--ink-2); }

.gh-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hair-soft); }
.gh-list li[hidden] { display: none; }
.gh-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 28px; column-gap: 24px; row-gap: 6px; padding: 20px 4px 22px; border-top: 1px solid var(--hair-soft); text-decoration: none; color: var(--ink); }
.gh-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: 1; }
.gh-t { grid-column: 1; font: 500 clamp(16.5px, 1.2vw, 18px)/1.4 var(--body); text-wrap: pretty; overflow-wrap: anywhere; transition: color .3s; }
.gh-d { grid-column: 1; font: 400 15px/1.55 var(--body); color: var(--ink-2); max-width: 70ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gh-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--hair); transition: background .35s var(--ease), border-color .35s var(--ease), transform .45s var(--ease); }
.gh-go::before { content: ""; position: absolute; left: 9px; top: 10px; width: 6px; height: 6px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); transition: border-color .35s; }
.gh-row:hover .gh-t, .gh-row:focus-visible .gh-t { color: var(--accent); }
.gh-row:hover::after, .gh-row:focus-visible::after { transform: scaleX(1); }
.gh-row:hover .gh-go, .gh-row:focus-visible .gh-go { background: var(--accent-2); border-color: var(--accent-2); transform: translateX(4px); }
.gh-row:hover .gh-go::before, .gh-row:focus-visible .gh-go::before { border-color: #fff; }
.gh-row:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; border-radius: 6px; }
.gh-t mark { background: var(--hl); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .gm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .gm-steps::before { display: none; }
  .gm-step { padding-top: 24px; }
  .gm-step::before { top: 0; }
}
@media (max-width: 960px) {
  .gh-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gh-head { position: static; }
  .gh-note { max-width: 60ch; }
}
@media (max-width: 760px) {
  .gm-field { display: none; }
  .gm-lane-head { grid-template-columns: minmax(0, 1fr); }
  .gm-steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .gm-step { padding: 0 0 0 26px; border-left: 1px solid var(--hair); }
  .gm-step:last-child { border-left-color: transparent; }
  .gm-step::before { left: -6px; top: 18px; }
  .gm-step summary { cursor: pointer; margin: 0; padding: 12px 0 18px; }
  .gm-step summary::after { content: ""; grid-row: 1; grid-column: 4; justify-self: end; width: 8px; height: 8px; margin-left: 12px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); transition: transform .3s var(--ease); }
  .gm-step details[open] summary::after { transform: rotate(-135deg); }
  .gm-step summary { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .gm-note { min-height: 0; }
  .gm-links { padding-bottom: 22px; }
}
@media (max-width: 560px) {
  .gh-search { height: 56px; padding-left: 50px; }
  .gh-search-ic { left: 18px; }
  .gh-search input { font-size: 16px; }
  .gh-kbd { display: none; }
  .gh-row { column-gap: 14px; }
  .gh-d { -webkit-line-clamp: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-row::after, .gh-go, .gm-topic, .gm-links a, .gh-search, .gm-step summary::after { transition: none; }
  .gh-row:hover .gh-go { transform: none; }
}
