/* =========================================================
   Onderwijsweb — Modernized Teal Educational Portal Styles
   ========================================================= */

:root {
    --teal-950: #063844;
    --teal-900: #084f5e;
    --teal-800: #0b6d80;
    --teal-700: #0d7f94;
    --teal-600: #0f8fa6;
    --teal-500: #1aa4bc;
    --teal-100: #e5f5f8;
    --teal-50: #f1fafc;

    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --emerald-600: #059669;
    --emerald-100: #d1fae5;
    --rose-600: #dc2626;
    --rose-100: #fee2e2;

    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-400: #94a3b8;

    --bg-canvas: #f6fafb;
    --bg-surface: #ffffff;
    --border: #e1ecf0;
    --border-strong: #c8dce2;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(8, 79, 94, 0.05), 0 1px 3px rgba(8, 79, 94, 0.04);
    --shadow-md: 0 8px 24px -6px rgba(8, 79, 94, 0.1), 0 2px 6px rgba(8, 79, 94, 0.04);
    --shadow-lg: 0 18px 40px -12px rgba(8, 79, 94, 0.16);

    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink-900);
    background: var(--bg-canvas);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--ink-900);
    line-height: 1.25;
    margin-top: 0;
    letter-spacing: -0.02em;
}

a {
    color: var(--teal-700);
    text-decoration: none;
}

a:hover {
    color: var(--teal-900);
}

img {
    max-width: 100%;
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.icon-xs { width: 14px; height: 14px; flex-shrink: 0; }
.icon-sm { width: 17px; height: 17px; flex-shrink: 0; }
.icon-md { width: 22px; height: 22px; flex-shrink: 0; }

/* --- Top Ecosystem Bar (Basiscursus, ICT-tools, Medalrace, Ontmaskerd) --- */
.ecosystem-bar {
    background: var(--teal-900);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ecosystem-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
}

.ecosystem-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.ecosystem-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.ecosystem-link {
    color: rgba(255, 255, 255, 0.92);
    padding: 0.22rem 0.68rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.16s ease, color 0.16s ease;
}

.ecosystem-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* --- Main Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 70px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-mark {
    display: block;
    filter: drop-shadow(0 4px 10px rgba(15, 143, 166, 0.22));
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--teal-950);
    letter-spacing: -0.03em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link {
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink-700);
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background: var(--teal-50);
    color: var(--teal-800);
}

.nav-link.is-active {
    background: var(--teal-100);
    color: var(--teal-900);
}

.nav-link-admin {
    background: var(--amber-100);
    color: #92400e;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-canvas);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: 0.2rem 0.25rem 0.2rem 0.85rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-search:focus-within {
    border-color: var(--teal-600);
    box-shadow: 0 0 0 3px rgba(15, 143, 166, 0.14);
    background: #fff;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    font: inherit;
    font-size: 0.875rem;
    color: var(--ink-900);
    width: 170px;
}

.header-search button {
    border: none;
    background: var(--teal-600);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.header-search button:hover {
    background: var(--teal-800);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    padding: 0 9px;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    background: var(--ink-700);
    border-radius: 2px;
}

/* --- Buttons & Pills --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.68rem 1.25rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.14s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--teal-600);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 143, 166, 0.25);
}

.btn-primary:hover {
    background: var(--teal-800);
    color: #fff;
}

.btn-outline {
    background: #fff;
    border-color: var(--border-strong);
    color: var(--ink-700);
}

.btn-outline:hover {
    border-color: var(--teal-600);
    color: var(--teal-800);
    background: var(--teal-50);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-700);
}

.btn-ghost:hover {
    background: var(--teal-50);
    color: var(--teal-800);
}

.btn-white {
    background: #fff;
    color: var(--teal-900);
}

.btn-white:hover {
    background: var(--teal-50);
    color: var(--teal-950);
}

.btn-danger-ghost {
    background: transparent;
    color: var(--rose-600);
}

.btn-danger-ghost:hover {
    background: var(--rose-100);
    color: var(--rose-600);
}

.btn-sm {
    padding: 0.48rem 0.95rem;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
}

.btn-block {
    width: 100%;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.pill-teal {
    background: var(--teal-100);
    color: var(--teal-900);
}

.pill-domain {
    background: var(--teal-50);
    color: var(--teal-800);
    border: 1px solid var(--teal-100);
}

.pill-featured {
    background: var(--amber-100);
    color: #92400e;
}

.pill-success {
    background: var(--emerald-100);
    color: #065f46;
}

.pill-muted {
    background: #eef2f5;
    color: var(--ink-500);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--teal-700);
}

.text-link:hover {
    color: var(--teal-900);
}

/* --- Hero --- */
.hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(34, 184, 207, 0.2), transparent 45%),
        radial-gradient(circle at 12% 90%, rgba(15, 143, 166, 0.14), transparent 42%),
        linear-gradient(160deg, #ffffff 0%, #ebf7fa 60%, #e1f3f7 100%);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 0 3.25rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.65fr);
    gap: 2.25rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid var(--teal-100);
    color: var(--teal-800);
    padding: 0.32rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.15rem;
}

.hero-title {
    font-size: clamp(1.95rem, 3.6vw, 2.85rem);
    font-weight: 800;
    color: var(--teal-950);
    margin-bottom: 1rem;
    max-width: 19ch;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--ink-700);
    max-width: 58ch;
    margin: 0 0 1.6rem;
}

.hero-search {
    max-width: 600px;
}

.hero-search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    box-shadow: var(--shadow-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-search-box:focus-within {
    border-color: var(--teal-600);
    box-shadow: 0 0 0 4px rgba(15, 143, 166, 0.15), var(--shadow-md);
}

.hero-search-icon {
    color: var(--teal-600);
}

.hero-search-box input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink-900);
    background: transparent;
}

.hero-quick-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.15rem;
}

.hero-quick-label {
    font-size: 0.82rem;
    color: var(--ink-500);
    font-weight: 500;
    margin-right: 0.25rem;
}

.quick-pill {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-strong);
    color: var(--teal-900);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.28rem 0.78rem;
    border-radius: var(--radius-pill);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.quick-pill:hover {
    background: #fff;
    border-color: var(--teal-600);
}

.hero-stats-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #d5e9ee;
    border-radius: var(--radius-lg);
    padding: 0.85rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hero-stat-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.9rem;
    border-radius: 13px;
    color: inherit;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.hero-stat-link:hover {
    background: var(--teal-50);
    border-color: var(--teal-100);
    color: inherit;
}

.hero-stat-num {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--teal-700);
    line-height: 1;
    min-width: 2.2rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 0.94rem;
    color: var(--ink-700);
    font-weight: 600;
}

.hero-stat-action {
    width: 34px;
    height: 34px;
    margin-left: 0.45rem;
    border-radius: 50%;
    background: var(--teal-100);
    color: var(--teal-800);
    display: grid;
    place-items: center;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.hero-stat-link:hover .hero-stat-action {
    background: var(--teal-600);
    color: #fff;
    transform: translateX(3px);
}

/* --- Sections --- */
.site-main {
    flex: 1;
}

.section {
    padding: 3.5rem 0;
}

.section-alt {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-teal-soft {
    background: linear-gradient(180deg, var(--teal-50) 0%, #eef8fa 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    font-weight: 800;
    color: var(--teal-950);
    margin: 0 0 0.3rem;
}

.section-subtitle {
    margin: 0;
    color: var(--ink-500);
    font-size: 0.96rem;
}

/* --- Portal Blocks Grid (Dynamic Homepage) --- */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.portal-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.portal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-500);
    color: inherit;
}

.portal-card.is-upcoming {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
    border-style: dashed;
    border-color: var(--border-strong);
}

.portal-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.portal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--teal-100);
    color: var(--teal-800);
    display: grid;
    place-items: center;
}

.portal-card.is-upcoming .portal-icon {
    background: #edf2f5;
    color: var(--ink-500);
}

.portal-card-title {
    font-size: 1.14rem;
    margin: 0 0 0.25rem;
    color: var(--teal-950);
}

.portal-card-sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal-700);
    margin: 0 0 0.65rem;
}

.portal-card-desc {
    font-size: 0.9rem;
    color: var(--ink-500);
    margin: 0 0 1.25rem;
    flex: 1;
}

.portal-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--teal-700);
}

.portal-card.is-upcoming .portal-card-cta {
    color: var(--ink-400);
}

/* --- Filter Bars & Pills --- */
.filter-bar-compact,
.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.filter-pill,
.category-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid var(--border-strong);
    color: var(--ink-700);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.filter-pill:hover,
.category-pill-link:hover {
    border-color: var(--teal-600);
    color: var(--teal-900);
    background: var(--teal-50);
}

.filter-pill.is-active {
    background: var(--teal-600);
    border-color: var(--teal-600);
    color: #fff;
}

.filter-pill.is-active .filter-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.filter-dot,
.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cat-color, var(--teal-600));
    flex-shrink: 0;
}

.filter-count {
    font-size: 0.75rem;
    padding: 0.08rem 0.45rem;
    border-radius: var(--radius-pill);
    background: #edf3f5;
    color: var(--ink-500);
    font-weight: 700;
}

/* --- Mini-Tools Grid & Cards --- */
.tools-filter-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-500);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.inline-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-canvas);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.95rem;
    flex: 1;
    max-width: 380px;
    color: var(--ink-500);
}

.inline-search input {
    border: none;
    background: transparent;
    outline: none;
    font: inherit;
    font-size: 0.9rem;
    width: 100%;
    color: var(--ink-900);
}

.results-counter {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-500);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--tool-accent, var(--teal-600));
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tool-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.tool-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--tool-accent, #0f8fa6) 13%, white);
    color: var(--tool-accent, var(--teal-700));
    display: grid;
    place-items: center;
}

.tool-meta-right {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tool-card-body {
    flex: 1;
}

.tool-card-title {
    font-size: 1.18rem;
    margin: 0 0 0.4rem;
    color: var(--ink-900);
}

.tool-card-desc {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-500);
}

.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.audience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.audience-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.58rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--aud-color, #0f8fa6) 12%, white);
    color: var(--ink-700);
    border: 1px solid color-mix(in srgb, var(--aud-color, #0f8fa6) 26%, white);
}

.tool-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-pill);
    background: var(--teal-600);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s ease;
}

.tool-launch-btn:hover {
    background: var(--teal-800);
    color: #fff;
}

/* --- Articles Grid & Cards --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.articles-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-500);
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--teal-900);
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-pill);
}

.article-date {
    font-size: 0.8rem;
    color: var(--ink-400);
}

.article-card-title {
    font-size: 1.15rem;
    margin: 0 0 0.6rem;
}

.article-card-title a {
    color: var(--ink-900);
}

.article-card-title a:hover {
    color: var(--teal-700);
}

.article-card-excerpt {
    margin: 0 0 1.2rem;
    color: var(--ink-500);
    font-size: 0.92rem;
    flex: 1;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--ink-500);
}

/* --- Own Sites & External Websites --- */
.own-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1.2rem;
}

.own-site-card {
    background: #fff;
    border: 1px solid #cde4ea;
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.own-site-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-600);
    color: inherit;
}

.own-site-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.own-site-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
    color: #fff;
    display: grid;
    place-items: center;
}

.own-site-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.12rem;
    margin: 0 0 0.45rem;
    color: var(--teal-950);
}

.own-site-ext,
.website-ext {
    color: var(--ink-400);
}

.own-site-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-500);
}

.website-group {
    margin-bottom: 2.5rem;
}

.website-group-title {
    font-size: 1.2rem;
    color: var(--teal-900);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--teal-100);
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.15rem;
}

.website-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.website-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-500);
    color: inherit;
}

.website-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.website-domain {
    font-size: 0.78rem;
    color: var(--teal-700);
    font-weight: 600;
}

.website-card-title {
    font-size: 1.06rem;
    margin: 0 0 0.4rem;
    color: var(--ink-900);
}

.website-card-desc {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    color: var(--ink-500);
    flex: 1;
}

.website-audience {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--teal-800);
    background: var(--teal-50);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    align-self: flex-start;
}

/* --- Page Banner & Breadcrumbs --- */
.page-banner {
    background: linear-gradient(160deg, #ffffff 0%, #ebf7fa 100%);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0 2.25rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--ink-500);
    margin-bottom: 0.85rem;
}

.breadcrumb a {
    color: var(--teal-700);
    font-weight: 500;
}

.page-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    color: var(--teal-950);
    margin: 0 0 0.6rem;
}

.page-lead {
    font-size: 1.02rem;
    color: var(--ink-500);
    max-width: 65ch;
    margin: 0;
}

/* --- Articles & Sidebar Layout --- */
.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}

.list-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    font-size: 0.9rem;
    color: var(--ink-500);
    font-weight: 500;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--teal-950);
    margin: 0 0 0.9rem;
}

.sidebar-search {
    display: flex;
    gap: 0.45rem;
}

.sidebar-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-size: 0.88rem;
}

.sidebar-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--ink-700);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.14s ease, color 0.14s ease;
}

.sidebar-cat-list a:hover {
    background: var(--teal-50);
    color: var(--teal-900);
}

.sidebar-cat-list a.is-active {
    background: var(--teal-100);
    color: var(--teal-900);
    font-weight: 700;
}

.cat-link-left {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-count {
    font-size: 0.78rem;
    color: var(--ink-400);
    font-weight: 600;
}

.sidebar-promo {
    background: linear-gradient(145deg, var(--teal-800), var(--teal-600));
    color: #fff;
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: var(--shadow-md);
}

.sidebar-promo h3 {
    color: #fff;
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.sidebar-promo p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem;
}

.home-promo-banner {
    background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-600) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.home-promo-copy h2 {
    color: #fff;
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
}

.home-promo-copy p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 62ch;
}

/* --- Article Show (Editorial Prose) --- */
.article-hero-meta {
    margin-bottom: 0.8rem;
}

.article-show-title {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 800;
    color: var(--teal-950);
    max-width: 28ch;
    margin: 0 0 0.9rem;
}

.article-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--ink-500);
    font-weight: 500;
}

.article-detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3.5vw, 2.75rem);
    box-shadow: var(--shadow-sm);
}

.article-featured-img {
    margin: 0 0 1.75rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.prose {
    font-size: 1.04rem;
    line-height: 1.78;
    color: var(--ink-700);
    max-width: 74ch;
}

.prose h2, .prose h3, .prose h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--teal-950);
}

.prose p {
    margin: 0 0 1.25rem;
}

.prose a {
    color: var(--teal-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose blockquote {
    margin: 1.5rem 0;
    padding: 0.85rem 1.25rem;
    border-left: 4px solid var(--teal-500);
    background: var(--teal-50);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--teal-950);
    font-weight: 500;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose ul, .prose ol {
    padding-left: 1.4rem;
    margin: 0 0 1.25rem;
}

.prose img {
    border-radius: var(--radius-sm);
    margin: 1.25rem 0;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin: 1.6rem 0;
    background: #0f172a;
    box-shadow: var(--shadow-md);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.related-section {
    margin-top: 3rem;
}

.related-section .section-title {
    margin-bottom: 1.25rem;
}

/* --- Search, Pagination & Empty States --- */
.search-summary {
    font-size: 1rem;
    color: var(--ink-700);
    margin: 0 0 1.75rem;
}

.search-section {
    margin-bottom: 2.5rem;
}

.search-section .section-title {
    margin-bottom: 1rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid var(--border-strong);
    font-weight: 600;
    font-size: 0.9rem;
}

.page-link:hover {
    border-color: var(--teal-600);
    background: var(--teal-50);
}

.page-info {
    font-size: 0.9rem;
    color: var(--ink-500);
}

.empty-state {
    background: #fff;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--ink-500);
}

.empty-state h3, .empty-state h1 {
    margin: 0.5rem 0;
    color: var(--teal-950);
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--teal-950);
    color: rgba(255, 255, 255, 0.82);
    padding: 3.25rem 0 1.75rem;
    margin-top: auto;
}

.site-footer .brand-name {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(140px, 1fr));
    gap: 2rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    max-width: 34ch;
    margin: 0.9rem 0 0;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.92rem;
    margin: 0 0 0.85rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-admin-link {
    color: rgba(255, 255, 255, 0.65);
}

.footer-admin-link:hover {
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 780px) {
    .ecosystem-inner {
        justify-content: flex-start;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }

    .ecosystem-label {
        display: none;
    }

    .ecosystem-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        gap: 0.45rem;
        padding: 0.05rem 0;
    }

    .ecosystem-links::-webkit-scrollbar {
        display: none;
    }

    .ecosystem-link {
        background: rgba(255, 255, 255, 0.11);
        font-size: 0.8rem;
        padding: 0.28rem 0.75rem;
    }

    .header-search {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem 1.25rem;
        box-shadow: var(--shadow-md);
    }

    .main-nav.is-open {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
