/* =====================================================================================================================
   owns.ai  —  CAREERS (/careers) AND HOW-TO GUIDES (/how-to)

   .cr-*   the careers page: hero facts, how we work, the role list with its filters, how we hire, the office
           (content/careers.inc, js/careers.js); and a role's own page with its application form (Careers.PageHtml)
   .cs-page, .cs-story-page   a client story's own page (CaseStudies.PageHtml); its parts are styled in marketing.css
   .ht-*   the how-to guides: the index with its search and category chips, and one guide with its "On this page" rail,
           steps, tips and screenshots (content/how-to.inc, content/how-to/*.inc, js/how-to.js, default.aspx.cs howToHTML)

   Loaded before design.css, and written in its language: hairlines, the hexagon for icon tiles, the chamfer as a
   corner mark, Archivo capitals for labels. Tokens only, so both themes are right by construction.

   Coded By Darko G.
   ===================================================================================================================== */

/* ---- shared section head ------------------------------------------------------------------------------------------- */
.cr-section-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.cr-section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 10px 0 8px; }
.cr-section-head p { margin: 0; }

/* =====================================================================================================================
   CAREERS
   ===================================================================================================================== */

.cr-hero { padding-bottom: 20px; }
.cr-hero h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
.cr-hero-lead { max-width: 700px; margin-left: auto; margin-right: auto; }
.cr-hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cr-facts { display: inline-flex; flex-wrap: wrap; justify-content: center; margin-top: 34px; border: 1px solid var(--border); background: var(--surface); }
.cr-fact { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 30px; min-width: 150px; }
.cr-fact + .cr-fact { border-left: 1px solid var(--border); }
.cr-fact b { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.7rem; line-height: 1; background: var(--grad-text, var(--grad)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cr-fact b i { font-size: 1.35rem; }
.cr-fact span { font-family: var(--font-display); font-stretch: 112%; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---- how we work --------------------------------------------------------------------------------------------------- */
.cr-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.cr-perk { background: var(--surface); padding: 28px 26px; position: relative; }
.cr-perk h3 { font-size: 1rem; margin: 16px 0 8px; text-transform: uppercase; font-stretch: 115%; letter-spacing: .02em; }
.cr-perk p { margin: 0; color: var(--text-2); font-size: .93rem; line-height: 1.6; }
.cr-perk-icon, .ht-card-icon, .ht-head-icon { display: inline-grid; place-items: center; width: 46px; height: 42px; clip-path: var(--hex); background: var(--grad); color: #fff; font-size: 1.05rem; }

/* ---- the role list ------------------------------------------------------------------------------------------------- */
.cr-roles, .ht-library { scroll-margin-top: 80px; }
.cr-toolbar, .ht-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.cr-chips, .ht-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-chip, .ht-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer;
                     font-family: var(--font-display); font-stretch: 112%; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: border-color .2s, color .2s, background .2s; }
.cr-chip i, .ht-chip i { color: var(--muted); transition: color .2s; }
.cr-chip small, .ht-chip small { font-family: var(--font-sans); font-size: .7rem; letter-spacing: 0; color: var(--faint); font-weight: 600; }
.cr-chip:hover, .ht-chip:hover { border-color: var(--border-strong); color: var(--text); }
.cr-chip.is-active, .ht-chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.cr-chip.is-active i, .cr-chip.is-active small, .ht-chip.is-active i, .ht-chip.is-active small { color: inherit; opacity: .8; }
.cr-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-search { position: relative; display: block; }
.cr-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; z-index: 1; }
.cr-search .input { padding-left: 34px; width: 250px; }
.cr-tools .select { width: auto; min-width: 150px; }
.cr-count, .ht-count { min-height: 22px; margin: 16px 0 18px; color: var(--muted); font-size: .88rem; }
.ht-count { margin: 0; }
.cr-count b, .ht-count b { color: var(--text); font-weight: 600; }
.cr-count .link-btn, .ht-count .link-btn { margin-left: 10px; font-size: .8rem; }

.cr-list { display: flex; flex-direction: column; gap: 12px; }
.cr-job { position: relative; display: flex; align-items: center; gap: 24px; padding: 22px 26px; background: var(--surface); border: 1px solid var(--border);
          transition: transform .3s var(--ease), border-color .25s, box-shadow .3s var(--ease); animation: cr-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.cr-job::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--rule, var(--grad)); opacity: 0; transition: opacity .25s; }
.cr-job:hover, .cr-job:focus-within { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.cr-job:hover::before, .cr-job:focus-within::before { opacity: 1; }
.cr-job-hit { position: absolute; inset: 0; z-index: 2; }
.cr-job-hit:focus-visible { outline: 2px solid #009BDB; outline-offset: -2px; }
.cr-job-main { flex: 1; min-width: 0; }
.cr-job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2);
          font-family: var(--font-display); font-stretch: 112%; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cr-tag.is-team i { color: var(--brand); }
.cr-tag.is-hot { border-color: transparent; background: var(--grad); color: #fff; }
.cr-job-title { margin: 10px 0 6px; font-size: 1.18rem; line-height: 1.3; }
.cr-job-summary { margin: 0; color: var(--text-2); font-size: .93rem; line-height: 1.55; max-width: 780px; }
.cr-job-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 12px 0 0; padding: 0; color: var(--muted); font-size: .84rem; }
.cr-job-meta i { margin-right: 4px; color: var(--faint); }
.cr-job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; text-align: right; }
.cr-job-posted { color: var(--faint); font-size: .8rem; }
.cr-job-go { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-family: var(--font-display); font-stretch: 112%; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cr-job-go i { transition: transform .3s var(--ease); }
.cr-job:hover .cr-job-go i { transform: translateX(4px); }
.cr-skel { display: block; animation: none; }
.cr-empty, .ht-empty { grid-column: 1 / -1; border: 1px dashed var(--border-strong); background: var(--surface); }
@keyframes cr-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- a role's own page --------------------------------------------------------------------------------------------- */
.cr-page, .cs-page { padding-top: 34px; padding-bottom: 40px; }
.cr-detail-page .cr-detail-head h1 { margin: 14px 0 10px; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.12; }
.cr-detail-page .cr-detail-head .lead { max-width: 860px; font-size: 1.08rem; }
.cr-detail-page .cr-detail-grid { padding-top: 30px; gap: 48px; }
.cr-detail-page .cr-side-card { top: 90px; }
.cr-detail-page .cr-detail-sec h2 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-stretch: 115%; color: var(--muted); margin: 0 0 12px; }
.cr-detail-page .cr-detail-sec + .cr-detail-sec { margin-top: 30px; }
.cr-detail-page .cr-detail-sec p, .cr-detail-page .cr-bullets li { font-size: 1rem; }
.cr-apply-page { scroll-margin-top: 90px; margin-top: 48px; padding: 32px 34px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.cr-apply-page::before { content: ""; position: absolute; left: -1px; top: -1px; right: -1px; height: 2px; background: var(--rule, var(--grad)); }
.cr-apply-page .cr-apply-title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 4px; }
.cr-apply-sub { margin: 0 0 22px; }
.cr-more, .cs-more { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--border); }
.cr-more h2, .cs-more h2 { font-size: 1.3rem; margin: 0; }
.cr-more .row-between, .cs-more .row-between { margin-bottom: 18px; gap: 10px; }
.cr-detail-head { padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.cr-detail-head h2 { margin: 12px 0 8px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; }
.cr-detail-head .lead { margin: 0; font-size: 1.02rem; color: var(--text-2); }
.cr-facts-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 20px 0 0; background: var(--border); border: 1px solid var(--border); }
.cr-facts-list > div { background: var(--surface-2); padding: 12px 14px; }
.cr-facts-list dt { font-family: var(--font-display); font-stretch: 112%; font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.cr-facts-list dd { margin: 0; font-size: .9rem; color: var(--text); font-weight: 600; }
.cr-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; padding-top: 24px; }
.cr-detail-sec + .cr-detail-sec { margin-top: 24px; }
.cr-detail-sec h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-stretch: 115%; color: var(--muted); margin: 0 0 10px; }
.cr-detail-sec p { margin: 0; color: var(--text-2); line-height: 1.7; }
.cr-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cr-bullets li { display: flex; gap: 11px; color: var(--text-2); line-height: 1.55; }
.cr-bullets i { color: var(--brand); margin-top: 4px; font-size: .82rem; flex-shrink: 0; width: 14px; text-align: center; }
.cr-detail-side { display: flex; flex-direction: column; gap: 14px; }
.cr-side-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--surface-2); border: 1px solid var(--border); position: sticky; top: 0; }
.cr-side-card b { font-size: 1rem; }
.cr-side-card > span { color: var(--text-2); font-size: .88rem; line-height: 1.5; }
.cr-side-card small { color: var(--muted); font-size: .8rem; }
.cr-side-skills b { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.cr-side-skills div { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-skill { padding: 4px 9px; background: var(--surface); border: 1px solid var(--border); font-size: .78rem; color: var(--text-2); }
.cr-side-note { display: flex; gap: 10px; padding: 14px; border: 1px dashed var(--border-strong); color: var(--text-2); font-size: .85rem; line-height: 1.5; }
.cr-side-note i { color: var(--brand); margin-top: 3px; }

/* ---- the application form ------------------------------------------------------------------------------------------ */
.cr-apply { padding-top: 22px; }
.cr-apply-title { font-size: 1.1rem; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.cr-apply-title i { color: var(--brand); }
.cr-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cr-form-grid .cr-span { grid-column: 1 / -1; }
.cr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cr-file { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px dashed var(--border-strong); background: var(--input-bg); cursor: pointer; color: var(--text-2); transition: border-color .2s, background .2s; }
.cr-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cr-file i { color: var(--brand); }
.cr-file:hover, .cr-file.is-over { border-color: #009BDB; }
.cr-file.has-file { border-style: solid; border-color: var(--line-accent); color: var(--text); }
.cr-consent { margin: 4px 0 20px; font-size: .86rem; }
.cr-form-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--border); }
.cr-done { text-align: center; padding: 30px 10px 10px; }
.cr-done-icon { display: inline-grid; place-items: center; width: 64px; height: 58px; clip-path: var(--hex); background: var(--grad); color: #fff; font-size: 1.6rem; margin-bottom: 14px; }
.cr-done h3 { margin: 0 0 8px; }

/* ---- how we hire --------------------------------------------------------------------------------------------------- */
.cr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.cr-steps li { position: relative; padding: 24px 22px; background: var(--surface); border: 1px solid var(--border); }
.cr-steps li::after { content: ""; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; background: linear-gradient(225deg, #009BDB 0 50%, transparent 50%); }
.cr-step-num { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.9rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--border-strong); }
.cr-steps h3 { font-size: 1rem; text-transform: uppercase; font-stretch: 115%; margin: 14px 0 8px; }
.cr-steps p { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.6; }

/* ---- the office ---------------------------------------------------------------------------------------------------- */
.cr-office { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--border); background: var(--surface); }
.cr-office-copy { padding: 34px 36px; }
.cr-office-copy h2 { margin: 10px 0 10px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cr-office-copy p { color: var(--text-2); line-height: 1.65; }
.cr-office-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.cr-office-list i { color: var(--brand); width: 20px; }
.cr-office-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 34px 36px; background: var(--surface-2); border-left: 1px solid var(--border); }
.cr-office-card b { font-size: 1.15rem; }
.cr-office-card p { margin: 0; color: var(--text-2); line-height: 1.6; }
.cr-eeo { max-width: 860px; margin: 22px auto 0; text-align: center; line-height: 1.6; }

@media (max-width: 960px) {
    .cr-perks { grid-template-columns: 1fr 1fr; }
    .cr-steps { grid-template-columns: 1fr 1fr; }
    .cr-detail-grid { grid-template-columns: 1fr; }
    .cr-side-card { position: static; }
    .cr-facts-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .cr-perks, .cr-steps, .cr-office, .cr-form-grid { grid-template-columns: 1fr; }
    .cr-office-card { border-left: 0; border-top: 1px solid var(--border); }
    .cr-office-copy, .cr-office-card { padding: 26px 22px; }
    .cr-job { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; }
    .cr-job-side { flex-direction: row; justify-content: space-between; align-items: center; }
    .cr-tools, .cr-search, .cr-search .input, .cr-tools .select { width: 100%; }
    .cr-fact { min-width: 0; flex: 1 1 100%; }
    .cr-fact + .cr-fact { border-left: 0; border-top: 1px solid var(--border); }
}
/* ---- a client story's own page ------------------------------------------------------------------------------------- */
.cs-story-page .cs-story-hero { gap: 44px; align-items: center; }
.cs-story-page .cs-story-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 0; }
.cs-story-page .cs-story-head .lead { font-size: 1.05rem; }
.cs-story-page .cs-results.is-wide { margin: 40px 0; }
.cs-story-page .cs-story-cols { gap: 40px; margin-bottom: 18px; }
.cs-story-page h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; font-stretch: 118%; }
.cs-story-page .cs-story-cols p { font-size: 1.02rem; }
.cs-story-page .cs-benefits { margin: 28px 0 32px; }
.cs-story-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 36px; }
.cs-story-nav .cs-story-pos { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
    .cr-apply-page { padding: 24px 18px; }
    .cs-story-nav { grid-template-columns: 1fr 1fr; }
    .cs-story-nav .cs-story-pos { display: none; }
}

@media (prefers-reduced-motion: reduce) { .cr-job, .ht-card { animation: none; } .cr-job:hover, .ht-card:hover { transform: none; } }

/* =====================================================================================================================
   HOW-TO GUIDES — THE INDEX
   ===================================================================================================================== */

.ht-hero { padding-bottom: 26px; }
.ht-hero h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
.ht-hero-lead { max-width: 700px; margin-left: auto; margin-right: auto; }
.ht-hero-search { position: relative; display: block; max-width: 620px; margin: 28px auto 0; }
.ht-hero-search > i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); z-index: 1; pointer-events: none; }
.ht-hero-search .input { height: 56px; padding-left: 48px; padding-right: 54px; font-size: 1.02rem; background: var(--surface); }
.ht-hero-search .kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }

.ht-toolbar { margin-bottom: 26px; }
.ht-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ht-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); color: var(--text); overflow: hidden;
           transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease); animation: cr-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.ht-card::after { content: ""; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; z-index: 2; background: linear-gradient(225deg, #009BDB 0 50%, transparent 50%); }
.ht-card:hover, .ht-card:focus-visible { color: var(--text); transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.ht-card:focus-visible { outline: 2px solid #009BDB; outline-offset: -2px; }
.ht-card-shot { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.ht-card-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .8s var(--ease); }
.ht-card:hover .ht-card-shot img { transform: scale(1.035); }
.ht-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.ht-card-top { display: flex; align-items: center; gap: 12px; }
.ht-card-icon { width: 38px; height: 34px; font-size: .9rem; }
.ht-card-cat { font-family: var(--font-display); font-stretch: 112%; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow-ink); }
.ht-card-title { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.3; font-weight: 700; }
.ht-card-summary { color: var(--text-2); font-size: .9rem; line-height: 1.55; }
.ht-card-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); }

.ht-start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 34px; align-items: center; padding: 34px 36px; background: var(--surface); border: 1px solid var(--border); }
.ht-start-copy h2 { margin: 10px 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.ht-start-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ht-start-steps a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, transform .25s var(--ease); }
.ht-start-steps a:hover { border-color: var(--border-strong); transform: translateX(4px); color: var(--text); }
.ht-start-steps a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ht-start-steps small { color: var(--muted); font-size: .84rem; }
.ht-start-steps a > i { color: var(--brand); }
.ht-start-num { display: grid; place-items: center; width: 36px; height: 32px; clip-path: var(--hex); background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 800; }

/* =====================================================================================================================
   HOW-TO GUIDES — ONE GUIDE
   ===================================================================================================================== */

.ht-article-wrap { padding-top: 34px; padding-bottom: 40px; }
.ht-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: var(--muted); margin-bottom: 26px; }
.ht-crumbs a { color: var(--muted); }
.ht-crumbs a:hover { color: var(--text); }
.ht-crumbs > i { font-size: .65rem; color: var(--faint); }
.ht-head { display: flex; gap: 22px; align-items: flex-start; padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid var(--border); position: relative; }
.ht-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 140px; height: 2px; background: var(--rule, var(--grad)); }
.ht-head-icon { width: 62px; height: 56px; font-size: 1.4rem; flex-shrink: 0; margin-top: 6px; }
.ht-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.12; margin: 8px 0 12px; }
.ht-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: .8rem; color: var(--muted); }
.ht-meta span:first-child { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow-ink); font-size: .68rem; align-self: center; }
.ht-meta i { margin-right: 4px; color: var(--faint); }
.ht-lead { margin: 0; max-width: 820px; color: var(--text-2); }

.ht-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 54px; align-items: start; }
.ht-rail { position: sticky; top: 90px; }
.ht-rail-inner { display: flex; flex-direction: column; gap: 22px; }
.ht-rail-title { margin: 0; font-family: var(--font-display); font-stretch: 112%; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.ht-toc { list-style: none; margin: -12px 0 0; padding: 0; border-left: 1px solid var(--border); counter-reset: toc; }
.ht-toc li { counter-increment: toc; }
.ht-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: .88rem; line-height: 1.4; transition: color .2s, border-color .2s; }
.ht-toc a:hover { color: var(--text); }
.ht-toc a.is-active { color: var(--text); border-left-color: #009BDB; font-weight: 600; }
.ht-rail-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--border); font-size: .86rem; }
.ht-rail-card span { color: var(--text-2); line-height: 1.5; }
.ht-rail-card .btn { margin-top: 6px; }

/* the guide's own markup */
.ht-body { font-size: 1.02rem; line-height: 1.75; color: var(--text-2); min-width: 0; }
.ht-body > p:first-child { margin-top: 0; }
.ht-body h2 { scroll-margin-top: 90px; font-size: clamp(1.3rem, 2.4vw, 1.65rem); color: var(--text); margin: 46px 0 14px; line-height: 1.25; }
.ht-body h3 { font-size: 1.08rem; color: var(--text); margin: 28px 0 10px; }
.ht-body p { margin: 0 0 16px; }
.ht-body a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ht-body a.btn { text-decoration: none; }
.ht-body strong, .ht-body b { color: var(--text); }
.ht-body ul, .ht-body ol { margin: 0 0 18px; padding-left: 22px; }
.ht-body li { margin-bottom: 7px; }
.ht-body code { font-family: var(--font-mono); font-size: .86em; padding: 2px 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.ht-body pre { margin: 0 0 18px; padding: 16px 18px; background: var(--code-bg, var(--surface-2)); border: 1px solid var(--border); overflow-x: auto; font-size: .86rem; line-height: 1.6; }
.ht-body pre code { padding: 0; border: 0; background: none; }
.ht-body .kbd, .ht-body kbd { font-family: var(--font-mono); font-size: .8em; padding: 2px 7px; border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--surface); color: var(--text); }

.ht-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 30px; background: var(--border); border: 1px solid var(--border); }
.ht-summary > div { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ht-summary dt, .ht-summary b { font-family: var(--font-display); font-stretch: 112%; font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ht-summary dd, .ht-summary span { margin: 0; font-size: .9rem; color: var(--text); line-height: 1.45; }

/* numbered steps: <ol class="ht-steps"><li><h3>…</h3><p>…</p></li></ol> */
.ht-steps { list-style: none; padding: 0 !important; margin: 0 0 22px; counter-reset: step; }
.ht-steps > li { position: relative; counter-increment: step; padding: 0 0 22px 56px; margin: 0; }
.ht-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 32px; clip-path: var(--hex); background: var(--grad); color: #fff;
                         font-family: var(--font-display); font-weight: 800; font-size: .9rem; }
.ht-steps > li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 6px; width: 1px; background: var(--border-strong); }
.ht-steps > li:last-child::after { display: none; }
.ht-steps > li > h3:first-child { margin: 4px 0 6px; }
.ht-steps > li > p:last-child { margin-bottom: 0; }

/* callouts: <div class="ht-note|ht-tip|ht-warn"><i class="fa-regular …"></i><div>…</div></div> */
.ht-note, .ht-tip, .ht-warn { display: flex; gap: 14px; padding: 16px 18px; margin: 0 0 22px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid #009BDB; font-size: .95rem; line-height: 1.6; }
.ht-tip { border-left-color: #00D4AA; }
.ht-warn { border-left-color: var(--warning); }
.ht-note > i, .ht-tip > i, .ht-warn > i { margin-top: 4px; color: #009BDB; }
.ht-tip > i { color: #00B894; }
.ht-warn > i { color: var(--warning); }
.ht-note p:last-child, .ht-tip p:last-child, .ht-warn p:last-child { margin-bottom: 0; }

/* screenshots: <figure class="ht-shot"><img …><figcaption>…</figcaption></figure> */
.ht-shot { margin: 8px 0 28px; }
.ht-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: 0 24px 50px -30px rgba(10, 13, 18, .35); cursor: zoom-in; }
.ht-shot figcaption { margin-top: 10px; font-size: .84rem; color: var(--muted); display: flex; gap: 8px; }
.ht-shot figcaption::before { content: ""; flex-shrink: 0; width: 18px; height: 1px; margin-top: .75em; background: var(--rule, var(--grad)); }
.ht-shot.is-narrow { max-width: 560px; }

.ht-checklist { list-style: none; padding: 0 !important; }
.ht-checklist li { position: relative; padding-left: 28px; }
.ht-checklist li::before { content: "\f00c"; font-family: "Font Awesome 6 Pro"; font-weight: 400; position: absolute; left: 0; top: 1px; color: #00B894; }

.ht-table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: .92rem; }
.ht-table th, .ht-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ht-table th { font-family: var(--font-display); font-stretch: 112%; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); background: var(--surface-2); }
.ht-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

.ht-helpful { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; color: var(--text); }
.ht-helpful i.fa-heart { color: #E0457B; }
.ht-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.ht-pager-link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none !important; transition: border-color .2s; }
.ht-pager-link:hover { border-color: var(--border-strong); color: var(--text); }
.ht-pager-link small { font-family: var(--font-display); font-stretch: 112%; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ht-pager-link b { font-size: .95rem; line-height: 1.35; }
.ht-pager-link.is-next { text-align: right; }

.ht-more { margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--border); }
.ht-more h2 { font-size: 1.3rem; margin: 0 0 20px; }

.ht-zoom-modal .modal { max-width: min(1500px, 96vw); background: transparent; border: 0; box-shadow: none; }
.ht-zoom-modal .modal-body { padding: 0; }
.ht-zoom { margin: 0; cursor: zoom-out; }
.ht-zoom img { display: block; width: 100%; height: auto; border: 1px solid var(--border-strong); }
.ht-zoom figcaption { margin-top: 10px; color: #fff; text-align: center; font-size: .9rem; }

@media (max-width: 1080px) {
    .ht-layout { grid-template-columns: 1fr; gap: 0; }
    .ht-rail { position: static; order: -1; margin-bottom: 26px; }
    .ht-toc { columns: 2; column-gap: 20px; }
    .ht-rail-card { display: none; }
}
@media (max-width: 960px) { .ht-grid { grid-template-columns: 1fr 1fr; } .ht-start { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .ht-grid, .ht-summary, .ht-pager { grid-template-columns: 1fr; }
    .ht-toc { columns: 1; }
    .ht-head { flex-direction: column; gap: 12px; }
    .ht-head-icon { width: 50px; height: 46px; font-size: 1.15rem; }
    .ht-start { padding: 24px 20px; }
    .ht-steps > li { padding-left: 48px; }
    .ht-table { display: block; overflow-x: auto; }
}
