:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Skip to content link (accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 0 0 6px 6px;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Visually hidden (accessible to screen readers) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hamburger button (hidden on desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    contain: layout style;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo .logo-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Header tweaks: logo layout, active link, and focus states */
.logo {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

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

.header-content .logo .logo-title {
    margin: 0;
    line-height: 1;
}



nav a {
    transition: opacity 0.3s, background-color 0.15s, transform 0.12s;
}

nav a.active,
nav a[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
}

nav a:focus {
    outline: 3px solid rgba(52, 152, 219, 0.18);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1,
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    color: #ffffff;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: #c0392b;
    color: var(--white);
}

.btn-primary:hover {
    background-color: #a93226;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section {
    margin-bottom: 4rem;
}

.section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
}

.section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

/* Meetings table of contents */
#table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 2rem;
}

#table-of-contents li {
    font-size: 1.05rem;
    line-height: 1.5;
    padding: 0.45rem 0;
    break-inside: avoid;
}

#table-of-contents li a {
    text-decoration: none;
}

#table-of-contents li a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #table-of-contents ul {
        columns: 1;
    }
}


/* Filter/Search Bar */

.filter-bar {
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Primary search input */
#searchInput, #meetingSearch {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#searchInput::placeholder, #meetingSearch::placeholder {
    color: var(--text-muted, #94a3b8);
    font-size: 0.95rem;
}

#searchInput:focus, #meetingSearch:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.14);
    background: var(--white);
}

/* Search icon injected via the .search-wrapper div that main.js creates */
.search-wrapper::before {
    content: '';
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

/* Dark mode: search bar */
[data-theme="dark"] .filter-bar {
    background: #1a2535;
    border-color: #2d3f55;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] #searchInput, [data-theme="dark"] #meetingSearch {
    background: #1e2a3a;
    border-color: #2d3f55;
    color: var(--text-color);
}

[data-theme="dark"] #searchInput:focus, [data-theme="dark"] #meetingSearch:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: #162030;
}

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

.filter-buttons h4 {
    flex-basis: 100%;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.filter-buttons h4:first-child {
    margin-top: 0;
}

#topContributors,
#allContributors {
    display: contents;
}

#allContributors[style*="display: none"] {
    display: none !important;
}

#allContributors[style*="display: none"] .filter-btn {
    display: none !important;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background-color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.filter-group-label {
    align-self: center;
    padding: 0 0.4rem;
    margin-left: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.7;
    border-left: 2px solid var(--border-color);
}

.filter-btn.speaker {
    border-style: dashed;
}

.filter-btn.speaker.active,
.filter-btn.speaker:hover {
    border-style: solid;
}

/* Glossary search bar */
.glossary-filter-bar {
    margin: 1.5rem 0 0.5rem;
}

.glossary-filter-bar .search-box {
    width: 100%;
}

.glossary-filter-bar .search-wrapper {
    width: 100%;
}

.glossary-count {
    margin: 0.6rem 0 0;
    font-size: 0.9rem;
    color: #666;
    opacity: 0.85;
}

[data-theme="dark"] .glossary-count {
    color: #aaa;
}

/* Glossary definition list */
.glossary-list {
    margin: 1rem 0 2.5rem;
    padding: 0;
}

.glossary-list dt {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.35;
    /* Offset for the 56px sticky header so anchor jumps land below it. */
    scroll-margin-top: 80px;
}

.glossary-list dt:first-of-type {
    margin-top: 0.5rem;
}

.glossary-list dd {
    margin: 0.6rem 0 0 0;
    padding: 0 0 0.25rem 0;
    line-height: 1.65;
    font-size: 0.97rem;
    color: var(--text-color);
}

.glossary-list dd a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Internal cross-references between glossary terms — styled like normal
   hyperlinks so they're obviously clickable. */
.glossary-list dd a.glossary-link {
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.glossary-list dd a.glossary-link:hover,
.glossary-list dd a.glossary-link:focus {
    background-color: rgba(52, 152, 219, 0.12);
    text-decoration-thickness: 2px;
}

.glossary-list dt:target {
    background-color: rgba(241, 196, 15, 0.22);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: -0.5rem;
}

[data-theme="dark"] .glossary-list dd a.glossary-link {
    color: #7cc1ee;
}

[data-theme="dark"] .glossary-list dd a.glossary-link:hover,
[data-theme="dark"] .glossary-list dd a.glossary-link:focus {
    background-color: rgba(124, 193, 238, 0.18);
}

[data-theme="dark"] .glossary-list dt:target {
    background-color: rgba(241, 196, 15, 0.28);
}

[data-theme="dark"] .glossary-list dt {
    color: #7cc1ee;
}

[data-theme="dark"] .glossary-list dd {
    color: var(--text-color);
}

/* Heading anchors on the glossary page get a touch more breathing room. */
.content-section h2[id] {
    margin-top: 2.5rem;
    padding-top: 0.5rem;
    scroll-margin-top: 80px;
}

.content-section h2[id]:first-of-type {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .glossary-list dt {
        font-size: 1.02rem;
        margin-top: 1.25rem;
    }
    .glossary-list dd {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

.show-all-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.show-all-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Search Filter Container Layout */
.search-filter-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.search-filter-container #searchInput, .search-filter-container #meetingSearch {
    flex: 1;
    min-width: min(300px, 100%);
}

.search-filter-container .show-all-btn {
    margin: 0;
}

/* Force hide date filter containers when not in use */
#startDateContainer,
#endDateContainer,
#singleDateContainer {
    transition: all 0.2s ease;
}

#startDateContainer[style*="display: none"],
#endDateContainer[style*="display: none"],
#singleDateContainer[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Resource Cards Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Resources page: use flex layout to avoid empty grid slots */
.category-section .resource-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 0;
}

.category-section .card-link {
    display: block;
    flex: 0 0 min(350px, 100%);
    font-size: 1rem;
}

.presentations-page .resource-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.presentations-page .card-link {
    display: block;
    flex: 0 0 min(350px, 100%);
}

/* No results message for empty search/filter */
.no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #666;
    font-size: 1.1rem;
}

/* Hide an element. Used in place of inline `style="display:none;"`
   so that strict CSPs and content-blocking shields (which can ignore
   inline styles) don't leave the element visible. */
.is-hidden {
    display: none !important;
}

.no-results p {
    margin: 0;
}

.clear-search-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: inherit;
    text-decoration: underline;
    padding: 0;
}

.clear-search-btn:hover {
    color: var(--primary-color);
}

.resource-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-left: 4px solid var(--secondary-color);
    position: relative;
    /* Block layout: content stacks vertically inside card */
    display: block;
    /* Performance optimization: contain layout and paint */
    contain: layout style paint;
}

.resource-card .resource-preview {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin: 0 0 1rem 0;
    border: 1px solid var(--border-color);
    display: block;
    /* Optimize image rendering */
    image-rendering: -webkit-optimize-contrast;
}

/* News page: use the same card sizing as the rest of the site */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* News page: use flex layout for fixed-width cards like Resources and Presentations */
.news-page .resources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 0;
}

.news-page .card-link {
    display: block;
    flex: 0 0 min(350px, 100%);
    font-size: 1rem;
}

.card-link .resource-card {
    height: 100%;
}

.card-link:hover .resource-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
    cursor: pointer;
}

/* News page typography alignment */
.news-page .hero h1,
.news-page .hero h2 {
    font-size: 2.5rem;
}

.news-page .hero p {
    font-size: 1.2rem;
}

.news-page .resource-card h3 {
    font-size: 1.25rem;
}

.news-page .resource-card p {
    font-size: 1rem;
}

.news-page .filter-btn {
    font-size: 0.9rem;
}

.resource-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    pointer-events: none;
}

.resource-card-icon.ctf {
    background: linear-gradient(135deg, #e65100, #ff6f00);
}

.resource-card-icon.tool {
    background: linear-gradient(135deg, #6a1b9a, #8e24aa);
}

.resource-card-icon.certification {
    background: linear-gradient(135deg, #1565c0, #1976d2);
}

.resource-card-icon.lab {
    background: linear-gradient(135deg, #c2185b, #d81b60);
}

.resource-card-icon.ai {
    background: linear-gradient(135deg, #00796b, #009688);
}

.resource-card-icon.kubernetes {
    background: linear-gradient(135deg, #326ce5, #5e8ceb);
}

.resource-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    /* Better word wrapping for long URLs */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: none;
}

.resource-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.resource-card h3 a:hover {
    color: var(--secondary-color);
}

.article-date {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 1rem 0;
    font-weight: 500;
    flex-basis: 100%;
    width: 100%;
}

.resource-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.resource-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag.new {
    background-color: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

.source {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.tag.ctf {
    background-color: #fff3e0;
    color: #9a3412;
}

.tag.certification {
    background-color: #e3f2fd;
    color: #1565c0;
}

.tag.tool {
    background-color: #f3e5f5;
    color: #6a1b9a;
}

.tag.lab {
    background-color: #fce4ec;
    color: #c2185b;
}

/* Category Sections */
.category-section {
    margin-bottom: 3rem;
}

.category-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.category-section h3:hover {
    background-color: var(--light-bg);
}

.category-section h3:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.category-section h3:focus:not(:focus-visible) {
    outline: none;
}

.category-section h3:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.category-section h3::before {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.category-section.collapsed h3::before {
    transform: rotate(-90deg);
}

.category-content {
    margin-top: 1rem;
}

.category-section.collapsed .category-content {
    display: none;
}

/* Resource List (Alternative to Grid) */
.resource-list {
    list-style: none;
}

.resource-list li {
    background-color: var(--white);
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s;
}

.resource-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.resource-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
}

.resource-list a:hover {
    color: var(--secondary-color);
}

.resource-list .description {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Stats/Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.info-box h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
}

.info-box p {
    color: #666;
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Typography adjustments */
    body {
        font-size: 16px;
    }

    /* Header and Navigation - MINIMAL HEADER */
    header {
        padding: 0.5rem 0;
        position: static;
        /* Not sticky to save space */
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        padding: 0 0.5rem;
        flex-wrap: nowrap;
    }

    /* Logo - TINY */
    .logo .logo-title {
        font-size: 1rem;
        margin: 0;
        line-height: 1.2;
    }

    .logo p {
        display: none;
        /* Hide tagline on mobile */
    }

    /* Navigation - HAMBURGER TOGGLE WITH NO-JS FALLBACK */
    .hamburger {
        display: block;
        order: 2;
    }

    .theme-toggle {
        order: 1;
    }

    /* Without JS: nav stays visible as fallback */
    header nav {
        display: block;
        width: 100%;
        order: 3;
    }

    /* With JS: nav hidden until hamburger toggled */
    /* Scoped to header nav so breadcrumb-nav & incident-tabs stay visible */
    .js-enabled header nav {
        display: none;
    }
    .js-enabled header .nav-open nav {
        display: block;
    }

    /* Hero section - MINIMAL */
    .hero {
        padding: 1rem 1rem;
    }

    .hero h1,
    .hero h2 {
        font-size: 1.3rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    /* Container padding - COMPACT */
    .container {
        padding: 0 0.75rem;
    }

    section {
        padding: 1.5rem 0;
    }

    /* Search and filters - COMPACT */
    .search-filter-container {
        padding: 0.75rem;
    }

    .search-box {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box input,
    #searchInput, #meetingSearch {
        width: 100%;
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

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

    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        flex: 1 1 auto;
        min-width: fit-content;
    }

    /* Resource grid */
    .resource-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .resource-card {
        padding: 1.25rem;
        overflow: hidden;
    }

    /* News page responsive: hide images on mobile, show text only */
    .resources-grid .resource-card {
        display: block;
    }

    .resources-grid .resource-card .resource-preview {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        max-width: 0 !important;
        margin: 0 !important;
    }

    .resource-card h3 {
        font-size: 1.1rem;
    }

    .resource-card p {
        font-size: 0.95rem;
    }

    .resource-tags {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    /* Buttons */
    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Statistics boxes */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-box h3 {
        font-size: 2rem;
    }

    /* Info boxes */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-box {
        padding: 1.5rem;
    }

    /* Session cards */
    .sessions-grid {
        grid-template-columns: 1fr;
    }

    .session-card {
        padding: 1.25rem;
    }

    /* Footer */
    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section ul {
        padding: 0;
    }

    /* Memorial page specific */
    .memorial-content {
        padding: 1rem;
    }

    .memorial-image {
        max-width: 100%;
        margin: 1rem 0;
    }

    iframe {
        max-width: 100%;
        height: 400px;
    }

    /* Tables */
    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 0.5rem;
    }

    /* Reduce whitespace */
    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Contribute page - mobile adjustments */
    .contribute-article {
        padding: 0 0.25rem;
    }

    .contribute-article h2 {
        font-size: 1.3rem;
        word-wrap: break-word;
    }

    .contribute-article h3 {
        font-size: 1.1rem;
    }

    .contribute-article ol,
    .contribute-article ul {
        padding-left: 1.25rem;
    }

    .contribute-article ol li,
    .contribute-article ul li {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }

    .highlight-box ol,
    .highlight-box ul {
        padding-left: 1.25rem;
    }

    .code-block {
        font-size: 0.8em;
        padding: 0.75rem;
        word-break: break-word;
        white-space: pre-wrap;
    }

    .contribution-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contribution-type {
        padding: 1rem;
    }

    .reader-card {
        padding-top: 0;
    }

    .reader-preview {
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }

    .toc {
        padding: 1rem;
    }

    .highlight-box {
        padding: 0.75rem;
    }

    .faq-item {
        padding: 0.75rem;
    }
}

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 576px) {
    .hero {
        padding: 0.75rem 0.75rem;
    }

    .hero h1,
    .hero h2 {
        font-size: 1.1rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .resource-card h3 {
        font-size: 1rem;
    }

    /* News page phone: images still hidden */
    .resources-grid .resource-card .resource-preview {
        display: none !important;
    }

    .stat-box h3 {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

/* Mobile touch improvements */
@media (hover: none) and (pointer: coarse) {

    /* Improve touch targets on mobile */
    a,
    button,
    .filter-btn,
    .btn {
        min-height: 44px;
        /* iOS recommended touch target */
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .resource-card:hover,
    .session-card:hover {
        transform: none;
    }

    /* But keep active state for feedback */
    .resource-card:active,
    .session-card:active {
        transform: scale(0.98);
    }

    .btn:active,
    .filter-btn:active {
        transform: scale(0.95);
    }
}

/* Prevent text selection issues on mobile */
@media (max-width: 768px) {

    .filter-btn,
    .tag {
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Improve scrolling performance on mobile */
@media (max-width: 768px) {
    * {
        -webkit-overflow-scrolling: touch;
    }

    body {
        overflow-x: hidden;
    }
}

/* ==========================================================================
   Utility classes (replacing inline styles)
   ========================================================================== */

.hero--compact {
    padding: 3rem 2rem;
}

.steps-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.steps-box h3+h3,
.steps-box h3~h3 {
    margin-top: 2rem;
}

.btn--mt {
    margin-top: 1rem;
}

.link--accent {
    color: var(--secondary-color);
}

/* ==========================================================================
   Contribute page styles
   ========================================================================== */

.contribute-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.contribute-article h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.contribute-article h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.contribute-article p {
    margin-bottom: 1rem;
}

.contribute-article ol,
.contribute-article ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.contribute-article ol li,
.contribute-article ul li {
    margin-bottom: 0.4rem;
}

.code-block {
    background-color: #f5f5f5;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.highlight-box {
    background-color: #e8f4f8;
    border-left: 4px solid #0096d1;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    color: #1a232a;
    font-weight: 500;
}

.highlight-box strong {
    color: var(--primary-color);
}

.contribution-type {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #1a232a;
    font-weight: 500;
}

.reader-card {
    padding-top: 0;
    overflow: hidden;
}

.reader-preview {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
    margin: 0 -1.5rem;
    width: calc(100% + 3rem);
    margin-bottom: 1rem;
}

.contribution-type h4 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.1em;
}

.contribution-type .examples {
    background-color: #fffbea;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 0.75rem 0;
}

.contribution-type .have-idea {
    background-color: #e8f4f8;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 0.75rem 0;
}

.step-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.step-number {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    text-align: center;
    line-height: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.step-box h3 {
    margin-top: 0;
}

.link-box {
    background-color: #fffbea;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.link-box a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

.link-box a:hover {
    text-decoration: underline;
}

.faq-item {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
}

.faq-item strong {
    color: var(--primary-color);
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9em;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.25rem;
}

.toc {
    background-color: #f0f7ff;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.toc h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.toc ol {
    margin-bottom: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    text-decoration: none;
    color: var(--primary-color);
}

.toc a:hover {
    text-decoration: underline;
}

.contribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* =========================================================================
   UTILITY CLASSES (replaces inline style="" attributes for CSP compliance)
   ========================================================================= */

.mt-1 {
    margin-top: 1rem;
}

.mt-1\.5 {
    margin-top: 1.5rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #666;
}

.font-up {
    font-size: 1.05em;
}

/* =========================================================================
   INDEX.HTML — Community section cards & grid
   ========================================================================= */

.community-card {
    background-color: var(--white);
    padding: 1rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05em;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.community-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.community-heading {
    color: var(--primary-color);
    margin-top: 0;
}

.info-list {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    list-style-position: inside;
}

.info-list li {
    margin-bottom: 1rem;
}

.hero-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.memorial-link {
    color: #1d4ed8;
    text-decoration: underline;
}

/* =========================================================================
   KEVIN-MITNICK.HTML — Memorial page (moved from <style> block)
   ========================================================================= */

.memorial-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.memorial-content p {
    margin-bottom: 1.5em;
}

.memorial-content h2 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--primary-color);
}

.memorial-image {
    width: 100%;
    max-width: 600px;
    margin: 2em auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.signature {
    font-style: italic;
    margin-top: 2em;
}

.date {
    color: var(--text-muted, #666);
    font-size: 0.9em;
}

.iframe-container {
    margin: 2em 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    height: 800px;
    border: none;
    background-color: #ffffff;
}

.memorial-title {
    text-align: center;
    margin-bottom: 0.5em;
}

.memorial-subtitle {
    text-align: center;
    color: var(--text-muted, #666);
    font-size: 1.1em;
    margin-bottom: 2em;
}

/* Wired article card */
.wired-card-link {
    display: inline-block;
    width: 100%;
    text-decoration: none;
    margin: 20px 0;
}

.wired-card {
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    border: 2px solid #dd4814;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.wired-card:hover {
    box-shadow: 0 8px 24px rgba(221, 72, 20, 0.2);
    transform: translateY(-2px);
}

.wired-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wired-card-icon {
    font-size: 48px;
    min-width: 60px;
}

.wired-card-label {
    color: #1a232a;
    font-weight: 700;
    font-size: 1.08em;
    letter-spacing: 1px;
}

.wired-card-title {
    color: #333;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.wired-card-desc {
    color: #666;
    font-size: 14px;
}

/* =========================================================================
   CONTRIBUTE-RESOURCES.HTML — Tutorial page (moved from <style> block)
   ========================================================================= */

.contribute-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.contribute-article h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.contribute-article h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.contribute-article p {
    margin-bottom: 1rem;
}

.contribute-article ol,
.contribute-article ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.contribute-article ol li,
.contribute-article ul li {
    margin-bottom: 0.4rem;
}

.code-block {
    background-color: #f5f5f5;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.highlight-box {
    background-color: #e8f4f8;
    border-left: 4px solid #0096d1;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.highlight-box strong {
    color: var(--primary-color);
}

.step-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.step-number {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    text-align: center;
    line-height: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.step-box h3 {
    margin-top: 0;
}

.tag-example {
    display: inline-block;
    background-color: #ddd;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.9em;
}

.tag-example.ctf {
    background-color: #20c997;
    color: white;
}

.tag-example.tool {
    background-color: #9c27b0;
    color: white;
}

.tag-example.lab {
    background-color: #4caf50;
    color: white;
}

.tag-example.certification {
    background-color: #2196f3;
    color: white;
}

.tag-example.job {
    background-color: #e91e63;
    color: white;
}

.link-box {
    background-color: #fffbea;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.link-box a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

.link-box a:hover {
    text-decoration: underline;
}

.faq-item {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
}

.faq-item strong {
    color: var(--primary-color);
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9em;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.25rem;
}

.toc {
    background-color: #f0f7ff;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.toc h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.toc ol {
    margin-bottom: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    text-decoration: none;
    color: var(--primary-color);
}

.toc a:hover {
    text-decoration: underline;
}

/* =========================================================================
   404.HTML / 403.HTML — Error pages (moved from <style> block)
   ========================================================================= */

.error-container {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1;
}

.error-message {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 1rem 0 2rem;
}

.error-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* =========================================================================
   SECURITY-POLICY.HTML & PRESENTATIONS.HTML — Info boxes
   ========================================================================= */

.info-box--blue {
    background-color: #e8f4f8;
    padding: 1.5rem;
    border-left: 4px solid #3498db;
    margin: 2rem 0;
}

.info-box--yellow {
    background-color: #fff3cd;
    padding: 1.5rem;
    border-left: 4px solid #ffc107;
    margin: 2rem 0;
}

.cta-buttons--spaced {
    margin: 1.5rem 0;
}

.cta-buttons--spaced-lg {
    margin: 2rem 0;
}

.presentation-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.presentation-list {
    list-style-position: inside;
    margin-top: 1rem;
}

/* CTA section (bottom of contribute-resources, etc.) */
.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f0f7ff;
    border-radius: 8px;
}

.cta-section ul {
    text-align: left;
    max-width: 48rem;
    margin: 1rem auto 0;
    padding-left: 1.5rem;
}

.cta-section ul li + li {
    margin-top: 0.5rem;
}

.cta-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* =========================================================================
   MOBILE REDO (canonical overrides)
   ========================================================================= */

@media (max-width: 768px) {
    header {
        position: static;
        padding: 0.5rem 0;
    }

    .header-content {
        padding: 0 1rem;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .logo .logo-title {
        font-size: 1rem;
        line-height: 1.2;
        margin: 0;
    }

    .logo p {
        display: none;
    }

    .hamburger {
        display: block;
        order: 2;
    }

    .theme-toggle {
        order: 1;
    }

    header nav {
        display: block;
        width: 100%;
        order: 3;
    }

    .js-enabled header nav {
        display: none;
    }

    .js-enabled header .nav-open nav {
        display: block;
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0;
        margin: 0;
        overflow-x: visible;
    }

    header nav ul li a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .container {
        padding: 0 0.75rem;
    }

    section {
        padding: 1.25rem 0;
    }

    .hero {
        padding: 1.25rem 0.9rem;
    }

    .hero h1,
    .hero h2 {
        font-size: 1.35rem;
        line-height: 1.2;
        margin-bottom: 0.6rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 0.9rem;
    }

    .hero-img {
        margin-bottom: 0.75rem;
    }

    .resource-grid,
    .resources-grid {
        grid-template-columns: 1fr !important;
        gap: 0.9rem;
        padding: 0.75rem !important;
    }

    .resource-card {
        padding: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero h1,
    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.88rem;
    }
}

/* =========================================================================
   DARK MODE
   ========================================================================= */

/* Dark mode toggle button in header */
.theme-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: var(--white);
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    font-size: 1.1rem;
    line-height: 1;
    transition: border-color 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --primary-color: #c2d9ec;
        --secondary-color: #6fc3ff;
        --accent-color: #ff7b6b;
        --text-color: #e8ecf2;
        --light-bg: #0f1419;
        --white: #1c2530;
        --border-color: #30445a;
        --shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    :root:not([data-theme]) body {
        background-color: var(--light-bg);
        color: var(--text-color);
    }

    :root:not([data-theme]) body a {
        color: #6fc3ff;
    }

    :root:not([data-theme]) body a:hover {
        color: #9dd5ff;
    }

    :root:not([data-theme]) header {
        background-color: #0b1018;
        color: #f5f7fa;
    }

    :root:not([data-theme]) .logo .logo-title,
    :root:not([data-theme]) .logo p,
    :root:not([data-theme]) .logo-link {
        color: #f5f7fa;
    }

    :root:not([data-theme]) nav a {
        color: #f5f7fa;
    }

    :root:not([data-theme]) .hero,
    :root:not([data-theme]) .hero--compact {
        background: linear-gradient(135deg, #0a1628 0%, #122a4a 100%) !important;
        color: #ffffff !important;
    }

    :root:not([data-theme]) .hero h1,
    :root:not([data-theme]) .hero h2,
    :root:not([data-theme]) .hero--compact h1,
    :root:not([data-theme]) .hero--compact h2 {
        color: #ffffff !important;
    }

    :root:not([data-theme]) .hero p,
    :root:not([data-theme]) .hero--compact p {
        color: #ffffff !important;
        opacity: 0.95;
    }

    :root:not([data-theme]) .hero .btn-primary,
    :root:not([data-theme]) .hero--compact .btn-primary {
        color: #ffffff !important;
    }

    :root:not([data-theme]) .hero .btn-secondary,
    :root:not([data-theme]) .hero--compact .btn-secondary {
        background-color: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    :root:not([data-theme]) .hero .btn-secondary:hover,
    :root:not([data-theme]) .hero--compact .btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
    }

    :root:not([data-theme]) footer {
        background-color: #0b1018;
        color: #d8e0ea;
    }

    :root:not([data-theme]) .footer-section a {
        color: rgba(220, 230, 242, 0.9);
    }

    :root:not([data-theme]) .footer-bottom {
        border-top-color: rgba(255, 255, 255, 0.1);
        color: rgba(220, 230, 242, 0.7);
    }
}

/* Dark mode overrides */
[data-theme="dark"] {
    --primary-color: #c2d9ec;
    --secondary-color: #6fc3ff;
    --accent-color: #ff7b6b;
    --text-color: #e8ecf2;
    --light-bg: #0f1419;
    --white: #1c2530;
    --border-color: #30445a;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* --- Dark mode: base body ------------------------------------------------ */
[data-theme="dark"] body {
    background-color: var(--light-bg);
    color: var(--text-color);
}

[data-theme="dark"] body a {
    color: #6fc3ff;
}

[data-theme="dark"] body a:hover {
    color: #9dd5ff;
}

/* --- Dark mode: headings & titles ---------------------------------------- */
[data-theme="dark"] .resource-card h3,
[data-theme="dark"] .section h2,
[data-theme="dark"] .section h3,
[data-theme="dark"] .category-section h3,
[data-theme="dark"] .resource-card h3 a {
    color: var(--secondary-color);
}

[data-theme="dark"] .contribute-article h2 {
    color: #7dccff;
    border-bottom-color: #30445a;
}

[data-theme="dark"] .memorial-content h2 {
    color: #7dccff;
}

[data-theme="dark"] .contribution-type h4 {
    color: #7dccff;
}

/* --- Dark mode: text & descriptions -------------------------------------- */
[data-theme="dark"] .resource-card p,
[data-theme="dark"] .article-date,
[data-theme="dark"] .no-results {
    color: #c8cfd8;
}

[data-theme="dark"] .resource-list a {
    color: var(--secondary-color);
}

[data-theme="dark"] .resource-list .description {
    color: #b8c2cc;
}

[data-theme="dark"] .info-box p {
    color: #c8cfd8;
}

[data-theme="dark"] .text-muted {
    color: #a0adb8;
}

[data-theme="dark"] .date,
[data-theme="dark"] .memorial-subtitle {
    color: #a0adb8;
}

[data-theme="dark"] .highlight-box strong {
    color: #7dccff;
}

[data-theme="dark"] .faq-item strong {
    color: #7dccff;
}

[data-theme="dark"] .link-box a {
    color: var(--secondary-color);
}

[data-theme="dark"] .cta-link {
    color: var(--secondary-color);
}

/* --- Dark mode: error pages ---------------------------------------------- */
[data-theme="dark"] .error-code {
    color: var(--secondary-color);
}

[data-theme="dark"] .error-message {
    color: var(--text-color);
}

/* --- Dark mode: tags ----------------------------------------------------- */
[data-theme="dark"] .tag {
    background-color: #1e2e3e;
    color: #dce2e8;
}

[data-theme="dark"] .tag.ctf { background-color: #3d2200; color: #ffc964; }
[data-theme="dark"] .tag.certification { background-color: #0d2744; color: #7ecbff; }
[data-theme="dark"] .tag.tool { background-color: #2a0845; color: #dea8ee; }
[data-theme="dark"] .tag.lab { background-color: #3b0d1e; color: #ffa4c4; }
[data-theme="dark"] .tag.new { background-color: #1b3a1b; color: #95db98; }

/* --- Dark mode: buttons & filters ---------------------------------------- */
[data-theme="dark"] .filter-btn {
    background-color: var(--white);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

[data-theme="dark"] .btn-secondary {
    background-color: #1e2e3e;
    color: var(--text-color);
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: #2a3d52;
}

[data-theme="dark"] .show-all-btn {
    background-color: #1a2535;
    border-color: var(--secondary-color);
    color: var(--text-color);
}

[data-theme="dark"] .show-all-btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* --- Dark mode: hero & footer -------------------------------------------- */
[data-theme="dark"] header {
    background-color: #0b1018;
    color: #f5f7fa;
}

[data-theme="dark"] .logo .logo-title,
[data-theme="dark"] .logo p,
[data-theme="dark"] .logo-link {
    color: #f5f7fa;
}

[data-theme="dark"] nav a,
[data-theme="dark"] .dropdown-toggle,
[data-theme="dark"] .dropdown-menu a {
    color: #f5f7fa;
}

[data-theme="dark"] .dropdown-menu {
    background-color: #1c2530;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hamburger {
    color: #f5f7fa;
}

[data-theme="dark"] .hero,
[data-theme="dark"] .hero--compact {
    background: linear-gradient(135deg, #0a1628 0%, #122a4a 100%) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero h2,
[data-theme="dark"] .hero--compact h1,
[data-theme="dark"] .hero--compact h2 {
    color: #ffffff !important;
}

[data-theme="dark"] .hero p,
[data-theme="dark"] .hero--compact p {
    color: #ffffff !important;
    opacity: 0.95;
}

[data-theme="dark"] .hero .btn-primary,
[data-theme="dark"] .hero--compact .btn-primary {
    background-color: #c0392b;
    color: #ffffff !important;
}

[data-theme="dark"] .hero .btn-secondary,
[data-theme="dark"] .hero--compact .btn-secondary {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .hero .btn-secondary:hover,
[data-theme="dark"] .hero--compact .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-primary {
    background-color: #c0392b;
    color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover {
    background-color: #a93226;
}

[data-theme="dark"] footer {
    background-color: #0b1018;
    color: #d8e0ea;
}

[data-theme="dark"] .footer-section h3 {
    color: #f0f3f7;
}

[data-theme="dark"] .footer-section a {
    color: rgba(220, 230, 242, 0.9);
}

[data-theme="dark"] .footer-section a:hover {
    color: #ffffff;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: rgba(220, 230, 242, 0.7);
}

[data-theme="dark"] .source {
    color: var(--secondary-color);
}

/* --- Dark mode: breadcrumbs (both old .breadcrumb and new .breadcrumb-nav) */
[data-theme="dark"] .breadcrumb {
    color: #a0adb8;
}

[data-theme="dark"] .breadcrumb a {
    color: var(--secondary-color);
}

[data-theme="dark"] .breadcrumb-nav ol {
    color: #a0adb8;
}

[data-theme="dark"] .breadcrumb-nav li + li::before {
    color: #7a8a98;
}

/* --- Dark mode: code blocks, TOC, boxes ---------------------------------- */
[data-theme="dark"] .code-block {
    background-color: #121c28;
    border-left-color: var(--secondary-color);
    color: #dce2e8;
}

[data-theme="dark"] .highlight-box {
    background-color: #152535;
    border-left-color: #3a8ec2;
    color: #eaf6ff;
    font-weight: 500;
}

[data-theme="dark"] .toc {
    background-color: #141e2a;
    border-left-color: var(--secondary-color);
}

[data-theme="dark"] .toc h3 {
    color: #7dccff;
}

[data-theme="dark"] .toc a {
    color: var(--secondary-color);
}

[data-theme="dark"] .contribution-type {
    color: #eaf6ff;
    font-weight: 500;
    background-color: #1a2535;
    border-color: #2a3d52;
}

[data-theme="dark"] .faq-item {
    background-color: #1a2535;
    border-left-color: var(--secondary-color);
}

[data-theme="dark"] .step-box {
    background-color: #1a2535;
    border-color: #2a3d52;
}

[data-theme="dark"] .contribution-type .examples {
    background-color: #2a2510;
}

[data-theme="dark"] .contribution-type .have-idea {
    background-color: #152535;
}

[data-theme="dark"] .link-box {
    background-color: #221e0e;
    border-left-color: #b8950a;
}

[data-theme="dark"] .tag-example {
    background-color: #2a3d52;
    color: #dce2e8;
}

/* --- Dark mode: info boxes ----------------------------------------------- */
[data-theme="dark"] .info-box--blue {
    background-color: #152535;
    border-left-color: #3a8ec2;
}

[data-theme="dark"] .info-box--yellow {
    background-color: #2a2510;
    border-left-color: #b8950a;
}

/* --- Dark mode: CTA section ---------------------------------------------- */
[data-theme="dark"] .cta-section {
    background-color: #141e2a;
}

/* --- Dark mode: wired card (kevin-mitnick.html) -------------------------- */
[data-theme="dark"] .wired-card {
    background: linear-gradient(135deg, #1a2535 0%, #1e2e3e 100%);
    border-color: #c04015;
}

[data-theme="dark"] .wired-card:hover {
    box-shadow: 0 8px 24px rgba(200, 60, 15, 0.25);
}

[data-theme="dark"] .wired-card-label {
    color: #e8763a;
}

[data-theme="dark"] .wired-card-title {
    color: #f0f3f7;
}

[data-theme="dark"] .wired-card-desc {
    color: #b8c2cc;
}

/* --- Dark mode: form controls -------------------------------------------- */
[data-theme="dark"] input[type="text"] {
    background-color: #1a2535;
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .category-section h3:hover {
    background-color: #1e2e3e;
}

/* =========================================================================
   BREADCRUMB NAVIGATION (visual UI)
   ========================================================================= */

.breadcrumb-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem 0;
}

.breadcrumb-nav ol {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    list-style: none;
    column-gap: 0.4rem;
    row-gap: 0.15rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #666;
    margin: 0;
    padding: 0;
}

.breadcrumb-nav li {
    white-space: nowrap;
}

.breadcrumb-nav li + li::before {
    content: '›';
    color: #999;
    padding-right: 0.4rem;
}

.breadcrumb-nav a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav [aria-current="page"] {
    color: var(--text-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 0.5rem 0.75rem 0;
        font-size: 0.8rem;
    }
}

/* =========================================================================
   SEARCH SUGGESTIONS / AUTOCOMPLETE
   ========================================================================= */

.search-wrapper {
    position: relative;
    flex: 1;
    min-width: min(300px, 100%);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-suggestions.visible {
    display: block;
}

.search-suggestion {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover,
.search-suggestion.highlighted {
    background-color: var(--light-bg);
}

.search-suggestion .suggestion-type {
    font-size: 0.75rem;
    color: #999;
    background-color: var(--light-bg);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    white-space: nowrap;
}

[data-theme="dark"] .search-suggestions {
    background-color: #1c2530;
    border-color: #30445a;
}

[data-theme="dark"] .search-suggestion:hover,
[data-theme="dark"] .search-suggestion.highlighted {
    background-color: #243242;
}

[data-theme="dark"] .search-suggestion .suggestion-type {
    background-color: #243242;
    color: #b8c2cc;
}

/* =========================================================================
   SOCIAL SHARING BUTTONS (news articles)
   ========================================================================= */

.share-buttons {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    transition: opacity 0.2s, transform 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.share-btn--linkedin {
    background-color: #0077b5;
}

.share-btn--twitter {
    background-color: #1da1f2;
}

.share-btn--bluesky {
    background-color: #0085ff;
}

.share-btn--reddit {
    background-color: #ff4500;
}

/* Prevent share buttons from triggering parent card-link navigation */
.card-link .share-buttons {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .share-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* =========================================================================
   RESOURCE CARD TOOLTIPS
   ========================================================================= */

.resource-tooltip {
    position: fixed;
    z-index: 9000;
    max-width: 360px;
    width: max-content;
    padding: 0.75rem 1rem;
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-all;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.resource-tooltip.visible {
    opacity: 1;
}

[data-theme="dark"] .resource-tooltip {
    background-color: #1c2530;
    color: #e8ecf2;
    border-color: #30445a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

@media (hover: none) and (pointer: coarse) {
    .resource-tooltip {
        display: none !important;
    }
}

/* =========================================================================
   DROPDOWN NAVIGATION
   ========================================================================= */

.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--white);
    font: inherit;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: opacity 0.3s, background-color 0.15s;
}

.dropdown-toggle:hover {
    opacity: 0.8;
}

.dropdown-toggle .caret {
    font-size: 0.7em;
    transition: transform 0.2s;
    line-height: 1;
}

.has-dropdown[aria-expanded="true"] > .dropdown-toggle .caret,
.has-dropdown.open > .dropdown-toggle .caret {
    transform: rotate(180deg);
}

.dropdown-toggle.active {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
}

.dropdown-toggle:focus-visible {
    outline: 3px solid rgba(52, 152, 219, 0.4);
    outline-offset: 2px;
    border-radius: 6px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 220px;
    background-color: var(--primary-color);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 1001;
    display: block;
    flex-direction: column;
    gap: 0;
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu,
.has-dropdown.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.55rem 1rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 0;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.dropdown-menu a[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Bridge the gap between toggle and menu so hover doesn't drop */
.has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    height: 0.5rem;
    width: 100%;
    pointer-events: auto;
}

.has-dropdown:not(:hover):not(:focus-within):not(.open)::after {
    pointer-events: none;
}

/* Mobile: flatten dropdowns into accordion */
@media (max-width: 768px) {
    .has-dropdown {
        position: static;
    }

    .dropdown-toggle {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        text-align: left;
    }

    .dropdown-toggle.active {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }

    .dropdown-menu {
        position: static;
        /* Stronger tint + accent left bar make the "this is a sub-list"
           relationship visually unambiguous on mobile. Without these,
           sub-items at 2rem indent (e.g. "Best Practices") look almost
           identical to top-level toggles like "Defend ▾", and a long
           dropdown like Learn (10 items) becomes a flat wall of links. */
        background-color: rgba(0, 0, 0, 0.28);
        box-shadow: none;
        border-radius: 0;
        border-left: 3px solid var(--secondary-color, #3498db);
        padding: 0;
        min-width: 0;
        opacity: 1;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease, visibility 0s linear 0.2s;
    }

    .has-dropdown.open > .dropdown-menu {
        visibility: visible;
        /* Bumped from 600px so the Learn dropdown's 10 items don't clip on
           narrow phones. */
        max-height: 800px;
        transition: max-height 0.25s ease, visibility 0s;
    }

    /* Disable desktop hover-reveal on mobile */
    .has-dropdown:hover > .dropdown-menu,
    .has-dropdown:focus-within > .dropdown-menu {
        opacity: 1;
        visibility: hidden;
        max-height: 0;
    }

    .has-dropdown.open:hover > .dropdown-menu,
    .has-dropdown.open:focus-within > .dropdown-menu,
    .has-dropdown.open > .dropdown-menu {
        visibility: visible;
        max-height: 600px;
    }

    .dropdown-menu a {
        /* Deeper left padding (2.5rem) + a subtle ›-style chevron pseudo
           gives sub-items a clearer "I am inside Learn / Defend / …"
           feel that sets them apart from the top-level toggles above. */
        padding: 0.55rem 1rem 0.55rem 2.5rem;
        font-size: 0.85rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        position: relative;
        opacity: 0.92;
    }
    .dropdown-menu a::before {
        content: "›";
        position: absolute;
        left: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.5;
        font-size: 0.95rem;
        line-height: 1;
        pointer-events: none;
    }

    /* Mobile: the current-page indicator keeps the row's full-width
       shape — desktop's small rounded pill (padding 0.35rem 0.6rem,
       border-radius 6px) shrinks the active row vs its siblings and
       drops the dropdown sub-item's left indent. Override here so the
       active row is the same height & indent as everything else; just
       the background highlight differs. Specificity is bumped (header
       prefix; `.dropdown-menu` for sub-items) to outrank the global
       `nav a[aria-current="page"]` rule. */
    header nav a.active,
    header nav a[aria-current="page"] {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }

    header .dropdown-menu a.active,
    header .dropdown-menu a[aria-current="page"] {
        /* Match the indented + chevron-prefixed shape of sibling sub-items
           so the current-page row stays aligned in the open dropdown. */
        padding: 0.55rem 1rem 0.55rem 2.5rem;
        border-radius: 0;
        opacity: 1;
    }

    .has-dropdown::after {
        display: none;
    }
}

/* end of stylesheet - v2 */
/* =========================================================================
   MEETINGS.HTML INDEX (after split into per-meeting pages)
   Card-list layout for the directory page that links to /meetings/<date>.html
   ========================================================================= */

.meeting-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 3rem;
    padding: 0;
}

.meeting-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--secondary-color, #3498db);
    border-radius: 8px;
    padding: 0;
    margin: 0;
    transition: transform 0.12s, box-shadow 0.15s, border-left-color 0.15s;
}
.meeting-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-left-color: var(--accent-color, #e74c3c);
}
.meeting-card-link {
    display: block;
    padding: 1rem 1.25rem;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.meeting-card-link h2 {
    font-size: 1rem;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    color: var(--primary-color, #2c3e50);
    font-weight: 600;
}
.meeting-card-link h2 time {
    color: var(--text-muted, #64748b);
    font-weight: 500;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.15rem;
}
.meeting-card-summary {
    color: var(--text-muted, #475569);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0 0 0.6rem;
}
.meeting-card .meeting-tags {
    margin-bottom: 0.5rem;
}
.meeting-card-cta {
    color: var(--secondary-color, #3498db);
    font-weight: 600;
    font-size: 0.85rem;
}

.meeting-count {
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
}

/* Per-meeting page: tighter spacing for the article body */
.meeting-page h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 1rem 0 0.5rem;
}
.meeting-page h3 {
    font-size: 1.05rem;
    color: var(--primary-color, #2c3e50);
    margin: 1.25rem 0 0.4rem;
}
.meeting-page details.meeting-topics {
    margin-top: 1rem;
}
.meeting-page details.meeting-topics > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color, #3498db);
    margin-bottom: 0.5rem;
}

/* Dark mode */
[data-theme="dark"] .meeting-card {
    background: #0d1424;
    border-color: #1e293b;
    border-left-color: #38bdf8;
}
[data-theme="dark"] .meeting-card:hover { border-left-color: #f87171; }
[data-theme="dark"] .meeting-card-link h2 { color: #e2e8f0; }
[data-theme="dark"] .meeting-card-link h2 time { color: #94a3b8; }
[data-theme="dark"] .meeting-card-summary { color: #94a3b8; }
[data-theme="dark"] .meeting-card-cta { color: #38bdf8; }
[data-theme="dark"] .meeting-count { color: #94a3b8; }

/* Mobile */
@media (max-width: 600px) {
    .meeting-list { grid-template-columns: 1fr; }
}

/* =========================================================================
   Pillar-page meta line: Last updated + author + source link
   Shown just below the hero on educational/pillar pages. Helps trust
   (visible date), E-E-A-T (author byline), and openness (source link).
   ========================================================================= */
.page-meta {
    color: var(--text-muted, #64748b);
    font-size: 0.85rem;
    margin: 0 0 1.25rem;
    padding: 0.5rem 0 0.75rem;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}
.page-meta strong { color: var(--text-color, #333); font-weight: 600; }
.page-meta a {
    color: var(--secondary-color, #3498db);
    text-decoration: none;
    font-weight: 500;
}
.page-meta a:hover { text-decoration: underline; }
[data-theme="dark"] .page-meta {
    color: #94a3b8;
    border-bottom-color: #1e293b;
}
[data-theme="dark"] .page-meta strong { color: #e2e8f0; }
[data-theme="dark"] .page-meta a { color: #38bdf8; }


/* =========================================================================
   Illustrated hero — gradient + dot pattern + side-by-side text & SVG art.
   Used on pillar pages to replace the generic banner.
   ========================================================================= */
.hero--illustrated {
    background:
        radial-gradient(ellipse 80% 60% at 78% 18%, rgba(56,189,248,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 18% 82%, rgba(139,92,246,0.18) 0%, transparent 60%),
        linear-gradient(135deg, #0b1729 0%, #1e293b 55%, #1e3a8a 100%);
    color: #fff;
    padding: 2.5rem 1.5rem 3rem;
    position: relative;
    overflow: hidden;
}
.hero--illustrated::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero--illustrated .hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.85fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero--illustrated .hero-illustration { max-width: 360px; justify-self: end; }
.hero--illustrated h1 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 0.75rem;
    color: #fff;
    letter-spacing: -0.015em;
}
.hero--illustrated p {
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0 0 1.25rem;
    max-width: 58ch;
}
.hero--illustrated .cta-buttons { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.hero--illustrated .btn-primary {
    background: #38bdf8;
    color: #0b1729;
    border: 2px solid #38bdf8;
}
.hero--illustrated .btn-primary:hover { background: #7dd3fc; border-color: #7dd3fc; }
.hero--illustrated .btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.35);
}
.hero--illustrated .btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); }
.hero-illustration { width: 100%; position: relative; }
.hero-illustration svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35));
}
@media (max-width: 880px) {
    .hero--illustrated { padding: 2.5rem 1rem 3rem; }
    .hero--illustrated .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-illustration { max-width: 420px; margin: 0 auto; }
}

/* =========================================================================
   Pillar-card grid — color-coded gradient icon tiles for pillar pages.
   ========================================================================= */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 2rem;
}
.pillar-card {
    --card-accent: #3498db;
    --card-accent-soft: rgba(52,152,219,0.13);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.1rem 1.1rem 1.15rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pillar-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--card-accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.pillar-card:hover, .pillar-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.10);
    border-color: var(--card-accent);
    outline: none;
}
.pillar-card:hover::before, .pillar-card:focus-visible::before { opacity: 1; }
.pillar-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--card-accent-soft);
    color: var(--card-accent);
    position: relative;
    overflow: hidden;
}
.pillar-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--card-accent) 0%, transparent 70%);
    opacity: 0.18;
}
.pillar-icon svg { width: 22px; height: 22px; stroke-width: 1.85; position: relative; z-index: 1; }
.pillar-card h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-color);
    line-height: 1.3;
}
.pillar-card p {
    margin: 0;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
}
.pillar-card-iam        { --card-accent: #8b5cf6; --card-accent-soft: rgba(139,92,246,0.13); }
.pillar-card-posture    { --card-accent: #10b981; --card-accent-soft: rgba(16,185,129,0.13); }
.pillar-card-network    { --card-accent: #06b6d4; --card-accent-soft: rgba(6,182,212,0.13); }
.pillar-card-data       { --card-accent: #f59e0b; --card-accent-soft: rgba(245,158,11,0.15); }
.pillar-card-workload   { --card-accent: #f43f5e; --card-accent-soft: rgba(244,63,94,0.13); }
.pillar-card-detect     { --card-accent: #6366f1; --card-accent-soft: rgba(99,102,241,0.13); }
.pillar-card-compliance { --card-accent: #14b8a6; --card-accent-soft: rgba(20,184,166,0.13); }
.pillar-card-customer   { --card-accent: #e11d48; --card-accent-soft: rgba(225,29,72,0.10); }
.pillar-card-provider   { --card-accent: #059669; --card-accent-soft: rgba(5,150,105,0.10); }
.pillar-card-supply     { --card-accent: #db2777; --card-accent-soft: rgba(219,39,119,0.13); }
.pillar-card-ai         { --card-accent: #0ea5e9; --card-accent-soft: rgba(14,165,233,0.13); }

/* Roadmap-stage cards */
.pillar-card-stage1 { --card-accent: #10b981; --card-accent-soft: rgba(16,185,129,0.13); }
.pillar-card-stage2 { --card-accent: #06b6d4; --card-accent-soft: rgba(6,182,212,0.13); }
.pillar-card-stage3 { --card-accent: #6366f1; --card-accent-soft: rgba(99,102,241,0.13); }
.pillar-card-stage4 { --card-accent: #db2777; --card-accent-soft: rgba(219,39,119,0.13); }

/* Dark-mode fix: colored table cells (red/green/yellow inline backgrounds)
   need dark text since their bg stays light in dark mode. */
[data-theme="dark"] table td[style*="background"] { color: #1e293b; }
[data-theme="dark"] table th { color: #e2e8f0; }

[data-theme="dark"] .pillar-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.10);
}
[data-theme="dark"] .pillar-card h3 { color: #e2e8f0; }
[data-theme="dark"] .pillar-card p { color: #94a3b8; }

/* =========================================================================
   Threats grid — illustrated tiles with red accent for breach patterns.
   ========================================================================= */
.threats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin: 1.25rem 0 1.75rem;
}
.threat-tile {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.95rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.threat-tile:hover { border-color: #f43f5e; box-shadow: 0 8px 20px rgba(244,63,94,0.10); }
.threat-icon {
    width: 34px; height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(244,63,94,0.10);
    color: #e11d48;
}
.threat-icon svg { width: 18px; height: 18px; stroke-width: 1.85; }
.threat-tile h4 {
    margin: 0 0 0.15rem;
    font-size: 0.92rem;
    color: var(--primary-color);
    line-height: 1.3;
}
.threat-tile p {
    margin: 0;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.45;
}
[data-theme="dark"] .threat-tile {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.10);
}
[data-theme="dark"] .threat-tile h4 { color: #e2e8f0; }
[data-theme="dark"] .threat-tile p { color: #94a3b8; }

/* =========================================================================
   CNAPP umbrella diagram container.
   ========================================================================= */
/* breach-list divider variant: a non-card list item that just hosts a page-photo */
.breach-divider { list-style: none; padding: 0; margin: 0; }

/* Memorial-hero: full-width photo background with overlaid name + dates.
   Used on kevin-mitnick.html. */
.memorial-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}
.memorial-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}
.memorial-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}
.memorial-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(11,23,41,0.55) 0%, rgba(11,23,41,0.78) 60%, rgba(11,23,41,0.92) 100%);
}
.memorial-hero-overlay {
    position: relative;
    z-index: 2;
    padding: 4rem 1.5rem;
    text-align: center;
    max-width: 760px;
}
.memorial-hero-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #fbbf24;
    font-weight: 600;
}
.memorial-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #fff;
}
.memorial-hero-dates {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    color: #cbd5e1;
    font-style: italic;
}
.memorial-hero-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .memorial-hero { min-height: 380px; }
    .memorial-hero-overlay { padding: 2.5rem 1rem; }
}

/* Photo gallery for the kev-gallery section: 2-column grid on wide,
   single-column on mobile. Uses existing .page-photo internally. */
.kev-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.kev-gallery .page-photo { margin: 0; }

/* Final signature on the memorial page: italic, larger, centered. */
.signature--final {
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-muted, #777);
}
[data-theme="dark"] .signature--final { color: #94a3b8; }

/* Profile-page stats chips (about-shawn-nunley.html hero). */
.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}
.profile-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    font-size: 0.85rem;
    color: #cbd5e1;
}
.profile-stat strong {
    color: #fbbf24;
    font-weight: 700;
}

/* Lede paragraph: emphasized intro on profile/showcase pages. */
.lede {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 1.25rem;
}
[data-theme="dark"] .lede { color: #e2e8f0; }

/* H2 accent — small colored bar above each section's h2 on long pillar pages.
   Adds visual rhythm so each section starts with a clear anchor instead of
   landing in another wall of text. Scoped to <main class="contribute-article">
   so listing/utility pages keep their existing styling. */
.contribute-article section > h2 {
    position: relative;
    padding-top: 0.75rem;
    margin-top: 2.5rem;
}
.contribute-article section > h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
    border-radius: 2px;
}
[data-theme="dark"] .contribute-article section > h2::before {
    background: linear-gradient(90deg, #38bdf8, transparent);
}

/* Pull-quote callout — pulls a key sentence out of paragraph runs into a
   visually-distinct, magazine-style block. Use sparingly, ~1 per long page. */
.pull-quote {
    margin: 2.25rem 0;
    padding: 1.25rem 1.5rem 1.25rem 2.75rem;
    border-left: 4px solid var(--secondary-color);
    background: linear-gradient(135deg, rgba(52,152,219,0.06) 0%, transparent 100%);
    border-radius: 0 12px 12px 0;
    font-size: 1.18rem;
    line-height: 1.55;
    color: var(--text-color);
    font-style: italic;
    position: relative;
    font-weight: 500;
}
.pull-quote::before {
    content: '\201C';
    position: absolute;
    left: 0.7rem;
    top: -0.25rem;
    font-size: 3.2rem;
    color: var(--secondary-color);
    font-family: Georgia, 'Times New Roman', serif;
    font-style: normal;
    line-height: 1;
    opacity: 0.8;
}
.pull-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted, #777);
    font-style: normal;
    font-weight: 400;
}
[data-theme="dark"] .pull-quote {
    background: linear-gradient(135deg, rgba(56,189,248,0.10) 0%, transparent 100%);
    border-left-color: #38bdf8;
    color: #e2e8f0;
}
[data-theme="dark"] .pull-quote::before { color: #38bdf8; }
[data-theme="dark"] .pull-quote cite { color: #94a3b8; }

/* Page photos — Pexels-sourced JPGs with webp fallback. */
.page-photo {
    margin: 2rem 0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.page-photo picture, .page-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.page-photo figcaption {
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
    color: #595959;
    background: rgba(0,0,0,0.02);
    text-align: right;
    font-style: italic;
}
[data-theme="dark"] .page-photo {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.10);
}
[data-theme="dark"] .page-photo figcaption {
    color: #94a3b8;
    background: rgba(255,255,255,0.02);
}

.cnapp-figure, .killchain-figure, .arch-figure, .workflow-figure {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1rem 1rem;
    margin: 1.5rem 0;
}
.killchain-figure svg, .arch-figure svg, .workflow-figure svg { width: 100%; height: auto; display: block; max-width: 820px; margin: 0 auto; }
.killchain-figure figcaption, .arch-figure figcaption, .workflow-figure figcaption {
    text-align: center; font-size: 0.83rem; color: #555; font-style: italic; margin-top: 0.6rem;
}
[data-theme="dark"] .killchain-figure, [data-theme="dark"] .arch-figure, [data-theme="dark"] .workflow-figure {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border-color: rgba(255,255,255,0.10);
}
[data-theme="dark"] .killchain-figure figcaption,
[data-theme="dark"] .arch-figure figcaption,
[data-theme="dark"] .workflow-figure figcaption { color: #94a3b8; }
.cnapp-figure svg { width: 100%; height: auto; display: block; max-width: 580px; margin: 0 auto; }
.cnapp-figure figcaption {
    text-align: center;
    font-size: 0.83rem;
    color: #555;
    font-style: italic;
    margin-top: 0.6rem;
}
[data-theme="dark"] .cnapp-figure {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border-color: rgba(255,255,255,0.10);
}
[data-theme="dark"] .cnapp-figure figcaption { color: #94a3b8; }

/* =========================================================================
   Inline SVG diagram figure — wraps responsive SVG with caption.
   ========================================================================= */
.diagram-figure {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}
.diagram-figure svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 640px;
    margin: 0 auto;
}
.diagram-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: #555;
    text-align: center;
    font-style: italic;
}
[data-theme="dark"] .diagram-figure {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.12);
}
[data-theme="dark"] .diagram-figure figcaption { color: #94a3b8; }