/* HostClub Docs and HostClub KB (round 18). Builds on v4.css tokens and components (k-phero, k-prose, k-panel). */

/* Hero */
.hc-hhero .k-wrap, .hc-ahero .k-wrap { max-width: 980px; }
.hc-hkicker { margin-top: 18px; font: 600 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.hc-hhero h1 { max-width: 18ch; }
.hc-ahero h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1.12; max-width: 30ch; letter-spacing: -.025em; }
.hc-hsearch { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 26px; max-width: 680px; padding: 6px 6px 6px 48px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--ink-line-2); transition: box-shadow .2s; }
.hc-hsearch:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent-ink), 0 0 0 4px rgba(209, 15, 103, .18); }
.hc-hsearch > .i { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--on-ink-3); }
.hc-hsearch input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; color: var(--on-ink); font: 500 1rem var(--font); outline: none; }
.hc-hsearch input::placeholder { color: var(--on-ink-3); }
.hc-hsearch .k-btn { height: 46px; border-radius: 999px; }
.hc-hswitch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hc-hswitch a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; color: var(--on-ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; box-shadow: inset 0 0 0 1px var(--ink-line-2); transition: color .2s, box-shadow .2s, background-color .2s; }
.hc-hswitch a .i { width: 17px; height: 17px; }
.hc-hswitch a:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.hc-hswitch a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: none; }

/* Search results and lists */
.hc-hres { margin-bottom: 40px; }
.hc-hres h2, .hc-kbpop h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.hc-hempty { color: var(--muted); }
.hc-hlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hc-hlist li a { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; transition: background-color .15s, padding .25s var(--ease); }
.hc-hlist li a:hover { background: var(--mist); padding-left: 12px; }
.hc-hlist b { font-weight: 600; }
.hc-hlist small { grid-column: 2; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.hc-htag { align-self: center; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-deep); font: 600 .68rem var(--mono); letter-spacing: .06em; }
.hc-hnum { font: 600 .8rem var(--mono); color: var(--accent); }

/* Docs: sections in an uneven grid (big product lines take two columns) */
.hc-dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hc-dsec { display: flex; flex-direction: column; padding: 22px 22px 18px; border-radius: var(--r-card); background: var(--paper); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s, transform .25s var(--ease); }
.hc-dsec:hover { box-shadow: 0 0 0 1px var(--line), 0 18px 40px -26px rgba(18, 16, 25, .35); transform: translateY(-2px); }
.hc-dsec.is-wide { grid-column: span 2; background: linear-gradient(160deg, var(--paper) 55%, var(--mist)); }
.hc-dsec header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hc-dsec h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.hc-dsec header small { color: var(--muted); font-size: .8rem; }
.hc-dic { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.hc-dic .i { width: 20px; height: 20px; }
.hc-dsec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hc-dsec ul.is-cols { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.hc-dsec li a { display: block; padding: 6px 0; color: var(--text); font-size: .92rem; line-height: 1.4; text-decoration: none; border-bottom: 1px dashed transparent; }
.hc-dsec li a:hover { color: var(--accent); }
.hc-dmore { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; color: var(--accent); font-weight: 600; font-size: .9rem; text-decoration: none; }
.hc-dmore .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.hc-dmore:hover .i { transform: translateX(3px); }

/* KB: popular list beside the categories */
.hc-kbgrid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
.hc-kbpop { position: sticky; top: calc(var(--hdr) + 20px); }
.hc-kbcats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.hc-kbcat h2 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid var(--text); margin-bottom: 6px; }
.hc-kbcat h2 .i { width: 20px; height: 20px; color: var(--accent); }
.hc-kbcat h2 small { margin-left: auto; font: 500 .78rem var(--mono); color: var(--muted); }
.hc-kbcat ul { list-style: none; margin: 0; padding: 0; }
.hc-kbcat li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: .92rem; line-height: 1.45; text-decoration: none; }
.hc-kbcat li a:hover { color: var(--accent); }

/* Bottom call to action */
.hc-hcta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding: 28px 30px; border-radius: var(--r-stage); background: var(--ink); color: var(--on-ink-2); }
.hc-hcta h2 { color: var(--on-ink); font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.hc-hcta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hc-btn-line { color: var(--on-ink); border-color: var(--ink-line-2); }
.hc-btn-line:hover { border-color: #fff; }

/* Article: section nav, body, on-this-page */
.hc-aw { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 40px; align-items: start; }
.hc-anav, .hc-atoc { position: sticky; top: calc(var(--hdr) + 20px); max-height: calc(100dvh - var(--hdr) - 40px); overflow: auto; font-size: .88rem; }
.hc-anav > b, .hc-atoc > b { display: block; margin: 18px 0 8px; font: 600 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hc-asearch { position: relative; }
.hc-asearch .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.hc-asearch input { width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font: 500 .88rem var(--font); }
.hc-asearch input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hc-atree, .hc-atree ul { list-style: none; margin: 0; padding: 0; }
.hc-atree ul { padding-left: 12px; border-left: 1px solid var(--line); margin-left: 6px; }
.hc-atree a, .hc-atree span { display: block; padding: 5px 8px; border-radius: 8px; color: var(--text); text-decoration: none; line-height: 1.35; }
.hc-atree span { color: var(--muted); }
.hc-atree a:hover { background: var(--mist); }
.hc-atree a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.hc-atree summary { list-style: none; cursor: pointer; display: flex; align-items: center; }
.hc-atree summary::-webkit-details-marker { display: none; }
.hc-atree summary::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin: 0 2px 0 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .2s; }
.hc-atree details[open] > summary::before { transform: rotate(45deg); }
.hc-atree summary > * { flex: 1; }
.hc-aswitch { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--accent); font-weight: 600; text-decoration: none; }
.hc-aswitch .i { width: 17px; height: 17px; }
.hc-atoc a { display: block; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .15s, border-color .15s; }
.hc-atoc a.l3 { padding-left: 20px; font-size: .84rem; }
.hc-atoc a:hover { color: var(--text); }
.hc-atoc a[aria-current="true"] { color: var(--accent); border-left-color: var(--accent); }

.hc-abody { min-width: 0; max-width: 74ch; }
.hc-abody h2, .hc-abody h3 { scroll-margin-top: calc(var(--hdr) + 20px); }
.hc-abody table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: .9rem; display: block; overflow-x: auto; }
.hc-abody th, .hc-abody td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.hc-abody th { background: var(--mist); font-weight: 600; }
.hc-abody code { padding: 2px 6px; border-radius: 6px; background: var(--mist); font: .86em var(--mono); overflow-wrap: anywhere; }
.hc-abody pre { overflow-x: auto; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font: .84rem/1.6 var(--mono); }
.hc-abody pre code { background: none; padding: 0; color: inherit; }
.hc-abody .kb-note { margin: 14px 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(209, 15, 103, .18); }
.hc-abody .kb-note > :last-child { margin-bottom: 0; }
.hc-abody .kb-note .kb-note { margin: 10px 0 0; padding: 0; border: 0; background: none; }
.hc-abody ol, .hc-abody ul { padding-left: 1.3em; }
.hc-abody li > p { margin-bottom: 6px; }
.hc-abody a { overflow-wrap: anywhere; }
.hc-akids { margin-top: 26px; }
.hc-akids ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.hc-akids li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); color: var(--text); font-weight: 600; text-decoration: none; transition: box-shadow .2s, color .2s; }
.hc-akids li a:hover { color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.hc-akids li .i { width: 18px; height: 18px; flex-shrink: 0; }
.hc-apn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.hc-apn a { display: block; padding: 14px 16px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); color: var(--text); text-decoration: none; transition: box-shadow .2s; }
.hc-apn a:hover { box-shadow: 0 0 0 1.5px var(--accent); }
.hc-apn a.is-next { text-align: right; }
.hc-apn small { display: block; color: var(--muted); font-size: .78rem; }
.hc-apn b { font-weight: 600; font-size: .92rem; }
.hc-ahelp { margin-top: 28px; }

@media (max-width: 1180px) {
  .hc-aw { grid-template-columns: 230px minmax(0, 1fr); }
  .hc-atoc { display: none; }
}
@media (max-width: 960px) {
  .hc-dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-kbgrid { grid-template-columns: 1fr; }
  .hc-kbpop { position: static; }
}
@media (max-width: 860px) {
  .hc-aw { grid-template-columns: 1fr; gap: 24px; }
  .hc-anav { position: static; max-height: none; order: 2; border-top: 1px solid var(--line); padding-top: 18px; }
}
@media (max-width: 640px) {
  .hc-dgrid, .hc-kbcats { grid-template-columns: 1fr; }
  .hc-dsec.is-wide { grid-column: auto; }
  .hc-dsec ul.is-cols { grid-template-columns: 1fr; }
  .hc-hsearch { padding-left: 42px; }
  .hc-hsearch .k-btn { padding: 0 16px; }
  .hc-apn { grid-template-columns: 1fr; }
  .hc-hcta { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) { .hc-dsec, .hc-hlist li a, .hc-dmore .i { transition: none; } }
