/* ============================================================
   Help center (finish.tax/help) — components on top of /styles/site.css.
   Pages are generated by scripts/help/build-help.mjs; tokens come from
   site.css section 1 (warm neutrals, brand green --accent #1f6a48).
   Works down to 360 px wide with no horizontal scroll.
   ============================================================ */

/* ---- page head ---- */
.help-head{padding:52px 0 0;max-width:820px}
.help-head h1{font-size:clamp(30px,4.4vw,46px);margin:0 0 12px;overflow-wrap:anywhere}
.help-head .sub{margin:0}
.help-home-head{text-align:center;margin:0 auto;padding-top:64px}
.help-home-head .eyebrow{margin:0 0 14px}
.help-home-head .sub{margin:0 auto}
.help-crumbs{font-size:13px;color:var(--ink3);margin:0 0 18px;overflow-wrap:anywhere}
.help-crumbs a{color:var(--accent);font-weight:600}
.help-crumbs a:hover{text-decoration:underline}
.help-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 12px;font-size:13px;color:var(--ink3)}
.help-kind{display:inline-block;font:600 11.5px/1 var(--font);color:var(--accent);background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 22%,transparent);padding:5px 10px;border-radius:999px;white-space:nowrap}

/* ---- search ---- */
.help-search{max-width:560px;margin:28px auto 0;text-align:left}
.help-search-label{display:block;font-size:13px;font-weight:600;color:var(--ink2);margin:0 0 8px}
.help-search input{width:100%;min-height:52px;padding:14px 18px;font:500 16px/1.3 var(--font);color:var(--ink);background:var(--glass-hi);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);-webkit-appearance:none;appearance:none}
.help-search input::placeholder{color:var(--ink3)}
.help-search input:focus{outline:2px solid var(--accent);outline-offset:2px}
.help-head:not(.help-home-head) .help-search{margin:24px 0 0}
/* help/search.js adds the count and the results list under the box */
.help-search-status{margin:10px 2px 0;font-size:13.5px;color:var(--ink2)}
.help-search-status:empty{display:none}
.help-search-status a{color:var(--accent);font-weight:600;text-decoration:underline}
.help-results{list-style:none;margin:10px 0 0;padding:6px;background:var(--glass-hi);border-radius:14px;box-shadow:var(--shadow)}
.help-results[hidden]{display:none}
.help-result{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:10px;color:var(--ink)}
.help-result:hover{background:var(--accent-soft)}
.help-result:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;background:var(--accent-soft)}
.help-result-title{font-weight:650;overflow-wrap:anywhere}
.help-result-summary{font-size:13.5px;line-height:1.5;color:var(--ink2)}
.help-result .help-card-meta{margin-top:4px}

/* ---- sections ---- */
.help-section{padding:56px 0 0}
.help-section>h2{font-size:clamp(22px,2.8vw,28px);margin:0 0 6px}
.help-intro{color:var(--ink2);margin:0 0 18px;max-width:62ch}
.help-section>h2+.grid,.help-section>h2+.help-fixes{margin-top:16px}

/* ---- topic cards ---- */
.help-topics{grid-template-columns:repeat(4,1fr)}
.help-topic{display:flex;flex-direction:column}
.help-topic p{flex:1}
.help-count{margin-top:14px;font-size:12.5px;font-weight:600;color:var(--accent)}
@media (max-width:980px){.help-topics{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){
  .help-topics{gap:10px}
  .help-topic{padding:16px}
  .help-topic .ic{margin-bottom:10px}
  .help-topic h3{font-size:15px;margin:0}
  .help-topic p{display:none}
  .help-count{margin-top:4px}
}

/* ---- guide / walkthrough cards ---- */
.help-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
@media (max-width:560px){.help-grid{grid-template-columns:1fr}}
.help-card{display:flex;flex-direction:column;padding:0 0 18px;overflow:hidden}
.help-card h3{margin:14px 18px 8px;font-size:15.5px;line-height:1.35}
.help-card .help-card-meta{margin:auto 18px 0}
.help-thumb{position:relative;display:block;aspect-ratio:16/9;background:#145238;border-radius:13px 13px 0 0;overflow:hidden}
.help-thumb img{width:100%;height:100%;object-fit:cover}
.help-len{position:absolute;right:10px;bottom:10px;display:inline-flex;align-items:center;gap:6px;font:600 12px/1 var(--mono);color:#fff;background:rgba(15,25,20,.8);padding:5px 8px;border-radius:6px}
.help-len::before{content:"";border-style:solid;border-width:4.5px 0 4.5px 7px;border-color:transparent transparent transparent #fff}
.help-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:12.5px;color:var(--ink3)}

/* ---- quick fixes shelf ---- */
.help-fixes{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
@media (max-width:560px){.help-fixes{grid-template-columns:1fr}}
.help-fix{display:flex;flex-direction:column;gap:6px;height:100%;padding:16px 18px;background:var(--glass);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);transition:transform .15s ease,border-color .15s ease}
.help-fix:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 30%,var(--line))}
.help-fix-title{font-weight:650;color:var(--ink)}
.help-fix-summary{font-size:13.5px;color:var(--ink2);line-height:1.55}

/* ---- community + still stuck ---- */
.help-corner{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:56px 0 0}
.help-corner .help-stuck{margin:0}
.help-corner>:only-child{grid-column:1/-1}
@media (max-width:760px){.help-corner{grid-template-columns:1fr}}
.help-community h2,.help-stuck h2{font-size:19px;margin:0 0 6px}
.help-community p{margin:0 0 14px}
.help-more{color:var(--accent);font-weight:650}
.help-more::after{content:" \2192"}
.help-more:hover{text-decoration:underline}
.help-stuck{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;margin:56px 0 0;padding:22px;background:var(--glass);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
.help-stuck>div{flex:1 1 240px;min-width:0}
.help-stuck p{margin:0;font-size:14px;color:var(--ink2)}
.help-stuck .ic,.help-community .ic{width:34px;height:34px;border-radius:9px;background:var(--accent-soft);display:grid;place-items:center;flex:none}
.help-stuck .ic svg,.help-community .ic svg{width:17px;height:17px;stroke:var(--accent);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.help-corner .help-stuck{align-content:flex-start}

/* ---- guide + walkthrough page ---- */
.help-guide{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:28px;align-items:start;padding:30px 0 0}
@media (max-width:900px){.help-guide{grid-template-columns:minmax(0,1fr)}}
.help-video{margin:0;border-radius:14px;overflow:hidden;background:#0f1914;box-shadow:var(--shadow);position:sticky;top:88px}
@media (max-width:900px){.help-video{position:static}}
.help-video video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#0f1914}
.help-video p{color:#fff;padding:16px}
.help-video p a{color:#fff;text-decoration:underline}
.help-steps h2{font-size:20px;margin:0 0 12px}
.help-steps ol{list-style:none;counter-reset:step;margin:0;padding:0}
.help-steps ol>li{counter-increment:step;position:relative;padding:0 0 12px 38px;color:var(--ink2);font-size:15px;line-height:1.6}
.help-steps ol>li::before{content:counter(step);position:absolute;left:0;top:0;width:26px;height:26px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font:600 12.5px/26px var(--font);text-align:center}
.help-plan{margin:10px 0 0;padding:12px 0 0;border-top:1px solid var(--line);font-size:14px;color:var(--ink2)}
.help-plan strong{color:var(--ink)}
.help-plan a{color:var(--accent);font-weight:600;margin-left:4px}
.help-plan a:hover{text-decoration:underline}
.help-yt{margin:16px 0 0}

/* chapters: links to the video at a time; buttons that seek with JS */
.help-chapters>li{padding:0 0 4px;counter-increment:none}
.help-steps .help-chapters>li{padding-left:0}
.help-steps .help-chapters>li::before{content:none}
.help-chapter{display:flex;align-items:baseline;gap:12px;padding:9px 12px;border-radius:10px;color:var(--ink);font-size:15px;cursor:pointer}
.help-chapter:hover{background:var(--glass-hi)}
.help-chapter.is-current{background:var(--accent-soft)}
.help-chapter-time{flex:none;min-width:3.2em;font:600 13px/1.4 var(--mono);color:var(--accent)}

/* ---- contact page ---- */
.help-email{display:flex;gap:16px 18px;align-items:flex-start;max-width:820px;margin:34px 0 0;padding:24px}
.help-howto{margin:28px 0 0}
.help-howto+.help-email{margin-top:18px}
.help-email>div{flex:1;min-width:0}
.help-email h2{font-size:clamp(20px,2.4vw,24px);margin:0 0 8px}
.help-email p{margin:0;color:var(--ink2);font-size:15px;line-height:1.75}
.help-email p a:not(.btn){color:var(--accent);font-weight:600;overflow-wrap:anywhere}
.help-email p a:not(.btn):hover{text-decoration:underline}
.help-email .help-email-cta{margin:16px 0 0}
.help-email .ic{width:40px;height:40px;border-radius:10px;background:var(--accent-soft);display:grid;place-items:center;flex:none;margin:0}
.help-email .ic svg{width:19px;height:19px;stroke:var(--accent);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.help-prose{max-width:820px}
.help-prose .help-section{padding-top:48px}
.help-prose h2{font-size:clamp(20px,2.4vw,24px);margin:0 0 12px}
.help-prose p,.help-prose li{color:var(--ink2);font-size:15px;line-height:1.75}
.help-prose p{margin:0 0 14px}
.help-prose ul{list-style:none;padding:0;margin:0 0 14px}
.help-prose li{position:relative;padding-left:22px;margin:0 0 8px}
.help-prose li::before{content:"";position:absolute;left:2px;top:11px;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.help-prose a{color:var(--accent);font-weight:600}
.help-prose a:hover{text-decoration:underline}
.help-prose strong{color:var(--ink)}
.help-figure{margin:6px 0 20px}
.help-figure img{display:block;width:100%;max-width:400px;height:auto;border-radius:12px;box-shadow:0 2px 10px rgba(15,23,20,.1)}
.help-apps{grid-template-columns:1fr 1fr;gap:12px;margin:0 0 16px}
.help-app h3{font-size:16px;margin:0 0 6px}
.help-app p{margin:0;font-size:14px;line-height:1.6}
@media (max-width:620px){.help-apps{grid-template-columns:1fr}}
@media (max-width:480px){
  .help-email{flex-direction:column;padding:20px}
}

@media (max-width:560px){
  .help-head{padding-top:36px}
  .help-home-head{padding-top:44px}
  .help-section,.help-corner{padding-top:44px}
  .help-stuck{margin-top:44px}
}
@media (prefers-reduced-motion:reduce){
  .help-fix,.help-fix:hover{transition:none;transform:none}
}
