/* =====================================================================================================================
   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)

   Written against the tokens only, so both themes are right by construction. The UNFOLD block at the end turns the
   older hairline boxes into the site's soft tiles, pills and round icon discs.

   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-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--text); }
.cr-fact b i { font-size: 1.35rem; }
.cr-fact span { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: -.005em; 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; letter-spacing: -.005em; }
.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; border-radius: 50%; 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-size: 13px; font-weight: 700; letter-spacing: -.005em; transition: border-color .4s var(--ease-fade), color .4s var(--ease-fade), 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 .4s var(--ease-fade), box-shadow .4s var(--ease-fade); 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 var(--accent); 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-size: 13px; font-weight: 700; letter-spacing: -.005em; }
.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-size: .7rem; font-weight: 700; letter-spacing: -.005em; }
.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: 13px; letter-spacing: -.005em; 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-size: .6rem; font-weight: 700; letter-spacing: -.005em; 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: 13px; letter-spacing: -.005em; 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-size: 13px; letter-spacing: -.005em; 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 .4s var(--ease-fade), 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: var(--accent); }
.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; border-radius: 50%; 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, var(--accent) 0 50%, transparent 50%); }
.cr-step-num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--accent-text); }
.cr-steps h3 { font-size: 1rem; 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; letter-spacing: -.005em; }
.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 .4s var(--ease-fade), box-shadow .4s var(--ease-fade); 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, var(--accent) 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 var(--accent); 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-size: 13px; font-weight: 700; letter-spacing: -.005em; 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 .4s var(--ease-fade), 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; border-radius: 50%; 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-weight: 700; letter-spacing: -.005em; color: var(--eyebrow-ink); font-size: 13px; 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-size: 13px; font-weight: 700; letter-spacing: -.005em; 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 .4s var(--ease-fade), border-color .2s; }
.ht-toc a:hover { color: var(--text); }
.ht-toc a.is-active { color: var(--text); border-left-color: var(--accent); 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-size: .6rem; font-weight: 700; letter-spacing: -.005em; 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; border-radius: 50%; 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 var(--accent); 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: var(--accent); }
.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-size: 13px; letter-spacing: -.005em; 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-size: 13px; font-weight: 700; letter-spacing: -.005em; 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; }
}


/* =====================================================================================================================
   UNFOLD  -  the careers page and the how-to guides in the site's language: soft grey tiles instead of hairline boxes,
   pill chips and pills for tags, round icon discs, big tight headings. No corner wedges, no hexagons, no capitals.
   ===================================================================================================================== */

.cr-section-head { margin-bottom: 44px; }
.cr-section-head h2, .ht-start-copy h2, .cr-office-copy h2 { font-size: clamp(32px, 4vw, 56px); letter-spacing: -.03em; line-height: 1.04; }
.cr-hero h1, .ht-hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: -.038em; }

/* round icon discs */
.cr-perk-icon, .ht-card-icon, .ht-head-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 16px; }
.ht-card-icon { width: 34px; height: 34px; font-size: 13px; }
.ht-head-icon { width: 56px; height: 56px; font-size: 21px; }
.cr-done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); }

/* hero facts: three tiles in a row */
.cr-facts { gap: 10px; margin-top: 40px; border: 0; background: none; }
.cr-fact { min-width: 170px; padding: 18px 26px; border-radius: var(--r-lg); background: var(--tile); }
.cr-fact + .cr-fact { border: 0; }
.cr-fact b { font-size: 32px; letter-spacing: -.04em; color: var(--text); }
.cr-fact b i { font-size: 22px; color: var(--accent-text); }
.cr-fact span { font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }

/* how we work: six tiles */
.cr-perks { gap: 16px; background: none; border: 0; }
.cr-perk { padding: 32px 30px; border-radius: var(--r-xl); background: var(--tile); }
.cr-perk h3 { margin: 40px 0 10px; font-size: 21px; letter-spacing: -.025em; }
.cr-perk p { color: var(--muted); font-size: 15.5px; }

/* chips: pills; the chosen one in ink */
.cr-toolbar, .ht-toolbar { padding-bottom: 0; border-bottom: 0; }
.cr-chip, .ht-chip, .cs-chip { min-height: 42px; padding: 0 18px; gap: 8px; border: 0; border-radius: var(--r-pill); background: var(--tile); color: var(--text-2);
                               font-family: var(--font-sans); font-size: 15px; font-weight: 500; letter-spacing: -.005em; transition: background-color .4s var(--ease-fade), color .4s var(--ease-fade); }
.cr-chip:hover, .ht-chip:hover { background: var(--tile-2); color: var(--text); border: 0; }
.cr-chip.is-active, .ht-chip.is-active { background: var(--ink); color: var(--ink-inv); border: 0; }
.cr-chip small, .ht-chip small { font-size: 12.5px; font-weight: 600; color: var(--faint); }
.cr-search .input { width: 260px; padding-left: 40px; border-radius: var(--r-pill); }
.cr-search i { left: 16px; }
.cr-tools .select { border-radius: var(--r-pill); }
.cr-count, .ht-count { font-size: 14.5px; }

/* the role list: tiles */
.cr-list { gap: 10px; }
.cr-job { gap: 28px; padding: 26px 30px; border: 0; border-radius: var(--r-lg); background: var(--tile); transition: background-color .4s var(--ease-fade); }
.cr-job::before { content: none; }
.cr-job:hover, .cr-job:focus-within { background: var(--tile-2); border: 0; box-shadow: none; transform: none; }
.cr-job-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-lg); }
.cr-tag, .cs-tag { min-height: 24px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: var(--bg); color: var(--text-2); font-size: 12.5px; font-weight: 600; letter-spacing: .005em; }
.cr-tag.is-team i { color: var(--accent-text); }
.cr-tag.is-hot { background: var(--accent); color: #fff; }
.cr-job-title { margin: 12px 0 6px; font-size: 22px; letter-spacing: -.025em; }
.cr-job-summary { color: var(--muted); font-size: 15.5px; }
.cr-job-meta { font-size: 14px; }
.cr-job-go { min-height: 40px; padding: 0 18px; border-radius: var(--r-pill); background: var(--ink); color: var(--ink-inv); font-size: 15px; font-weight: 600; letter-spacing: -.01em; transition: background-color .4s var(--ease-fade); }
.cr-job:hover .cr-job-go { background: var(--accent); color: #fff; }
.cr-empty, .ht-empty { border: 0; border-radius: var(--r-xl); background: var(--tile); }

/* a role's own page */
.cr-detail-page .cr-detail-head h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.035em; }
.cr-detail-head { padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.cr-detail-page .cr-detail-sec h2, .cr-detail-sec h4 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.cr-facts-list { gap: 10px; background: none; border: 0; }
.cr-facts-list > div { padding: 16px 18px; border-radius: var(--r); background: var(--tile); }
.cr-facts-list dt { font-size: 13px; font-weight: 500; color: var(--muted); }
.cr-facts-list dd { font-size: 16px; }
.cr-bullets i { color: var(--accent-text); }
.cr-side-card { padding: 26px; border: 0; border-radius: var(--r-xl); background: var(--tile); }
.cr-side-skills b { font-size: 13px; font-weight: 600; color: var(--muted); }
.cr-skill { padding: 4px 11px; border: 0; border-radius: var(--r-pill); background: var(--bg); font-size: 13px; }
.cr-side-note { border: 0; border-radius: var(--r-lg); background: var(--accent-soft); }
.cr-side-note i { color: var(--accent-text); }
.cr-apply-page { padding: clamp(28px, 4vw, 52px); border: 0; border-radius: var(--r-xl); background: var(--tile); }
.cr-apply-page::before { content: none; }
.cr-apply-page .cr-apply-title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.cr-apply-title i { color: var(--accent-text); }
.cr-file { border: 1.5px dashed var(--border-strong); border-radius: var(--r); background: var(--bg); }
.cr-file i { color: var(--accent-text); }
.cr-file:hover, .cr-file.is-over { border-color: var(--accent); }
.cr-file.has-file { border-style: solid; border-color: var(--accent); }
.cr-form-actions { border-top-color: var(--border-strong); }
.cr-more, .cs-more { border-top: 0; }
.cr-more h2, .cs-more h2, .ht-more h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.03em; }

/* how we hire: four tiles with an accent step number */
.cr-steps { gap: 16px; }
.cr-steps li { padding: 30px 28px; border: 0; border-radius: var(--r-xl); background: var(--tile); }
.cr-steps li::after { content: none; }
.cr-step-num { font-size: 15px; font-weight: 700; color: var(--accent-text); }
.cr-steps h3 { margin: 36px 0 10px; font-size: 21px; letter-spacing: -.025em; }
.cr-steps p { color: var(--muted); }

/* the office: a split tile, its card side on the dark band */
.cr-office { border: 0; border-radius: var(--r-xl); background: var(--tile); overflow: hidden; }
.cr-office-copy { padding: clamp(30px, 4vw, 56px); }
.cr-office-list i { color: var(--accent-text); }
.cr-office-card { margin: 12px; padding: clamp(28px, 3.5vw, 48px); border: 0; border-radius: var(--r-lg); background: var(--band); color: var(--band-text); }
.cr-office-card b { font-size: 24px; letter-spacing: -.025em; }
.cr-office-card p { color: var(--band-muted); }
.cr-office-card .btn-primary { background: #fff; color: #000; }
.cr-office-card .btn-primary:hover { background: var(--accent); color: #fff; }

@media (max-width: 700px) {
    .cr-office-card { border-top: 0; margin: 0 8px 8px; }
    .cr-fact { min-width: 0; }
    .cr-fact + .cr-fact { border: 0; }
    .cr-job { padding: 22px 20px; }
    .cr-search .input { width: 100%; }
}

/* ---- HOW-TO: the index ---------------------------------------------------------------------------------------------- */

.ht-hero-search .input { height: 60px; padding-left: 52px; border-radius: var(--r-pill); background: var(--tile); border-color: transparent; font-size: 17px; }
.ht-hero-search .input:hover { border-color: var(--border-strong); }
.ht-hero-search .input:focus { background: var(--bg); border-color: var(--accent); }
.ht-hero-search > i { left: 22px; }
.ht-hero-search .kbd { right: 20px; }
.ht-toolbar { margin-bottom: 28px; }
.ht-grid { gap: 16px; }
.ht-card { border: 0; border-radius: var(--r-xl); background: var(--tile); transition: background-color .4s var(--ease-fade); }
.ht-card::after { content: none; }
.ht-card:hover, .ht-card:focus-visible { background: var(--tile-2); border: 0; box-shadow: none; transform: none; }
.ht-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ht-card-shot { margin: 12px 12px 0; border: 0; border-radius: var(--r-lg); background: var(--tile-2); }
.ht-card-body { gap: 10px; padding: 22px 24px 24px; }
.ht-card-cat { font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: var(--accent-text); }
.ht-card-title { font-size: 21px; letter-spacing: -.025em; line-height: 1.2; }
.ht-card-summary { color: var(--muted); font-size: 15px; }
.ht-card-foot { padding-top: 14px; border-top: 1px solid var(--border-strong); font-size: 13.5px; }

.ht-start { gap: 48px; padding: clamp(30px, 4vw, 56px); border: 0; border-radius: var(--r-xl); background: var(--tile); }
.ht-start-steps a { gap: 18px; padding: 18px 22px; border: 0; border-radius: 18px; background: var(--bg); box-shadow: var(--shadow-sm); transition: box-shadow .4s var(--ease-fade); }
.ht-start-steps a:hover { border: 0; transform: none; box-shadow: var(--shadow); }
.ht-start-steps a > i { color: var(--text); transition: transform .4s var(--ease); }
.ht-start-steps a:hover > i { transform: translateX(4px); }
.ht-start-steps small { font-size: 14px; }
.ht-start-num { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--ink-inv); font-weight: 700; font-size: 15px; }

/* ---- HOW-TO: one guide ---------------------------------------------------------------------------------------------- */

.ht-crumbs { font-size: 14px; }
.ht-head { gap: 26px; padding-bottom: 36px; margin-bottom: 36px; }
.ht-head::after { content: none; }
.ht-head h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.036em; }
.ht-meta { font-size: 14px; }
.ht-meta span:first-child { font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: var(--accent-text); }
.ht-lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; }
.ht-rail-title { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.ht-toc { border-left: 0; margin-top: -8px; }
.ht-toc a { padding: 8px 14px; margin: 0 0 2px; border-left: 0; border-radius: var(--r-pill); font-size: 14.5px; }
.ht-toc a:hover { background: var(--tile); }
.ht-toc a.is-active { background: var(--tile); color: var(--text); border: 0; }
.ht-rail-card { padding: 22px; border: 0; border-radius: var(--r-lg); background: var(--tile); font-size: 14.5px; }
.ht-body { font-size: 17px; line-height: 1.7; }
.ht-body h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.03em; line-height: 1.1; margin: 56px 0 16px; }
.ht-body h3 { font-size: 20px; letter-spacing: -.02em; }
.ht-body a { color: var(--accent-text); }
.ht-body code { padding: 2px 7px; border: 0; border-radius: 6px; background: var(--tile); }
.ht-body pre { border: 0; border-radius: var(--r); color: #E6E6EA; }
.ht-body .kbd, .ht-body kbd { border-radius: 6px; }
.ht-summary { gap: 10px; background: none; border: 0; }
.ht-summary > div { padding: 18px 20px; border-radius: var(--r); background: var(--tile); }
.ht-summary dt, .ht-summary b { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.ht-summary dd, .ht-summary span { font-size: 15.5px; font-weight: 600; }
.ht-steps > li::before { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--ink-inv); font-weight: 700; font-size: 15px; }
.ht-steps > li::after { left: 16.5px; top: 42px; background: var(--border-strong); }
.ht-note, .ht-tip, .ht-warn { padding: 18px 22px; border: 0; border-radius: var(--r); background: var(--accent-soft); }
.ht-tip { background: var(--success-soft); }
.ht-warn { background: var(--warning-soft); }
.ht-note > i { color: var(--accent-text); }
.ht-tip > i { color: var(--success); }
.ht-shot img { border: 0; border-radius: var(--r); background: var(--tile); box-shadow: var(--shadow), var(--ring); }
.ht-shot figcaption { font-size: 14px; }
.ht-shot figcaption::before { content: none; }
.ht-checklist li::before { color: var(--accent-text); }
.ht-table th { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); background: var(--tile); }
.ht-table th:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.ht-table th:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.ht-helpful { padding: 18px 18px 18px 26px; border: 0; border-radius: var(--r-pill); background: var(--tile); }
.ht-pager { gap: 10px; }
.ht-pager-link { padding: 20px 24px; border: 0; border-radius: var(--r-lg); background: var(--tile); transition: background-color .4s var(--ease-fade); }
.ht-pager-link:hover { border: 0; background: var(--tile-2); }
.ht-pager-link small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.ht-pager-link b { font-size: 17px; letter-spacing: -.015em; }
.ht-more { border-top: 0; }
.ht-zoom img { border: 0; border-radius: var(--r); }
@media (max-width: 640px) { .ht-helpful { border-radius: var(--r-lg); } }
