/* IntakeBird Help: the guides home and each guide page. Builds on styles.css. */
.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; }
.help .top .wrap { gap: 10px; justify-content: flex-start; }
.help .hp-signin { display: inline-flex; margin-left: auto; }
.hp-home { padding: 6px 12px; border-left: 1px solid var(--border); color: var(--brand-text); font-weight: 700; text-decoration: none; }
.hp-home:hover, .hp-new:hover { color: var(--brand); }
.hp-new { padding: 6px 4px; color: var(--muted); font-weight: 600; text-decoration: none; }
.hp-newlink { margin: 14px 0 0; font-weight: 700; }
.hp-newlink a { color: var(--brand-text); }
.hp-news .hp-body ul { list-style: none; padding: 0; }
.hp-news .hp-body li { margin: 0 0 12px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.hp-news .hp-body li a { display: inline-block; margin-left: 4px; font-weight: 600; }
.hp-news .hp-body li a::before { content: "→ "; }
.help .top.is-scrolled { background: #fff; border-bottom-color: color-mix(in oklab, var(--brand) 10%, transparent); }

/* Search band under a quiet sky */
.hp-hero { position: relative; overflow: hidden; padding: 56px 0 120px; text-align: center;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-mid)); }
.hp-sky { position: absolute; inset: 0; pointer-events: none; }
.hp-cloud--a { top: 46px; left: 6%; width: 104px; } .hp-cloud--b { top: 120px; right: 8%; width: 78px; opacity: 0.9; }
.hp-far { top: 90px; left: 20%; width: 20px; }
.hp-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 90px; max-width: none; }
.hp-hills .h1 { fill: var(--hill-back); } .hp-hills .h2 { fill: var(--hill-front); }
.hp-hero__inner { position: relative; z-index: 1; }
.hp-hero h1 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 2.75rem); color: var(--brand-text); }
.hp-hero .lead { margin: 0 auto 26px; }

.hp-search { position: relative; max-width: 640px; margin: 0 auto; }
.hp-search input { width: 100%; min-height: 60px; padding: 0 20px 0 54px; border: 1px solid color-mix(in oklab, var(--brand) 22%, var(--border)); border-radius: 999px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 1.125rem; box-shadow: 0 14px 34px -22px color-mix(in oklab, var(--brand) 60%, transparent); }
.hp-search input:focus { outline: 3px solid color-mix(in oklab, var(--brand) 45%, #fff); outline-offset: 2px; border-color: var(--brand); }
.hp-search__ico { position: absolute; left: 20px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.hp-search--small { max-width: 360px; margin: 0; flex: 1 1 240px; }
.hp-search--small input { min-height: 46px; font-size: 1rem; padding-left: 46px; box-shadow: none; }
.hp-search--small .hp-search__ico { left: 16px; width: 19px; height: 19px; }

/* Choices: who you are, area and kind */
.hp-roles { margin: 22px 0 0; padding: 0; border: 0; }
.hp-roles legend { margin: 0 auto 10px; font-weight: 700; color: var(--brand-text); }
.hp-chips { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hp-chip { position: relative; cursor: pointer; }
.hp-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hp-chip span { display: inline-block; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--brand-text); font-weight: 600; }
.hp-chip:hover span { border-color: color-mix(in oklab, var(--brand) 40%, var(--border)); }
.hp-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.hp-chip input:focus-visible + span { outline: 3px solid var(--brand-text); outline-offset: 2px; }

.hp-browse { padding: 40px 0 72px; }
.hp-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.hp-filters { position: sticky; top: 90px; }
.hp-filters__head { margin: 0 0 8px; color: var(--muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hp-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px; }
.hp-list .hp-chip span { display: block; padding: 8px 12px; border-color: transparent; background: transparent; border-radius: 10px; }
.hp-list .hp-chip:hover span { background: var(--brand-lighter); }
.hp-list .hp-chip input:checked + span { background: var(--brand-light); border-color: transparent; color: var(--brand-text); font-weight: 700; }

.hp-status { margin: 0 0 14px; color: var(--muted); font-weight: 600; }
.hp-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hp-card a { display: block; height: 100%; padding: 20px 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: inherit; text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.hp-card a:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--border)); box-shadow: 0 14px 30px -24px color-mix(in oklab, var(--brand) 70%, transparent); }
.hp-card h2 { margin: 8px 0 6px; font-size: 1.1875rem; color: var(--brand-text); }
.hp-card p { margin: 0; color: var(--muted); }
.hp-card .hp-hit { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--brand-lighter); color: var(--text); font-size: 0.9375rem; }
.hp-card .hp-hit b { color: var(--brand-text); }
.hp-card mark { background: color-mix(in oklab, #f6d9a8 70%, #fff); color: inherit; border-radius: 3px; padding: 0 1px; }
.hp-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.hp-tag { padding: 2px 10px; border-radius: 999px; background: var(--sky); color: #1d4a7a; font-size: 0.8125rem; font-weight: 700; }
.hp-tag--kind { background: var(--brand-light); color: var(--brand-text); }
.hp-empty { padding: 28px; border: 1px dashed var(--border); border-radius: 18px; text-align: center; }
.hp-empty h2 { margin: 0 0 6px; font-size: 1.25rem; color: var(--brand-text); }
.hp-empty p { margin: 0 auto; max-width: 52ch; color: var(--muted); }

/* A guide */
.hp-guidebar { border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--sky-top), var(--surface)); }
.hp-guidebar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.hp-crumbs { color: var(--muted); font-weight: 600; }
.hp-crumbs a { color: var(--brand-text); }
.hp-guide { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: start; padding-top: 36px; padding-bottom: 72px; }
.hp-article { max-width: 72ch; }
.hp-article h1 { margin: 12px 0 8px; font-size: clamp(1.875rem, 3.4vw, 2.5rem); color: var(--brand-text); line-height: 1.15; }
.hp-article > .lead { margin-bottom: 12px; }
.hp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.9375rem; }
.hp-body h2 { margin: 32px 0 10px; font-size: 1.375rem; color: var(--brand-text); scroll-margin-top: 90px; }
.hp-body p, .hp-body li { font-size: 1.0625rem; line-height: 1.65; }
.hp-body ol, .hp-body ul { padding-left: 1.4em; }
.hp-body li { margin: 6px 0; }
.hp-body li::marker { color: var(--brand); font-weight: 700; }
.hp-body b { color: var(--brand-text); }
.hp-body h2:target { animation: hp-glow 2.4s ease; border-radius: 6px; }
@keyframes hp-glow { from { background: color-mix(in oklab, #f6d9a8 70%, #fff); } to { background: transparent; } }

.hp-related { margin-top: 40px; }
.hp-related h2, .hp-stuck h2 { margin: 0 0 12px; font-size: 1.25rem; color: var(--brand-text); }
.hp-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hp-related a { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 14px; color: inherit; text-decoration: none; }
.hp-related a:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--border)); }
.hp-related b { color: var(--brand-text); }
.hp-related span { color: var(--muted); }
.hp-stuck { margin-top: 32px; padding: 20px 22px; border-radius: 18px; background: var(--sky); }
.hp-stuck p { margin: 0; }

.hp-toc { position: sticky; top: 96px; padding-left: 18px; border-left: 2px solid var(--border); }
.hp-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hp-toc a { display: block; padding: 5px 0; color: var(--muted); font-weight: 600; text-decoration: none; }
.hp-toc a:hover, .hp-toc a.is-here { color: var(--brand-text); }

@media (max-width: 900px) {
  .hp-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hp-filters { position: static; display: grid; gap: 4px; }
  .hp-list { flex-direction: row; overflow-x: auto; gap: 6px; margin-bottom: 12px; padding-bottom: 4px; scrollbar-width: none; }
  .hp-list .hp-chip span { white-space: nowrap; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; }
  .hp-guide { grid-template-columns: minmax(0, 1fr); }
  .hp-toc { display: none; }
}
@media (max-width: 640px) {
  .hp-hero { padding: 36px 0 96px; }
  .hp-cloud--b, .hp-far { display: none; }
  .hp-cloud--a { top: 8px; left: -18px; width: 72px; opacity: 0.85; }
  .hp-cards { grid-template-columns: minmax(0, 1fr); }
  .hp-chip span { padding: 8px 13px; }
  .hp-home, .hp-new { display: none; }
  .hp-search--small { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-body h2:target { animation: none; }
  .hp-card a { transition: none; }
}
