/* ============================================================
   Resources hub. Tabbed shelf: one category in view at a time
   (Flash courses / Free tools / Guides & PDFs / Full courses),
   a persistent blog strip below, and a search that looks across
   every tab. Course materials live INSIDE their course card;
   the Guides tab is for standalone releases only.
   ============================================================ */

.nav-links a[aria-current="page"],
.mobile-menu a[aria-current="page"] {
    color: var(--text-dark);
}

.resources-page {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.04), transparent 30%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.02), transparent 40%),
        #ffffff;
    min-height: 100vh;
}

.resources-shell {
    max-width: 1020px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 2.5rem;
}

/* ─── Hub header ───────────────────────────────────────── */
.hub-head {
    padding: 6.5rem 0 2.6rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.hub-head-titles .hub-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.6rem;
}

.hub-head-titles h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #111;
}

.hub-head-titles p {
    margin-top: 0.5rem;
    color: #4b5563;
    font-size: 1rem;
    max-width: 52ch;
}

/* search */
.hub-search {
    position: relative;
    flex: 0 1 320px;
    min-width: 250px;
}

.hub-search svg {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: #9ca3af;
    pointer-events: none;
}

.hub-search input {
    width: 100%;
    font-family: var(--font);
    font-size: 0.95rem;
    color: #111;
    background: #faf9f6;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.75rem 4.4rem 0.75rem 2.5rem;
    transition: border-color 0.2s, background 0.2s;
}

/* the count badge lives where the native clear button would sit;
   Escape clears instead */
.hub-search input::-webkit-search-cancel-button,
.hub-search input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.hub-search input:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
}

.hub-search-count {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
    pointer-events: none;
}

/* ─── Tabs: quiet text on a hairline, active gets the ink ── */
.hub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.2rem, 3vw, 2.4rem);
    padding: 0;
    background: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    width: 100%;
    margin-bottom: 3rem;
}

.hub-tab {
    position: relative;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: #9ca3af;
    background: transparent;
    border: none;
    padding: 0.4rem 0.1rem 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}

.hub-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: transparent;
    transition: background 0.2s;
}

.hub-tab:hover { color: #374151; }

.hub-tab[aria-selected="true"] {
    color: #111;
}

.hub-tab[aria-selected="true"]::after { background: var(--blue); }

.hub-tab .tab-soon {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c0b49a;
    margin-left: 0.45rem;
    vertical-align: 1px;
}

/* counts: barely-there superscript, never a badge */
.hub-tab .tab-count {
    font-size: 0.68rem;
    font-weight: 600;
    color: #c3c7ce;
    margin-left: 0.35rem;
    font-variant-numeric: tabular-nums;
    vertical-align: 3px;
    transition: color 0.2s;
}

.hub-tab[aria-selected="true"] .tab-count { color: #9ca3af; }

.hub-tab .tab-count:empty { display: none; }

/* ─── Panels ───────────────────────────────────────────── */
.hub-panel {
    display: none;
    min-height: 320px;
    padding-bottom: 2rem;
}

.hub-panel.is-active { display: block; }

/* while searching, every panel with matches is on screen */
.resources-page.is-searching .hub-panel { display: none; }
.resources-page.is-searching .hub-panel.has-matches { display: block; }
.resources-page.is-searching .hub-tabs { opacity: 0.45; pointer-events: none; }
.resources-page.is-searching .panel-label { display: flex; }

/* small category label shown above each panel during search */
.panel-label {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.panel-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
}

.panel-intro {
    color: #9ca3af;
    font-size: 0.9rem;
    max-width: 58ch;
    margin-bottom: 2.2rem;
}

[data-res].is-hidden { display: none !important; }

/* ─── Dark released-card treatment ──────────────────────
   Lifted from the home page's .outcomes-card-dark: #141923,
   a white dot grid and a faint blue corner tint. Released
   resources are dark; placeholder slots stay white/dashed.
   The .card-dots pseudo-element carries both layers. */

.course-feature::before,
.tool-card::before,
.soon-bubble::before,
.doc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 34%),
        radial-gradient(circle, rgba(255, 255, 255, 0.09) 1.1px, transparent 1.7px);
    background-size: 100% 100%, 100% 100%, 20px 20px;
    background-position: 0 0, 0 0, center top;
    pointer-events: none;
}

/* ─── Flash course feature card ────────────────────────── */
.course-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    background: #141923;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.course-feature > * { position: relative; }

/* chronological course number, oversized and quiet */
.course-feature::after {
    content: attr(data-num);
    position: absolute;
    top: 0.7rem;
    right: 1.5rem;
    font-family: var(--font);
    font-size: 4.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.course-feature:hover,
.course-feature:focus-within {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(37, 99, 235, 0.18);
}

.course-feature-body { padding: 2.6rem 2.8rem 2.2rem; }

.cf-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

/* one quiet chip family: thin outline, muted text; only "free"
   earns a colour, and only on the text */
.cf-flag {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.32rem 0.75rem;
    color: #9aa3b2;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.cf-flag.is-free { color: #7fd7b2; border-color: rgba(127, 215, 178, 0.3); background: transparent; }

.course-feature h3 {
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.6rem;
}

.course-feature .cf-copy {
    color: #b6bcc8;
    line-height: 1.65;
    font-size: 0.98rem;
    max-width: 52ch;
    margin-bottom: 1.3rem;
}

.cf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.3rem;
    font-size: 0.8rem;
    color: #7c8494;
    margin-bottom: 1.8rem;
}

.cf-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cf-meta svg { width: 14px; height: 14px; stroke: currentColor; flex: none; }

.cf-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: var(--blue);
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.cf-cta:hover { background: var(--blue-hover); transform: translateY(-1px); }

.course-feature-art {
    /* opaque so the parent card's dot grid stops here: own clean panel */
    background: #1a1f29;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.course-feature-art svg { width: 100%; max-width: 340px; height: auto; }

/* recolour the inline line-art for the dark card */
.course-feature-art svg [stroke="#3d3833"] { stroke: rgba(255, 255, 255, 0.4); }
.course-feature-art svg [fill="#f4f2ec"] { fill: #141923; }

/* course materials dropdown, subtle, inside the card */
.cf-materials {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* opaque inset: the dropdown is its own surface, no dot bleed-through */
    background: #10141b;
}

.cf-materials summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.8rem;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a92a1;
    transition: color 0.2s;
}

.cf-materials summary:hover { color: #8ab4ff; }
.cf-materials summary::-webkit-details-marker { display: none; }

.cf-materials summary .cfm-arrow {
    transition: transform 0.25s ease;
    font-size: 0.7rem;
}

.cf-materials[open] summary .cfm-arrow { transform: rotate(90deg); }

.cfm-body {
    padding: 0.4rem 2.8rem 1.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.6rem;
}

.cfm-group h5 {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #c9a35f;
    margin: 0 0 0.55rem;
}

.cfm-group h5 .cfm-count { color: rgba(201, 163, 95, 0.6); margin-left: 0.25rem; }

.cfm-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-decoration: none;
    /* opaque mini card, clearly separated from the patterned parent */
    background: #20252e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.7rem 0.95rem;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
    font-family: var(--font);
    text-align: left;
    width: 100%;
}

.cfm-item:last-child { margin-bottom: 0; }
.cfm-item:hover { border-color: rgba(138, 180, 255, 0.5); transform: translateY(-1px); }

.cfm-item .cfm-title { font-size: 0.85rem; font-weight: 700; color: #fff; }
.cfm-item .cfm-sub { font-size: 0.75rem; color: #7c8494; }

/* ─── Skeleton "coming soon" slots (unnamed) ───────────── */
.skeleton-card {
    position: relative;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 1.7rem 2rem;
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.skeleton-card .sk-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8a887;
}

.sk-bars { flex: 1; max-width: 380px; }

.sk-bar {
    height: 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.05);
    margin-bottom: 0.7rem;
}

.sk-bar.is-title { height: 18px; width: 55%; background: rgba(0, 0, 0, 0.07); }
.sk-bar.is-short { width: 80%; }
.sk-bar:last-child { margin-bottom: 0; width: 40%; }

.skeleton-card .sk-note {
    flex: 1;
    font-size: 0.88rem;
    color: #9ca3af;
    max-width: 34ch;
}

/* ─── Tools ────────────────────────────────────────────── */
.tool-card {
    background: #141923;
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.4rem 2.8rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.tool-card > * { position: relative; }

.tool-card::after {
    content: '✦';
    position: absolute;
    right: -0.4rem;
    top: -1.4rem;
    font-size: 6.5rem;
    color: rgba(154, 123, 63, 0.1);
    pointer-events: none;
}

.tool-card .tool-kicker {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c9a35f;
    margin-bottom: 0.5rem;
}

.tool-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.4rem;
}

.tool-card > p {
    font-size: 0.9rem;
    color: #b6bcc8;
    max-width: 52ch;
    margin-bottom: 1.3rem;
}

.cert-checker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.cert-checker input {
    font-family: var(--font);
    font-size: 0.9rem;
    color: #fff;
    background: #232833;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    min-width: 0;
}

.cert-checker input::placeholder { color: #7c8494; }

.cert-checker input:focus {
    outline: none;
    border-color: #c9a35f;
    background: #262b36;
}

.cert-checker button {
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    background: #c9a35f;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.3rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.cert-checker button:hover { background: #d9b676; transform: translateY(-1px); }
.cert-checker button:disabled { opacity: 0.6; cursor: default; transform: none; }

.cert-result {
    margin-top: 1rem;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    display: none;
    position: relative;
    z-index: 1;
}

.cert-result.is-shown { display: block; }
.cert-result.is-valid { background: #112a2c; border: 1px solid rgba(52, 211, 153, 0.4); color: #d1fae5; }
.cert-result.is-invalid { background: #2e1b21; border: 1px solid rgba(248, 113, 113, 0.35); color: #fecaca; }
.cert-result.is-error { background: #232833; border: 1px solid rgba(255, 255, 255, 0.15); color: #cbd5e1; }

.cert-result .cr-seal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
}

/* ─── Guides & PDFs: typed sections, shelf rows ──────────
   Three tiers of visual weight: official guides largest, course
   books standard, cheat sheets compact. Same card family. */
.pdf-section { margin-bottom: 3.2rem; }
.pdf-section:last-of-type { margin-bottom: 0.5rem; }

.pdf-sec-head {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}

.pdf-sec-head h3 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #374151;
    white-space: nowrap;
}

.pdf-sec-head .sec-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: #b5bac2;
    font-variant-numeric: tabular-nums;
}

/* a hairline carries the eye to the hint */
.pdf-sec-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    align-self: center;
    order: 3;
    margin: 0 0.2rem;
}

.pdf-sec-head .sec-hint {
    order: 4;
    font-size: 0.74rem;
    color: #b5bac2;
    font-weight: 500;
    white-space: nowrap;
}

/* tier sizing */
.pdf-section.tier-guides .doc-row { grid-auto-columns: minmax(360px, 420px); }
.pdf-section.tier-guides .doc-cover { width: 104px; }
.pdf-section.tier-guides .doc-card { padding: 1.4rem; }
.pdf-section.tier-guides .doc-card .doc-title { font-size: 1.05rem; }

.pdf-section.tier-sheets .doc-row { grid-auto-columns: minmax(260px, 290px); }
.pdf-section.tier-sheets .doc-cover { width: 62px; }
.pdf-section.tier-sheets .doc-card { padding: 0.9rem; gap: 0.9rem; }
.pdf-section.tier-sheets .doc-card .doc-title { font-size: 0.88rem; }
.pdf-section.tier-sheets .doc-card .doc-sub { font-size: 0.75rem; }
.pdf-section.tier-sheets .doc-card .doc-kicker { font-size: 0.56rem; }

/* horizontal shelf row; becomes a "see all" grid page when a
   category outgrows one row (see resources/RESOURCES-SYSTEM.md) */
.doc-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(310px, 350px);
    gap: 1.1rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 1rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.doc-row > * { scroll-snap-align: start; }

/* card: mini rendered cover on the left, details on the right.
   Dark card, paper cover: a lit book on a dark shelf. */
.doc-card {
    position: relative;
    display: flex;
    gap: 1.1rem;
    background: #141923;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.1rem;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
    overflow: hidden;
}

.doc-card > * { position: relative; z-index: 1; }

.doc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.2);
    border-color: rgba(37, 99, 235, 0.5);
}

/* the rendered cover: page-shaped, typeset like the document.
   align-self keeps it pinned to A4 proportions no matter how tall
   the card's text side grows: only page one, in a page-sized window */
.doc-cover {
    flex: none;
    align-self: flex-start;
    width: 88px;
    aspect-ratio: 210 / 297;
    background: #fffdf8;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    padding: 9px 8px 7px;
    overflow: hidden;
}

.doc-cover .cv-band {
    height: 3px;
    width: 55%;
    background: #9a7b3f;
    border-radius: 2px;
    margin-bottom: 7px;
}

.doc-cover.is-blue .cv-band { background: var(--blue); }

.doc-cover .cv-title {
    font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.25;
    color: #171513;
    margin-bottom: 6px;
}

.doc-cover .cv-line {
    height: 2px;
    border-radius: 2px;
    background: rgba(23, 21, 19, 0.1);
    margin-bottom: 4px;
}

.doc-cover .cv-line.w60 { width: 60%; }
.doc-cover .cv-line.w80 { width: 80%; }

.doc-cover .cv-foot {
    margin-top: auto;
    font-size: 0.38rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9a7b3f;
}

.doc-cover.is-blue .cv-foot { color: var(--blue); }

/* real first-page render: a small window into the actual PDF */
.doc-cover.is-real {
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.doc-cover.is-real img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.doc-card .doc-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.doc-card .doc-kicker {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #c9a35f;
}

.doc-card .doc-title { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; color: #fff; }
.doc-card .doc-sub { font-size: 0.8rem; color: #b6bcc8; line-height: 1.5; flex: 1; }

.doc-card .doc-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #7c8494;
    font-variant-numeric: tabular-nums;
}

.doc-card .doc-meta .doc-open { color: #8ab4ff; }

.doc-card.is-soon { opacity: 0.85; cursor: default; }
.doc-card.is-soon .doc-title, .doc-card.is-soon .doc-sub { color: #7c8494; }
.doc-card.is-soon:hover { transform: none; box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12); border-color: rgba(255, 255, 255, 0.08); }
.doc-card.is-soon .doc-cover { filter: grayscale(1); opacity: 0.6; }
.doc-card.is-soon .doc-meta .doc-open { color: #7c8494; }

.panel-note {
    margin-top: 1.4rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* inline links: bold ink, no underline; the colour shift to blue on
   hover is the whole affordance */
.panel-note a, .panel-note button,
.soon-bubble a, .soon-bubble button,
.resources-suggest a {
    font: inherit;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
}

.panel-note a:hover, .panel-note button:hover,
.soon-bubble a:hover, .soon-bubble button:hover,
.resources-suggest a:hover {
    color: var(--blue);
    text-decoration: none;
}

/* ─── Full courses: coming-soon bubble ─────────────────── */
.soon-bubble {
    position: relative;
    max-width: 560px;
    margin: 1.5rem auto;
    text-align: center;
    background: #141923;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.6rem 2.4rem;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.soon-bubble > * { position: relative; }

.soon-bubble .sb-badge {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c9a35f;
    border: 1px solid rgba(201, 163, 95, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.2rem;
}

.soon-bubble h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.6rem;
}

.soon-bubble p {
    color: #b6bcc8;
    font-size: 0.93rem;
    max-width: 44ch;
    margin: 0 auto 0.8rem;
}

.soon-bubble p:last-of-type { margin-bottom: 0; }

/* dark-card variant of the inline link style */
.soon-bubble a,
.soon-bubble button {
    color: #fff;
}

.soon-bubble a:hover,
.soon-bubble button:hover {
    color: #8ab4ff;
}

/* ─── Blog strip: flat paper, blueprint grid, brackets ─── */
.blog-strip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background-color: #faf9f6;
    background-image:
        linear-gradient(rgba(17, 17, 17, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, 0.028) 1px, transparent 1px);
    background-size: 24px 24px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 4px;
    padding: 2.2rem 2.8rem;
    text-decoration: none;
    margin: 3.5rem 0 0;
    transition: border-color 0.25s, box-shadow 0.25s;
}

/* corner brackets, echoing the wordmark */
.blog-strip::before,
.blog-strip::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    transition: border-color 0.25s;
}

.blog-strip::before {
    top: 10px;
    left: 10px;
    border-top: 2.5px solid #111;
    border-left: 2.5px solid #111;
}

.blog-strip::after {
    bottom: 10px;
    right: 10px;
    border-bottom: 2.5px solid #111;
    border-right: 2.5px solid #111;
}

.blog-strip:hover { border-color: rgba(37, 99, 235, 0.35); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05); }
.blog-strip:hover::before, .blog-strip:hover::after { border-color: var(--blue); }

.blog-strip .bs-text .bs-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.45rem;
}

.blog-strip .bs-text .bs-kicker svg { width: 13px; height: 13px; stroke: var(--blue); }

.blog-strip .bs-text h3 {
    color: #111;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.blog-strip .bs-text h3 .bs-underline {
    box-shadow: inset 0 -0.42em rgba(37, 99, 235, 0.14);
}

.blog-strip .bs-text p { color: #4b5563; font-size: 0.9rem; max-width: 56ch; }

.blog-strip .bs-cta {
    flex: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: var(--blue);
    border-radius: 10px;
    padding: 0.7rem 1.4rem;
    transition: background 0.2s, transform 0.15s;
}

.blog-strip:hover .bs-cta { background: var(--blue-hover); transform: translateY(-1px); }

/* ─── Empty search state + suggest line ────────────────── */
.hub-empty {
    display: none;
    text-align: center;
    color: #6b7280;
    padding: 3rem 0 1rem;
    font-size: 0.95rem;
}

.hub-empty.is-shown { display: block; }

.resources-suggest {
    text-align: center;
    color: #6b7280;
    font-size: 0.92rem;
    padding: 2.2rem 0 4.5rem;
}


/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
    .course-feature { grid-template-columns: 1fr; }
    .course-feature-art { display: none; }
    .cert-checker { grid-template-columns: 1fr; }
    .skeleton-card { flex-direction: column; align-items: flex-start; gap: 1rem; padding-top: 3rem; }
}

@media (max-width: 640px) {
    .resources-shell { padding: 0 1.25rem; }
    .hub-head { padding-top: 5rem; }
    .course-feature-body, .tool-card { padding: 1.5rem; }
    .cf-materials summary { padding: 0.95rem 1.5rem; }
    .cfm-list { padding: 0 1.5rem 1.2rem; }
    .blog-strip { padding: 1.5rem; }
    .soon-bubble { padding: 2rem 1.5rem; }
}
