/* help-v4.css: the /help FAQ (hub, topic, article), 2026-10-05.
   Loaded raw by frontend/v4/help_*.pug through the layout's head_extra block:
   bump ?v= on all three links on every edit (app.js serves raw CSS immutable).
   Values are the page kit's (docs/v4/SITE-MIGRATION.md 4b): white page, hairline
   #E6E4E1, cards 24px, controls 10px, lime only as a state, no gradient, no
   glow, nothing lifts on hover. */

/* ---- Shared ---------------------------------------------------------------- */
body.v4p .hv-dot { margin: 0 6px; }
/* The hub hero is a title, one line and the search, so the topic cards start
   close under it instead of a full section gap away. */
body.v4-help-hub .hv-topics { padding-top: 0; }

/* ---- Search ---------------------------------------------------------------- */
/* [hidden] must win over the display values below. */
body.v4p .hv-search[hidden], body.v4p .hv-search [hidden] { display: none; }
body.v4p .hv-search { position: relative; width: 100%; max-width: 520px; margin: 24px auto 0; text-align: left; }
body.v4p .hv-search-input {
    display: block; width: 100%; height: 44px; margin: 0; padding: 0 14px;
    border: 1px solid #E6E4E1; border-radius: 10px; background-color: #FFFFFF;
    color: #121212; font: inherit; font-size: 15px; line-height: 44px; box-shadow: none;
    transition: border-color 150ms ease-in-out;
}
body.v4p .hv-search-input::placeholder { color: #6F6D6A; }
body.v4p .hv-search-input:hover { border-color: #C9C6C1; }
body.v4p .hv-search-input:focus-visible { border-color: #121212; outline: 2px solid #121212; outline-offset: 2px; }
body.v4p .hv-results {
    margin: 8px 0 0; padding: 6px; list-style: none;
    border: 1px solid #E6E4E1; border-radius: 16px; background-color: #FFFFFF;
    max-height: 320px; overflow-y: auto;
}
body.v4p a.hv-result {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    min-height: 44px; padding: 10px 12px; border-radius: 10px;
    color: #121212; font-size: 14px; line-height: 1.5; text-decoration: none;
}
body.v4p a.hv-result:hover, body.v4p a.hv-result:focus-visible { background-color: #FAFFF2; }
body.v4p .hv-result-title { font-weight: 500; }
body.v4p .hv-result-cat { flex: 0 0 auto; color: #6F6D6A; font-size: 12px; }
body.v4p .hv-search-empty { margin: 10px 2px 0; color: #6F6D6A; font-size: 14px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { body.v4p .hv-search-input { transition: none; } }

/* ---- The article card ------------------------------------------------------ */
body.v4p .hv-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
    margin: 0; padding: 0; list-style: none;
}
body.v4p .hv-grid[data-cols="1"] { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
body.v4p .hv-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
    body.v4p .hv-grid, body.v4p .hv-grid[data-cols="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    body.v4p .hv-grid, body.v4p .hv-grid[data-cols="2"], body.v4p .hv-grid[data-cols="3"] { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
body.v4p .hv-grid > li { display: flex; }

body.v4p a.hv-card {
    display: flex; flex: 1 1 auto; flex-direction: column;
    padding: 20px; color: inherit; text-decoration: none;
}
body.v4p a.hv-card:hover { border-color: #C9F2A0; background-color: #FAFFF2; }
body.v4p .hv-card-cat {
    margin: 0 0 8px; color: #6F6D6A; font-size: 12px; font-weight: 500;
    line-height: 1.5; letter-spacing: 0.025em; text-transform: uppercase;
}
/* On a topic page the H1 already names the topic, so the card does not repeat it. */
body.v4-help-category .hv-grid-section .hv-card-cat { display: none; }
body.v4p .hv-card-title { color: #121212; text-wrap: pretty; }
body.v4p .hv-card-sub { margin: 8px 0 0; color: #6F6D6A; font-size: 14px; line-height: 1.5; }

/* ---- The topic card on the hub --------------------------------------------- */
body.v4p .hv-topic-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
    margin: 0; padding: 0; list-style: none;
}
@media (max-width: 1180px) { body.v4p .hv-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { body.v4p .hv-topic-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
body.v4p .hv-topic-grid > li { display: flex; }
body.v4p .hv-topic { display: flex; flex: 1 1 auto; flex-direction: column; padding: 20px; }
body.v4p .hv-topic-link { color: #121212; text-decoration: none; }
body.v4p .hv-topic-link:hover { text-decoration: underline; text-underline-offset: 3px; }
body.v4p .hv-topic-blurb { margin: 8px 0 12px; color: #6F6D6A; font-size: 14px; line-height: 1.5; }
body.v4p .hv-topic-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
body.v4p .hv-topic-list li + li { border-top: 1px solid #E6E4E1; }
body.v4p a.hv-topic-item {
    display: block; padding: 12px 0; color: #3D3D3C; font-size: 14px;
    line-height: 1.5; font-weight: 500; text-decoration: none;
}
body.v4p a.hv-topic-item:hover { color: #121212; text-decoration: underline; text-underline-offset: 3px; }

/* ---- The other-topics band on a topic page ---------------------------------- */
body.v4p .hv-others {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
    margin: 0; padding: 0; list-style: none;
}
@media (max-width: 1180px) { body.v4p .hv-others { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { body.v4p .hv-others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { body.v4p .hv-others { grid-template-columns: minmax(0, 1fr); } }
body.v4p .hv-others > li { display: flex; }
body.v4p a.hv-other { display: flex; flex: 1 1 auto; flex-direction: column; padding: 20px; color: inherit; text-decoration: none; }
body.v4p a.hv-other:hover { border-color: #C9F2A0; background-color: #FAFFF2; }
body.v4p .hv-other-line { margin: 6px 0 0; color: #6F6D6A; font-size: 13px; line-height: 1.5; }

/* ---- The article ------------------------------------------------------------ */
body.v4p .hv-article-head { max-width: 720px; margin-inline: auto; }
body.v4p .hv-kicker {
    margin: 0 0 12px; color: #6F6D6A; font-size: 13px; font-weight: 500; line-height: 1.5;
}
body.v4p .hv-kicker a { color: #3D3D3C; text-decoration: underline; text-underline-offset: 3px; }
body.v4p .hv-kicker a:hover { color: #121212; }
body.v4p .hv-body-wrap { display: block; }
body.v4p .hv-body { max-width: 720px; margin-inline: auto; padding-bottom: 24px; }
body.v4p .hv-section { margin: 0 0 32px; }
body.v4p .hv-section h2 { margin: 0 0 10px; }
body.v4p .hv-section p { margin: 0; color: #3D3D3C; font-size: 16px; line-height: 1.65; }
body.v4p .hv-section p a { color: #121212; text-decoration: underline; text-underline-offset: 3px; }
body.v4p .hv-section-btn { margin-top: 14px; }
body.v4p .hv-next { margin-top: 40px; padding-top: 24px; border-top: 1px solid #E6E4E1; }
body.v4p .hv-next .v4-cta-row { margin-top: 10px; }

/* The article hero is a reading page: the head sits in the 720px column and the
   text stays left inside it (SITE-MIGRATION 4b, reading pages). */
body.v4p .hv-article-hero .v4-wrap { display: block; }

/* ---- Contact ---------------------------------------------------------------- */
body.v4p .hv-contact-card { padding: 24px; text-align: center; }
body.v4p .hv-contact-card .v4-cta-row { justify-content: center; margin-top: 16px; }
body.v4p .hv-contact-line { max-width: 560px; margin: 8px auto 0; color: #6F6D6A; font-size: 15px; line-height: 1.6; }

/* ---- The way back on a topic page ------------------------------------------- */
body.v4p .hv-back { margin: 0 0 12px; font-size: 13px; font-weight: 500; line-height: 1.5; }
body.v4p .hv-back a { color: #6F6D6A; text-decoration: underline; text-underline-offset: 3px; }
body.v4p .hv-back a:hover { color: #121212; }
