/* ocalt.com/help. Uses the site tokens from style.css: --ink, --bg, --muted, --hairline, --surface. */

.hc { background: var(--bg); color: var(--ink); padding-bottom: 5rem; }
.hc-wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter, 1.25rem); }
.hc h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .75rem; }
.hc-h2, .hc section > h2 { font-family: var(--font-ui); font-size: 1.125rem; font-weight: 500; margin: 2.75rem 0 1rem; }
.hc-lede { color: var(--muted); font-size: 1.0625rem; max-width: 40rem; margin: 0 0 1.25rem; }
.hc-kicker, .hc-group-label, .hc-side-label, .hc-count {
    font-family: var(--font-ui); font-size: .6875rem; font-weight: 500; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted);
}
.hc-kicker { margin-bottom: 1rem; }
.hc a { color: inherit; }

/* hero and search */
.hc-hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem); text-align: center; border-bottom: 1px solid var(--hairline); background: var(--surface); }
.hc-hero .hc-lede { margin: 0 auto 2rem; }
.hc-bar { border-bottom: 1px solid var(--hairline); padding: .9rem 0; background: var(--bg); position: sticky; top: 0; z-index: 20; }
.hc-search {
    position: relative; display: flex; align-items: center; gap: .6rem; max-width: 40rem; margin: 0 auto;
    background: var(--bg); border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 4px 4px 1.1rem;
}
.hc-search:focus-within { border-color: var(--ink); }
.hc-search.is-big { box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.07); padding: 6px 6px 6px 1.3rem; }
.hc-search > svg { flex: none; color: var(--muted); }
.hc-search input {
    flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 1rem; color: var(--ink);
}
.hc-search.is-big input { min-height: 50px; font-size: 1.0625rem; }
.hc-search input::-webkit-search-cancel-button { display: none; }
.hc-search button[type=submit] {
    flex: none; min-height: 44px; padding: 0 1.3rem; border-radius: 999px; background: var(--ink); color: var(--bg);
    font-family: var(--font-ui); font-size: .9375rem; font-weight: 500;
}
.hc-search.is-big button[type=submit] { min-height: 50px; padding: 0 1.6rem; }
.hc-suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; text-align: left;
    background: var(--bg); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.14); max-height: min(70vh, 34rem); overflow-y: auto;
}
.hc-s-item { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--hairline); text-decoration: none; }
.hc-s-item:hover, .hc-s-item.is-on { background: var(--surface); }
.hc-s-t { font-family: var(--font-ui); font-weight: 500; font-size: .9375rem; }
.hc-s-p { font-family: var(--font-ui); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); align-self: center; }
.hc-s-s { grid-column: 1 / -1; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.hc-s-all, .hc-s-none { display: block; padding: .8rem 1.1rem; font-family: var(--font-ui); font-size: .875rem; }
.hc-s-all { font-weight: 500; }
.hc-s-all:hover { background: var(--surface); }
.hc-s-none { color: var(--muted); }
.hc mark { background: transparent; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.hc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.hc-chips a {
    font-family: var(--font-ui); font-size: .8125rem; padding: .4rem .85rem; border-radius: 999px;
    border: 1px solid var(--hairline); background: var(--bg); text-decoration: none;
}
.hc-chips a:hover { border-color: var(--ink); }

/* lists and tiles */
.hc-list { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.hc-two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; border-top: 0; }
.hc-two .hc-row { border-top: 1px solid var(--hairline); border-bottom: 0; }
.hc-row { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1rem .25rem; border-bottom: 1px solid var(--hairline); text-decoration: none; }
.hc-row:hover .hc-row-title { text-decoration: underline; text-underline-offset: 3px; }
.hc-row-title { font-family: var(--font-ui); font-weight: 500; font-size: 1rem; }
.hc-row-sum { grid-column: 1 / 2; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.hc-row-prod { grid-column: 2; grid-row: 1; font-family: var(--font-ui); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); align-self: center; }
.hc-group-label { margin: 1.75rem 0 .75rem; }
.hc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.hc-tile { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.15rem; border: 1px solid var(--hairline); border-radius: 14px; text-decoration: none; min-height: 8.5rem; }
.hc-tile:hover { border-color: var(--ink); }
.hc-tile-name { font-family: var(--font-ui); font-weight: 500; font-size: 1.0625rem; }
.hc-tile-blurb { color: var(--muted); font-size: .875rem; line-height: 1.45; flex: 1; }
.hc-tile-n { font-family: var(--font-ui); font-size: .75rem; color: var(--muted); }

/* product and results pages */
.hc-product, .hc-results { padding-top: 2.25rem; }
.hc-crumbs { font-family: var(--font-ui); font-size: .8125rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.hc-crumbs a:hover { color: var(--ink); }
.hc-open {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.1rem; border-radius: 999px;
    border: 1px solid var(--ink); font-family: var(--font-ui); font-size: .875rem; font-weight: 500; text-decoration: none; margin-bottom: 1.5rem;
}
.hc-open:hover { background: var(--ink); color: var(--bg); }
.hc-count { margin: .5rem 0 .75rem; }

/* article */
.hc-article-shell { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 3rem; padding-top: 2.25rem; }
.hc-side { position: sticky; top: 5.5rem; align-self: start; max-height: calc(100svh - 7rem); overflow: auto; padding-right: .5rem; }
.hc-side-label { padding: .9rem .6rem .4rem; }
.hc-side nav a { display: block; padding: .4rem .6rem; border-radius: 8px; font-family: var(--font-ui); font-size: .8438rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
.hc-side nav a:hover { background: var(--surface); color: var(--ink); }
.hc-side nav a.is-active { background: var(--surface); color: var(--ink); font-weight: 500; }
.hc-side-btn { display: none; }
.hc-article { max-width: 44rem; min-width: 0; }
.hc-article p, .hc-article li { font-size: 1.0313rem; line-height: 1.65; }
.hc-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.hc-steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem; position: relative; padding-bottom: 1.4rem; }
.hc-steps li:not(:last-child)::before { content: ""; position: absolute; left: calc(1.125rem - .5px); top: 2.35rem; bottom: .2rem; width: 1px; background: var(--hairline); }
.hc-n {
    width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center;
    font-family: var(--font-ui); font-weight: 500; font-size: .9375rem;
}
.hc-steps li > div { padding-top: .2rem; }
.hc strong.ui {
    font-family: var(--font-ui); font-weight: 600; font-size: .94em; white-space: normal;
    background: var(--surface); border: 1px solid var(--hairline); border-radius: 6px; padding: .02em .38em;
    box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hc-ref { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.hc-ref:hover { text-decoration-color: var(--ink); }
.hc-before, .hc-after, .hc-tips, .hc-stuck { border: 1px solid var(--hairline); border-radius: 14px; padding: 1.1rem 1.3rem; margin-top: 2rem; }
.hc-before { background: var(--surface); }
.hc-before h2, .hc-after h2, .hc-tips h2, .hc-stuck h2 { margin: 0 0 .5rem !important; font-size: 1rem !important; }
.hc-before ul, .hc-tips ul { margin: 0; padding-left: 1.15rem; }
.hc-tips li + li { margin-top: .4rem; }
.hc-after p, .hc-stuck p { margin: 0; }
.hc-stuck a { text-decoration: underline; text-underline-offset: 3px; }
.hc-stuck-home { margin-top: 3rem; }

@media (max-width: 60rem) {
    .hc-article-shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 1.25rem; }
    .hc-side { display: none; position: static; max-height: none; border: 1px solid var(--hairline); border-radius: 14px; padding: .25rem .4rem .6rem; margin-bottom: 1.5rem; }
    .hc-side.is-open { display: block; }
    .hc-side-btn {
        display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--hairline);
        font-family: var(--font-ui); font-size: .8438rem; margin-bottom: 1rem; justify-self: start;
    }
    .hc-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 34rem) {
    .hc-search { padding-left: .9rem; }
    .hc-search button[type=submit] { padding: 0 1rem; }
    .hc-search.is-big button[type=submit] { padding: 0 1.1rem; }
    .hc-row { grid-template-columns: minmax(0, 1fr); }
    .hc-row-prod { grid-column: 1; grid-row: auto; }
    .hc-steps li { grid-template-columns: 2rem minmax(0, 1fr); gap: .8rem; }
    .hc-n { width: 2rem; height: 2rem; font-size: .875rem; }
    .hc-steps li:not(:last-child)::before { left: calc(1rem - .5px); top: 2.1rem; }
}
@media (prefers-color-scheme: dark) {
    .hc-search.is-big { box-shadow: none; }
    .hc-suggest { box-shadow: 0 16px 40px rgba(0,0,0,.6); }
}
