/* ─────────────────────────────────────────────────────────────────────────
   "Secure by Design" series landing page — styles
   Loaded only on series.html
   ───────────────────────────────────────────────────────────────────────── */


/* Everything above the roadmap — hero, progress, CTA row, disclosure and the sticky
   toolbar shell — now comes from page-shell.css, which tool_matrix.html shares. Only
   the parts that are specific to this page live below.

   One exception kept here: the labs link inside the disclosure, which the tools page
   has no equivalent of. */
.page-disclosure-labs { margin: 0.85rem 0 0; }
.page-disclosure-labs a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 157, 0.35);
}
.page-disclosure-labs a:hover { border-bottom-color: var(--accent); }


.series-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
/* Jump pills are .page-pill (see page-shell.css); only the roman badge is ours. */
.series-jump .page-pill { align-items: baseline; }
.series-jump-roman { color: var(--accent); font-weight: 700; font-size: 0.72rem; }
.series-jump .page-pill:hover .series-jump-roman { color: inherit; }

/* ── Series blocks ────────────────────────────────────────────────────── */
.series-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    scroll-margin-top: 190px;
}
.series-block.is-hidden { display: none; }
/* Belt and braces: style.css scopes its sticky site-header rule to `body > header`,
   but this block head is a <header> too — never let it stick over the page chrome. */
.series-block-head {
    position: static;
    z-index: auto;
    background: none;
    border-bottom: 0;
    margin-bottom: 1.25rem;
}
.series-block-title { display: flex; gap: 1rem; align-items: flex-start; }
.series-block-roman {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 255, 157, 0.35);
    border-radius: 10px;
    background: rgba(0, 255, 157, 0.08);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.series-block-title h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.series-block-title h2 i { color: var(--accent); margin-right: 0.35rem; font-size: 1.05rem; }
.series-block-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.series-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}
.series-badge-owasp { background: rgba(0, 255, 157, 0.12); color: var(--accent); border: 1px solid rgba(0, 255, 157, 0.28); }
.series-badge-cysa { background: rgba(96, 165, 250, 0.12); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.3); }
.series-block-count { font-size: 0.75rem; color: var(--text-muted); }
.series-block-summary {
    margin-top: 0.9rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    /* Full width of the block, like .page-intro in the hero — body copy fills its
       card rather than sitting in a narrower column inside it. */
}

/* ── Post cards ───────────────────────────────────────────────────────── */
/* Posts still to come: the series says how many and until when, never which. */
.series-block-upcoming {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0.6rem 0.9rem;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.series-block-upcoming i { color: var(--accent); opacity: 0.7; }

.series-card-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
}
.series-card { display: flex; }
.series-card.is-hidden { display: none; }
.series-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card-hover);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
a.series-card-link:hover {
    border-color: rgba(0, 255, 157, 0.45);
    box-shadow: 0 6px 20px rgba(0, 255, 157, 0.09);
    transform: translateY(-2px);
}
a.series-card-link:hover .series-card-title { color: var(--accent); }
.series-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.series-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 0.35rem;
    border-radius: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}
.series-card-owasp {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.series-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.45rem;
    transition: color 0.2s;
}
.series-card-summary {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.85rem;
}
.series-card-foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}
.series-card-foot i { opacity: 0.7; }
.series-card-lang {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
}
.series-card-read { margin-left: auto; color: var(--accent); font-weight: 600; }

.series-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2.5rem 1rem;
}

/* ── Outro ────────────────────────────────────────────────────────────── */
.series-outro {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}
.series-outro h2 { font-size: 1.25rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.series-outro p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.series-outro .page-cta { justify-content: center; }

/* ── Responsive ───────────────────────────────────────────────────────── */
/* The hero, CTA and toolbar breakpoints live in page-shell.css. */
@media (max-width: 700px) {
    .series-block { padding: 1.25rem; scroll-margin-top: 120px; }
    .series-jump-theme { display: none; }
    .series-jump .page-pill { padding: 0.25rem 0.6rem; }
}
