@charset "utf-8";

/* ===========================================================================
   Long V. Nguyen — academic homepage
   ---------------------------------------------------------------------------
   Structure of this file
     1. Design tokens (light + dark)
     2. Base typography and layout
     3. Navigation
     4. Panels / cards
     5. Profile hero
     6. Publications
     7. News, activities, videos, gallery, notes
     8. Footer
     9. Utilities, legacy template classes, accessibility, print

   Theming is done with CSS custom properties redefined under
   [data-theme="dark"], so a single toggle recolours the whole site instead of
   the long list of `!important` overrides this file used to carry.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------ */
:root {
    /* Brand: a deep navy "signal" blue with a warm amber accent.
       Amber is reserved for small emphases so it stays meaningful. */
    --c-accent:          #1d64f2;
    --c-accent-strong:   #1348bd;
    --c-accent-soft:     rgba(29, 100, 242, 0.10);
    --c-accent-2:        #f08a24;

    --c-bg:              #f4f6fa;
    --c-bg-alt:          #eaeef6;
    --c-surface:         #ffffff;
    --c-surface-2:       #f8fafc;

    --c-text:            #12212f;
    --c-text-muted:      #5a6b7d;
    --c-text-faint:      #8695a5;
    --c-border:          #e2e8f0;
    --c-border-strong:   #cbd5e1;

    --shadow-sm: 0 1px 2px rgba(15, 32, 51, 0.05), 0 2px 8px rgba(15, 32, 51, 0.05);
    --shadow-md: 0 2px 6px rgba(15, 32, 51, 0.06), 0 12px 28px rgba(15, 32, 51, 0.08);

    --radius:     14px;
    --radius-sm:  9px;
    --radius-pill: 999px;

    --nav-h: 4.25rem;

    --font-sans: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --step-0: 1.0rem;
    --step-1: 1.125rem;
    --step-2: 1.375rem;
    --step-3: 1.75rem;
    --step-4: 2.25rem;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
    --c-accent:          #5c9bff;
    --c-accent-strong:   #8fbaff;
    --c-accent-soft:     rgba(92, 155, 255, 0.14);
    --c-accent-2:        #ffb35c;

    --c-bg:              #0c1420;
    --c-bg-alt:          #111b2a;
    --c-surface:         #131f30;
    --c-surface-2:       #17243a;

    --c-text:            #e8eef7;
    --c-text-muted:      #9db0c6;
    --c-text-faint:      #7e91a8;
    --c-border:          #22334a;
    --c-border-strong:   #2e435f;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* ---------------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------------ */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: var(--step-1);
    line-height: 1.65;
    color: var(--c-text);
    background-color: var(--c-bg);
    padding-top: calc(var(--nav-h) + 1.25rem);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

/* Bootstrap utility classes used throughout the templates are re-pointed at
   the token system so one theme switch is enough. */
body.bg-light,
.bg-light { background-color: var(--c-bg) !important; }
.bg-white { background-color: var(--c-surface) !important; color: var(--c-text) !important; }
.text-muted { color: var(--c-text-muted) !important; }
.border-gray { border-color: var(--c-border) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 650;
    letter-spacing: -0.015em;
    color: var(--c-text);
    line-height: 1.25;
}

h1, .h1 { font-size: var(--step-4); }
h2, .h2 { font-size: var(--step-3); }
h3, .h3 { font-size: var(--step-2); }
h4, .h4 { font-size: var(--step-1); }

a {
    color: var(--c-accent);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}
a:hover, a:focus { color: var(--c-accent-strong); text-decoration: underline; }

:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
    border-radius: 3px;
}

hr { border-top-color: var(--c-border); }

::selection { background: var(--c-accent-soft); }

/* Page headers on subpages */
.page-header { margin: 0.5rem 0 1.75rem; }
.page-header h1 {
    margin-bottom: 0.35rem;
    position: relative;
    padding-left: 0.9rem;
}
.page-header h1::before {
    content: "";
    position: absolute;
    left: 0; top: 0.18em; bottom: 0.18em;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--c-accent), var(--c-accent-2));
}
.page-header-sub {
    color: var(--c-text-muted);
    font-size: var(--step-0);
    max-width: 62ch;
    margin-bottom: 0;
}

.section-heading {
    font-size: var(--step-2);
    margin: 2rem 0 0.75rem;
}

/* ---------------------------------------------------------------------------
   3. Navigation
   ------------------------------------------------------------------------ */
.site-nav {
    min-height: var(--nav-h);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    font-size: 1.02rem;
    background-color: color-mix(in srgb, var(--c-surface) 82%, transparent);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
}
/* Fallback for browsers without color-mix */
@supports not (background-color: color-mix(in srgb, red 50%, transparent)) {
    .site-nav { background-color: var(--c-surface); }
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--c-text) !important;
    font-size: 1.12rem;
}
.site-brand:hover { text-decoration: none; opacity: 0.85; }

/* Small "signal" mark: three bars of increasing height, a nod to wireless. */
.site-brand-mark {
    width: 18px; height: 18px;
    flex: 0 0 18px;
    background:
        linear-gradient(var(--c-accent), var(--c-accent)) 0 100% / 4px 46% no-repeat,
        linear-gradient(var(--c-accent), var(--c-accent)) 7px 100% / 4px 74% no-repeat,
        linear-gradient(var(--c-accent-2), var(--c-accent-2)) 14px 100% / 4px 100% no-repeat;
}

.site-nav .nav-link {
    color: var(--c-text-muted) !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: var(--radius-pill);
    transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.site-nav .nav-link:hover { color: var(--c-text) !important; background: var(--c-accent-soft); }
.site-nav .nav-item.active .nav-link {
    color: var(--c-accent) !important;
    background: var(--c-accent-soft);
    font-weight: 500;
}

.site-nav-toggle {
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-sm);
    color: var(--c-text);
    font-size: 0.95rem;
    padding: 0.35rem 0.7rem;
}

.dark-mode-toggle {
    background: none !important;
    border: none !important;
    color: var(--c-text-muted) !important;
    font-size: 1.05rem;
    padding: 0.4rem 0.75rem !important;
    cursor: pointer;
    transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}
.dark-mode-toggle:hover { color: var(--c-accent) !important; transform: rotate(-12deg); }
.dark-mode-toggle:focus { box-shadow: none !important; }

.blinking-slash {
    color: var(--c-accent-2);
    animation: blink 1.6s steps(1, end) infinite;
    font-weight: 700;
    margin-left: 1px;
}
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* ---------------------------------------------------------------------------
   4. Panels / cards
   ------------------------------------------------------------------------ */
.card {
    background-color: var(--c-surface);
    border-radius: var(--radius) !important;
    border-color: var(--c-border);
    color: var(--c-text);
}
.card-img-overlay { border-radius: var(--radius) !important; }

.panel {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 1.25rem 0;
    overflow: hidden;
}

.panel-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0;
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface-2);
}
.panel-heading i { color: var(--c-accent); }
.panel-heading-link {
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
}
.panel-body { padding: 1.1rem 1.25rem; }

.panel-footer-link {
    margin: 0;
    padding: 0.85rem 1.25rem;
    text-align: right;
    font-size: 0.86rem;
    border-top: 1px solid var(--c-border);
    background: var(--c-surface-2);
}

/* ---------------------------------------------------------------------------
   5. Profile hero
   ------------------------------------------------------------------------ */
.profile-hero {
    position: relative;
    border: 1px solid var(--c-border) !important;
    background: var(--c-surface) !important;
    box-shadow: var(--shadow-md) !important;
    overflow: hidden;
}
/* Thin gradient rule along the top edge — the site's signature detail. */
.profile-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2) 65%, transparent);
}

.profile-portrait { float: right; margin: 0 0 1.25rem 1.5rem; }
.profile-portrait img {
    height: 168px;
    width: 168px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    background: var(--c-surface-2);
    padding: 5px;
}

.profile-headline { display: flex; align-items: center; gap: 1rem; }
.profile-name {
    font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 0.35rem;
}
.profile-name small { font-size: 0.55em; color: var(--c-text-muted); font-weight: 400; }

.profile-portrait-mobile { margin-left: auto; }
.profile-portrait-mobile img {
    border-radius: 50%;
    height: 52px; width: 52px;
    object-fit: cover;
    border: 1px solid var(--c-border);
}

.profile-positions { margin-bottom: 0.9rem; }
.profile-position {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--c-text-muted);
    font-size: 0.98rem;
}

.topic-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    margin: 0 0 1.15rem;
}
.topic-chip {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.22rem 0.7rem;
    border-radius: var(--radius-pill);
    color: var(--c-accent);
    background: var(--c-accent-soft);
    border: 1px solid color-mix(in srgb, var(--c-accent) 22%, transparent);
}
@supports not (border-color: color-mix(in srgb, red 50%, transparent)) {
    .topic-chip { border-color: var(--c-border); }
}

.profile-bio p { margin-bottom: 0.85rem; }
.profile-bio p:last-child { margin-bottom: 0; }
.profile-bio strong { font-weight: 600; }

.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--c-border-strong);
    color: var(--c-text) !important;
}
.btn-cv:hover { text-decoration: none; border-color: var(--c-accent); color: var(--c-accent) !important; }

.profile-divider { margin: 1.4rem 0 1.1rem; }

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.6rem;
}
.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--c-border);
    background: var(--c-surface-2);
    color: var(--c-text-muted) !important;
    white-space: nowrap;
}
.profile-link:hover {
    text-decoration: none;
    color: var(--c-accent) !important;
    border-color: var(--c-accent);
    background: var(--c-accent-soft);
}
.email-text { font-family: var(--font-mono); font-size: 0.86em; }

/* ---------------------------------------------------------------------------
   6. Publications
   ------------------------------------------------------------------------ */
.pub-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.15rem 1.25rem;
    transition: background-color 0.15s var(--ease);
}
.pub-item:hover { background: var(--c-surface-2); }
.pub-item-bordered { border-bottom: 1px solid var(--c-border); }

.pub-thumb-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    background: var(--c-surface-2);
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.3rem;
}
.pub-authors { font-size: 0.88rem; margin: 0 0 0.15rem; color: var(--c-text-muted); }
.pub-authors a, .pub-authors .text-body { color: var(--c-text-muted) !important; }
.pub-authors strong { color: var(--c-text); font-weight: 650; }

.pub-venue { font-size: 0.86rem; margin: 0 0 0.45rem; color: var(--c-text-muted); }
.pub-venue-name { font-style: italic; }
.pub-year { margin-left: 0.25rem; }
.pub-venue .badge {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.28em 0.7em;
    vertical-align: 0.06em;
}
.badge-primary { background-color: var(--c-accent) !important; }
.badge-publication { font-size: 100%; }

.pub-abstract {
    font-size: 0.87rem;
    line-height: 1.6;
    color: var(--c-text-muted);
    margin: 0 0 0.5rem;
    /* Keep long abstracts from dominating the list; full text stays in the
       DOM for search engines. */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pub-item:hover .pub-abstract,
.pub-item:focus-within .pub-abstract { -webkit-line-clamp: unset; overflow: visible; }

.pub-links { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pub-link {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--c-border-strong);
    color: var(--c-text-muted) !important;
}
.pub-link:hover { text-decoration: none; color: var(--c-accent) !important; border-color: var(--c-accent); }

@media (max-width: 767.98px) {
    .pub-item { grid-template-columns: 1fr; gap: 0.85rem; }
    .pub-thumb-img { max-height: 200px; }
}

/* Year rail on the publications page.
   Bootstrap's .nav-pills .active paints a solid blue block with dark text,
   which was unreadable — this replaces it with a left-rule treatment. */
#navbar-year .nav-link {
    color: var(--c-text-muted);
    padding: 0.3rem 0.75rem;
    border-left: 2px solid var(--c-border);
    border-radius: 0;
    font-variant-numeric: tabular-nums;
    background: transparent !important;
}
#navbar-year .nav-link:hover { color: var(--c-accent); border-left-color: var(--c-accent); }
#navbar-year .nav-link.active {
    color: var(--c-accent) !important;
    border-left-color: var(--c-accent);
    background: var(--c-accent-soft) !important;
    font-weight: 600;
}

/* ---------------------------------------------------------------------------
   7. News, activities, videos, gallery, notes
   ------------------------------------------------------------------------ */
.news-body { padding: 0.35rem 1.25rem 0.9rem; }
.news-year { display: flex; gap: 1.1rem; padding: 0.7rem 0; }
.news-year + .news-year { border-top: 1px solid var(--c-border); }
.news-year-label {
    flex: 0 0 3.2rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--c-text-faint);
    font-size: 0.92rem;
    padding-top: 0.1rem;
}
.news-items { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; }
.news-item {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.18rem 0;
    font-size: 0.95rem;
}
.news-item-text { flex: 1 1 auto; }
.news-item-date {
    color: var(--c-text-faint);
    font-size: 0.82rem;
    font-style: italic;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    /* Stack the date under the item so headlines keep a usable measure. */
    .news-item { flex-direction: column; gap: 0.1rem; }
    .news-item-date { align-self: flex-start; }
    .news-year { gap: 0.75rem; }
    .news-year-label { flex-basis: 2.6rem; }
}

.activity-list { margin: 0; padding-left: 1.1rem; }
.activity-list li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.activity-list li:last-child { margin-bottom: 0; }

/* Videos */
.video-panel {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.1rem 1.25rem;
}
.video-viewport { width: 100%; max-width: 620px; margin: 0 auto; overflow: hidden; border-radius: var(--radius-sm); }
.video-track { display: flex; transition: transform 0.45s var(--ease); }
.video-slide { flex: 0 0 100%; }

.video-facade {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}
.video-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.88; transition: opacity 0.2s var(--ease); }
.video-facade:hover .video-thumb { opacity: 1; }
.video-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 62px; height: 62px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 1.25rem;
    transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--c-accent); }
.video-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    color: #fff;
    text-align: left;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; border-radius: var(--radius-sm); }

.video-nav {
    position: absolute;
    z-index: 2;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.video-nav:hover { color: var(--c-accent); border-color: var(--c-accent); }
.video-nav-prev { left: calc(50% - 310px - 1.15rem); }
.video-nav-next { right: calc(50% - 310px - 1.15rem); }
@media (max-width: 767.98px) {
    .video-panel { padding-left: 0.5rem; padding-right: 0.5rem; }
    .video-nav-prev { left: 0.15rem; }
    .video-nav-next { right: 0.15rem; }
}

.video-indicators { display: flex; justify-content: center; gap: 0.45rem; padding: 0 0 1.1rem; }
.video-dot {
    width: 9px; height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--c-border-strong);
    cursor: pointer;
    transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.video-dot.is-active { background: var(--c-accent); transform: scale(1.25); }

/* Visitor globe */
.visitor-globe { display: flex; justify-content: center; margin: 1.75rem 0 0.5rem; }
.visitor-globe-slot { width: 250px; height: 250px; overflow: hidden; }

/* Gallery */
.gallery-group-heading {
    font-size: var(--step-3);
    margin: 2rem 0 1rem;
}

/* Notes */
.note-list-items { list-style: none; padding: 0; margin: 0 0 1rem; }
.note-item {
    padding: 1rem 1.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.75rem;
}
.note-item-title { font-size: 1.08rem; font-weight: 600; }
.note-item-meta { font-size: 0.82rem; color: var(--c-text-faint); margin-top: 0.15rem; }
.note-item-excerpt { font-size: 0.9rem; color: var(--c-text-muted); margin: 0.45rem 0 0; }
.note-embed-frame {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-surface);
}
.note-embed-frame iframe { display: block; }

/* ---------------------------------------------------------------------------
   8. Footer
   ------------------------------------------------------------------------ */
.site-footer {
    font-size: 0.82rem;
    color: var(--c-text-faint);
    border-top: 1px solid var(--c-border);
    margin-top: 2.5rem;
    padding: 1.15rem 0;
}
.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
    align-items: center;
}
.site-footer a { color: var(--c-text-muted); }

/* ---------------------------------------------------------------------------
   9. Utilities, legacy classes, accessibility, print
   ------------------------------------------------------------------------ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 0.65rem 1.1rem;
    background: var(--c-accent);
    color: #fff;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; text-decoration: none; }

.rounded-xl { border-radius: var(--radius) !important; }
.rounded-xl-bottom { border-bottom-right-radius: var(--radius) !important; border-bottom-left-radius: var(--radius) !important; }
.rounded-xl-top { border-top-left-radius: var(--radius) !important; border-top-right-radius: var(--radius) !important; }

.inline-badge { height: 16px; width: auto; vertical-align: -10%; margin-right: 2px; line-break: unset; }
.no-break { white-space: nowrap; }
.cover-image { width: 180px; max-height: 120px; }
.abstract-body { min-height: 100px; }
.text-profile-position { font-weight: 400; }
.text-profile-bio { font-weight: 400; }

img.lazy, div.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 44px 44px;
    min-height: 80px;
}

/* Markdown / post content */
.post-content img, article img { max-width: 100%; height: auto; }
code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--c-surface-2);
    color: var(--c-accent-strong);
    padding: 0.12em 0.35em;
    border-radius: 4px;
}
pre {
    background: var(--c-surface-2);
    color: var(--c-text);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    overflow-x: auto;
}
pre code { background: none; padding: 0; color: inherit; }
blockquote {
    border-left: 3px solid var(--c-accent);
    padding-left: 1rem;
    color: var(--c-text-muted);
    margin-left: 0;
}
table { width: 100%; margin-bottom: 1rem; }
th, td { border-bottom: 1px solid var(--c-border); padding: 0.5rem 0.65rem; }

.alert-warning {
    background-color: var(--c-surface-2);
    border-color: var(--c-border-strong);
    color: var(--c-text);
}

/* Background particle canvas must never intercept clicks. */
body > canvas { pointer-events: none; }

@media print {
    .site-nav, .site-footer, .video-panel, .visitor-globe, .skip-link, #navbar-year { display: none !important; }
    body { padding-top: 0; background: #fff; color: #000; font-size: 11pt; }
    .panel, .card, .profile-hero { box-shadow: none !important; border: 1px solid #ddd !important; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
