/* Help center (/help, src/help.php): termify.io's knowledge base in our design. */
.hhero { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.hhero h1 { margin-bottom: .5rem; }
.hhero .lede { margin-bottom: 1.6rem; }

/* Search box */
.hsearch { display: flex; align-items: center; gap: .5rem; padding: .35rem .35rem .35rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.hsearch:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50), var(--shadow); }
.hsearch .icon { flex: none; width: 1.2rem; height: 1.2rem; color: var(--muted); }
.hsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); padding: .55rem 0; }
.hsearch input::-webkit-search-cancel-button { cursor: pointer; }
/* Big search: wider at rest, and widens a little more while you type (eases back when you leave it). */
.hsearch--lg { width: 100%; max-width: 40rem; margin: 0 auto; transition: max-width .35s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, border-color .2s; }
.hsearch--lg:focus-within { max-width: 48rem; }
@media (prefers-reduced-motion: reduce) { .hsearch--lg { transition: none; } }
.hsearch--lg input { font-size: 1.0625rem; }
.hsearch--sm { box-shadow: none; padding-left: .8rem; }
.hsearch--sm .btn { display: none; }   /* Enter searches; the button is only for the big box */
.hmain .hsearch--lg { margin: 0 0 1.5rem; max-width: none; }

/* Home */
.hhome { max-width: 60rem; }
.hcard { padding: 1.5rem 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hcard__title, .hhome__h { font-size: 1.15rem; color: var(--ink); margin: 0 0 1rem; }
.hhome__h { margin: 2.5rem 0 1rem; }
.hpop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem 1.5rem; }
.hpop a { display: flex; align-items: center; gap: .6rem; padding: .6rem .5rem; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.hpop a:hover { background: var(--tint); color: var(--blue); }
.hpop .icon { flex: none; width: 1.1rem; height: 1.1rem; color: var(--blue); }
.hcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.hcat { display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem 1.35rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hcat:hover { border-color: var(--mist); box-shadow: var(--shadow); transform: translateY(-2px); }
.hcat__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: .45rem; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.hcat__icon .icon { width: 1.3rem; height: 1.3rem; }
.hcat strong { color: var(--ink); font-size: 1.0625rem; }
.hcat__desc { font-size: .9375rem; line-height: 1.5; }
.hcat small { margin-top: auto; padding-top: .35rem; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.hcontact { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--blue-50); }
.hcontact strong { color: var(--ink); font-size: 1.0625rem; }
.hcontact p { margin: .2rem 0 0; }

/* Category, article and search pages: content + sidebar */
.hpage { padding-top: 1.75rem; padding-bottom: 4rem; }
.hpage .crumbs ol { justify-content: flex-start; }
.hgrid { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 3rem; margin-top: 1.25rem; align-items: start; }
.hmain__h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; color: var(--ink); margin: 0 0 .6rem; }
.hmain__lede { font-size: 1.0625rem; margin: 0 0 .4rem; }
.hmain__count { color: var(--muted); font-size: .875rem; font-weight: 600; margin: 0 0 1rem; }
.hlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.hlist a { display: flex; gap: .85rem; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.hlist a:hover { border-color: var(--mist); box-shadow: var(--shadow); }
.hlist .icon { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; color: var(--blue); }
.hlist span { display: grid; gap: .25rem; }
.hlist strong { color: var(--ink); }
.hlist a:hover strong { color: var(--blue); }
.hlist small { color: var(--text); font-size: .9rem; line-height: 1.5; }

/* Article */
.harticle { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.hprose { font-size: 1.0625rem; line-height: 1.7; color: var(--text); }
.hprose p { margin: 0 0 1em; }
.hprose h2 { font-size: 1.25rem; color: var(--ink); margin: 1.6em 0 .5em; }
.hprose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.hprose strong { color: var(--ink); }
.hprose ul, .hprose ol { margin: 0 0 1em; padding-left: 1.4em; }
.hprose ul { list-style: disc; }
.hprose ol { list-style: decimal; }
.hprose li::marker { color: var(--blue); font-weight: 700; }
.hprose li { margin: 0 0 .35em; }
.harticle__date { margin: 1.5rem 0 0; color: var(--muted); font-size: .875rem; }
.hfeedback { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.hfeedback form { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.hfeedback span { font-weight: 600; color: var(--ink); margin-right: .4rem; }
.hfeedback__btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: inherit; font-size: .9375rem; color: var(--slate); cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.hfeedback__btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.hfeedback__btn .icon { width: 1.05rem; height: 1.05rem; }
.hfeedback__thanks { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--green); font-weight: 600; }
.hfeedback__thanks .icon { width: 1.1rem; height: 1.1rem; }
.hrelated { margin-top: 2rem; }
.hrelated h2 { font-size: 1.15rem; color: var(--ink); margin: 0 0 1rem; }

/* Sidebar */
.hside { position: sticky; top: 6rem; display: grid; gap: 1rem; }
.hside__title { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .75rem 0 0; }
.hside__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.hside__cats a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .7rem; border-radius: 10px; color: var(--text); font-weight: 500; text-decoration: none; }
.hside__cats a:hover { background: var(--tint); color: var(--ink); }
.hside__cats a[aria-current] { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.hside__cats small { color: var(--muted); font-size: .8125rem; }
.hside__help { margin-top: .5rem; padding: 1.1rem; border-radius: 12px; background: var(--tint); }
.hside__help strong { color: var(--ink); }
.hside__help p { margin: .2rem 0 .75rem; font-size: .9rem; }

@media (max-width: 860px) {
  .hgrid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hside { position: static; }
  .hpop { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .hfeedback span { flex-basis: 100%; margin: 0 0 .25rem; } }
