/* ============================================================================
   CODEAYAN HUB PAGES  (/style/hub.css)
   Shared by: /courses, /get-hired, /read, blog posts (single.php), pages (page.php)
   Builds on global.css tokens: --brand-*, --ink-*, --surface-*, --card-border,
   fonts (Georgia headings, Poppins body). Load after global.css.
   ============================================================================ */

.hub {
    --hb-border: var(--card-border, #A9D2E6);
    --hb-line: #E3ECF2;
    --hb-blue: var(--brand-blue, #2897C9);
    --hb-soft: #EEF7FB;
    --hb-radius: 16px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hub-hero {
    position: relative;
    padding: 3.75rem 0 2.75rem;
    overflow: hidden;
    isolation: isolate;
}
.hub-hero::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(17, 17, 17, .08) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(60% 80% at 50% 30%, #000 10%, transparent 100%);
            mask-image: radial-gradient(60% 80% at 50% 30%, #000 10%, transparent 100%);
}
.hub-hero::after {
    content: '';
    position: absolute; z-index: -1;
    width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 215, 184, .14) 0%, rgba(40, 151, 201, .08) 45%, transparent 70%);
    pointer-events: none;
}
.hub-hero--center { text-align: center; }
.hub-hero--center .hub-sub { margin-left: auto; margin-right: auto; }
.hub-hero--center .hub-stats { justify-content: center; }

.hub-label {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--hb-blue); margin-bottom: .9rem;
}
.hub-label i { font-size: .8rem; }
.hub-title {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.1; letter-spacing: -.02em;
    color: var(--ink-dark, #111); margin: 0 0 1rem;
}
.hub-title em { font-style: italic; color: var(--hb-blue); }
.hub-sub { font-size: 1.08rem; line-height: 1.7; color: var(--ink-medium, #333); max-width: 580px; margin: 0 0 1.6rem; }

.hub-stats { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.hub-stats li {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .42rem .85rem; border-radius: 100px;
    background: #fff; border: 1px solid var(--hb-border);
    font-size: .84rem; color: var(--ink-medium, #333);
}
.hub-stats li b { font-weight: 600 !important; color: var(--ink-dark, #111); }
.hub-stats li > span { display: inline; }
.hub-stats li i { color: var(--hb-blue); font-size: .8rem; }

/* ── Section heads ───────────────────────────────────────────────────────── */
.hub-sec { padding: 0 0 4.5rem; }
.hub-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 2rem; margin-bottom: 1.6rem; }
.hub-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; margin: 0; color: var(--ink-dark, #111); }
.hub-head p { margin: .35rem 0 0; font-size: .95rem; color: var(--ink-light, #666); }
.hub-link {
    display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
    font-size: .92rem; color: var(--ink-dark, #111) !important; text-decoration: none;
    border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s, gap .2s;
}
.hub-link:hover { color: var(--hb-blue) !important; gap: .7rem; }
.hub-link i { font-size: .72rem; }

/* ── Generic card + button ───────────────────────────────────────────────── */
.hub-card {
    background: #fff;
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease, border-color .25s ease;
}
a.hub-card { display: block; color: inherit; text-decoration: none; }
a.hub-card:hover, .hub-card.is-hover:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16, 60, 90, .08); border-color: #6FB6D9; }

.hub-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.25rem; border-radius: 10px;
    background: var(--hb-blue); color: #fff !important; border: 1px solid var(--hb-blue);
    font-size: .92rem; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .2s, box-shadow .2s, transform .2s;
}
.hub-btn:hover { background: #1f7fa9; box-shadow: 0 8px 18px rgba(40, 151, 201, .25); transform: translateY(-1px); }
.hub-btn--ghost { background: #fff; color: var(--hb-blue) !important; }
.hub-btn--ghost:hover { background: var(--hb-soft); box-shadow: none; }
.hub-btn i { font-size: .8rem; }

.hub-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
    padding: .25rem .6rem; border-radius: 100px; background: var(--hb-soft); color: #1f5f7f;
}

/* ══════════════════════════════════════════════════════════════════════════
   COURSES
   ══════════════════════════════════════════════════════════════════════════ */
.cr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.cr-card { --cr: var(--hb-blue); display: flex; flex-direction: column; padding: 1.6rem; position: relative; overflow: hidden; }
.cr-card::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 56px; background: var(--cr); transition: width .45s cubic-bezier(.16, 1, .3, 1); }
.cr-card:hover::before { width: 100%; }
.cr-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.cr-icon {
    flex: 0 0 52px; width: 52px; height: 52px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--cr); background: color-mix(in srgb, var(--cr) 12%, transparent);
}
@supports not (background: color-mix(in srgb, red 10%, transparent)) { .cr-icon { background: rgba(40, 151, 201, .1); } }
.cr-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.cr-count { margin-left: auto; text-align: right; font-size: .78rem; color: var(--ink-light, #666); line-height: 1.3; white-space: nowrap; }
.cr-count b { display: block; font-size: 1.35rem; color: var(--ink-dark, #111); font-weight: 600 !important; font-family: var(--font-heading) !important; }
.cr-title { font-size: 1.5rem; line-height: 1.25; margin: 0 0 .5rem; }
.cr-title a { color: var(--ink-dark, #111); text-decoration: none; }
.cr-desc { font-size: .95rem; line-height: 1.65; color: var(--ink-medium, #333); margin: 0 0 1.2rem; }
.cr-syl { margin: 0 0 1.35rem; padding: 1rem 1.1rem; border-radius: 12px; background: #f7fafc; border: 1px solid var(--hb-line); }
.cr-syl__label { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-light, #666); margin-bottom: .55rem; }
.cr-syl ol { list-style: none; margin: 0; padding: 0; counter-reset: syl; }
.cr-syl li { counter-increment: syl; }
.cr-syl li a {
    display: flex; align-items: baseline; gap: .65rem; padding: .32rem 0;
    font-size: .9rem; line-height: 1.45; color: var(--ink-dark, #111); text-decoration: none;
}
.cr-syl li a::before { content: counter(syl, decimal-leading-zero); flex: 0 0 auto; font-size: .74rem; color: var(--cr); font-variant-numeric: tabular-nums; }
.cr-syl li a:hover { color: var(--cr); }
.cr-syl__more { display: block; margin-top: .35rem; font-size: .8rem; color: var(--ink-light, #666); }
.cr-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.cr-foot .hub-btn { background: var(--cr); border-color: var(--cr); }
.cr-foot .hub-btn:hover { filter: brightness(.92); background: var(--cr); }
.cr-foot span { font-size: .84rem; color: var(--ink-light, #666); }

/* Next-step strip (courses, read, get hired) */
.hub-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hub-next a { --nx: var(--hb-blue); display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; }
.hub-next__icon { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--nx); background: color-mix(in srgb, var(--nx) 12%, transparent); }
@supports not (background: color-mix(in srgb, red 10%, transparent)) { .hub-next__icon { background: rgba(40, 151, 201, .1); } }
.hub-next strong { display: block; font-size: 1rem; font-weight: 600 !important; color: var(--ink-dark, #111); }
.hub-next small { display: block; font-size: .82rem; color: var(--ink-light, #666); line-height: 1.4; }
.hub-next .fa-arrow-right { color: var(--nx); font-size: .8rem; transition: transform .2s; }
.hub-next a:hover .fa-arrow-right { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════════════════════
   GET HIRED
   ══════════════════════════════════════════════════════════════════════════ */
.gh-picker { padding: 1.5rem; }
.gh-step { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--ink-medium, #333); margin: 0 0 1rem; }
.gh-step b { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--hb-blue); color: #fff; font-size: .78rem; font-weight: 600 !important; }
.gh-roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.6rem; }
.gh-role {
    --rc: var(--hb-blue);
    position: relative; display: flex; flex-direction: column; gap: .7rem;
    padding: 1.1rem 1rem 1rem; border-radius: 14px;
    border: 1.5px solid var(--hb-line); background: #fff;
    color: var(--ink-dark, #111) !important; text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.gh-role:hover { border-color: var(--rc); transform: translateY(-2px); }
.gh-role.is-selected { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 6%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 18%, transparent); }
@supports not (background: color-mix(in srgb, red 10%, transparent)) { .gh-role.is-selected { background: #f7fbfd; box-shadow: 0 0 0 3px rgba(40, 151, 201, .18); } }
.gh-role__icon { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, transparent); }
@supports not (background: color-mix(in srgb, red 10%, transparent)) { .gh-role__icon { background: rgba(40, 151, 201, .1); } }
.gh-role__name { font-size: 1rem; line-height: 1.3; font-weight: 600 !important; }
.gh-role__meta { font-size: .78rem; color: var(--ink-light, #666); margin-top: auto; }
.gh-role__tick { position: absolute; top: .7rem; right: .7rem; width: 22px; height: 22px; border-radius: 50%; background: var(--rc); color: #fff; font-size: .65rem; display: none; align-items: center; justify-content: center; }
.gh-role.is-selected .gh-role__tick { display: inline-flex; }

.gh-topics-wrap { border-top: 1px dashed var(--hb-line); padding-top: 1.4rem; }
.gh-topic-group { display: none; }
.gh-topic-group.is-shown { display: block; animation: hb-fade .3s ease; }
@keyframes hb-fade { from { opacity: 0; transform: translateY(6px); } }
.gh-topic-group__tag { font-size: .95rem; color: var(--ink-medium, #333); margin: 0 0 1rem; max-width: 680px; }
.gh-topics { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.2rem; }
.gh-topic {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .6rem .95rem; border-radius: 100px;
    border: 1.5px solid var(--hb-line); background: #fff;
    font-size: .9rem; color: var(--ink-dark, #111) !important; text-decoration: none;
    transition: border-color .15s, background .15s;
}
.gh-topic i { color: var(--hb-blue); font-size: .85rem; }
.gh-topic:hover { border-color: var(--hb-blue); background: #f7fbfd; }
.gh-topic.is-selected { border-color: var(--hb-blue); background: var(--hb-blue); color: #fff !important; }
.gh-topic.is-selected i, .gh-topic.is-selected .gh-topic__n { color: #fff; background: rgba(255, 255, 255, .2); }
.gh-topic__n { font-size: .72rem; padding: .1rem .45rem; border-radius: 100px; background: var(--hb-soft); color: #1f5f7f; font-variant-numeric: tabular-nums; }
.gh-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.gh-cta-row .hub-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.gh-hint { font-size: .9rem; color: var(--ink-light, #666); margin: 0; }
.gh-summary { font-size: .88rem; color: var(--ink-medium, #333); }

.hub-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hub-point { padding: 1.4rem; }
.hub-point i { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--hb-soft); color: var(--hb-blue); margin-bottom: .9rem; }
.hub-point h3 { font-size: 1.12rem; margin: 0 0 .35rem; }
.hub-point p { font-size: .9rem; line-height: 1.6; color: var(--ink-medium, #333); margin: 0; }

/* Dark promo band (practice) */
.hub-band {
    position: relative; overflow: hidden;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem;
    padding: 2rem 2.2rem; border-radius: 20px; background: #0E1013; color: #fff;
}
.hub-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 120% at 90% 0%, rgba(40, 151, 201, .3) 0%, transparent 60%), radial-gradient(40% 90% at 0% 100%, rgba(6, 215, 184, .18) 0%, transparent 60%); pointer-events: none; }
.hub-band > * { position: relative; }
.hub-band .hub-label { color: var(--brand-mint, #06D7B8); margin-bottom: .5rem; }
.hub-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .35rem; }
.hub-band p { color: rgba(255, 255, 255, .65); margin: 0; font-size: .95rem; }
.hub-band .hub-btn { background: var(--brand-mint, #06D7B8); border-color: var(--brand-mint, #06D7B8); color: #0E1013 !important; }
.hub-band .hub-btn:hover { background: #fff; border-color: #fff; box-shadow: none; }

/* ══════════════════════════════════════════════════════════════════════════
   ARTICLES (/read)
   ══════════════════════════════════════════════════════════════════════════ */
.rd-search {
    display: flex; align-items: stretch; gap: .5rem;
    max-width: 760px; padding: .45rem; border-radius: 14px;
    background: #fff; border: 1px solid var(--hb-border);
    box-shadow: 0 10px 30px rgba(16, 60, 90, .06);
}
.hub-hero--center .rd-search { margin: 0 auto; }
.rd-search__field { position: relative; flex: 1 1 auto; min-width: 0; }
.rd-search__field i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--ink-light, #666); font-size: .9rem; }
.rd-search input, .rd-search select {
    width: 100%; height: 100%; min-height: 46px; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: .98rem; color: var(--ink-dark, #111);
}
.rd-search input { padding: 0 .8rem 0 2.5rem; }
.rd-search select {
    flex: 0 0 210px; width: 210px; padding: 0 2.2rem 0 .9rem; border-left: 1px solid var(--hb-line); cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232897C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right .8rem center / 1rem;
}
.rd-search .hub-btn { border-radius: 10px; }

.rd-pills { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; margin: 1.6rem 0 0; }
.rd-pill {
    display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
    padding: .45rem .9rem; border-radius: 100px; border: 1px solid var(--hb-border); background: #fff;
    font-size: .86rem; color: var(--ink-medium, #333) !important; text-decoration: none; transition: all .15s;
}
.rd-pill:hover { border-color: var(--hb-blue); color: var(--hb-blue) !important; }
.rd-pill.is-on { background: var(--hb-blue); border-color: var(--hb-blue); color: #fff !important; }

.rd-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1.2rem; font-size: .9rem; color: var(--ink-light, #666); }
.rd-status b { color: var(--ink-dark, #111); font-weight: 600 !important; }
.rd-status a { color: var(--hb-blue); }

.rd-card.rd-feature { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; margin-bottom: 1.5rem; }
.rd-feature .rd-img { aspect-ratio: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--hb-line); }
.rd-feature .rd-body { padding: 2.2rem; justify-content: center; }
.rd-feature .rd-title { font-size: clamp(1.45rem, 2.4vw, 1.95rem); }
.rd-feature .rd-flag { display: inline-flex; }

.rd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.rd-card { display: flex !important; flex-direction: column; overflow: hidden; height: 100%; }
.rd-img {
    aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(40, 151, 201, .1), rgba(6, 215, 184, .12));
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; color: var(--hb-blue); font-size: 2rem;
    border-bottom: 1px solid var(--hb-line);
}
.rd-body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.4rem 1.25rem; }
.rd-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.rd-flag { display: none; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 100px; background: var(--brand-mint, #06D7B8); color: #0E1013; }
.rd-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hb-blue); }
.rd-title { font-size: 1.18rem; line-height: 1.4; color: var(--ink-dark, #111); margin: 0 0 .6rem; }
.rd-excerpt { font-size: .9rem; line-height: 1.65; color: var(--ink-medium, #333); margin: 0 0 1rem; flex: 1; }
.rd-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .8rem; color: var(--ink-light, #666); padding-top: .85rem; border-top: 1px solid var(--hb-line); margin-top: auto; }
.rd-meta i { margin-right: .3rem; opacity: .8; }

.rd-popular { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.rd-pop { display: flex !important; gap: .9rem; align-items: flex-start; padding: 1.1rem; }
.rd-pop__n { flex: 0 0 auto; font-family: var(--font-heading) !important; font-size: 1.8rem; line-height: 1; color: var(--card-border, #A9D2E6); }
.rd-pop__t { font-size: .93rem; line-height: 1.45; color: var(--ink-dark, #111); margin: 0 0 .3rem; }
.rd-pop__m { font-size: .76rem; color: var(--ink-light, #666); }

.rd-empty { text-align: center; padding: 3.5rem 1rem; }
.rd-empty i { font-size: 2.2rem; color: var(--hb-border); margin-bottom: 1rem; }
.rd-empty h2 { font-size: 1.5rem; margin: 0 0 .5rem; }
.rd-empty p { color: var(--ink-light, #666); margin: 0 0 1.4rem; }

.hub-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.5rem; padding: 0; list-style: none; }
.hub-pager a, .hub-pager span {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    min-width: 42px; height: 42px; padding: 0 .85rem; border-radius: 10px;
    border: 1px solid var(--hb-border); background: #fff; font-size: .9rem;
    color: var(--ink-dark, #111) !important; text-decoration: none;
}
.hub-pager a:hover { border-color: var(--hb-blue); color: var(--hb-blue) !important; }
.hub-pager .current { background: var(--hb-blue); border-color: var(--hb-blue); color: #fff !important; }
.hub-pager .dots { border: 0; background: none; }

/* ══════════════════════════════════════════════════════════════════════════
   BLOG POST (single.php) + PAGE (page.php)
   ══════════════════════════════════════════════════════════════════════════ */
.post-wrap { max-width: 1320px; margin: 0 auto; padding: 2rem 1.25rem 0; }
.post-grid { display: grid; grid-template-columns: 220px minmax(0, 760px) 300px; justify-content: center; gap: 2.5rem; align-items: start; }

.post-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .84rem; color: var(--ink-light, #666); margin-bottom: 1.4rem; }
.post-crumbs a { color: var(--ink-light, #666); text-decoration: none; }
.post-crumbs a:hover { color: var(--hb-blue); }
.post-crumbs i { font-size: .6rem; opacity: .6; }

.post-head { margin-bottom: 1.8rem; }
.post-cat { display: inline-block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hb-blue) !important; text-decoration: none; margin-bottom: .8rem; }
.post-title { font-size: clamp(1.95rem, 4vw, 2.85rem); line-height: 1.15; letter-spacing: -.02em; color: var(--ink-dark, #111); margin: 0 0 1.1rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.15rem; font-size: .86rem; color: var(--ink-light, #666); padding-bottom: 1.2rem; border-bottom: 1px solid var(--hb-line); }
.post-meta i { margin-right: .35rem; color: var(--hb-blue); opacity: .85; }
.post-author { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink-dark, #111); }
.post-author span.av { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-gradient, linear-gradient(135deg, #2897C9, #1DA8C9)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.post-share { display: inline-flex; gap: .35rem; margin-left: auto; }
.post-share a, .post-share button {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hb-border); background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: var(--ink-medium, #333) !important;
    font-size: .85rem; cursor: pointer; text-decoration: none; transition: all .15s;
}
.post-share a:hover, .post-share button:hover { border-color: var(--hb-blue); color: var(--hb-blue) !important; }
.post-share button.is-done { background: var(--hb-blue); border-color: var(--hb-blue); color: #fff !important; }

.post-hero-img { margin: 0 0 2rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--hb-line); background: #fff; }
.post-hero-img img { width: 100%; height: auto; max-height: 460px; object-fit: cover; display: block; }

/* Article typography */
.post-body { font-size: 1.08rem; line-height: 1.85; color: #2a2f35; word-wrap: break-word; overflow-wrap: break-word; }
.post-body > *:first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.35rem; }
.post-body h2, .post-body h3, .post-body h4 { color: var(--ink-dark, #111); line-height: 1.3; scroll-margin-top: 110px; }
.post-body h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin: 2.6rem 0 1rem; padding-top: .4rem; }
.post-body h3 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
.post-body h4 { font-size: 1.12rem; margin: 1.6rem 0 .6rem; }
.post-body a { color: var(--hb-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body strong, .post-body b { font-weight: 600 !important; color: var(--ink-dark, #111); }
.post-body ul, .post-body ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.post-body li { margin-bottom: .45rem; }
.post-body li::marker { color: var(--hb-blue); }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.6rem 0; }
.post-body figure { margin: 1.8rem 0; }
.post-body figcaption { font-size: .85rem; color: var(--ink-light, #666); text-align: center; margin-top: .5rem; }
.post-body blockquote { margin: 1.8rem 0; padding: 1.1rem 1.4rem; border-left: 3px solid var(--hb-blue); background: var(--hb-soft); border-radius: 0 12px 12px 0; color: var(--ink-dark, #111); }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body hr { border: 0; height: 1px; background: var(--hb-line); margin: 2.6rem 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.post-body th, .post-body td { padding: .65rem .85rem; border: 1px solid var(--hb-line); text-align: left; vertical-align: top; }
.post-body th { background: #f6f9fb; font-weight: 600 !important; }
.post-body :not(pre) > code { background: rgba(40, 151, 201, .09); color: #1f6f95; border-radius: 5px; padding: .1em .4em; font-size: .9em; }
.post-body pre { background: #0f1720; color: #e6edf3; border-radius: 12px; padding: 1.2rem 1.35rem; margin: 1.6rem 0; overflow-x: auto; font-size: .9rem; line-height: 1.65; }
.post-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

.post-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 2.2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--hb-line); }
.post-tags a { font-size: .82rem; padding: .35rem .8rem; border-radius: 100px; background: #fff; border: 1px solid var(--hb-border); color: var(--ink-medium, #333) !important; text-decoration: none; }
.post-tags a:hover { border-color: var(--hb-blue); color: var(--hb-blue) !important; }

.post-endcard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; padding: 1.3rem 1.4rem; }
.post-endcard strong { display: block; font-size: 1.02rem; font-weight: 600 !important; }
.post-endcard span { font-size: .88rem; color: var(--ink-light, #666); }

/* Table of contents (left rail) */
.post-toc-col { align-self: stretch; }
.post-toc { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow-y: auto; padding-right: .5rem; }
.post-toc[hidden] { display: none; }
.post-grid--notoc { grid-template-columns: minmax(0, 760px) 300px; }
.post-grid--notoc .post-toc-col { display: none; }
.post-toc__label { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-light, #666); margin-bottom: .8rem; }
.post-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--hb-line); }
.post-toc li a { display: block; padding: .38rem 0 .38rem .9rem; margin-left: -2px; border-left: 2px solid transparent; font-size: .85rem; line-height: 1.4; color: var(--ink-light, #666); text-decoration: none; transition: color .15s, border-color .15s; }
.post-toc li.is-sub a { padding-left: 1.6rem; font-size: .8rem; }
.post-toc li a:hover { color: var(--ink-dark, #111); }
.post-toc li a.is-active { color: var(--hb-blue); border-left-color: var(--hb-blue); }
.post-progress { margin-top: 1.2rem; font-size: .76rem; color: var(--ink-light, #666); }
.post-progress div { height: 4px; border-radius: 4px; background: var(--hb-line); margin-top: .4rem; overflow: hidden; }
.post-progress div span { display: block; height: 100%; width: 0; background: var(--hb-blue); transition: width .15s; }

/* Promo sidebar (right rail) */
.post-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 1rem; }
.side-card { padding: 1.15rem 1.2rem; }
.side-card__label { display: flex; align-items: center; gap: .45rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-light, #666); margin-bottom: .55rem; }
.side-card__label i { color: var(--hb-blue); }
.side-card h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 .35rem; color: var(--ink-dark, #111); }
.side-card p { font-size: .86rem; line-height: 1.55; color: var(--ink-medium, #333); margin: 0 0 .9rem; }
.side-card .hub-btn { width: 100%; padding: .6rem 1rem; font-size: .86rem; }
.side-card--dark { background: #0E1013; border-color: #0E1013; color: #fff; position: relative; overflow: hidden; }
.side-card--dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 70% at 100% 0%, rgba(40, 151, 201, .35) 0%, transparent 65%); pointer-events: none; }
.side-card--dark > * { position: relative; }
.side-card--dark .side-card__label { color: rgba(255, 255, 255, .6); }
.side-card--dark .side-card__label i { color: var(--brand-mint, #06D7B8); }
.side-card--dark h3 { color: #fff; }
.side-card--dark p { color: rgba(255, 255, 255, .65); }
.side-card--dark .hub-btn { background: var(--brand-mint, #06D7B8); border-color: var(--brand-mint, #06D7B8); color: #0E1013 !important; }
.side-card--dark .hub-btn:hover { background: #fff; border-color: #fff; box-shadow: none; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li + li { border-top: 1px solid var(--hb-line); }
.side-links a { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; font-size: .88rem; line-height: 1.4; color: var(--ink-dark, #111) !important; text-decoration: none; }
.side-links a:hover { color: var(--hb-blue) !important; }
.side-links a > i { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--hb-soft); color: var(--hb-blue); font-size: .8rem; }
.side-links small { display: block; font-size: .74rem; color: var(--ink-light, #666); }

/* Related posts */
.post-related { padding: 3.5rem 0 4.5rem; }
.post-related .rd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Plain WordPress page */
.page-wrap { max-width: 820px; margin: 0 auto; padding: 3rem 1.25rem 4.5rem; }
.page-wrap .post-title { text-align: left; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1299.98px) {
    .post-grid, .post-grid--notoc { grid-template-columns: minmax(0, 1fr) 290px; gap: 2.25rem; }
    .post-toc-col { display: none; }
}
@media (max-width: 1199.98px) {
    .gh-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rd-popular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .hub-hero { padding: 2.75rem 0 2rem; }
    .cr-grid { grid-template-columns: minmax(0, 1fr); }
    .hub-next { grid-template-columns: minmax(0, 1fr); }
    .hub-points { grid-template-columns: minmax(0, 1fr); }
    .rd-grid, .post-related .rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd-card.rd-feature { grid-template-columns: minmax(0, 1fr); }
    .rd-feature .rd-img { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--hb-line); }
    .rd-feature .rd-body { padding: 1.5rem; }
    .post-grid, .post-grid--notoc { grid-template-columns: minmax(0, 1fr); }
    .post-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.5rem; }
}
@media (max-width: 767.98px) {
    .gh-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd-search { flex-wrap: wrap; }
    .rd-search__field { flex-basis: 100%; }
    .rd-search select { flex: 1 1 auto; width: auto; border-left: 0; border-top: 1px solid var(--hb-line); min-height: 44px; }
    .rd-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-left: -1rem; margin-right: -1rem; padding: 0 1rem .4rem; scrollbar-width: none; }
    .rd-pills::-webkit-scrollbar { display: none; }
    .post-share { margin-left: 0; width: 100%; }
}
@media (max-width: 575.98px) {
    .hub-sec { padding-bottom: 3.25rem; }
    .cr-card { padding: 1.25rem; }
    .cr-title { font-size: 1.3rem; }
    .cr-foot .hub-btn { width: 100%; }
    .gh-picker { padding: 1.1rem; }
    .gh-role { padding: .9rem .8rem; }
    .rd-grid, .post-related .rd-grid, .rd-popular { grid-template-columns: minmax(0, 1fr); }
    .hub-band { padding: 1.6rem 1.4rem; }
    .hub-band .hub-btn { width: 100%; }
    .post-wrap { padding-top: 1.25rem; }
    .post-body { font-size: 1.02rem; line-height: 1.8; }
    .post-side { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .hub-card, .gh-role, .gh-topic-group.is-shown, .cr-card::before { transition: none !important; animation: none !important; }
    a.hub-card:hover { transform: none; }
}
