/* ============================================================
   AECOtools Help — public tool overviews.
   Builds on ../styles.css (site header, footer, buttons, tokens).
   The full, detailed guides ship inside AECOtools ("?" button).
   ============================================================ */

:root {
  --lime: rgb(183, 240, 0);
  --lime-soft: rgba(183, 240, 0, .18);
}

.help-hero { padding: 64px 0 28px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.help-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: .35em; }
.help-hero h1 .hl { background: var(--lime); padding: 0 .18em; border-radius: 6px; }
.help-hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 760px; margin: 0; }

.help-crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 1.1rem; }
.help-crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.help-crumbs a:hover { color: var(--ink); }

.help-body { padding: 36px 0 72px; }
.help-article { max-width: 820px; }
.help-article h2 {
  font-size: 1.45rem; letter-spacing: -.015em; margin: 2.2rem 0 .7rem;
  padding-bottom: .35rem; border-bottom: 3px solid var(--lime);
  display: inline-block;
}
.help-article h3 { font-size: 1.08rem; margin: 1.4rem 0 .4rem; }
.help-article p, .help-article li { color: var(--ink-soft); }
.help-article ul, .help-article ol { padding-left: 1.3rem; margin: .4rem 0 1rem; }
.help-article li { margin: .3rem 0; }

.help-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 1.2rem 0 .6rem; }
.help-fact { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.help-fact span { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.help-fact strong { display: block; margin-top: 2px; }

.help-features { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 22px; }
.help-features li { position: relative; padding-left: 1.6rem; margin: .2rem 0; }
.help-features li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75rem; height: .75rem; border-radius: 3px; background: var(--lime); }

.help-steps { counter-reset: step; list-style: none; padding: 0 !important; }
.help-steps li { counter-increment: step; position: relative; padding: .15rem 0 .15rem 2.6rem; margin: .7rem 0; }
.help-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ink); color: var(--lime);
  font-weight: 800; display: grid; place-items: center; font-size: .9rem;
}

.pill { display: inline-block; font-size: .86em; font-weight: 700; padding: 0 .55em; border-radius: 6px; background: var(--ink); color: var(--lime); white-space: nowrap; }
.pill.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }

.help-tip { background: var(--lime-soft); border-left: 4px solid var(--lime); border-radius: 8px; padding: 12px 16px; margin: 1.1rem 0; }
.help-tip p:last-child { margin-bottom: 0; }

.help-more { margin-top: 2.6rem; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 26px; }
.help-more h2 { color: #fff; border-bottom-color: var(--lime); margin-top: 0; }
.help-more p, .help-more li { color: #d7dbe2; }
.help-more a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.help-more .q { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 5px; background: #fff; color: var(--ink); font-weight: 800; }

/* Home page */
.help-search { margin: 1.4rem 0 0; max-width: 520px; }
.help-search input { width: 100%; padding: .85rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); font: inherit; background: #fff; }
.help-group { margin: 2.4rem 0 0; }
.help-group h2 { font-size: 1.35rem; margin-bottom: .9rem; }
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.help-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 16px; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.help-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--ink); }
.help-card h3 { margin: 0 0 .3rem; font-size: 1.08rem; }
.help-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.help-card .tag { display: inline-block; margin-top: .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--lime-soft); border-radius: 999px; padding: .12rem .6rem; }

@media print {
  .site-header, .site-footer, .help-search { display: none; }
  .help-more { background: #fff; color: var(--ink); border: 1px solid var(--border); }
  .help-more h2, .help-more p, .help-more li { color: var(--ink); }
}
