.hmsdoc-hub-wrap{
  --ink:#0E1F1A;
  --ink-soft:#4C5C55;
  --forest:#0A2A22;
  --forest-2:#123A2E;
  --forest-deep:#061A14;
  --emerald:#146C48;
  --emerald-bright:#1F9560;
  --paper-2:#EFEADB;
  --line:#DED6C0;
  --gold:#B08A3E;
  --sage:#ECF1E6;
  font-family:'Inter',sans-serif;
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
.hmsdoc-hub-wrap *{ box-sizing:border-box; }
.hmsdoc-hub-wrap img,.hmsdoc-hub-wrap svg{ display:block; max-width:100%; }
.hmsdoc-hub-wrap a{ color:inherit; text-decoration:none; }
.hmsdoc-hub-inner{ max-width:1180px; margin:0 auto; padding:0px; }
.hmsdoc-hub-section{ padding:40px 0; }

/* section headings */
.hmsdoc-hub-sec-head{ max-width:640px; margin:0 auto 30px; }
.hmsdoc-hub-sec-head.hmsdoc-hub-center{ text-align:center; }
.hmsdoc-hub-sec-eyebrow{ font-size:12.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--emerald); margin-bottom:12px; display:flex; align-items:center; gap:8px; justify-content:center; }
.hmsdoc-hub-sec-eyebrow::before{ content:''; width:16px; height:1.5px; background:var(--emerald); display:inline-block; }
.hmsdoc-hub-sec-title{ font-family:'Fraunces',serif; font-weight:500; font-size:clamp(26px,3.2vw,40px); letter-spacing:-0.015em; line-height:1.14; margin-bottom:6px; }

/* search hero — light paper background, matches the marketing-site docs hero */
.hmsdoc-hub-hero{
  position:relative; overflow:visible; padding:30px 0 16px; z-index:100;
  background:transparent!important;
  
}
.hmsdoc-hub-carpet{ position:absolute; inset:0; opacity:.07; pointer-events:none;
  background-image:radial-gradient(circle at 20px 20px, var(--gold) 1.5px, transparent 1.6px), radial-gradient(circle at 60px 60px, var(--gold) 1.5px, transparent 1.6px);
  background-size:80px 80px;
}
.hmsdoc-hub-glow{ position:absolute; border-radius:50%; filter:blur(60px); pointer-events:none; }
.hmsdoc-hub-glow-a{ width:420px; height:420px; top:-220px; left:8%; background:radial-gradient(circle, rgba(31,149,96,.22), transparent 70%); }
.hmsdoc-hub-glow-b{ width:360px; height:360px; top:-180px; right:6%; background:radial-gradient(circle, rgba(176,138,62,.18), transparent 70%); }
.hmsdoc-hub-eyebrow-line{ font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--emerald); margin-bottom:18px; display:flex; align-items:center; gap:8px; justify-content:center; }
.hmsdoc-hub-eyebrow-dot{ width:6px; height:6px; border-radius:50%; background:var(--emerald-bright); box-shadow:0 0 0 4px rgba(31,149,96,.16); display:inline-block; }
.hmsdoc-hub-hero h1{ font-family:'Fraunces',serif; font-weight:500; color:var(--forest-deep); text-align:center; font-size:clamp(30px,4.2vw,48px); line-height:1.08; letter-spacing:-0.02em; max-width:680px; margin:0 auto 16px; }
.hmsdoc-hub-lede{ text-align:center; max-width:540px; margin:0 auto 34px; font-size:16px; line-height:1.65; color:var(--ink-soft); }
.hmsdoc-hub-search-wrap{ max-width:660px; margin:0 auto; position:relative; z-index:1000; }
.hmsdoc-hub-search{ position:relative; }
.hmsdoc-hub-search-results{ position:absolute; left:0; right:0; top:calc(100% + 10px); background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:0 26px 50px -20px rgba(10,42,34,.35); padding:8px; text-align:left; z-index:99999; max-height:340px; overflow-y:auto; }

.hmsdoc-hub-search-results[hidden]{ display:none !important; }
.hmsdoc-hub-search-results::-webkit-scrollbar{ width:8px; }
.hmsdoc-hub-search-results::-webkit-scrollbar-thumb{ background:#D8D0BD; border-radius:99px; }
.hmsdoc-hub-search-result:focus-visible{ outline:2px solid var(--gold); outline-offset:-2px; }

.hmsdoc-hub-search-result{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 13px; border-radius:11px; transition:background .12s ease; }
.hmsdoc-hub-search-result:hover,
.hmsdoc-hub-search-result.is-active{ background:var(--sage); }
.hmsdoc-hub-search-result-title{ font-size:13.8px; font-weight:600; color:var(--ink); line-height:1.3; }
.hmsdoc-hub-search-result-main{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.hmsdoc-hub-search-result-context{ font-size:10.5px; font-weight:700; color:var(--emerald); text-transform:uppercase; letter-spacing:.05em; }
.hmsdoc-hub-search-result-context::first-letter{ text-transform:uppercase; }
.hmsdoc-hub-search-result-title mark{ background:none; color:var(--emerald); font-weight:700; }
.hmsdoc-hub-search-result-cat{ font-size:11px; font-weight:600; color:var(--ink-soft); background:var(--paper-2); border:1px solid var(--line); padding:3px 9px; border-radius:100px; white-space:nowrap; flex-shrink:0; }
.hmsdoc-hub-search-empty{ padding:16px 14px; font-size:13px; color:var(--ink-soft); text-align:center; }
.hmsdoc-hub-wrap .hmsdoc-hub-search-input{ width:100% !important; height:58px !important; min-height:58px !important; padding:0 28px 0 68px !important; border-radius:999px !important; border:1px solid #D8CFBA !important; background:#fff !important; color:var(--ink) !important; font-family:'Inter',sans-serif !important; font-size:16px !important; line-height:1.2 !important; box-shadow:0 16px 34px -22px rgba(10,42,34,.28), 0 2px 5px rgba(10,42,34,.03) !important; transition:box-shadow .2s, border-color .2s !important; appearance:none !important; -webkit-appearance:none !important; outline:none; }
.hmsdoc-hub-wrap .hmsdoc-hub-search-input::placeholder{ color:var(--ink-soft) !important; opacity:1; }
.hmsdoc-hub-wrap .hmsdoc-hub-search-input:focus{ outline:none !important; border-color:var(--gold) !important; box-shadow:0 16px 34px -22px rgba(10,42,34,.28), 0 0 0 4px rgba(176,138,62,.12) !important; }
.hmsdoc-hub-wrap .hmsdoc-hub-search-input:focus-visible{ outline:none !important; }
.hmsdoc-hub-search-input:focus{ outline:none; border-color:var(--gold); box-shadow:0 16px 34px -22px rgba(10,42,34,.28), 0 0 0 4px rgba(176,138,62,.12); }
.hmsdoc-hub-search-icon{ position:absolute; left:26px; top:50%; transform:translateY(-50%); width:22px; height:22px; border-radius:50%; background:transparent; color:var(--ink-soft); display:flex; align-items:center; justify-content:center; pointer-events:none; }
.hmsdoc-hub-kbd{ display:none; }
.hmsdoc-hub-quicklinks{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:22px; }
.hmsdoc-hub-quicklinks a{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; color:var(--ink-soft); background:#fff; border:1px solid var(--line); padding:8px 18px 8px 16px; border-radius:100px; transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.hmsdoc-hub-quicklink-dot{ width:5px; height:5px; border-radius:50%; background:var(--ink-soft); display:inline-block; transition:background .18s ease; }
.hmsdoc-hub-quicklinks a:hover{ background:var(--forest); color:#fff; border-color:var(--forest); transform:translateY(-2px); box-shadow:0 10px 20px -10px rgba(10,42,34,.45); }
.hmsdoc-hub-quicklinks a:hover .hmsdoc-hub-quicklink-dot{ background:var(--gold); }

/* popular articles: sidebar + list */
.hmsdoc-hub-band-sage{ background:var(--sage); border-radius:24px; }
.hmsdoc-hub-docs-layout{ display:grid; grid-template-columns:250px 1fr; gap:32px; align-items:start; }
.hmsdoc-hub-docs-side{ position:sticky; top:24px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px; }
.hmsdoc-hub-docs-side h5{ font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-soft); margin-bottom:12px; }
.hmsdoc-hub-docs-side ul{ list-style:none; display:flex; flex-direction:column; gap:2px; margin:0 0 18px; padding:0; }
.hmsdoc-hub-docs-side ul:last-child{ margin-bottom:0; }
.hmsdoc-hub-docs-side a{ display:flex; align-items:center; justify-content:space-between; font-size:13.3px; color:var(--ink-soft); padding:9px 10px; border-radius:8px; transition:all .15s; cursor:pointer; }
.hmsdoc-hub-docs-side a:hover{ background:var(--paper-2); color:var(--ink); }
.hmsdoc-hub-docs-side a.hmsdoc-hub-active{ background:var(--sage); color:var(--forest); font-weight:600; }
.hmsdoc-hub-docs-side a span.n{ font-size:11px; color:var(--ink-soft); opacity:.7; }

.hmsdoc-hub-article-list{ display:flex; flex-direction:column; gap:12px; }
.hmsdoc-hub-article-row{ display:flex; align-items:flex-start; gap:15px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:17px 19px; transition:border-color .2s, transform .2s; }
.hmsdoc-hub-article-row:hover{ border-color:var(--emerald-bright); transform:translateX(3px); }
.hmsdoc-hub-article-ico{ width:36px; height:36px; border-radius:10px; background:var(--sage); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.hmsdoc-hub-article-body{ flex-grow:1; }
.hmsdoc-hub-article-body .hmsdoc-hub-tag{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--emerald); margin-bottom:4px; }
.hmsdoc-hub-article-body h5{ font-family:'Fraunces',serif; font-weight:500; font-size:15.5px; margin-bottom:4px; }
.hmsdoc-hub-article-body h5 a:hover{ color:var(--emerald); }
.hmsdoc-hub-article-body p{ font-size:13px; color:var(--ink-soft); line-height:1.5; margin:0; }
.hmsdoc-hub-article-meta{ font-size:12px; color:var(--ink-soft); white-space:nowrap; display:flex; align-items:center; gap:6px; flex-shrink:0; }

@media(max-width:980px){ .hmsdoc-hub-docs-layout{ grid-template-columns:1fr; } .hmsdoc-hub-docs-side{ position:static; } }
