/* ═════════════════════════════════════════════════════════════════
   The blog (blog.html, blog-single.html) and the Hire expert page.
   Loaded after main.css and home.css, whose tokens it uses.
   Black, white and grey; purple is for buttons and the focus ring.
   ═════════════════════════════════════════════════════════════════ */

/* ─── Page head ─────────────────────────────────────────────────── */
.bl-top { padding: 168px 0 56px; background: var(--color-bg); }
.bl-top .hx-head { margin-bottom: 0; }
.bl-top h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 600; line-height: 1.04; letter-spacing: -1.8px; color: var(--color-text-primary); }
.bl-top h1 em { display: block; font-style: normal; color: #A1A1AA; }
.bl-top p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--color-text-secondary); }
.bl-body { padding: 0 0 110px; background: var(--color-bg); }
.bl-body .hx-tabs[hidden] { display: none; }

/* ─── Cards ─────────────────────────────────────────────────────── */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; margin: 0; padding: 0; list-style: none; }
.bl-card { display: flex; flex-direction: column; min-width: 0; }
.bl-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; background: #EFEFF1; }
.bl-cover { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--hx-ease); }
.bl-cover-none { display: flex; align-items: center; justify-content: center; font-size: 14px; color: #A1A1AA; }
.bl-card:hover .bl-cover { transform: scale(1.03); }
.bl-card-body { padding: 20px 2px 0; }
.bl-cat { display: inline-block; margin-bottom: 10px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #71717A; }
.bl-card-title { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.4px; color: var(--color-text-primary); }
.bl-card-title a { color: inherit; text-decoration: underline transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.bl-card-title a:hover { text-decoration-color: currentColor; }
.bl-card-title a:focus-visible { outline: 2px solid var(--hx-focus); outline-offset: 3px; border-radius: 4px; }
.bl-card-text { display: -webkit-box; margin-top: 10px; overflow: hidden; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.6; color: var(--color-text-secondary); }
.bl-meta { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 14px; font-size: 13px; color: #71717A; }
.bl-meta > * + *::before { content: "·"; margin: 0 8px; }
/* The newest article leads: picture beside words, across the whole row. */
.bl-lead { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--hx-line); }
.bl-lead .bl-card-media { flex: 1.25; border-radius: 24px; }
.bl-lead .bl-card-body { flex: 1; padding: 0; }
.bl-lead .bl-card-title { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.12; letter-spacing: -1px; }
.bl-lead .bl-card-text { -webkit-line-clamp: 3; line-clamp: 3; font-size: 17px; }

.bl-note { max-width: 560px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.bl-note h2 { font-size: 26px; font-weight: 600; letter-spacing: -.5px; }
.bl-note p { margin: 10px 0 26px; font-size: 16px; line-height: 1.6; color: var(--color-text-secondary); }

.bl-skeleton .bl-card-media, .bl-line { background: linear-gradient(90deg, #EFEFF1 25%, #F7F7F8 50%, #EFEFF1 75%); background-size: 200% 100%; animation: blShimmer 1.4s linear infinite; }
.bl-line { display: block; height: 14px; margin-top: 18px; border-radius: 7px; }
.bl-line.short { width: 60%; margin-top: 10px; }
@keyframes blShimmer { to { background-position: -200% 0; } }

/* ─── One article ───────────────────────────────────────────────── */
.bl-page { padding: 150px 0 96px; background: #fff; }
.bl-page > .container { min-height: 50vh; }
.bl-head { max-width: 820px; }
.bl-crumbs { position: static; display: flex; gap: 10px; margin-bottom: 22px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #71717A; }
.bl-crumbs a { color: var(--color-text-primary); text-decoration: underline; text-underline-offset: 4px; }
.bl-head h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 600; line-height: 1.06; letter-spacing: -1.6px; color: var(--color-text-primary); text-wrap: balance; }
.bl-standfirst { margin-top: 20px; font-size: 20px; line-height: 1.55; color: var(--color-text-secondary); }
.bl-byline { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.bl-avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #71717A, #27272A); font-size: 14px; font-weight: 600; color: #fff; }
.bl-byline b { display: block; font-size: 15px; font-weight: 600; }
.bl-byline span:not(.bl-avatar) { font-size: 14px; color: #71717A; }
.bl-hero { margin: 48px 0 0; overflow: hidden; border-radius: 24px; background: #EFEFF1; aspect-ratio: 16 / 9; }
.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: start; margin-top: 56px; }
.bl-article { min-width: 0; max-width: 720px; }

.bl-prose { font-size: 18px; line-height: 1.75; color: #27272A; overflow-wrap: anywhere; }
.bl-prose > * + * { margin-top: 1.25em; }
.bl-prose h2 { margin-top: 2.2em; font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.7px; color: var(--color-text-primary); scroll-margin-top: 110px; }
.bl-prose h3 { margin-top: 1.8em; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.3px; color: var(--color-text-primary); }
.bl-prose h4 { margin-top: 1.6em; font-size: 18px; font-weight: 600; color: var(--color-text-primary); }
.bl-prose h2 + *, .bl-prose h3 + *, .bl-prose h4 + * { margin-top: .7em; }
.bl-prose a { color: var(--color-text-primary); text-decoration: underline; text-decoration-color: #A1A1AA; text-underline-offset: 4px; }
.bl-prose a:hover { text-decoration-color: currentColor; }
.bl-prose ul, .bl-prose ol { padding-left: 1.4em; }
.bl-prose ul { list-style: disc; }
.bl-prose ol { list-style: decimal; }
.bl-prose li + li { margin-top: .5em; }
.bl-prose li > p { margin: 0; }
.bl-prose blockquote { margin-left: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--color-text-primary); font-size: 22px; line-height: 1.5; letter-spacing: -.3px; color: var(--color-text-primary); }
.bl-prose img { display: block; max-width: 100%; height: auto; margin: 2em 0; border-radius: 16px; }
.bl-prose code { padding: 2px 6px; border-radius: 6px; background: #F4F4F5; font-family: 'Geist Mono', ui-monospace, monospace; font-size: .88em; }
.bl-prose pre { padding: 20px 22px; overflow-x: auto; border-radius: 14px; background: #18181B; color: #F4F4F5; font-size: 14px; line-height: 1.6; }
.bl-prose pre code { padding: 0; background: none; font-size: inherit; }
.bl-prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--hx-line); }
.bl-prose .is-center { text-align: center; }
.bl-prose .is-right { text-align: right; }

.bl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hx-line); }
.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bl-tags li { padding: 6px 12px; border-radius: 9999px; background: #F4F4F5; font-size: 13px; color: #3F3F46; }
.bl-share { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #71717A; }
.bl-share a, .bl-share button { min-height: 36px; padding: 0 14px; border: 1px solid var(--hx-line); border-radius: 9999px; background: #fff; font: inherit; font-size: 13px; line-height: 34px; color: var(--color-text-primary); cursor: pointer; transition: background .2s; }
.bl-share a:hover, .bl-share button:hover { background: #F4F4F5; }
.bl-share a:focus-visible, .bl-share button:focus-visible, .bl-toc a:focus-visible { outline: 2px solid var(--hx-focus); outline-offset: 2px; }

.bl-aside { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 20px; }
.bl-toc { position: static; }
.bl-toc h2, .bl-ask h2 { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.bl-toc ol { margin: 14px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--hx-line); }
.bl-toc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 1px solid transparent; font-size: 14px; line-height: 1.4; color: #71717A; transition: color .2s, border-color .2s; }
.bl-toc a:hover, .bl-toc a.is-here { border-left-color: var(--color-text-primary); color: var(--color-text-primary); }
.bl-ask { padding: 24px; border-radius: 20px; background: #F4F4F5; }
.bl-ask p { margin: 8px 0 18px; font-size: 14px; line-height: 1.55; color: var(--color-text-secondary); }
.bl-ask .btn { width: 100%; }

.bl-related { padding: 96px 0 110px; background: var(--color-bg); }
.bl-related[hidden] { display: none; }
.bl-related h2 { margin-bottom: 40px; font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -1px; }

/* ─── Hire expert ───────────────────────────────────────────────── */
.hr-hero { padding: 168px 0 84px; text-align: center; background: var(--color-bg); }
.hr-hero h1 { max-width: 900px; margin: 0 auto; font-size: clamp(36px, 5.4vw, 72px); font-weight: 600; line-height: 1.03; letter-spacing: -2px; color: var(--color-text-primary); }
.hr-hero h1 em { display: block; font-style: normal; color: #A1A1AA; }
.hr-hero p { max-width: 600px; margin: 22px auto 34px; font-size: 18px; line-height: 1.6; color: var(--color-text-secondary); }
.hr-hero .hx-hero-actions { margin-bottom: 0; }
.hr-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 40px 0 0; padding: 0; list-style: none; font-size: 14px; color: #52525B; }
.hr-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hr-facts li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #D6F5E3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' stroke='%23127A43' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }

.hr-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hr-role { display: flex; flex-direction: column; padding: 28px 26px; border: 1px solid var(--hx-line); border-radius: 20px; background: #fff; transition: border-color .25s, box-shadow .25s, transform .4s var(--hx-ease); }
.hr-role:hover { border-color: #D4D4D8; box-shadow: var(--hx-shadow); transform: translateY(-3px); }
.hr-role-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 26px; border-radius: 12px; background: #F4F4F5; color: #18181B; }
.hr-role h3 { font-size: 20px; font-weight: 600; letter-spacing: -.4px; }
.hr-role p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--color-text-secondary); }
.hr-role ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.hr-role li { padding: 4px 10px; border-radius: 9999px; background: #F4F4F5; font-size: 12px; color: #3F3F46; }

.hr-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hr-way { padding: 30px 28px; border-radius: 22px; background: #fff; border: 1px solid var(--hx-line); }
.hr-way.dark { border-color: #18181B; background: #18181B; color: #fff; }
.hr-way span { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #71717A; }
.hr-way.dark span { color: #A1A1AA; }
.hr-way h3 { margin-top: 14px; font-size: 24px; font-weight: 500; letter-spacing: -.5px; }
.hr-way p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--color-text-secondary); }
.hr-way.dark p { color: #D4D4D8; }
.hr-way ul { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--hx-line); list-style: none; font-size: 14px; color: var(--color-text-secondary); }
.hr-way.dark ul { border-top-color: #3F3F46; color: #D4D4D8; }
.hr-way li { position: relative; padding-left: 24px; }
.hr-way li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 7.4l3 3 6-6.4' stroke='%2371717A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

.hr-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--hx-line); }
.hr-value { display: grid; grid-template-columns: 44px 1fr; gap: 0 8px; padding: 28px 0; border-bottom: 1px solid var(--hx-line); }
.hr-value > span { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; color: #A1A1AA; padding-top: 4px; }
.hr-value h3 { font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.hr-value p { grid-column: 2; margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--color-text-secondary); }

/* ─── Careers ───────────────────────────────────────────────────── */
.cr-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.cr-whys { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: none; }
.cr-why::after { content: none; }
.cr-roles { display: flex; flex-direction: column; max-width: 880px; margin: 0 auto; border-top: 1px solid var(--hx-line); }
.cr-role { display: flex; align-items: center; gap: 20px; padding: 22px 12px; border-bottom: 1px solid var(--hx-line); cursor: pointer; transition: background .2s, padding .3s var(--hx-ease); }
.cr-role[hidden] { display: none; }
.cr-role:hover { padding-left: 20px; background: #FAFAFA; }
.cr-role:focus-visible { outline: 2px solid var(--hx-focus); outline-offset: -2px; border-radius: 12px; }
.cr-role-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #F4F4F5; color: #18181B; }
.cr-role-info { flex: 1; min-width: 0; }
.cr-role .role-title { font-size: 18px; font-weight: 600; letter-spacing: -.3px; color: var(--color-text-primary); }
.cr-role-meta { display: flex; flex-wrap: wrap; margin-top: 4px; font-size: 14px; color: #71717A; }
.cr-role-meta span { white-space: nowrap; }
.cr-role-meta span:not(:last-child)::after { content: "·"; margin: 0 8px; }
.cr-role-text { max-width: 600px; margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--color-text-secondary); }
.cr-none { padding: 48px 20px; text-align: center; }
.cr-none h3 { font-size: 22px; font-weight: 600; letter-spacing: -.4px; }
.cr-none p { max-width: 460px; margin: 8px auto 22px; font-size: 15px; line-height: 1.6; color: var(--color-text-secondary); }
[data-role-tabs][hidden] { display: none; }
.cr-role-go { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 40px; padding: 0 16px; border: 1px solid var(--hx-line); border-radius: 9999px; background: #fff; font-size: 14px; font-weight: 500; color: var(--color-text-primary); transition: background .2s, color .2s, border-color .2s; }
.cr-role:hover .cr-role-go { border-color: #18181B; background: #18181B; color: #fff; }

/* ─── Tablet ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bl-top, .hr-hero { padding-top: 140px; }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  .bl-lead { gap: 32px; }
  .bl-page { padding-top: 130px; }
  .bl-layout { grid-template-columns: 1fr; gap: 48px; }
  .bl-aside { position: static; }
  .bl-toc { display: none; }
  .bl-article { max-width: none; }
  .hr-roles, .hr-ways, .cr-whys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hr-way.dark { order: -1; grid-column: 1 / -1; }
}

/* ─── Phone ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .bl-top { padding: 124px 0 40px; }
  .bl-top h1 { letter-spacing: -1.2px; }
  .bl-top p, .hr-hero p { font-size: 16px; }
  .bl-body { padding-bottom: 72px; }
  .bl-grid { grid-template-columns: 1fr; gap: 36px; }
  .bl-lead { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 36px; }
  .bl-lead .bl-card-media { flex: none; border-radius: 18px; }
  .bl-lead .bl-card-body { padding: 20px 2px 0; }
  .bl-lead .bl-card-text { font-size: 15px; }
  .bl-page { padding: 116px 0 64px; }
  .bl-head h1 { letter-spacing: -1px; }
  .bl-standfirst { font-size: 17px; }
  .bl-hero { margin-top: 32px; border-radius: 16px; }
  .bl-layout { margin-top: 36px; }
  .bl-prose { font-size: 17px; line-height: 1.7; }
  .bl-prose h2 { font-size: 25px; }
  .bl-prose h3 { font-size: 20px; }
  .bl-prose blockquote { padding-left: 18px; font-size: 19px; }
  .bl-foot { flex-direction: column; align-items: flex-start; }
  .bl-share a, .bl-share button { min-height: 44px; line-height: 42px; }
  .bl-related { padding: 64px 0 72px; }
  .hr-hero { padding: 124px 0 56px; }
  .hr-hero h1 { letter-spacing: -1.3px; }
  .hr-facts { flex-direction: column; align-items: center; }
  .hr-roles, .hr-ways, .hr-values, .cr-whys { grid-template-columns: 1fr; }
  .cr-role { gap: 14px; padding: 18px 4px; }
  .cr-role:hover { padding-left: 4px; }
  .cr-role .role-title { font-size: 16px; }
  .cr-role-go { width: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .hr-way.dark { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .bl-cover, .hr-role { transition: none; }
  .bl-card:hover .bl-cover, .hr-role:hover { transform: none; }
  .bl-skeleton .bl-card-media, .bl-line { animation: none; }
}
