/* ==========================================================================
   Tyrone v10 — information pages as a handbook: folder tabs on one card
   ========================================================================== */
.hb{margin-top:4px}
.hb-tabs{display:flex;gap:4px;margin:20px 0 0;padding:0 20px;overflow-x:auto;scrollbar-width:none;position:relative;z-index:1}
.hb-tabs::-webkit-scrollbar{display:none}
.hb-tabs a{flex:none;display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 18px;border-radius:16px 16px 0 0;background:var(--panel);border:1px solid var(--line);border-bottom:0;
  font:750 14px var(--display);color:var(--text-2);transform:translateY(4px);transition:transform .15s,background .15s}
.hb-tabs a:hover{transform:translateY(0);color:var(--text)}
.hb-tabs a[aria-current="page"]{background:var(--surface);color:var(--text);transform:translateY(1px);box-shadow:inset 0 3px 0 var(--token)}
.hb-tab-ico{display:grid;place-items:center;width:18px;height:18px}
.hb-tab-ico svg{width:16px;height:16px}

.hb-card{border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line);overflow:hidden}
.hb-head{padding:clamp(28px,4vw,52px) clamp(22px,4vw,56px) clamp(22px,3vw,32px);border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,var(--raised) 0%,var(--surface) 100%)}
.hb-kicker{margin:0 0 10px;font:800 13px var(--display);color:var(--token)}
.hb-head h1{font-size:clamp(34px,5vw,64px)}
.hb-excerpt{margin:14px 0 0;max-width:62ch;color:var(--text-soft);font-size:17px;line-height:1.6}
.hb-meta{display:flex;flex-wrap:wrap;gap:18px;margin:18px 0 0;font-size:13px;color:var(--text-3)}
.hb-meta b{color:var(--text-2);font-weight:700}

.hb-grid{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:40px;padding:clamp(22px,4vw,48px) clamp(22px,4vw,56px)}
.hb-grid.no-toc{grid-template-columns:minmax(0,1fr)}
.hb-body{font:17px/1.85 var(--text-font);color:var(--text-soft);max-width:70ch}
.hb-body .t-ad{margin:0 0 28px}
.hb-body h2{font-size:28px;margin:40px 0 12px;color:var(--text);scroll-margin-top:calc(var(--top) + 16px)}
.hb-body h3{font-size:20px;margin:28px 0 8px;color:var(--text)}
.hb-body p{margin:0 0 16px}
.hb-body a{color:var(--token);text-decoration:underline;text-underline-offset:3px}
.hb-body ul,.hb-body ol{padding-left:1.3em;margin:0 0 16px}
.hb-body li{margin:6px 0}
.hb-body strong{color:var(--text)}
.hb-toc{position:sticky;top:calc(var(--top) + 20px);align-self:start;padding-left:20px;border-left:2px solid var(--line)}
.hb-toc h2{font:800 13px var(--display);color:var(--text-3);margin-bottom:10px;letter-spacing:0}
.hb-toc a{display:block;padding:6px 0;font-size:14px;color:var(--text-2);position:relative}
.hb-toc a:hover{color:var(--text)}
.hb-toc a.active{color:var(--token)}
.hb-toc a.active::before{content:"";position:absolute;left:-22px;top:8px;bottom:8px;width:2px;background:var(--token)}

.hb-help{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px clamp(22px,4vw,56px);border-top:1px solid var(--line);background:var(--panel)}
.hb-help b{display:block;font:800 16px var(--display)}
.hb-help span{font-size:14px;color:var(--text-2)}

/* contact form inside the handbook */
.hb-body form{display:grid;gap:12px;max-width:560px}
.hb-body input,.hb-body textarea,.hb-body select{width:100%;min-height:48px;padding:12px 16px;border-radius:14px;border:1px solid var(--line);background:var(--night);color:var(--text);outline:0;font:15px var(--text-font)}
.hb-body input:focus,.hb-body textarea:focus{border-color:var(--cobalt)}
.hb-body label{font:750 13px var(--display);color:var(--text-2)}
.hb-body button,.hb-body input[type=submit]{justify-self:start;width:auto;min-height:48px;padding:0 26px;border-radius:999px;background:var(--token);color:var(--night);border:0;font:900 15px var(--display);cursor:pointer;box-shadow:0 4px 0 var(--token-deep)}
.hb-body .lp-contact-frame{width:100%;min-height:640px;border:0;border-radius:var(--r);background:transparent}

@media (max-width:1000px){
  .hb-grid{grid-template-columns:1fr}
  .hb-toc{display:none}
}
@media (max-width:640px){
  .hb-tabs{padding:0 6px}
  .hb-help{flex-direction:column;align-items:flex-start}
}

/* pages without section headings get a page-info rail instead of a TOC */
.hb-aside h2 + .hb-facts{margin-bottom:22px}
.hb-aside h2:not(:first-child){margin-top:4px}
.hb-facts{display:grid;gap:10px;margin:0}
.hb-facts div{display:flex;flex-direction:column}
.hb-facts dt{font-size:12px;color:var(--text-3)}
.hb-facts dd{margin:0;font:800 15px var(--display);color:var(--text)}
.hb-aside-cta{display:inline-flex!important;align-items:center;margin-top:18px;padding:9px 16px!important;border-radius:999px;background:var(--token);color:var(--night)!important;font:900 13px var(--display)}
.hb-aside-cta::before{display:none}
