/* =====================================================================
   NOMAD Lab — shared design system
   Palette comes from the NOMAD logo: steel blue + amber, on warm paper.
   Load order: Bootstrap -> style.css -> nomad.css. Page <style> blocks
   use the tokens below (var(--nm-*)) so every page shares one look.
   ===================================================================== */

:root {
    /* Colour */
    --nm-ink: #13202b;          /* headings */
    --nm-ink-2: #3a4854;        /* body text */
    --nm-muted: #66737e;        /* secondary text */
    --nm-line: #e6e9ee;         /* hairlines, borders */
    --nm-paper: #ffffff;        /* page background */
    --nm-surface: #ffffff;      /* cards */
    --nm-blue: #2f5f80;         /* logo blue */
    --nm-blue-600: #3a7099;
    --nm-blue-700: #1f4560;
    --nm-blue-50: #ebf2f7;
    --nm-amber: #e3a948;        /* logo amber */
    --nm-amber-700: #a86f12;
    --nm-amber-50: #fbf2e1;
    --nm-deep: #0f2231;         /* dark sections */

    --nm-hero-bg:
        radial-gradient(1200px 500px at 85% -10%, rgba(227, 169, 72, 0.16), transparent 60%),
        linear-gradient(165deg, #0f2231 0%, #16324a 55%, #1d4361 100%);
    --nm-blue-grad: linear-gradient(135deg, #2f5f80 0%, #3a7099 100%);
    --nm-amber-grad: linear-gradient(135deg, #d99a35 0%, #e8b660 100%);

    /* Type */
    --nm-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    --nm-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shape */
    --nm-radius: 12px;
    --nm-radius-sm: 8px;
    --nm-shadow: 0 1px 2px rgba(19, 32, 43, 0.05), 0 4px 16px rgba(19, 32, 43, 0.06);
    --nm-shadow-lg: 0 2px 4px rgba(19, 32, 43, 0.05), 0 16px 40px rgba(19, 32, 43, 0.10);

    /* Bootstrap hooks */
    --bs-primary: #2f5f80;
    --bs-primary-rgb: 47, 95, 128;
    --bs-secondary-rgb: 102, 115, 126;
    --bs-warning-rgb: 227, 169, 72;
    --bs-info-rgb: 75, 138, 168;
    --bs-success-rgb: 63, 138, 100;
    --bs-danger-rgb: 185, 71, 59;
    --bs-success: #3f8a64; --bs-info: #4b8aa8; --bs-danger: #b9473b; --bs-warning: #e3a948;
    --bs-body-font-family: var(--nm-sans);
    --bs-body-color: #3a4854;
    --bs-body-bg: #ffffff;
    --bs-link-color: #2f5f80;
    --bs-link-color-rgb: 47, 95, 128;
    --bs-link-hover-color: #1f4560;
    --bs-link-hover-color-rgb: 31, 69, 96;
    --bs-border-color: #e6e9ee;
    --bs-light-rgb: 244, 246, 249;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
.carousel-fade .carousel-item { transition: opacity .9s ease !important; }
body {
    font-family: var(--nm-sans);
    color: var(--nm-ink-2);
    background: var(--nm-paper);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1 0 auto; }

h1, h2, h3, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--nm-serif);
    font-weight: 600;
    letter-spacing: -0.015em;
}
/* Headings inherit colour so they stay white on dark heroes; plain
   content headings get ink via .nm-* components or page styles. */
h4, h5, h6 { font-family: var(--nm-sans); font-weight: 600; letter-spacing: -0.005em; }
.nm-section h1, .nm-section h2, .nm-section h3, .card h1, .card h2, .card h3, .card h4, .card h5 { color: var(--nm-ink); }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { text-underline-offset: 3px; }
::selection { background: var(--nm-amber-50); color: var(--nm-ink); }
:focus-visible { outline: 2px solid var(--nm-amber); outline-offset: 2px; }
.text-primary { color: var(--nm-blue) !important; }
.text-muted, .text-secondary { color: var(--nm-muted) !important; }
.bg-light { background-color: #f4f6f9 !important; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--nm-radius-sm); font-weight: 500; letter-spacing: 0; }
.btn-primary {
    --bs-btn-bg: var(--nm-blue); --bs-btn-border-color: var(--nm-blue);
    --bs-btn-hover-bg: var(--nm-blue-700); --bs-btn-hover-border-color: var(--nm-blue-700);
    --bs-btn-active-bg: var(--nm-blue-700); --bs-btn-active-border-color: var(--nm-blue-700);
    --bs-btn-disabled-bg: var(--nm-blue); --bs-btn-disabled-border-color: var(--nm-blue);
}
.btn-outline-primary {
    --bs-btn-color: var(--nm-blue); --bs-btn-border-color: var(--nm-blue);
    --bs-btn-hover-bg: var(--nm-blue); --bs-btn-hover-border-color: var(--nm-blue);
    --bs-btn-active-bg: var(--nm-blue-700); --bs-btn-active-border-color: var(--nm-blue-700);
}
.btn-warning {
    --bs-btn-bg: var(--nm-amber); --bs-btn-border-color: var(--nm-amber); --bs-btn-color: var(--nm-ink);
    --bs-btn-hover-bg: #d4973a; --bs-btn-hover-border-color: #d4973a; --bs-btn-hover-color: var(--nm-ink);
}
.nm-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.25rem; border-radius: var(--nm-radius-sm);
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.nm-btn-amber { background: var(--nm-amber); color: var(--nm-ink); }
.nm-btn-amber:hover { background: #efbb63; color: var(--nm-ink); transform: translateY(-1px); }
.nm-btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.nm-btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.06); }
.nm-btn-blue { background: var(--nm-blue); color: #fff; }
.nm-btn-blue:hover { background: var(--nm-blue-700); color: #fff; }

/* ---------- Cards, forms, tables ---------- */
.card { border-color: var(--nm-line); border-radius: var(--nm-radius); }
.card.shadow, .card.shadow-lg, .card.shadow-sm { box-shadow: var(--nm-shadow) !important; }
.form-control, .form-select { border-color: #d5dae1; border-radius: var(--nm-radius-sm); }
.form-control:focus, .form-select:focus { border-color: var(--nm-blue); box-shadow: 0 0 0 3px rgba(47, 95, 128, 0.15); }
.table { --bs-table-border-color: var(--nm-line); }
.badge { font-weight: 600; letter-spacing: 0; border-radius: 6px; }
.badge.bg-gradient { background-image: none !important; }

/* ---------- Shared page pieces ---------- */
.nm-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; font-weight: 600; color: var(--nm-amber-700);
    margin-bottom: 0.75rem;
}
.nm-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--nm-amber); border-radius: 2px; }
.nm-section { padding: 88px 0; }
.nm-section-tight { padding: 64px 0; }
.nm-section-head { max-width: 680px; margin-bottom: 48px; }
.nm-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.nm-section-head.center .nm-eyebrow { justify-content: center; }
.nm-section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.75rem; }
.nm-section-head p { color: var(--nm-muted); font-size: 1.05rem; margin: 0; }

/* ---------- Navigation ---------- */
.nm-nav {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--nm-line);
    padding: 0.55rem 0;
}
.nm-nav .navbar-brand { display: flex; align-items: center; gap: 0.75rem; padding: 0; margin-right: 1.5rem; }
.nm-nav .nm-logo { height: 34px; width: auto; }
.nm-nav .nm-brand-text { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid var(--nm-line); padding-left: 0.75rem; }
.nm-nav .nm-brand-text strong { font-size: 0.82rem; color: var(--nm-ink); font-weight: 600; }
.nm-nav .nm-brand-text span { font-size: 0.74rem; color: var(--nm-muted); }
.nm-nav .nav-link {
    color: var(--nm-ink-2); font-size: 0.9rem; font-weight: 500;
    padding: 0.5rem 0.65rem !important; border-radius: 6px; position: relative; white-space: nowrap;
}
.nm-nav .nav-link:hover { color: var(--nm-ink); background: rgba(19, 32, 43, 0.04); }
.nm-nav .nav-link.active { color: var(--nm-blue); }
.nm-nav .nav-link.active::after {
    content: ""; position: absolute; left: 0.65rem; right: 0.65rem; bottom: 2px;
    height: 2px; background: var(--nm-amber); border-radius: 2px;
}
.nm-nav .nm-nav-cta {
    background: var(--nm-blue); color: #fff !important; border-radius: var(--nm-radius-sm);
    padding: 0.45rem 0.9rem !important; margin-left: 0.25rem;
}
.nm-nav .nm-nav-cta:hover { background: var(--nm-blue-700); }
.nm-nav .navbar-toggler { border: 1px solid var(--nm-line); padding: 0.35rem 0.55rem; }
.nm-nav .navbar-toggler:focus { box-shadow: none; }
.nm-nav .dropdown-menu {
    border: 1px solid var(--nm-line); border-radius: var(--nm-radius);
    box-shadow: var(--nm-shadow-lg); padding: 0.4rem; min-width: 220px;
}
.nm-nav .dropdown-item { border-radius: 6px; font-size: 0.9rem; padding: 0.5rem 0.75rem; }
.nm-nav .dropdown-item:active { background: var(--nm-blue); }
.nm-nav .dropdown-header { font-size: 0.78rem; color: var(--nm-muted); }
@media (max-width: 991.98px) {
    .nm-nav .navbar-collapse { padding: 0.75rem 0 0.5rem; }
    .nm-nav .nav-link.active::after { display: none; }
    .nm-nav .nm-nav-cta { display: inline-block; margin: 0.5rem 0 0; }
}

/* ---------- Flash messages ---------- */
.nm-flash .alert { border-radius: var(--nm-radius); border: 1px solid var(--nm-line); box-shadow: var(--nm-shadow); }

/* ---------- Footer ---------- */
.nm-footer { background: var(--nm-deep); color: rgba(255,255,255,0.72); padding: 72px 0 0; margin-top: 0; font-size: 0.93rem; }
.nm-footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
.nm-footer a:hover { color: #fff; }
.nm-footer .nm-foot-logo { height: 38px; width: auto; margin-bottom: 1.25rem; opacity: 0.95; }
.nm-footer p.lead-small { max-width: 340px; line-height: 1.65; }
.nm-footer h6 { color: #fff; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.nm-footer ul { list-style: none; padding: 0; margin: 0; }
.nm-footer li { margin-bottom: 0.55rem; }
.nm-footer .nm-contact li { display: flex; gap: 0.7rem; align-items: baseline; }
.nm-footer .nm-contact i { color: var(--nm-amber); width: 14px; }
.nm-footer .nm-foot-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); margin-top: 56px; padding: 22px 0;
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
    font-size: 0.82rem; color: rgba(255,255,255,0.5);
}
.nm-footer .nm-partners { display: flex; gap: 14px; align-items: center; }
.nm-footer .nm-partners img { height: 34px; width: 34px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Inner-page headers. The old pages each had their own gradient hero;
   these rules (scoped by the body's page-<endpoint> class) give them one
   consistent look without rewriting every page's markup.
   ===================================================================== */
.page-team .team-hero,
.page-publications .publications-page-content .publications-header,
.page-patents .patents-page-content .patents-header,
.page-booking .booking-page-content .booking-header,
.page-facilities .hero-section,
.page-contact .contact-hero,
.page-gallery .gallery-hero,
.page-teaching .teaching-hero,
.page-opportunities .opportunities-hero {
    background: var(--nm-hero-bg) !important;
    color: #fff;
    padding: 76px 0 68px;
    border-radius: 0 !important;
    min-height: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}
.page-team .team-hero::before,
.page-publications .publications-header::before,
.page-patents .patents-header::before,
.page-booking .booking-header::before,
.page-facilities .hero-section::before,
.page-contact .contact-hero::before,
.page-gallery .gallery-hero::before,
.page-teaching .teaching-hero::before,
.page-opportunities .opportunities-hero::before {
    content: "" !important; display: block !important; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.2px) 0 0 / 22px 22px !important;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
    animation: none !important; opacity: 1 !important; transform: none !important;
}
.page-team .team-hero > *, .page-publications .publications-header > *, .page-patents .patents-header > *,
.page-booking .booking-header > *, .page-facilities .hero-section > *, .page-contact .contact-hero > *,
.page-gallery .gallery-hero > *, .page-teaching .teaching-hero > *, .page-opportunities .opportunities-hero > * { position: relative; z-index: 1; }

.page-team .team-hero h1,
.page-publications .publications-header .page-title,
.page-patents .patents-header .page-title,
.page-booking .booking-header .page-title,
.page-facilities .hero-section h1,
.page-contact .contact-hero .hero-title,
.page-gallery .gallery-hero h1,
.page-teaching .teaching-hero h1,
.page-opportunities .opportunities-hero .hero-title {
    font-family: var(--nm-serif) !important;
    font-size: clamp(2.3rem, 4.4vw, 3.4rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    text-shadow: none !important;
    margin-bottom: 0.9rem !important;
    animation: none !important;
}
.page-team .team-hero .lead,
.page-publications .publications-header .page-subtitle,
.page-patents .patents-header .page-subtitle,
.page-booking .booking-header .page-subtitle,
.page-facilities .hero-section .lead,
.page-contact .contact-hero .hero-subtitle,
.page-gallery .gallery-hero p,
.page-teaching .teaching-hero p,
.page-opportunities .opportunities-hero .hero-subtitle {
    font-family: var(--nm-sans);
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.75) !important;
    max-width: 640px; margin-left: auto; margin-right: auto;
    line-height: 1.65;
    text-shadow: none !important;
}

/* Hero statistics: plain divided numbers instead of glass boxes */
.page-team .team-stats,
.page-publications .publications-header .stat-box,
.page-patents .patents-header .stat-box,
.page-facilities .hero-section .stats-card,
.page-contact .contact-hero .stat-item {
    background: transparent !important;
    border: 0 !important;
    border-left: 1px solid rgba(255,255,255,0.16) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    padding: 4px 22px !important;
    margin: 28px 0 0 !important;
    transform: none !important;
    text-align: center;
    min-width: 0;
}
.page-team .team-stats h2,
.page-publications .publications-header .stat-number,
.page-patents .patents-header .stat-number,
.page-facilities .hero-section .stats-card h2,
.page-contact .contact-hero .stat-number {
    font-family: var(--nm-serif) !important; font-size: 2.2rem !important; font-weight: 600 !important;
    color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; line-height: 1.1;
}
.page-team .team-stats p,
.page-publications .publications-header .stat-label,
.page-patents .patents-header .stat-label,
.page-facilities .hero-section .stats-card p,
.page-contact .contact-hero .stat-label {
    font-size: 0.85rem !important; text-transform: none !important; letter-spacing: 0 !important;
    color: rgba(255,255,255,0.65) !important; opacity: 1 !important; font-weight: 400 !important;
}
.page-publications .publications-header .stats-row,
.page-patents .patents-header .stats-row,
.page-contact .contact-hero .hero-stats { gap: 0 !important; flex-wrap: wrap; justify-content: center; }
.page-team .team-hero .row .row > :first-child .team-stats { border-left: 0 !important; }
.page-publications .publications-header .stat-box:first-child,
.page-contact .contact-hero .stat-item:first-child,
.page-facilities .hero-section .row .row > :first-child .stats-card { border-left: 0 !important; }

/* Filter pills used on several pages */
.page-team .role-filter,
.page-publications .filter-btn,
.page-patents .filter-btn,
.page-gallery .filter-btn,
.page-facilities .filter-btn {
    border-radius: 8px !important;
    border: 1px solid var(--nm-line) !important;
    background: var(--nm-surface) !important;
    color: var(--nm-ink-2) !important;
    box-shadow: none !important;
    font-weight: 500 !important;
    text-transform: none !important; letter-spacing: 0 !important;
    transform: none !important;
}
.page-team .role-filter::before, .page-publications .filter-btn::before, .page-gallery .filter-btn::before { display: none !important; }
.page-team .role-filter:hover,
.page-publications .filter-btn:hover,
.page-patents .filter-btn:hover,
.page-gallery .filter-btn:hover,
.page-facilities .filter-btn:hover { border-color: var(--nm-blue) !important; color: var(--nm-blue) !important; }
.page-team .role-filter.active,
.page-publications .filter-btn.active,
.page-patents .filter-btn.active,
.page-gallery .filter-btn.active,
.page-facilities .filter-btn.active {
    background: var(--nm-blue) !important; border-color: var(--nm-blue) !important; color: #fff !important;
}

/* Search boxes */
.page-team #teamSearch,
.page-publications .search-input,
.page-patents .search-input,
.page-gallery #gallery-search {
    border-radius: 10px !important; border: 1px solid #d5dae1 !important; box-shadow: none !important;
}
.page-team #teamSearch:focus,
.page-publications .search-input:focus,
.page-patents .search-input:focus,
.page-gallery #gallery-search:focus { border-color: var(--nm-blue) !important; box-shadow: 0 0 0 3px rgba(47,95,128,0.15) !important; }

/* ---------- Team page ---------- */
.page-team .team-controls {
    border-radius: 14px; box-shadow: var(--nm-shadow-lg); border: 1px solid var(--nm-line);
    padding: 28px 32px; margin: -44px auto 56px;
}
.page-team .member-card {
    border-radius: 14px; border: 1px solid var(--nm-line); box-shadow: var(--nm-shadow);
    transition: box-shadow .25s ease, transform .25s ease;
}
.page-team .member-card:hover { transform: translateY(-3px); box-shadow: var(--nm-shadow-lg); }
.page-team .member-card::before { display: none; }
.page-team .card-header-colored { height: 3px; }
.page-team .role-faculty { background: var(--nm-blue); }
.page-team .role-postdoc { background: #3f7f6e; }
.page-team .role-phd { background: var(--nm-amber); }
.page-team .role-msc { background: #6b93b0; }
.page-team .role-staff { background: #b87a3c; }
.page-team .role-alumni { background: #9aa3ab; }
.page-team .member-photo { border: 3px solid var(--nm-surface); box-shadow: 0 0 0 1px var(--nm-line); }
.page-team .member-card:hover .member-photo { transform: none; box-shadow: 0 0 0 2px var(--nm-amber); border-color: var(--nm-surface); }
.page-team .member-name { font-family: var(--nm-serif); font-weight: 600; color: var(--nm-ink); letter-spacing: -0.01em; }
.page-team .member-destination { text-transform: none !important; letter-spacing: 0 !important; color: var(--nm-amber-700) !important; font-weight: 600; font-size: 0.85rem; }
.page-team .member-quote {
    background: var(--nm-amber-50) !important; color: var(--nm-ink) !important;
    border-left: 3px solid var(--nm-amber); border-radius: 0;
    font-family: var(--nm-serif); font-size: 1rem;
}
.page-team .member-quote::before, .page-team .member-quote::after { display: none; }
.page-team .scientific-work { background: #f4f6f9; border-radius: 10px; }
.page-team .scientific-work h6 { text-transform: none; letter-spacing: 0; color: var(--nm-ink); }
.page-team .social-link { border-radius: 8px; }

/* ---------- Publications + Patents ---------- */
.page-publications .publications-page-content,
.page-patents .patents-page-content { background: var(--nm-paper) !important; font-family: var(--nm-sans) !important; }
.page-publications .publications-page-content .search-section,
.page-patents .patents-page-content .search-section { background: var(--nm-surface) !important; border-bottom: 1px solid var(--nm-line); box-shadow: none !important; }
.page-publications .publications-page-content .publications-content,
.page-patents .patents-page-content .patents-content { background: transparent !important; }
.page-publications .publications-page-content .year-title,
.page-patents .patents-page-content .year-title {
    font-family: var(--nm-serif) !important; font-weight: 600 !important; font-size: 2rem !important;
    color: var(--nm-ink) !important; -webkit-text-fill-color: var(--nm-ink) !important; background: none !important;
    text-align: left !important; display: flex !important; align-items: center; gap: 18px;
    border: 0 !important; padding: 0 !important; margin: 48px 0 18px !important;
}
.page-publications .publications-page-content .year-title::after,
.page-patents .patents-page-content .year-title::after {
    content: "" !important; flex: 1; height: 1px !important; background: var(--nm-line) !important;
    position: static !important; width: auto !important; transform: none !important; margin: 0 !important;
}
.page-publications .publications-page-content .publication-item,
.page-patents .patents-page-content .patent-item,
.page-patents .patents-page-content .publication-item {
    background: var(--nm-surface) !important; border: 1px solid var(--nm-line) !important; border-left-width: 1px !important;
    border-radius: 10px !important; box-shadow: none !important; padding: 22px 26px !important; margin-bottom: 12px !important;
    transform: none !important; transition: border-color .2s ease, box-shadow .2s ease !important;
}
.page-publications .publications-page-content .publication-item:hover,
.page-patents .patents-page-content .patent-item:hover,
.page-patents .patents-page-content .publication-item:hover { border-color: #c9d0d8 !important; box-shadow: var(--nm-shadow) !important; }
.page-publications .publications-page-content .publication-item.featured { box-shadow: inset 3px 0 0 var(--nm-amber) !important; }
.page-publications .publications-page-content .publication-item.featured:hover { box-shadow: inset 3px 0 0 var(--nm-amber), var(--nm-shadow) !important; }
.page-publications .publications-page-content .pub-title,
.page-patents .patents-page-content .pub-title,
.page-patents .patents-page-content .patent-title {
    font-family: var(--nm-sans) !important; font-size: 1.04rem !important; font-weight: 600 !important;
    line-height: 1.45 !important; color: var(--nm-ink) !important; letter-spacing: -0.005em;
}
.page-publications .publications-page-content .pub-authors,
.page-patents .patents-page-content .pub-authors { color: var(--nm-muted) !important; font-size: 0.9rem !important; font-style: normal !important; }
.page-publications .publications-page-content .pub-badge,
.page-patents .patents-page-content .pub-badge {
    text-transform: none !important; letter-spacing: 0 !important; font-size: 0.74rem !important; font-weight: 600 !important;
    border-radius: 6px !important; padding: 3px 8px !important; box-shadow: none !important;
}
.page-publications .publications-page-content .pub-badge.published { background: #e8f1ec !important; color: #2f6b4f !important; }
.page-publications .publications-page-content .pub-badge.selected { background: var(--nm-amber-50) !important; color: var(--nm-amber-700) !important; }
.page-publications .publications-page-content .pub-badge.review { background: var(--nm-blue-50) !important; color: var(--nm-blue) !important; }
.page-publications .publications-page-content .pub-badge.preprints { background: #efedf0 !important; color: #5b5560 !important; }
.page-publications .publications-page-content .pub-venue { font-style: italic; color: var(--nm-ink-2); font-size: 0.9rem; }
.page-publications .publications-page-content .pub-doi,
.page-patents .patents-page-content .pub-doi { color: var(--nm-blue) !important; font-size: 0.85rem !important; }
.page-patents .patents-page-content .pub-badge.patents { background: var(--nm-blue-50) !important; color: var(--nm-blue) !important; }

/* ---------- Facilities ---------- */
.page-facilities .hero-section { min-height: 0 !important; height: auto !important; padding: 76px 0 96px !important; display: block !important; }
.page-facilities .search-section {
    border-radius: 14px !important; border: 1px solid var(--nm-line); box-shadow: var(--nm-shadow-lg) !important;
    padding: 24px 28px !important; margin: -48px auto 48px !important;
}
.page-facilities .search-input { border-radius: 10px !important; border: 1px solid #d5dae1 !important; box-shadow: none !important; }
.page-facilities .tilt-card:hover { transform: none !important; }
.page-facilities .flip-card-front,
.page-facilities .flip-card-back { border-radius: 14px !important; box-shadow: var(--nm-shadow) !important; border: 1px solid var(--nm-line); }
.page-facilities .flip-card-front { background: var(--nm-surface) !important; }
.page-facilities .flip-card-back { background: var(--nm-deep) !important; border-color: var(--nm-deep); }
.page-facilities .instrument-image { border-radius: 14px 14px 0 0; }
.page-facilities .instrument-title { font-family: var(--nm-serif) !important; font-weight: 600 !important; color: var(--nm-ink) !important; }
.page-facilities .instrument-category {
    background: var(--nm-blue-50) !important; color: var(--nm-blue) !important;
    border-radius: 6px !important; font-weight: 600 !important; font-size: 0.75rem !important;
}
.page-facilities .status-badge {
    text-transform: none !important; letter-spacing: 0 !important; font-size: 0.75rem !important; font-weight: 600 !important;
    border-radius: 6px !important; padding: 4px 9px !important; animation: none !important; box-shadow: none !important;
    background: rgba(255,255,255,0.94) !important; color: #2f6b4f !important;
    display: inline-flex; align-items: center; gap: 6px;
}
.page-facilities .status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3f9a6c; }
.page-facilities .status-maintenance { color: var(--nm-amber-700) !important; }
.page-facilities .status-maintenance::before { background: var(--nm-amber); }
.page-facilities .image-overlay { background: rgba(13, 27, 62, 0.55) !important; font-size: 0.9rem; font-weight: 500; }
.page-facilities .back-card-content h3 { font-family: var(--nm-serif); color: #fff; font-weight: 600; }
.page-facilities .specs-list li { color: rgba(255,255,255,0.82); }
.page-facilities .contact-info { color: var(--nm-amber) !important; background: rgba(255,255,255,0.06) !important; border-radius: 8px !important; }

/* ---------- Research ---------- */
.page-research .research-hero { background: var(--nm-hero-bg); color: #fff; padding: 72px 0 120px; text-align: center; position: relative; }
.page-research .research-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); font-weight: 500; color: #fff; margin-bottom: 0.9rem; }
.page-research .research-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }
.page-research .research-carousel-wrap { margin-top: -80px; position: relative; z-index: 2; }
.page-research .research-carousel-wrap .discovery-carousel { border-radius: 16px !important; overflow: hidden; box-shadow: var(--nm-shadow-lg) !important; margin: 0 !important; }

/* ---------- Contact + Gallery headers ---------- */
.page-contact .contact-hero, .page-gallery .gallery-hero { min-height: 0 !important; }
.page-gallery .gallery-hero .min-vh-40 { min-height: 0 !important; }
.page-gallery .gallery-hero .hero-overlay { display: none !important; }
.page-gallery .gallery-hero .hero-title { font-family: var(--nm-serif) !important; font-size: clamp(2.3rem, 4.4vw, 3.4rem) !important; font-weight: 500 !important; color: #fff !important; text-shadow: none !important; animation: none !important; }
.page-gallery .gallery-hero .hero-subtitle { color: rgba(255,255,255,0.75) !important; font-size: 1.1rem !important; text-shadow: none !important; }
.page-gallery .gallery-hero .hero-stats { gap: 0 !important; justify-content: center; }
.page-gallery .gallery-hero .stat-item {
    background: transparent !important; border: 0 !important; border-left: 1px solid rgba(255,255,255,0.16) !important;
    border-radius: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    padding: 4px 26px !important; transform: none !important; min-width: 0 !important;
}
.page-gallery .gallery-hero .stat-item:first-child { border-left: 0 !important; }
.page-gallery .gallery-hero .stat-number { font-family: var(--nm-serif) !important; font-size: 2.2rem !important; font-weight: 600 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; }
.page-gallery .gallery-hero .stat-label { text-transform: none !important; letter-spacing: 0 !important; font-size: 0.85rem !important; color: rgba(255,255,255,0.65) !important; }
.page-contact .contact-hero .container { min-height: 0 !important; display: block !important; }

/* ---------- Teaching (same header treatment as Gallery) ---------- */
.page-teaching .teaching-hero .min-vh-60 { min-height: 0 !important; }
.page-teaching .teaching-hero .hero-overlay { display: none !important; }
.page-teaching .teaching-hero .hero-title { font-family: var(--nm-serif) !important; font-size: clamp(2.3rem, 4.4vw, 3.4rem) !important; font-weight: 500 !important; color: #fff !important; text-shadow: none !important; animation: none !important; }
.page-teaching .teaching-hero .hero-subtitle { color: rgba(255,255,255,0.75) !important; font-size: 1.1rem !important; text-shadow: none !important; }
.page-teaching .teaching-hero .hero-stats { gap: 0 !important; justify-content: center; }
.page-teaching .teaching-hero .stat-item {
    background: transparent !important; border: 0 !important; border-left: 1px solid rgba(255,255,255,0.16) !important;
    border-radius: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    padding: 4px 26px !important; transform: none !important; min-width: 0 !important;
}
.page-teaching .teaching-hero .stat-item:first-child { border-left: 0 !important; }
.page-teaching .teaching-hero .stat-number { font-family: var(--nm-serif) !important; font-size: 2.2rem !important; font-weight: 600 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; }
.page-teaching .teaching-hero .stat-label { text-transform: none !important; letter-spacing: 0 !important; font-size: 0.85rem !important; color: rgba(255,255,255,0.65) !important; }

/* ---------- Lab policies ---------- */
.page-policies .policies-hero { background: var(--nm-hero-bg) !important; padding: 72px 0 64px !important; }
.page-policies .policies-hero h1 { font-family: var(--nm-serif); font-weight: 500; color: #fff; font-size: clamp(2.3rem, 4.4vw, 3.4rem); }
.page-policies .policies-hero .lead { color: rgba(255,255,255,0.75); font-size: 1.1rem; }
.page-policies .policies-hero .badge { background: rgba(255,255,255,0.08) !important; color: rgba(255,255,255,0.85) !important; border: 1px solid rgba(255,255,255,0.16); font-weight: 500; }
.page-policies .policies-icon-container { display: none; }
.page-policies .card-header[class*="bg-"] {
    background: var(--nm-surface) !important; color: var(--nm-ink) !important;
    border-bottom: 1px solid var(--nm-line) !important; border-left: 4px solid var(--nm-blue);
}
.page-policies .card-header[class*="bg-"] * { color: var(--nm-ink) !important; }
.page-policies .card-header[class*="bg-"] h2, .page-policies .card-header[class*="bg-"] h3 { font-family: var(--nm-serif); font-weight: 600; }
.page-policies .card-header.bg-danger { border-left-color: #b9473b; }
.page-policies .card-header.bg-warning { border-left-color: var(--nm-amber); }
.page-policies .card-header.bg-info { border-left-color: #4b8aa8; }
.page-policies .card-header.bg-success { border-left-color: #3f8a64; }
.page-policies .card-header[class*="bg-"] i { color: var(--nm-muted) !important; }

/* =====================================================================
   Members' area: auth, dashboards, inventory, admin
   ===================================================================== */
.page-login main, .page-register main, .page-profile main, .page-change_password main,
.page-member_dashboard main, .page-admin_dashboard main, .page-admin_users main,
.page-inventory_dashboard main, .page-list_chemicals main, .page-list_pld_targets main,
.page-list_sputtering_targets main, .page-list_software main, .page-add_chemical main,
.page-add_pld_target main, .page-add_sputtering_target main, .page-add_software main { padding: 40px 0 88px; }
.page-login main > .container, .page-register main > .container,
.page-profile main > .container, .page-change_password main > .container { margin-top: 24px !important; }

/* Cards and headers */
main .card { border: 1px solid var(--nm-line); box-shadow: var(--nm-shadow) !important; border-radius: var(--nm-radius) !important; overflow: hidden; }
main .card.border-0 { border: 1px solid var(--nm-line) !important; }
main .card-header:not([class*="bg-"]), main .card-footer:not([class*="bg-"]) { background: var(--nm-surface); border-color: var(--nm-line); }
main .card-header h3, main .card-header h4, main .card-header h5 { font-family: var(--nm-sans); font-weight: 600; color: var(--nm-ink) !important; }
main .card.bg-light { background: #f4f6f9 !important; box-shadow: none !important; }

/* Page titles inside member pages */
.page-admin_dashboard main h1, .page-admin_users main h1, .page-member_dashboard main h1,
.page-inventory_dashboard main h1, .page-list_chemicals main h1, .page-list_pld_targets main h1,
.page-list_sputtering_targets main h1, .page-list_software main h1,
.page-add_chemical main h1, .page-add_pld_target main h1, .page-add_sputtering_target main h1, .page-add_software main h1 {
    font-family: var(--nm-serif); font-weight: 600; color: var(--nm-ink); font-size: clamp(1.9rem, 3vw, 2.4rem);
}

/* Coloured stat cards: keep the colour as a top accent on a light card */
main .card.text-white.bg-primary, main .card.text-white.bg-success, main .card.text-white.bg-warning,
main .card.text-white.bg-info, main .card.text-white.bg-danger, main .card.text-white.bg-secondary,
main .card.bg-primary.text-white, main .card.bg-success.text-white, main .card.bg-warning.text-white, main .card.bg-info.text-white {
    background: var(--nm-surface) !important; color: var(--nm-ink) !important; border-top: 3px solid var(--nm-blue) !important;
}
main .card.text-white.bg-success, main .card.bg-success.text-white { border-top-color: #3f8a64 !important; }
main .card.text-white.bg-warning, main .card.bg-warning.text-white { border-top-color: var(--nm-amber) !important; }
main .card.text-white.bg-info, main .card.bg-info.text-white { border-top-color: #4b8aa8 !important; }
main .card.text-white.bg-danger { border-top-color: #b9473b !important; }
main .card.text-white [class*="text-white"], main .card.text-white .card-title, main .card.text-white h1, main .card.text-white h2,
main .card.text-white h3, main .card.text-white h4, main .card.text-white h5, main .card.text-white h6, main .card.text-white p,
main .card.text-white a, main .card.text-white .card-footer { color: var(--nm-ink) !important; }
main .card.text-white .card-footer { background: #f8f9fb !important; border-top: 1px solid var(--nm-line) !important; }
main .card.text-white i, main .card.text-white .fa, main .card.text-white .fas { color: var(--nm-blue) !important; opacity: 0.55 !important; }

/* Tables */
main .table > thead th, main .table > thead.table-dark th, main .table-dark > :not(caption) > * > * {
    background: #f4f6f9 !important; color: var(--nm-ink) !important; font-weight: 600; font-size: 0.85rem;
    border-bottom: 1px solid var(--nm-line) !important; text-transform: none;
}
main .table > tbody td { vertical-align: middle; }
main .table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f8f9fb; }
main code { color: var(--nm-amber-700); background: var(--nm-amber-50); padding: 1px 5px; border-radius: 4px; }

/* Tabs */
main .nav-tabs .nav-link { color: var(--nm-muted); }
main .nav-tabs .nav-link.active { color: var(--nm-ink); font-weight: 600; border-bottom-color: transparent; }

/* Auth cards */
.page-login main .card-header, .page-register main .card-header { padding: 28px 24px 12px; border-bottom: 0; }
.page-login main .card-header h3, .page-register main .card-header h3 { font-family: var(--nm-serif) !important; font-size: 1.9rem; color: var(--nm-ink) !important; }
.page-login main .card-header h3 i, .page-register main .card-header h3 i { display: none; }
.page-login main .card-body, .page-register main .card-body { padding: 12px 28px 28px; }

/* Phone gutters: 20px each side */
@media (max-width: 575.98px) {
    .container, .container-fluid { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 767.98px) {
    .page-team .team-hero .row .row > :nth-child(odd) .team-stats { border-left: 0 !important; }
    .page-facilities .hero-section .stats-card { border-left: 0 !important; }
}
.nm-btn-outline { color: var(--nm-blue); border: 1px solid #c3d2de; background: #fff; }
.nm-btn-outline:hover { color: var(--nm-blue-700); border-color: var(--nm-blue); background: var(--nm-blue-50); }

@media (min-width: 992px) and (max-width: 1199.98px) {
    .nm-nav .nav-link { padding: 0.5rem 0.45rem !important; font-size: 0.86rem; }
    .nm-nav .nav-link.active::after { left: 0.45rem; right: 0.45rem; }
    .nm-nav .navbar-brand { margin-right: 0.75rem; }
}

/* =====================================================================
   v3 · Institute look (owner's choice, 2 Dec 2026)
   One sans family throughout, white pages, navy institutional chrome,
   light page-title bands on inner pages. Later rules override earlier.
   ===================================================================== */
:root { --nm-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --nm-band: #f3f5f8; }
h1, h2, h3, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 { font-weight: 700; letter-spacing: -0.022em; }

/* Top bar + main nav */
.nm-topbar { background: var(--nm-deep); color: rgba(255,255,255,0.72); font-size: 0.8rem; }
.nm-topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; }
.nm-topbar a { color: rgba(255,255,255,0.78); text-decoration: none; }
.nm-topbar a:hover { color: #fff; }
.nm-topbar-links { display: flex; gap: 1.4rem; }
.nm-nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0.85rem 0; box-shadow: 0 1px 0 var(--nm-line); border-bottom: 0; }
.nm-nav .nm-logo { height: 40px; }
.nm-nav .nm-brand-text strong { font-size: 0.95rem; font-weight: 700; }
.nm-nav .nm-brand-text span { font-size: 0.8rem; }
.nm-nav .nav-link { font-size: 0.94rem; font-weight: 600; color: var(--nm-ink); padding: 0.5rem 0.8rem !important; }
.nm-nav .nav-link:hover { background: transparent; color: var(--nm-blue); }
.nm-nav .nav-link.active { color: var(--nm-blue); }
.nm-nav .nav-link.active::after { left: 0.8rem; right: 0.8rem; bottom: -0.85rem; height: 3px; background: var(--nm-blue); border-radius: 0; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .nm-nav .nav-link { padding: 0.5rem 0.5rem !important; font-size: 0.88rem; }
    .nm-nav .nav-link.active::after { left: 0.5rem; right: 0.5rem; }
}

/* Inner-page title bands: light, with the title in ink (institute style) */
.page-team .team-hero,
.page-publications .publications-page-content .publications-header,
.page-patents .patents-page-content .patents-header,
.page-booking .booking-page-content .booking-header,
.page-facilities .hero-section,
.page-contact .contact-hero,
.page-gallery .gallery-hero,
.page-teaching .teaching-hero,
.page-opportunities .opportunities-hero,
.page-research .research-hero,
.page-policies .policies-hero {
    background: var(--nm-band) !important; color: var(--nm-ink) !important;
    border-bottom: 1px solid var(--nm-line); padding: 64px 0 56px !important; text-align: left !important;
}
.page-team .team-hero::before, .page-publications .publications-header::before, .page-patents .patents-header::before,
.page-booking .booking-header::before, .page-facilities .hero-section::before, .page-contact .contact-hero::before,
.page-gallery .gallery-hero::before, .page-teaching .teaching-hero::before, .page-opportunities .opportunities-hero::before {
    background: linear-gradient(90deg, var(--nm-blue) 0 72px, transparent 72px) 0 0 / 100% 4px no-repeat !important;
    -webkit-mask-image: none !important; mask-image: none !important;
    left: max(24px, calc((100% - 1296px) / 2 + 12px)) !important; top: 0 !important; height: 4px !important; width: 72px !important;
}
.page-team .team-hero h1, .page-publications .publications-header .page-title, .page-patents .patents-header .page-title,
.page-booking .booking-header .page-title, .page-facilities .hero-section h1, .page-contact .contact-hero .hero-title,
.page-gallery .gallery-hero .hero-title, .page-teaching .teaching-hero .hero-title, .page-teaching .teaching-hero h1,
.page-opportunities .opportunities-hero .hero-title, .page-research .research-hero h1, .page-policies .policies-hero h1 {
    color: var(--nm-ink) !important; -webkit-text-fill-color: var(--nm-ink) !important;
    font-weight: 700 !important; font-size: clamp(2.1rem, 3.8vw, 3rem) !important; letter-spacing: -0.025em !important;
    text-align: left !important;
}
.page-team .team-hero .lead, .page-publications .publications-header .page-subtitle, .page-patents .patents-header .page-subtitle,
.page-booking .booking-header .page-subtitle, .page-facilities .hero-section .lead, .page-contact .contact-hero .hero-subtitle,
.page-gallery .gallery-hero p, .page-gallery .gallery-hero .hero-subtitle, .page-teaching .teaching-hero p, .page-teaching .teaching-hero .hero-subtitle,
.page-opportunities .opportunities-hero .hero-subtitle, .page-research .research-hero p, .page-policies .policies-hero .lead {
    color: var(--nm-ink-2) !important; margin-left: 0 !important; margin-right: 0 !important; text-align: left !important; max-width: 680px;
}
/* Stats inside the bands */
.page-team .team-stats h2, .page-publications .publications-header .stat-number, .page-patents .patents-header .stat-number,
.page-facilities .hero-section .stats-card h2, .page-contact .contact-hero .stat-number,
.page-gallery .gallery-hero .stat-number, .page-teaching .teaching-hero .stat-number {
    color: var(--nm-blue) !important; -webkit-text-fill-color: var(--nm-blue) !important; font-weight: 700 !important;
}
.page-team .team-stats p, .page-publications .publications-header .stat-label, .page-patents .patents-header .stat-label,
.page-facilities .hero-section .stats-card p, .page-contact .contact-hero .stat-label,
.page-gallery .gallery-hero .stat-label, .page-teaching .teaching-hero .stat-label { color: var(--nm-muted) !important; }
.page-team .team-stats, .page-publications .publications-header .stat-box, .page-patents .patents-header .stat-box,
.page-facilities .hero-section .stats-card, .page-contact .contact-hero .stat-item,
.page-gallery .gallery-hero .stat-item, .page-teaching .teaching-hero .stat-item {
    border-left-color: #d9dee5 !important; text-align: left !important;
}
.page-publications .publications-header .stats-row, .page-patents .patents-header .stats-row,
.page-contact .contact-hero .hero-stats, .page-gallery .gallery-hero .hero-stats, .page-teaching .teaching-hero .hero-stats { justify-content: flex-start !important; }
.page-team .team-hero .row, .page-facilities .hero-section .row { justify-content: flex-start !important; }
.page-team .team-hero .container, .page-facilities .hero-section .container, .page-contact .contact-hero .container { text-align: left !important; }
.page-gallery .gallery-hero .col-lg-8, .page-teaching .teaching-hero .col-lg-8 { margin-left: 0 !important; text-align: left !important; }
.page-policies .policies-hero .badge { background: #fff !important; color: var(--nm-ink-2) !important; border: 1px solid var(--nm-line); }
.page-research .research-hero { padding-bottom: 120px !important; }
/* first stat in a left-aligned row needs no left padding */
.page-publications .publications-header .stat-box:first-child, .page-patents .patents-header .stat-box:first-child,
.page-contact .contact-hero .stat-item:first-child, .page-gallery .gallery-hero .stat-item:first-child,
.page-teaching .teaching-hero .stat-item:first-child { padding-left: 0 !important; }
.page-team .team-hero::before, .page-publications .publications-header::before, .page-patents .patents-header::before,
.page-booking .booking-header::before, .page-facilities .hero-section::before, .page-contact .contact-hero::before,
.page-gallery .gallery-hero::before, .page-teaching .teaching-hero::before, .page-opportunities .opportunities-hero::before { display: none !important; }

/* ---------- v3 institute pass: flatter, squarer components ---------- */
:root { --nm-radius: 6px; --nm-radius-sm: 4px; }
.page-team .team-controls, .page-facilities .search-section {
    box-shadow: none !important; border: 1px solid var(--nm-line) !important; border-radius: 6px !important;
    margin: 36px auto 40px !important; padding: 22px 24px !important; max-width: none !important; background: #fff !important;
}
.page-team .role-filter, .page-publications .filter-btn, .page-patents .filter-btn, .page-gallery .filter-btn, .page-facilities .filter-btn,
.page-team #teamSearch, .page-publications .search-input, .page-patents .search-input, .page-gallery #gallery-search, .page-facilities .search-input { border-radius: 4px !important; }
.page-team .member-card, .page-facilities .flip-card-front, .page-facilities .flip-card-back,
.page-publications .publications-page-content .publication-item, .page-patents .patents-page-content .publication-item { border-radius: 6px !important; }
.page-facilities .instrument-image { border-radius: 6px 6px 0 0; }
.page-team .member-card:hover, .page-research .research-carousel-wrap .discovery-carousel { transform: none; }
.page-research .research-carousel-wrap { margin-top: -72px; }
.page-research .research-carousel-wrap .discovery-carousel { border-radius: 6px !important; background: var(--nm-deep); }
main .card { border-radius: 6px !important; }
.nm-btn, .btn { border-radius: 4px; }

/* ---------- v3 Research page body ---------- */
.page-research main section > .container > .text-center.mb-5 { text-align: left !important; max-width: 680px; }
.page-research main section > .container > .text-center.mb-5 h2 { font-size: clamp(1.8rem, 3vw, 2.4rem) !important; color: var(--nm-ink); }
.page-research main section > .container > .text-center.mb-5 .lead { font-size: 1.02rem; }
.page-research .research-areas, .page-research .current-projects, .page-research .collaboration-section { background: #fff !important; padding: 80px 0 !important; }
.page-research .current-projects { background: var(--nm-band) !important; }
.page-research .area-card, .page-research .project-card, .page-research .collab-card {
    border-radius: 6px !important; box-shadow: none !important; border: 1px solid var(--nm-line) !important;
    border-top: 3px solid var(--nm-blue) !important; text-align: left !important; transform: none !important; background: #fff !important;
}
.page-research .area-card:hover, .page-research .project-card:hover, .page-research .collab-card:hover { box-shadow: 0 12px 30px rgba(13,27,62,0.10) !important; }
.page-research .area-icon {
    width: 44px !important; height: 44px !important; border-radius: 6px !important; margin: 0 0 18px !important;
    background: var(--nm-blue-50) !important; color: var(--nm-blue) !important; box-shadow: none !important; font-size: 1.1rem !important;
}
.page-research .area-icon i { color: var(--nm-blue) !important; }
.page-research .area-title, .page-research .project-title, .page-research .collab-name { font-weight: 700 !important; color: var(--nm-ink) !important; text-align: left !important; }
.page-research .area-desc, .page-research .project-desc, .page-research .collab-desc { color: var(--nm-ink-2) !important; text-align: left !important; }
.page-research .contact-cta { background: var(--nm-blue) !important; border-radius: 0 !important; }
.page-research .cta-btn { border-radius: 4px !important; }

/* ---------- v3 Booking, Contact, Opportunities, Teaching bodies ---------- */
.page-booking .section-title, .page-teaching .section-title,
.page-contact main .text-center.mb-5, .page-teaching .section-header.text-center { text-align: left !important; }
.page-booking .section-title, .page-teaching .section-title, .page-contact main .text-center.mb-5 h2 {
    color: var(--nm-ink) !important; -webkit-text-fill-color: var(--nm-ink) !important; background: none !important;
    font-size: clamp(1.7rem, 2.8vw, 2.2rem) !important; font-weight: 700 !important;
}
.page-booking .section-title::after, .page-teaching .section-title::after { display: none !important; }
.page-teaching .section-header p, .page-contact main .text-center.mb-5 p { text-align: left !important; margin-left: 0 !important; }
.page-booking .step-card, .page-contact .contact-card, .page-opportunities .opportunity-card, .page-teaching .course-card {
    border-radius: 6px !important; box-shadow: none !important; border: 1px solid var(--nm-line) !important;
    border-top: 3px solid var(--nm-blue) !important; transform: none !important; background: #fff !important; text-align: left !important;
}
.page-booking .step-card:hover, .page-contact .contact-card:hover, .page-opportunities .opportunity-card:hover, .page-teaching .course-card:hover {
    box-shadow: 0 12px 30px rgba(13,27,62,0.10) !important;
}
.page-opportunities .opportunity-card { border-left: 1px solid var(--nm-line) !important; }
.page-booking .step-icon, .page-contact .contact-icon, .page-opportunities .opportunity-icon {
    border-radius: 6px !important; background: var(--nm-blue-50) !important; color: var(--nm-blue) !important; box-shadow: none !important; margin-left: 0 !important;
}
.page-booking .step-icon i, .page-contact .contact-icon i, .page-opportunities .opportunity-icon i { color: var(--nm-blue) !important; }
.page-teaching .course-header { background: var(--nm-band) !important; color: var(--nm-ink) !important; border-bottom: 1px solid var(--nm-line); border-radius: 0 !important; }
.page-teaching .course-header * { color: var(--nm-ink) !important; }
.page-booking .booking-cta, .page-teaching .apply-section { border-radius: 0 !important; }
.page-research .project-status { text-transform: none !important; letter-spacing: 0 !important; border-radius: 4px !important; }
.nm-topbar-links { align-items: center; }
.nm-topbar-links a.on { color: #fff; box-shadow: inset 0 -2px 0 var(--nm-amber); }
.nm-topbar-links a.nm-login { padding-left: 1.4rem; border-left: 1px solid rgba(255,255,255,0.2); }
@media (max-width: 991.98px) { .nm-topbar-links a.nm-login { padding-left: 0; border-left: 0; } }
/* Keep the main menu pinned while scrolling (an old style.css rule set .navbar to relative) */
.navbar.nm-nav { position: sticky !important; top: 0; z-index: 1030 !important; }

/* =====================================================================
   Shared page kit (Contact, Join us, Teaching, Gallery, Lab policies)
   ===================================================================== */
.pg-band { background: var(--nm-band); border-bottom: 1px solid var(--nm-line); padding: 64px 0 56px; }
.pg-band .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.pg-band h1 { font-size: clamp(2.1rem, 3.8vw, 3rem); font-weight: 700; letter-spacing: -0.025em; color: var(--nm-ink); margin-bottom: 0.9rem; }
.pg-band p { font-size: 1.08rem; line-height: 1.7; color: var(--nm-ink-2); margin: 0; max-width: 600px; }
.pg-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nm-blue); margin-bottom: 0.6rem; }
.pg-summary { background: #fff; border: 1px solid var(--nm-line); border-top: 3px solid var(--nm-blue); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.pg-summary > * { padding: 22px 20px; text-decoration: none; color: inherit; }
.pg-summary > * + * { border-left: 1px solid var(--nm-line); }
.pg-summary b { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; color: var(--nm-blue); line-height: 1; }
.pg-summary span { display: block; margin-top: 0.45rem; font-size: 0.86rem; color: var(--nm-ink-2); font-weight: 500; }
.pg-dark { background: var(--nm-deep); color: #fff; padding: 30px 32px; }
.pg-dark h2 { color: #fff; font-size: 1.3rem; margin: 0 0 1rem; }
.pg-sec { padding: 80px 0; scroll-margin-top: 80px; }
.pg-sec.band { background: var(--nm-band); }
.pg-head { margin-bottom: 36px; max-width: 680px; }
.pg-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); color: var(--nm-ink); margin: 0; }
.pg-head p { margin: 0.5rem 0 0; color: var(--nm-muted); }
.pg-card { background: #fff; border: 1px solid var(--nm-line); border-top: 3px solid var(--nm-blue); padding: 26px 28px; }
.pg-ic { width: 46px; height: 46px; border-radius: 6px; background: var(--nm-blue-50); color: var(--nm-blue); display: grid; place-items: center; font-size: 1.15rem; margin-bottom: 16px; }
.pg-check { list-style: none; padding: 0; margin: 0; }
.pg-check li { display: flex; gap: 0.65rem; padding: 0.4rem 0; color: var(--nm-ink-2); font-size: 0.93rem; line-height: 1.5; }
.pg-check li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--nm-blue); font-size: 0.78rem; margin-top: 0.2rem; }
.pg-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--nm-blue); color: #fff; font-weight: 600; padding: 0.75rem 1.25rem; border-radius: 4px; text-decoration: none; border: 0; }
.pg-btn:hover { background: var(--nm-blue-700); color: #fff; }
.pg-btn.light { background: #fff; color: var(--nm-ink); }
.pg-btn.light:hover { background: var(--nm-amber); color: var(--nm-ink); }
.pg-btn.line { background: transparent; color: var(--nm-blue); border: 1px solid #c3d2de; }
.pg-btn.line:hover { background: var(--nm-blue-50); }
.pg-cta { background: var(--nm-blue); color: #fff; padding: 64px 0; }
.pg-cta .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.pg-cta h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0 0 0.4rem; }
.pg-cta p { margin: 0; color: rgba(255,255,255,0.8); }
@media (max-width: 991.98px) { .pg-band .grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 575.98px) {
    .pg-band { padding: 44px 0 40px; }
    .pg-sec { padding: 56px 0; }
    .pg-summary > * { padding: 16px 14px; }
    .pg-summary b { font-size: 1.7rem; }
    .pg-dark { padding: 24px; }
}

/* Touch screens: give small text links a comfortable tap height */
@media (pointer: coarse) {
    .nm-topbar-links a { display: inline-flex; align-items: center; min-height: 36px; }
    .pb-meta .doi, .ct-reason button, .bk-list .hd a, .rs-head a, .pl-toc a, .ih-more { display: inline-flex; align-items: center; min-height: 40px; }
    .nm-footer li a { display: inline-block; padding: 4px 0; }
}
/* Sign-in / registration titles are now h1 for accessibility; keep their size */
.page-login main .card-header h1, .page-register main .card-header h1 { font-size: 1.9rem; font-weight: 700; color: var(--nm-ink) !important; margin: 0; }
.page-login main .card-header h1 i, .page-register main .card-header h1 i { display: none; }

/* =====================================================================
   Admin content manager (/admin/content)
   ===================================================================== */
.cm-wrap { padding-top: 36px; padding-bottom: 80px; }
.cm-crumbs { font-size: 0.88rem; color: var(--nm-muted); margin-bottom: 10px; }
.cm-crumbs a { color: var(--nm-blue); text-decoration: none; }
.cm-crumbs a:hover { text-decoration: underline; }
.cm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.cm-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--nm-ink); margin: 0; }
.cm-head p { margin: 0.4rem 0 0; color: var(--nm-muted); max-width: 720px; }
.cm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-btn { display: inline-flex; align-items: center; gap: 0.45rem; border: 1px solid #c3d2de; background: #fff; color: var(--nm-blue); font-weight: 600; font-size: 0.9rem; padding: 0.55rem 0.95rem; border-radius: 4px; text-decoration: none; cursor: pointer; }
.cm-btn:hover { background: var(--nm-blue-50); color: var(--nm-blue-700); }
.cm-btn.primary { background: var(--nm-blue); border-color: var(--nm-blue); color: #fff; }
.cm-btn.primary:hover { background: var(--nm-blue-700); }
.cm-btn.danger { color: #a33b30; border-color: #e7c3be; }
.cm-btn.danger:hover { background: #fbe9e7; }
.cm-btn.sm { padding: 0.35rem 0.6rem; font-size: 0.82rem; }
.cm-btn.icon { width: 34px; height: 34px; padding: 0; justify-content: center; }

.cm-group { margin-bottom: 34px; }
.cm-group h2 { font-size: 1.05rem; font-weight: 700; color: var(--nm-ink); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--nm-ink); }
.cm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cm-tile { background: #fff; border: 1px solid var(--nm-line); padding: 18px 18px 16px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, box-shadow .2s; }
.cm-tile:hover { border-color: var(--nm-blue); box-shadow: 0 8px 22px rgba(13,27,62,0.08); color: inherit; }
.cm-tile b { font-size: 1rem; color: var(--nm-ink); }
.cm-tile .meta { font-size: 0.8rem; color: var(--nm-muted); display: flex; justify-content: space-between; gap: 8px; }
.cm-tile .count { font-weight: 700; color: var(--nm-blue); }
.cm-tile .edited { color: #2f7a55; }

.cm-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cm-search { position: relative; width: 300px; max-width: 100%; }
.cm-search input { width: 100%; border: 1px solid #d5dae1; border-radius: 4px; padding: 0.5rem 0.8rem 0.5rem 2.2rem; font-size: 0.92rem; }
.cm-search i { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--nm-muted); font-size: 0.85rem; }
.cm-table { width: 100%; background: #fff; border: 1px solid var(--nm-line); border-collapse: collapse; }
.cm-table th { background: var(--nm-band); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--nm-muted); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--nm-line); }
.cm-table td { padding: 10px 12px; border-bottom: 1px solid var(--nm-line); vertical-align: middle; font-size: 0.92rem; color: var(--nm-ink-2); }
.cm-table tr:last-child td { border-bottom: 0; }
.cm-table tr:hover td { background: #fafbfc; }
.cm-table td.main { color: var(--nm-ink); font-weight: 600; }
.cm-table td.main a { color: var(--nm-ink); text-decoration: none; }
.cm-table td.main a:hover { color: var(--nm-blue); text-decoration: underline; }
.cm-table .thumb { width: 56px; height: 42px; object-fit: cover; background: var(--nm-band); display: block; border-radius: 3px; }
.cm-table .num { width: 36px; color: var(--nm-muted); font-variant-numeric: tabular-nums; }
.cm-table .ops { white-space: nowrap; text-align: right; }
.cm-table .ops form { display: inline; }
.cm-empty { padding: 40px; text-align: center; color: var(--nm-muted); background: #fff; border: 1px dashed var(--nm-line); }
.cm-note { font-size: 0.85rem; color: var(--nm-muted); margin-top: 10px; }

.cm-form { background: #fff; border: 1px solid var(--nm-line); border-top: 3px solid var(--nm-blue); padding: 28px 30px; max-width: 860px; }
.cm-field { margin-bottom: 20px; }
.cm-field > label, .cm-field .lbl { display: block; font-weight: 600; font-size: 0.9rem; color: var(--nm-ink); margin-bottom: 0.35rem; }
.cm-field .req { color: #b9473b; }
.cm-field input[type=text], .cm-field input[type=url], .cm-field input[type=email], .cm-field input[type=number], .cm-field select, .cm-field textarea {
    width: 100%; border: 1px solid #d5dae1; border-radius: 4px; padding: 0.6rem 0.8rem; font-size: 0.95rem; color: var(--nm-ink); background: #fff; }
.cm-field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.cm-field input:focus, .cm-field select:focus, .cm-field textarea:focus { outline: none; border-color: var(--nm-blue); box-shadow: 0 0 0 3px rgba(47,95,128,0.15); }
.cm-field .help { font-size: 0.82rem; color: var(--nm-muted); margin-top: 0.3rem; }
.cm-check { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 0.92rem; color: var(--nm-ink); cursor: pointer; }
.cm-check input { width: 18px; height: 18px; accent-color: var(--nm-blue); }
.cm-image { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; background: var(--nm-band); padding: 14px; border: 1px solid var(--nm-line); }
.cm-image .pv { width: 160px; height: 120px; object-fit: cover; background: #e3e7ec; border: 1px solid var(--nm-line); }
.cm-image .pv.none { display: grid; place-items: center; color: var(--nm-muted); font-size: 0.82rem; }
.cm-image .ctl { display: grid; gap: 8px; font-size: 0.86rem; }
.cm-image .ctl input[type=text] { font-size: 0.85rem; padding: 0.45rem 0.6rem; }
.cm-formbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 8px; border-top: 1px solid var(--nm-line); margin-top: 8px; }
.cm-formbar .spacer { flex: 1; }
.cm-hist { background: #fff; border: 1px solid var(--nm-line); }
.cm-hist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--nm-line); font-size: 0.92rem; }
.cm-hist li:last-child { border-bottom: 0; }
.cm-hist small { color: var(--nm-muted); display: block; }
@media (max-width: 575.98px) {
    .cm-form { padding: 20px 16px; }
    .cm-image { grid-template-columns: 1fr; }
    .cm-table .hide-sm { display: none; }
}

/* =====================================================================
   DAS Wiki (/wiki) — private knowledge base
   ===================================================================== */
.wk-top { background: var(--nm-deep); color: #fff; padding: 40px 0 36px; }
.wk-top .row1 { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.wk-top .brand { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nm-amber); }
.wk-top h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0.3rem 0 0.4rem; }
.wk-top p { color: rgba(255,255,255,0.75); margin: 0; }
.wk-top .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.wk-top .acts a { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.92rem; padding: 0.6rem 1rem; border-radius: 4px; text-decoration: none; }
.wk-top .acts .a1 { background: var(--nm-amber); color: var(--nm-ink); }
.wk-top .acts .a1:hover { background: #efbb63; }
.wk-top .acts .a2 { color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.wk-top .acts .a2:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.wk-search { position: relative; margin-top: 24px; max-width: 720px; }
.wk-search input { width: 100%; border: 0; border-radius: 6px; padding: 0.95rem 1rem 0.95rem 3rem; font-size: 1.02rem; color: var(--nm-ink); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.wk-search input:focus { outline: 3px solid var(--nm-amber); }
.wk-search i { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); color: var(--nm-muted); }
.wk-search kbd { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); background: var(--nm-band); color: var(--nm-muted); border: 1px solid var(--nm-line); font-size: 0.75rem; padding: 0.1rem 0.4rem; border-radius: 3px; }

.wk-body { padding: 36px 0 80px; }
.wk-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.wk-h2 { font-size: 1.1rem; font-weight: 700; color: var(--nm-ink); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--nm-ink); display: flex; justify-content: space-between; align-items: baseline; }
.wk-h2 a { font-size: 0.86rem; font-weight: 600; color: var(--nm-blue); text-decoration: none; }
.wk-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 32px; }
.wk-cat { display: grid; grid-template-columns: 42px 1fr; gap: 2px 12px; background: #fff; border: 1px solid var(--nm-line); padding: 16px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.wk-cat:hover { border-color: var(--nm-blue); box-shadow: 0 8px 22px rgba(13,27,62,0.08); color: inherit; }
.wk-cat .ic { grid-row: span 3; width: 42px; height: 42px; border-radius: 6px; background: var(--nm-blue-50); color: var(--nm-blue); display: grid; place-items: center; }
.wk-cat b { color: var(--nm-ink); font-size: 0.98rem; }
.wk-cat p { margin: 0; font-size: 0.82rem; color: var(--nm-muted); line-height: 1.45; }
.wk-cat small { color: var(--nm-blue); font-weight: 700; font-size: 0.8rem; margin-top: 4px; }
.wk-list { list-style: none; margin: 0 0 28px; padding: 0; background: #fff; border: 1px solid var(--nm-line); }
.wk-list li { border-bottom: 1px solid var(--nm-line); }
.wk-list li:last-child { border-bottom: 0; }
.wk-list a.row { display: flex; gap: 14px; align-items: flex-start; padding: 13px 16px; text-decoration: none; color: inherit; }
.wk-list a.row:hover { background: #fafbfc; }
.wk-list .ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 6px; background: var(--nm-band); color: var(--nm-blue); display: grid; place-items: center; font-size: 0.85rem; }
.wk-list b { display: block; color: var(--nm-ink); font-size: 0.96rem; }
.wk-list span.sub { display: block; font-size: 0.82rem; color: var(--nm-muted); }
.wk-list .snip { display: block; font-size: 0.86rem; color: var(--nm-ink-2); margin-top: 3px; line-height: 1.5; }
.wk-list mark { background: #fff1c9; padding: 0; }
.wk-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0.12rem 0.45rem; border-radius: 3px; vertical-align: middle; margin-left: 6px; }
.wk-badge.draft { background: var(--nm-amber-50); color: var(--nm-amber-700); }
.wk-badge.question { background: #fbe9e7; color: #a33b30; }
.wk-badge.answered { background: #e6f2ec; color: #2f7a55; }
.wk-badge.pinned { background: var(--nm-blue-50); color: var(--nm-blue); }
.wk-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.wk-box { background: #fff; border: 1px solid var(--nm-line); padding: 18px 20px; font-size: 0.88rem; color: var(--nm-ink-2); }
.wk-box h3 { font-size: 0.98rem; font-weight: 700; color: var(--nm-ink); margin: 0 0 10px; }
.wk-box ul { margin: 0; padding-left: 1.1rem; }
.wk-box li { margin-bottom: 6px; }
.wk-box a { color: var(--nm-blue); }
.wk-box .big { font-size: 1.9rem; font-weight: 800; color: var(--nm-blue); line-height: 1; }
.wk-empty { padding: 36px; text-align: center; color: var(--nm-muted); background: #fff; border: 1px dashed var(--nm-line); }

/* page */
.wk-page { display: grid; grid-template-columns: 230px minmax(0, 1fr) 260px; gap: 36px; align-items: start; }
.wk-toc { position: sticky; top: 90px; font-size: 0.86rem; }
.wk-toc h4, .wk-meta h4 { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nm-muted); margin: 0 0 8px; }
.wk-toc a { display: block; padding: 5px 0 5px 10px; color: var(--nm-ink-2); text-decoration: none; border-left: 2px solid var(--nm-line); }
.wk-toc a.h3 { padding-left: 22px; font-size: 0.82rem; }
.wk-toc a:hover, .wk-toc a.on { color: var(--nm-blue); border-left-color: var(--nm-blue); }
.wk-crumbs { font-size: 0.86rem; color: var(--nm-muted); margin-bottom: 8px; }
.wk-crumbs a { color: var(--nm-blue); text-decoration: none; }
.wk-title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: var(--nm-ink); margin: 0 0 10px; }
.wk-by { font-size: 0.85rem; color: var(--nm-muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.wk-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--nm-line); }
.wk-notice { padding: 12px 16px; margin-bottom: 22px; font-size: 0.92rem; border-left: 3px solid; }
.wk-notice.draft { background: var(--nm-amber-50); border-color: var(--nm-amber); color: #6b4a10; }
.wk-notice.question { background: #fbe9e7; border-color: #b9473b; color: #7d2f26; }
.wk-notice.deleted { background: #eef0f3; border-color: #59636e; color: #3a4854; }
.wk-meta { position: sticky; top: 90px; display: grid; gap: 16px; }
.wk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-tags a { font-size: 0.8rem; font-weight: 600; color: var(--nm-blue); background: var(--nm-blue-50); padding: 0.2rem 0.55rem; border-radius: 3px; text-decoration: none; }

/* rendered markdown */
.md { color: var(--nm-ink-2); font-size: 1rem; line-height: 1.75; }
.md h2 { font-size: 1.45rem; color: var(--nm-ink); margin: 2rem 0 0.7rem; padding-bottom: 6px; border-bottom: 1px solid var(--nm-line); scroll-margin-top: 90px; }
.md h3 { font-size: 1.15rem; color: var(--nm-ink); margin: 1.5rem 0 0.5rem; scroll-margin-top: 90px; }
.md h2:first-child { margin-top: 0; }
.md p { margin: 0 0 1rem; }
.md ul, .md ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.md li { margin-bottom: 0.3rem; }
.md li input[type=checkbox] { margin-right: 6px; accent-color: var(--nm-blue); }
.md a { color: var(--nm-blue); }
.md img { max-width: 100%; height: auto; border: 1px solid var(--nm-line); border-radius: 4px; margin: 0.5rem 0; }
.md table { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; font-size: 0.93rem; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--nm-line); padding: 8px 12px; text-align: left; vertical-align: top; }
.md th { background: var(--nm-band); color: var(--nm-ink); font-weight: 700; }
.md code { background: var(--nm-band); color: #8f3a30; padding: 1px 5px; border-radius: 3px; font-size: 0.88em; }
.md pre { background: var(--nm-deep); color: #e6edf3; padding: 14px 16px; border-radius: 6px; overflow-x: auto; font-size: 0.88rem; }
.md pre code { background: none; color: inherit; padding: 0; }
.md blockquote { margin: 0 0 1rem; padding: 12px 16px; background: var(--nm-band); border-left: 3px solid var(--nm-blue); color: var(--nm-ink); }
.md blockquote.warn { background: #fbe9e7; border-color: #b9473b; }
.md blockquote.todo { background: var(--nm-amber-50); border-color: var(--nm-amber); }
.md blockquote p:last-child { margin: 0; }
.md hr { border: 0; border-top: 1px solid var(--nm-line); margin: 2rem 0; }

/* editor */
.wk-edit { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.wk-form { background: #fff; border: 1px solid var(--nm-line); border-top: 3px solid var(--nm-blue); padding: 24px; }
.wk-form .cm-field { margin-bottom: 16px; }
.wk-tool { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--nm-band); border: 1px solid #d5dae1; border-bottom: 0; border-radius: 4px 4px 0 0; }
.wk-tool button { border: 1px solid transparent; background: transparent; color: var(--nm-ink-2); height: 32px; min-width: 32px; padding: 0 8px; border-radius: 4px; font-size: 0.86rem; font-weight: 600; }
.wk-tool button:hover { background: #fff; border-color: var(--nm-line); color: var(--nm-blue); }
.wk-tool .sep { width: 1px; background: #d5dae1; margin: 4px 4px; }
.wk-tool .tab { margin-left: auto; }
.wk-tool .tab.on { background: var(--nm-blue); color: #fff; }
#wkBody { width: 100%; min-height: 460px; border: 1px solid #d5dae1; border-radius: 0 0 4px 4px; padding: 14px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.9rem; line-height: 1.6; resize: vertical; }
#wkBody:focus { outline: none; border-color: var(--nm-blue); }
#wkBody.drag { border-color: var(--nm-amber); background: var(--nm-amber-50); }
#wkPreview { display: none; min-height: 460px; border: 1px solid #d5dae1; border-radius: 0 0 4px 4px; padding: 18px; background: #fff; }
.wk-help code { background: var(--nm-band); padding: 0 4px; border-radius: 3px; font-size: 0.82rem; }
.wk-help li { margin-bottom: 8px; }

/* history diff */
.wk-diff { background: #fff; border: 1px solid var(--nm-line); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.84rem; overflow-x: auto; }
.wk-diff div { padding: 2px 12px; white-space: pre-wrap; word-break: break-word; }
.wk-diff .add { background: #e6f2ec; color: #1f5a3c; }
.wk-diff .add::before { content: "+ "; }
.wk-diff .del { background: #fbe9e7; color: #7d2f26; text-decoration: line-through; }
.wk-diff .del::before { content: "− "; }
.wk-diff .hunk { background: var(--nm-band); color: var(--nm-muted); }
.wk-diff .same { color: var(--nm-muted); }

@media (max-width: 1199.98px) { .wk-page { grid-template-columns: minmax(0,1fr) 250px; } .wk-toc { display: none; } }
@media (max-width: 991.98px) {
    .wk-grid2, .wk-page, .wk-edit { grid-template-columns: minmax(0,1fr); }
    .wk-side, .wk-meta { position: static; }
}

/* =====================================================================
   v4 · Booking-portal palette (owner's request, 2 Dec 2026)
   Night navy headers, royal blue, blue→violet accent, pure white body,
   rounded white cards with soft shadows. Later rules override earlier ones.
   ===================================================================== */
:root {
    --nm-ink: #0d1b2a; --nm-ink-2: #37474f; --nm-muted: #6b7a89;
    --nm-line: #e8edf5; --nm-band: #f6f8fc; --nm-paper: #ffffff; --nm-surface: #ffffff;
    --nm-blue: #1565c0; --nm-blue-600: #1976d2; --nm-blue-700: #0d47a1; --nm-blue-50: #e8f1fc;
    --nm-amber: #7c4dff; --nm-amber-700: #5e35b1; --nm-amber-50: #f1ecff;      /* accent is now violet */
    --nm-cyan: #4fc3f7; --nm-violet: #7c4dff;
    --nm-deep: #0d1b2a;
    --nm-hero-bg: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.4px) 0 0 / 34px 34px,
                  radial-gradient(rgba(144,202,249,0.10) 1px, transparent 1.4px) 17px 17px / 34px 34px,
                  linear-gradient(135deg, #0a0a1a 0%, #0d1b2a 35%, #1b2838 65%, #0f3460 100%);
    --nm-royal: linear-gradient(135deg, #0d47a1 0%, #1565c0 60%, #1976d2 100%);
    --nm-accent-grad: linear-gradient(135deg, #4fc3f7 0%, #7c4dff 100%);
    --nm-title-grad: linear-gradient(90deg, #1565c0, #7c4dff);
    --nm-card-shadow: 0 4px 20px rgba(13, 27, 62, 0.08);
    --nm-card-shadow-hover: 0 14px 36px rgba(13, 27, 62, 0.14);
    --bs-primary: #1565c0; --bs-primary-rgb: 21, 101, 192; --bs-link-color: #1565c0; --bs-link-color-rgb: 21, 101, 192;
    --bs-body-color: #37474f; --bs-body-bg: #ffffff;
}
body { background: #fff; }

/* Chrome: night navy like the portal */
.nm-topbar { background: #0a0a1a; }
.nm-footer { background: linear-gradient(135deg, #0a0a1a 0%, #0d1b2a 50%, #12263a 100%); }
.nm-nav .nav-link.active::after { background: var(--nm-title-grad); }
.nm-topbar-links a.on { box-shadow: inset 0 -2px 0 var(--nm-cyan); }

/* Primary buttons: royal blue / portal gradient */
.btn-primary, .cm-btn.primary, .pg-btn:not(.light):not(.line), .nm-btn-blue {
    background: var(--nm-royal) !important; border-color: transparent !important; color: #fff !important; }
.btn-primary:hover, .cm-btn.primary:hover, .pg-btn:not(.light):not(.line):hover, .nm-btn-blue:hover { filter: brightness(1.08); }
/* Light buttons on dark panels: hover turns into the portal's cyan→violet button */
.ih-btn-light:hover, .pg-btn.light:hover, .bk-btn:hover, .fc-cta .b1:hover, .tm-join a:hover, .rs-cta a:hover, .pt-cta a:hover, .nm-btn-amber:hover {
    background: var(--nm-accent-grad) !important; color: #fff !important; }
.nm-nav .nm-nav-cta, .wk-top .acts .a1, .nm-btn-amber { background: var(--nm-accent-grad) !important; color: #fff !important; box-shadow: 0 4px 15px rgba(79,195,247,0.25); }
.ih-kicker, .home-hero .nm-eyebrow { color: #90caf9 !important; }

/* Page title bands: dark starry gradient, white text (portal hero) */
.pt-band, .pb-band, .tm-band, .fc-band, .rs-band, .bk-band, .pg-band { background: var(--nm-hero-bg) !important; border-bottom: 0 !important; }
.pt-band h1, .pb-band h1, .tm-band h1, .fc-band h1, .rs-band h1, .bk-band h1, .pg-band h1 {
    color: #fff !important; background: linear-gradient(135deg, #ffffff 0%, #bbdefb 55%, #81d4fa 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pt-band p, .pb-band p, .tm-band p, .fc-band p, .rs-band p, .bk-band p, .pg-band p { color: rgba(255,255,255,0.78) !important; }
.pt-label, .pb-label, .tm-label, .fc-label, .rs-label, .bk-label, .pg-label { color: #90caf9 !important; }
.pg-band .pl-chips span, .pg-band .jn-jump a { background: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.18) !important; color: #fff !important; }
.pg-band .pl-chips i { color: #90caf9 !important; }
/* summary panels on the dark band: portal-style royal-blue stat card */
.pt-summary, .pb-summary, .tm-summary, .fc-summary, .rs-summary, .pg-summary {
    background: var(--nm-royal) !important; border: 0 !important; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.pt-summary > *, .pb-summary > *, .tm-summary > *, .fc-summary > *, .rs-summary > *, .pg-summary > * { border-color: rgba(255,255,255,0.15) !important; }
.pt-summary b, .pb-summary b, .tm-summary b, .fc-summary b, .rs-summary b, .pg-summary b { color: #fff !important; }
.pt-summary span, .pb-summary span, .tm-summary span, .fc-summary span, .rs-summary span, .pg-summary span {
    color: rgba(255,255,255,0.85) !important; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.74rem !important; font-weight: 600 !important; }
.tm-summary a:hover, .fc-summary a:hover, .rs-summary a:hover { background: rgba(255,255,255,0.08) !important; }
.pg-dark, .pl-emerg { border-radius: 16px; }
.pg-band .pg-dark { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(6px); }

/* White, rounded cards with soft shadows */
.pg-card, .rs-proj, .rs-org, .tm-card, .tm-pi, .tm-adv, .pt-card, .ih-card, .bk-list, .bk-rule, .wc-tile, .cm-tile, .wk-cat, .wk-list, .wk-box,
.pl-box, .tc-course, .ct-form, .ct-map, .pb-item-wrap, .cm-form, .wk-form, .cm-table, .cm-hist, .rs-slides, .pl-ladder, .wc-steps, .wc-box {
    border-radius: 14px !important; border: 1px solid var(--nm-line) !important; box-shadow: var(--nm-card-shadow) !important; overflow: hidden; background: #fff; }
.pg-card:hover, .rs-proj:hover, .rs-org:hover, .tm-card:hover, .pt-card:hover, .ih-card:hover, .wc-tile:hover, .wk-cat:hover, .tc-course:hover {
    box-shadow: var(--nm-card-shadow-hover) !important; transform: translateY(-3px); }
.pg-card, .rs-proj, .tm-pi, .pt-card, .ct-form, .cm-form, .wk-form, .jn-card { border-top-width: 1px !important; }
.pt-card.granted-card { box-shadow: inset 0 3px 0 #2f7a55, var(--nm-card-shadow) !important; }
.pt-card.filed-card { box-shadow: inset 0 3px 0 var(--nm-violet), var(--nm-card-shadow) !important; }
.wc-quick, .wk-top { background: var(--nm-hero-bg) !important; }
.wc-quick { border-radius: 16px; }
.pg-ic, .wk-cat .ic, .wc-tile .ic, .rs-area .ic, .tm-card .ph img { }
.pg-ic, .wk-cat .ic, .wc-tile .ic, .rs-area .ic { background: linear-gradient(135deg, #e3f2fd, #d6e8fb) !important; color: var(--nm-blue) !important; border-radius: 12px !important; }
.pb-hcard { border-radius: 16px; background: var(--nm-hero-bg) !important; }
.pb-hcard .j { color: #90caf9 !important; }
.fc-back { background: linear-gradient(160deg, #0d1b2a 0%, #0f3460 100%) !important; }
.fc-back li::before { color: var(--nm-cyan) !important; }
.tm-join, .pt-cta, .fc-cta, .ih-cta, .rs-cta, .pg-cta, .bk-cta { background: var(--nm-royal) !important; }
.tm-join, .pt-cta, .fc-cta { border-radius: 16px; }
.ih-section.band, .pg-sec.band, .rs-sec.band { background: var(--nm-band) !important; }

/* Section titles get the portal's blue→violet underline */
.ih-head h2, .pg-head h2, .rs-head h2, .pb-hl h2, .pb-list-head h2, .tm-sec > .container > h2, .nm-section-head h2 { position: relative; padding-bottom: 14px; }
.ih-head h2::after, .pg-head h2::after, .rs-head h2::after, .pb-hl h2::after, .pb-list-head h2::after, .tm-sec > .container > h2::after, .nm-section-head h2::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--nm-title-grad); }
.ih-label, .pg-label, .rs-label { color: var(--nm-blue) !important; }
.pg-band .pg-label, .rs-band .rs-label { color: #90caf9 !important; }

/* v4 fix: summary panels fit their side column without breaking words */
.pt-summary, .pb-summary, .tm-summary, .fc-summary, .rs-summary, .pg-summary { min-width: 0; }
.pt-summary > *, .pb-summary > *, .tm-summary > *, .fc-summary > *, .rs-summary > *, .pg-summary > * { min-width: 0; }
/* four stats: always a 2 x 2 card */
.grid > .tm-summary, .grid > .fc-summary, .grid > .pb-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid > .tm-summary > *, .grid > .fc-summary > *, .grid > .pb-summary > * { border-left: 0 !important; border-bottom: 0 !important; }
.grid > .tm-summary > :nth-child(odd), .grid > .fc-summary > :nth-child(odd), .grid > .pb-summary > :nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.15) !important; }
.grid > .tm-summary > :nth-child(-n+2), .grid > .fc-summary > :nth-child(-n+2), .grid > .pb-summary > :nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.15) !important; }
.grid > .tm-summary > *, .grid > .fc-summary > *, .grid > .pb-summary > * { padding: 18px 22px; }
/* three stats: rows on phones */
@media (max-width: 575.98px) {
  .grid > .pt-summary, .grid > .rs-summary, .grid > .pg-summary { grid-template-columns: 1fr; }
  .grid > .pt-summary > *, .grid > .rs-summary > *, .grid > .pg-summary > * { display: flex; align-items: baseline; gap: 14px; padding: 14px 20px; border-left: 0 !important; }
  .grid > .pt-summary > * + *, .grid > .rs-summary > * + *, .grid > .pg-summary > * + * { border-top: 1px solid rgba(255,255,255,0.15) !important; }
  .grid > .pt-summary span, .grid > .rs-summary span, .grid > .pg-summary span { margin-top: 0 !important; }
}

/* v4 portal skin for the internal tool pages (inventory, users, lists) */
main .nm-app { max-width: 1320px; margin-left: auto; margin-right: auto; padding: 8px 24px 56px !important; }
@media (max-width: 575.98px) { main .nm-app { padding-left: 16px !important; padding-right: 16px !important; } }
main .nm-app h2 { font-weight: 800; color: var(--nm-ink); letter-spacing: -0.02em; }
main .nm-app h2 i { background: var(--nm-accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
main .nm-app .card { border: 1px solid var(--nm-line) !important; border-radius: 14px !important; box-shadow: 0 2px 10px rgba(13,27,62,0.05) !important; overflow: hidden; }
main .nm-app .card-header { background: #fff !important; border-bottom: 1px solid var(--nm-line) !important; font-weight: 700; }
main .nm-app .card-footer { background: rgba(0,0,0,0.04); border-top: 1px solid rgba(0,0,0,0.06); }
/* coloured stat cards become one royal family */
main .nm-app .card.bg-primary, main .nm-app .card.bg-success, main .nm-app .card.bg-info, main .nm-app .card.bg-warning, main .nm-app .card.bg-danger, main .nm-app .card.bg-secondary, main .nm-app .card.bg-dark {
    background: var(--nm-royal) !important; border: 0 !important; color: #fff !important; box-shadow: 0 10px 28px rgba(13,71,161,0.25) !important; transition: transform .2s; }
main .nm-app .card.bg-primary:hover, main .nm-app .card.bg-success:hover, main .nm-app .card.bg-info:hover, main .nm-app .card.bg-warning:hover, main .nm-app .card.bg-danger:hover { transform: translateY(-2px); }
main .nm-app .card.bg-primary *, main .nm-app .card.bg-success *, main .nm-app .card.bg-info *, main .nm-app .card.bg-warning *, main .nm-app .card.bg-danger *, main .nm-app .card.bg-secondary * { color: #fff !important; }
main .nm-app .card[class*="bg-"] .card-footer { background: rgba(255,255,255,0.1) !important; border-top: 1px solid rgba(255,255,255,0.15) !important; }
main .nm-app .card[class*="bg-"] .fa-2x { opacity: .45; }
main .nm-app .card.border-left-primary, main .nm-app .card[class*="border-left"] { border-left-width: 1px !important; }
/* buttons */
main .nm-app .btn { border-radius: 10px; font-weight: 600; }
main .nm-app .btn-primary, main .nm-app .btn-info, main .nm-app .btn-success:not(.btn-sm) { background: var(--nm-royal) !important; border: 0 !important; color: #fff !important; }
main .nm-app .btn-primary:hover, main .nm-app .btn-info:hover, main .nm-app .btn-success:not(.btn-sm):hover { background: var(--nm-accent-grad) !important; }
main .nm-app .btn-outline-primary, main .nm-app .btn-outline-success, main .nm-app .btn-outline-secondary { border-color: var(--nm-line); color: var(--nm-blue); background: #fff; }
main .nm-app .btn-outline-primary:hover, main .nm-app .btn-outline-success:hover, main .nm-app .btn-outline-secondary:hover { background: var(--nm-blue); border-color: var(--nm-blue); color: #fff; }
main .nm-app .dropdown-menu { border-radius: 12px; border: 1px solid var(--nm-line); box-shadow: 0 12px 30px rgba(13,27,62,0.12); padding: 6px; }
main .nm-app .dropdown-item { border-radius: 8px; padding: .5rem .8rem; }
main .nm-app .dropdown-item i { color: var(--nm-blue); width: 18px; }
/* tables, tabs, inputs */
main .nm-app .table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--nm-muted); font-weight: 700; border-bottom: 1px solid var(--nm-line); background: #f5f8fd; }
main .nm-app .table-dark th, main .nm-app thead.table-dark th { background: #f5f8fd !important; color: var(--nm-muted) !important; }
main .nm-app .table td { vertical-align: middle; border-color: var(--nm-line); }
main .nm-app .table-hover tbody tr:hover { background: #f5f8fd; }
main .nm-app .nav-tabs { border-bottom: 1px solid var(--nm-line); }
main .nm-app .nav-tabs .nav-link { border: 0; color: var(--nm-muted); font-weight: 600; }
main .nm-app .nav-tabs .nav-link.active { color: var(--nm-blue); border-bottom: 2px solid var(--nm-blue) !important; background: transparent; }
main .nm-app .form-control, main .nm-app .form-select { border-radius: 10px; border-color: var(--nm-line); }
main .nm-app .form-control:focus, main .nm-app .form-select:focus { border-color: #90caf9; box-shadow: 0 0 0 3px rgba(21,101,192,0.12); }
main .nm-app .badge { border-radius: 999px; font-weight: 600; }

/* v4 fixes: wiki rows are not Bootstrap grid rows; logged-in nav fits; no white strip above dark admin header */
.wk-list a.row { margin-left: 0; margin-right: 0; flex-wrap: nowrap; }
.wk-list a.row > * { width: auto; max-width: none; padding: 0; margin-top: 0; min-width: 0; }
.wk-list a.row > :last-child { flex: 1 1 auto; overflow-wrap: anywhere; }
@media (min-width: 1200px) {
    .nm-nav:has(.nav-item.dropdown) .nav-link { padding-left: 0.55rem !important; padding-right: 0.55rem !important; }
    .nm-nav:has(.nav-item.dropdown) .nav-link.active::after { left: 0.55rem; right: 0.55rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .nm-nav:has(.nav-item.dropdown) .nav-link { padding-left: 0.35rem !important; padding-right: 0.35rem !important; font-size: 0.82rem; }
}
.page-admin_dashboard main { padding-top: 0 !important; }

/* =====================================================================
   v5 · No purple (owner, 2 Dec 2026): accent is sky blue, matching the
   royal/navy theme; navbar is night navy with the light logo.
   ===================================================================== */
:root {
    --nm-amber: #1e88e5; --nm-amber-700: #0d47a1; --nm-amber-50: #e3f2fd;
    --nm-violet: #1e88e5; --nm-sky: #64b5f6;
    --nm-accent-grad: linear-gradient(135deg, #1565c0 0%, #29b6f6 100%);
    --nm-title-grad: linear-gradient(90deg, #0d47a1, #1e88e5);
}
/* icons sitting on dark panels use the bright sky blue */
.wc-quick i, .wk-top i, .ad-top i, .pg-band i, .ih-hero i, .nm-footer i, .pg-dark i { color: var(--nm-sky); }
.wc-quick a:hover i { color: #fff; }

/* Navbar: night navy, white links, sky underline */
.nm-topbar { background: #070d1a !important; border-bottom: 1px solid rgba(255,255,255,0.06); }
.navbar.nm-nav {
    background: linear-gradient(90deg, #0a1426 0%, #0d1b2a 45%, #0f2a4f 100%) !important;
    border-bottom: 0 !important; box-shadow: 0 6px 24px rgba(5,12,28,0.35) !important; }
.navbar.nm-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #1565c0, #29b6f6, #1565c0); opacity: .8; }
.nm-nav .nm-brand-text { border-left-color: rgba(255,255,255,0.18) !important; }
.nm-nav .nm-brand-text strong { color: #fff !important; }
.nm-nav .nm-brand-text span { color: rgba(255,255,255,0.65) !important; }
.nm-nav .nav-link { color: rgba(255,255,255,0.86) !important; }
.nm-nav .nav-link:hover, .nm-nav .nav-link:focus { color: #fff !important; }
.nm-nav .nav-link.active { color: #fff !important; }
.nm-nav .nav-link.active::after { background: linear-gradient(90deg, #29b6f6, #64b5f6) !important; height: 3px; border-radius: 3px 3px 0 0; }
.nm-nav .nav-link i { color: var(--nm-sky); }
.nm-nav .navbar-toggler { border-color: rgba(255,255,255,0.3) !important; }
.nm-nav .navbar-toggler-icon { filter: invert(1) brightness(2); }
.nm-nav .dropdown-menu { border-radius: 12px; border: 1px solid var(--nm-line); box-shadow: 0 14px 34px rgba(5,12,28,0.25); }
.nm-nav .dropdown-menu .dropdown-item i { color: var(--nm-blue); }
@media (max-width: 991.98px) {
    .nm-nav .navbar-collapse { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 8px; padding-top: 6px; }
    .nm-nav .nav-link.active::after { display: none; }
    .nm-nav .nav-link.active { color: var(--nm-sky) !important; }
}

/* Wiki downloads (page attachments + in-text file chips) */
.wk-dl { margin-top: 40px; background: #fff; border: 1px solid var(--nm-line); border-radius: 14px; box-shadow: var(--nm-card-shadow); overflow: hidden; }
.wk-dl-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--nm-line); background: linear-gradient(180deg, #f5f9ff, #fff); }
.wk-dl-head h2 { font-size: 1.15rem; font-weight: 800; color: var(--nm-ink); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.wk-dl-head h2 i { width: 34px; height: 34px; border-radius: 10px; background: var(--nm-accent-grad); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.wk-dl-head h2 span { background: var(--nm-blue-50); color: var(--nm-blue); font-size: .75rem; padding: 2px 9px; border-radius: 999px; }
.wk-dl-head p { margin: 0; color: var(--nm-muted); font-size: .88rem; }
.wk-dl-list { list-style: none; margin: 0; padding: 0; }
.wk-dl-list li { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--nm-line); }
.wk-dl-list li:hover { background: #f8fbff; }
.wk-dl-list .fi { position: relative; width: 46px; height: 52px; flex: 0 0 46px; border-radius: 10px; background: var(--nm-blue-50); color: var(--nm-blue); display: grid; place-items: center; font-size: 1.35rem; text-decoration: none; }
.wk-dl-list .fi em { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--nm-royal); color: #fff; font-style: normal; font-size: .58rem; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 6px; max-width: 54px; overflow: hidden; }
.wk-dl-list .tx { flex: 1; min-width: 0; }
.wk-dl-list .nm { display: block; font-weight: 700; color: var(--nm-ink); text-decoration: none; overflow-wrap: anywhere; }
.wk-dl-list .nm:hover { color: var(--nm-blue); }
.wk-dl-list .tx p { margin: 2px 0 0; font-size: .86rem; color: var(--nm-ink-2); }
.wk-dl-list .tx small { color: var(--nm-muted); font-size: .78rem; }
.wk-dl-list .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.wk-dl-list .acts form { margin: 0; }
.wk-dl-empty { padding: 18px 22px; color: var(--nm-muted); font-size: .9rem; border-bottom: 1px solid var(--nm-line); }
.wk-dl-add { padding: 18px 22px 20px; background: #fbfcfe; }
.wk-dl-add .drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border: 2px dashed #c5d6ea; border-radius: 12px; background: #fff; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; margin: 0; }
.wk-dl-add .drop:hover, .wk-dl-add .drop.over { border-color: var(--nm-blue); background: var(--nm-blue-50); }
.wk-dl-add .drop.has { border-style: solid; border-color: var(--nm-blue); }
.wk-dl-add .drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wk-dl-add .drop i { font-size: 1.6rem; color: var(--nm-blue); }
.wk-dl-add .drop b { color: var(--nm-ink); font-size: .95rem; overflow-wrap: anywhere; }
.wk-dl-add .drop small { color: var(--nm-muted); font-size: .78rem; }
.wk-dl-add .row2 { display: flex; gap: 10px; margin-top: 12px; }
.wk-dl-add .row2 input { flex: 1; min-width: 0; border: 1px solid var(--nm-line); border-radius: 10px; padding: .55rem .8rem; font-size: .9rem; }
.wk-dl-add .row2 button:disabled { opacity: .5; cursor: not-allowed; }
.wk-dl-msg { color: #c62828; font-size: .85rem; margin-top: 8px; }
.wk-dl-msg:empty { display: none; }
.wk-dl-mini { list-style: none; padding: 0 !important; margin: 0 0 6px !important; }
.wk-dl-mini a { display: flex; gap: 8px; align-items: baseline; overflow-wrap: anywhere; }
.wk-dl-mini i { color: var(--nm-blue); }
.md a.wk-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin: 2px 0; border: 1px solid #c5d6ea; border-radius: 10px; background: #f5f9ff; color: var(--nm-ink) !important; text-decoration: none !important; font-weight: 600; font-size: .92rem; max-width: 100%; }
.md a.wk-chip:hover { border-color: var(--nm-blue); background: var(--nm-blue-50); }
.md a.wk-chip i { color: var(--nm-blue); }
.md a.wk-chip span { overflow-wrap: anywhere; }
.md a.wk-chip b { font-size: .65rem; background: var(--nm-royal); color: #fff; padding: 1px 6px; border-radius: 6px; }
.md a.wk-chip .dl { color: var(--nm-muted); font-size: .8rem; }
@media (max-width: 575.98px) {
    .wk-dl-list li { flex-wrap: wrap; padding: 14px 16px; }
    .wk-dl-list .tx { flex-basis: calc(100% - 60px); }
    .wk-dl-list .acts { width: 100%; justify-content: flex-start; padding-left: 60px; }
    .wk-dl-add .row2 { flex-direction: column; }
    .wk-dl-head, .wk-dl-add { padding-left: 16px; padding-right: 16px; }
}

/* =====================================================================
   Wiki editor v2: templates, grouped toolbar, side-by-side preview,
   page checklist, quick reference; callout boxes with icons
   ===================================================================== */
.md blockquote.co { position: relative; padding-left: 46px; border-radius: 10px; border-left-width: 4px; }
.md blockquote.co .co-ic { position: absolute; left: 16px; top: 15px; font-size: 1rem; }
.md blockquote.warn { background: #fdecea; border-color: #d32f2f; } .md blockquote.warn .co-ic { color: #d32f2f; }
.md blockquote.tip { background: #e8f4fd; border-color: #1e88e5; } .md blockquote.tip .co-ic { color: #1e88e5; }
.md blockquote.todo .co-ic { color: var(--nm-amber); }

.wk-restore { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff8e1; border: 1px solid #ffe082; border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; font-size: .92rem; }
.wk-restore > i { color: #f9a825; }
.wk-restore span { flex: 1; min-width: 200px; }
.wk-restore[hidden], .wk-tpls[hidden], .wk-picker[hidden] { display: none !important; }

.wk-tpls { background: #fff; border: 1px solid var(--nm-line); border-radius: 14px; box-shadow: var(--nm-card-shadow); padding: 16px 18px 18px; margin: 0 0 20px; }
.wk-tpls .hd { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; }
.wk-tpls .hd b { font-size: 1rem; color: var(--nm-ink); }
.wk-tpls .hd span { color: var(--nm-muted); font-size: .88rem; }
.wk-tpls .grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.wk-tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 1px solid var(--nm-line); background: #fff; border-radius: 12px; padding: 14px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.wk-tpl:hover, .wk-tpl:focus-visible { border-color: #90caf9; box-shadow: 0 10px 24px rgba(13,27,62,.10); transform: translateY(-2px); }
.wk-tpl .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--nm-accent-grad); color: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.wk-tpl.blank .ic { background: var(--nm-blue-50); color: var(--nm-blue); }
.wk-tpl b { color: var(--nm-ink); font-size: .93rem; }
.wk-tpl small { color: var(--nm-muted); font-size: .8rem; line-height: 1.4; }

.wk-edit { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
.wk-form { border-radius: 14px; box-shadow: var(--nm-card-shadow); }
.wk-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; background: #f5f8fd; border: 1px solid #d5dfec; border-bottom: 0; border-radius: 12px 12px 0 0; }
.wk-tool .grp { display: flex; gap: 2px; padding-right: 6px; border-right: 1px solid #d5dfec; }
.wk-tool .grp:last-of-type { border-right: 0; }
.wk-tool button { display: inline-flex; align-items: center; gap: 6px; height: 32px; min-width: 32px; justify-content: center; padding: 0 8px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--nm-ink-2); font-size: .84rem; font-weight: 600; }
.wk-tool button:hover { background: #fff; border-color: var(--nm-line); color: var(--nm-blue); }
.wk-tool .view { margin-left: auto; display: flex; gap: 2px; background: #fff; border: 1px solid var(--nm-line); border-radius: 9px; padding: 2px; }
.wk-tool .view .tab { margin: 0; height: 28px; font-size: .8rem; }
.wk-tool .view .tab.on { background: var(--nm-royal); color: #fff; border-color: transparent; }
@media (max-width: 1399.98px) { .wk-tool .grp button span { display: none; } .wk-tool .grp button[data-md="h3"] span { display: inline; } }

.wk-picker { border: 1px solid #d5dfec; border-bottom: 0; background: #fff; padding: 10px; }
.wk-picker input { width: 100%; border: 1px solid var(--nm-line); border-radius: 8px; padding: .45rem .7rem; font-size: .9rem; }
.wk-picker ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 240px; overflow-y: auto; }
.wk-picker li button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 8px; font-size: .9rem; color: var(--nm-ink); }
.wk-picker li button:hover { background: var(--nm-blue-50); color: var(--nm-blue); }
.wk-picker li small { color: var(--nm-muted); white-space: nowrap; }
.wk-picker li.none { color: var(--nm-muted); padding: 6px 8px; font-size: .88rem; }

.wk-panes { display: grid; grid-template-columns: minmax(0,1fr); }
.wk-panes #wkBody, .wk-panes #wkPreview { min-height: 520px; height: 520px; border: 1px solid #d5dfec; border-radius: 0 0 12px 12px; }
.wk-panes #wkBody { display: block; resize: vertical; padding: 16px; font-size: .92rem; line-height: 1.7; background: #fff; }
.wk-panes #wkPreview { display: none; overflow-y: auto; padding: 18px 20px; background: #fff; }
.wk-panes.preview #wkBody { display: none; }
.wk-panes.preview #wkPreview { display: block; height: auto; }
.wk-panes.split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.wk-panes.split #wkPreview { display: block; border-left: 0; border-radius: 0 0 12px 0; background: #fcfdff; }
.wk-panes.split #wkBody { border-radius: 0 0 0 12px; resize: none; }
.wk-status { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: .8rem; color: var(--nm-muted); }
.wk-kbd-hint { color: var(--nm-muted); font-size: .8rem; margin-left: auto; align-self: center; }

.wk-help-side { position: sticky; top: 96px; display: grid; gap: 14px; }
.wk-help-side .wk-box { border-radius: 14px; box-shadow: var(--nm-card-shadow); }
.wk-help-side h3 { display: flex; align-items: center; gap: 8px; }
.wk-help-side h3 i { color: var(--nm-blue); }
.wk-help-side .note { color: var(--nm-muted); font-size: .8rem; margin: 6px 0 0; }
.wk-check ul { list-style: none; padding: 0 !important; margin: 0; }
.wk-check li { display: flex; gap: 8px; align-items: center; padding: 3px 0; color: var(--nm-muted); }
.wk-check li i { width: 16px; }
.wk-check li.ok { color: var(--nm-ink); } .wk-check li.ok i { color: #2e7d32; }
.wk-check li.want { color: var(--nm-ink-2); } .wk-check li.want i { color: #f9a825; }
.wk-tips ol { padding-left: 1.1rem; margin: 0; }
.wk-tips li { margin-bottom: 7px; line-height: 1.45; }
.wk-tips li b { color: var(--nm-ink); }
.wk-ref table { width: 100%; font-size: .8rem; border-collapse: collapse; }
.wk-ref th { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--nm-muted); padding: 4px 6px; text-align: left; }
.wk-ref td { padding: 6px; border-top: 1px solid var(--nm-line); vertical-align: middle; }
.wk-ref tbody tr { cursor: pointer; transition: background .15s; }
.wk-ref tbody tr:hover { background: var(--nm-blue-50); }
.wk-ref code { font-size: .76rem; white-space: nowrap; }
.wk-ref .ex { display: inline-block; padding: 1px 8px; border-radius: 6px; font-weight: 600; font-size: .75rem; }
.wk-ref .ex.warn { background: #fdecea; color: #c62828; } .wk-ref .ex.tip { background: #e8f4fd; color: #1565c0; }

@media (max-width: 1199.98px) {
    .wk-tpls .grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .wk-help-side { position: static; }
}
@media (max-width: 991.98px) { .wk-edit { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 575.98px) {
    .wk-tpls .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .wk-tool .view { margin-left: 0; }
    .wk-panes #wkBody, .wk-panes #wkPreview { min-height: 380px; height: 380px; }
    .wk-form .ct-row { grid-template-columns: 1fr !important; gap: 0 !important; }
    .wk-kbd-hint { display: none; }
}

/* Wiki editor: quick reference beside the writing box */
.wk-ref td { line-height: 1.5; }
.wk-ref td code + br + code { margin-top: 3px; display: inline-block; }
.wk-ref table.mini { border-collapse: collapse; font-size: .74rem; width: auto; }
.wk-ref table.mini th { border: 1px solid var(--nm-line); padding: 1px 10px; background: var(--nm-band); color: var(--nm-ink); text-transform: none; letter-spacing: 0; font-size: .74rem; }

/* Wiki editor: table size picker and row/column bar */
.wk-tpick, .wk-tbar { border: 1px solid #d5dfec; border-bottom: 0; background: #fff; }
.wk-tpick[hidden], .wk-tbar[hidden] { display: none !important; }
.wk-tpick { padding: 12px 14px; }
.wk-tpick .lbl { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.wk-tpick .lbl b { font-size: .88rem; color: var(--nm-ink); min-width: 150px; }
.wk-tpick .lbl span { font-size: .78rem; color: var(--nm-muted); }
.wk-tpick .cells { display: grid; grid-template-columns: repeat(8, 22px); gap: 4px; }
.wk-tpick .cells button { width: 22px; height: 22px; padding: 0; border: 1px solid #c5d6ea; border-radius: 4px; background: #fff; }
.wk-tpick .cells button.on { background: var(--nm-blue-50); border-color: var(--nm-blue); }
.wk-tbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 10px; background: #f0f7ff; }
.wk-tbar > span { font-size: .8rem; font-weight: 700; color: var(--nm-blue); margin-right: 4px; }
.wk-tbar button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid #c5d6ea; border-radius: 8px; background: #fff; color: var(--nm-blue); font-size: .8rem; font-weight: 600; }
.wk-tbar button:hover { border-color: var(--nm-blue); background: var(--nm-blue-50); }
.wk-tbar button.del { color: #b23b30; border-color: #f0c9c4; }
.wk-tbar button.del:hover { background: #fdecea; border-color: #d32f2f; }
.wk-tbar small { color: var(--nm-muted); font-size: .75rem; margin-left: auto; }
@media (max-width: 575.98px) { .wk-tbar small { display: none; } }

/* Publications: selected papers in gold */
.pb-item.sel {
    position: relative; margin: 10px 0; padding: 20px 20px 20px 16px; border: 1px solid #f0d78a; border-left: 5px solid #d4a017;
    border-radius: 14px; background: linear-gradient(100deg, #fff6d8 0%, #fffaf0 45%, #ffffff 100%);
    box-shadow: 0 6px 20px rgba(184,134,11,0.12); }
.pb-item.sel:hover { box-shadow: 0 10px 28px rgba(184,134,11,0.2); }
.pb-item.sel .pb-num { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #9a6c00; font-weight: 700; }
.pb-item.sel .pb-num i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #fff;
    background: linear-gradient(135deg, #f7d774, #d4a017 60%, #b8860b); box-shadow: 0 3px 10px rgba(184,134,11,0.35); }
.pb-item.sel h4 a { color: #3d2b00; }
.pb-item.sel h4 a:hover { color: #9a6c00; }
.pb-tag.sel { background: linear-gradient(135deg, #f7d774, #d4a017) !important; color: #3d2b00 !important; border-radius: 999px; padding: 0.2rem 0.65rem; }
.pb-tag.sel i { color: #7a5200; font-size: .65rem; }
@media (max-width: 767.98px) {
    .pb-item.sel { padding: 16px 14px; }
    .pb-item.sel .pb-num { flex-direction: row; }
    .pb-item.sel .pb-num i { width: 24px; height: 24px; font-size: .68rem; }
}

/* Publications: every paper is a card; regular papers in blue, selected in gold */
.pb-item:not(.sel) {
    position: relative; margin: 10px 0; padding: 20px 20px 20px 16px; border: 1px solid #cfe0f5; border-left: 5px solid #1e88e5;
    border-radius: 14px; background: linear-gradient(100deg, #eaf3fd 0%, #f6faff 45%, #ffffff 100%);
    box-shadow: 0 6px 20px rgba(21,101,192,0.08); transition: box-shadow .2s; }
.pb-item:not(.sel):hover { box-shadow: 0 10px 28px rgba(21,101,192,0.16); }
.pb-item .pb-num { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; }
.pb-item:not(.sel) .pb-num { color: #1565c0; }
.pb-item .pb-num i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #fff; }
.pb-item:not(.sel) .pb-num i { background: linear-gradient(135deg, #64b5f6, #1565c0); box-shadow: 0 3px 10px rgba(21,101,192,0.3); }
.pb-item:not(.sel) h4 a:hover { color: #1565c0; }
.pb-tag.rev { background: linear-gradient(135deg, #bbdefb, #90caf9) !important; color: #0d47a1 !important; border-radius: 999px; padding: 0.2rem 0.65rem; }
.pb-tag.pre { border-radius: 999px; padding: 0.2rem 0.65rem; }
.pb-item { border-bottom-width: 1px; }
@media (max-width: 767.98px) {
    .pb-item:not(.sel) { padding: 16px 14px; }
    .pb-item .pb-num { flex-direction: row; }
    .pb-item .pb-num i { width: 24px; height: 24px; font-size: .68rem; }
}

/* Publications sidebar as a card */
.pb-layout { grid-template-columns: 270px 1fr; gap: 40px; }
.pb-side { background: #fff; border: 1px solid var(--nm-line); border-radius: 16px; box-shadow: var(--nm-card-shadow); padding: 20px 18px; top: 92px; }
.pb-side h4 { font-size: .7rem !important; letter-spacing: .1em !important; margin: 0 0 .6rem !important; }
.pb-search { margin-bottom: 22px !important; display: block; }
.pb-search input { border-radius: 10px !important; background: #f5f8fd; border-color: #dbe5f1 !important; }
.pb-search input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(21,101,192,0.15) !important; border-color: var(--nm-blue) !important; }
.pb-types { border-top: 0 !important; display: grid; gap: 6px; margin-bottom: 22px !important; }
.pb-types button { border: 1px solid transparent !important; border-radius: 10px; padding: 0.5rem 0.6rem !important; box-shadow: none !important; color: var(--nm-ink-2); font-weight: 600; transition: background .15s, border-color .15s; }
.pb-types button .l { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: inherit; }
.pb-types button .l i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: .75rem; background: var(--nm-blue-50); color: var(--nm-blue); }
.pb-types button .n { font-size: .74rem !important; font-weight: 700; min-width: 30px; text-align: center; padding: 2px 8px; border-radius: 999px; background: #eef3fa; color: var(--nm-ink-2) !important; }
.pb-types button:hover { background: #f5f8fd; border-color: var(--nm-line) !important; color: var(--nm-blue); }
.pb-types button.active { background: var(--nm-royal) !important; color: #fff !important; }
.pb-types button.active .l i { background: rgba(255,255,255,.18); color: #fff; }
.pb-types button.active .n { background: rgba(255,255,255,.22); color: #fff !important; }
.pb-types button.gold .l i { background: linear-gradient(135deg, #f7d774, #d4a017); color: #fff; }
.pb-types button.gold:hover { background: #fff8e1; border-color: #f0d78a !important; color: #7a5200; }
.pb-types button.gold.active { background: linear-gradient(135deg, #f7d774, #d4a017) !important; color: #3d2b00 !important; }
.pb-types button.gold.active .l i { background: rgba(255,255,255,.35); color: #7a5200; }
.pb-types button.gold.active .n { background: rgba(255,255,255,.45); color: #5c4000 !important; }
.pb-years { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px !important; }
.pb-years a { text-align: center; border-radius: 8px !important; padding: .32rem 0 !important; font-size: .8rem !important; font-weight: 600; background: #f5f8fd; border-color: #e3ebf6 !important; }
.pb-years a:hover { background: var(--nm-blue) !important; border-color: var(--nm-blue) !important; color: #fff !important; }
@media (max-width: 991.98px) {
    .pb-side { position: static; padding: 16px; }
    .pb-types { display: flex; flex-wrap: wrap; }
    .pb-types button { border: 1px solid var(--nm-line) !important; gap: 8px; }
    .pb-types button .l i { width: 22px; height: 22px; font-size: .65rem; }
}

/* Publications: highlight cards (top-journal selected papers) */
.pb-hl .grid { gap: 22px; }
.pb-hcard {
    min-height: 300px; padding: 22px 22px 20px !important; border-radius: 18px !important; isolation: isolate;
    background: radial-gradient(120% 90% at 100% 0%, rgba(212,160,23,0.20) 0%, rgba(212,160,23,0) 55%),
                linear-gradient(150deg, #0b1424 0%, #0f2240 55%, #12305c 100%) !important;
    border: 1px solid rgba(247,215,116,0.18); box-shadow: 0 12px 32px rgba(8,16,36,0.28);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important; }
.pb-hcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #f7d774, #d4a017, #f7d774); }
.pb-hcard::after { border-color: rgba(247,215,116,0.25) !important; box-shadow: 0 0 0 18px rgba(247,215,116,0.05), 0 0 0 36px rgba(247,215,116,0.03) !important; z-index: -1; }
.pb-hcard:hover { transform: translateY(-4px); border-color: rgba(247,215,116,0.55); box-shadow: 0 18px 40px rgba(8,16,36,0.38), 0 0 0 1px rgba(247,215,116,0.25); }
.pb-hcard .num { position: absolute; right: 18px; bottom: 6px; font-size: 5.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: rgba(255,255,255,0.05); z-index: -1; pointer-events: none; }
.pb-hcard .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pb-hcard .badge { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: #3d2b00; background: linear-gradient(135deg, #f7d774, #d4a017); padding: 4px 10px; border-radius: 999px; }
.pb-hcard .badge i { font-size: .6rem; }
.pb-hcard .yr { font-size: .78rem; font-weight: 700; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); padding: 3px 10px; border-radius: 999px; }
.pb-hcard .j { font-size: 1.4rem !important; font-style: italic; font-weight: 800;
    background: linear-gradient(90deg, #ffe9a8, #f7d774 40%, #e0b22f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #f7d774 !important; }
.pb-hcard h3 { margin: 10px 0 0 !important; padding-top: 0 !important; font-size: 1.04rem !important; font-weight: 700 !important; line-height: 1.45 !important; color: #fff !important; }
.pb-hcard .au { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .8rem; color: rgba(255,255,255,0.62); }
.pb-hcard .au i { color: rgba(247,215,116,0.75); font-size: .72rem; }
.pb-hcard .go { margin-top: auto !important; padding-top: 18px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: .82rem !important; font-weight: 700;
    color: #fff !important; }
.pb-hcard .go i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: rgba(247,215,116,0.18); color: #f7d774; transition: transform .2s, background .2s, color .2s; }
.pb-hcard:hover .go i { transform: translateX(4px); background: linear-gradient(135deg, #f7d774, #d4a017); color: #3d2b00; }
@media (max-width: 575.98px) { .pb-hcard { min-height: 0; } .pb-hcard .num { font-size: 4rem; } }

/* Patents: cards in the same style as publications (granted green, filed blue) */
.pt-grid { gap: 22px; }
.pt-card { position: relative; border-radius: 16px !important; overflow: hidden; padding: 20px 22px 0; border: 1px solid #cfe0f5 !important; border-left: 5px solid #1e88e5 !important;
    background: linear-gradient(110deg, #eaf3fd 0%, #f6faff 45%, #ffffff 100%) !important; box-shadow: 0 6px 20px rgba(21,101,192,0.08) !important; transition: transform .2s, box-shadow .2s !important; }
.pt-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(21,101,192,0.16) !important; }
.pt-card.granted-card { border-color: #cdebd9 !important; border-left-color: #2e9d62 !important; background: linear-gradient(110deg, #e6f6ee 0%, #f5fbf8 45%, #ffffff 100%) !important; box-shadow: 0 6px 20px rgba(46,125,82,0.10) !important; }
.pt-card.granted-card:hover { box-shadow: 0 14px 32px rgba(46,125,82,0.18) !important; }
.pt-card.filed-card { box-shadow: 0 6px 20px rgba(21,101,192,0.08) !important; }
.pt-card .top { padding: 0 !important; display: flex; justify-content: space-between; align-items: center; }
.pt-card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1rem; background: linear-gradient(135deg, #64b5f6, #1565c0); box-shadow: 0 4px 12px rgba(21,101,192,0.3); }
.pt-card.granted-card .ic { background: linear-gradient(135deg, #66d19e, #2e7d52); box-shadow: 0 4px 12px rgba(46,125,82,0.3); }
.pt-card .pills { display: flex; gap: 6px; align-items: center; }
.pt-status { border-radius: 999px !important; padding: 0.28rem 0.75rem !important; font-size: .72rem !important; letter-spacing: .03em; }
.pt-status.granted { background: linear-gradient(135deg, #66d19e, #2e9d62) !important; color: #fff !important; }
.pt-status.filed { background: linear-gradient(135deg, #64b5f6, #1e88e5) !important; color: #fff !important; }
.pt-status::before { background: #fff !important; }
.pt-yr { font-size: .74rem; font-weight: 700; color: var(--nm-ink-2); background: #fff; border: 1px solid var(--nm-line); border-radius: 999px; padding: 0.22rem 0.65rem; }
.pt-card .pt-area { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 14px; font-size: .76rem; font-weight: 700; color: #1565c0; background: rgba(21,101,192,0.08); border-radius: 999px; padding: 0.22rem 0.7rem; }
.pt-card.granted-card .pt-area { color: #2e7d52; background: rgba(46,125,82,0.10); }
.pt-card .pt-area i { font-size: .65rem; }
.pt-card h3 { padding: 10px 0 0 !important; font-size: 1.1rem !important; }
.pt-card .inv { display: flex; gap: 8px; padding: 8px 0 18px !important; }
.pt-card .inv i { color: #90a4b8; font-size: .78rem; margin-top: 5px; }
.pt-card .foot { margin: 0 -22px; padding: 11px 22px !important; background: rgba(255,255,255,0.7) !important; border-top: 1px solid rgba(21,101,192,0.12) !important; align-items: center; }
.pt-card.granted-card .foot { border-top-color: rgba(46,125,82,0.15) !important; }
.pt-card .foot i { color: #90a4b8; }
.pt-card .foot code { background: #fff !important; border: 1px solid var(--nm-line); border-radius: 8px; padding: 2px 8px !important; font-size: .78rem !important; color: var(--nm-ink) !important; }
@media (max-width: 575.98px) { .pt-card { padding: 16px 16px 0; } .pt-card .foot { margin: 0 -16px; padding: 10px 16px !important; } }

/* Teaching: course cards and lab-training cards */
.tc-courses { gap: 26px !important; }
.tc-course { border-radius: 18px !important; overflow: hidden; border: 1px solid #d7e5f5 !important; box-shadow: 0 8px 24px rgba(21,101,192,0.10) !important; transition: transform .2s, box-shadow .2s !important; }
.tc-course:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(21,101,192,0.18) !important; }
.tc-course .hd { position: relative; padding: 18px 22px !important; background: var(--nm-royal) !important; overflow: hidden; }
.tc-course .hd::after { content: ""; position: absolute; right: -30px; top: -50px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 0 0 18px rgba(255,255,255,0.05); }
.tc-course.past .hd { background: linear-gradient(135deg, #37474f, #546e7a) !important; }
.tc-course .hd .code { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.tc-course .hd .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.16); display: grid; place-items: center; font-size: 1rem; }
.tc-course .hd b { font-size: 1.2rem !important; letter-spacing: .03em !important; }
.tc-course .hd .st { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px !important; padding: 0.3rem 0.8rem !important; font-size: .74rem !important; }
.tc-course.now .hd .st { background: linear-gradient(135deg, #66d19e, #2e9d62) !important; color: #fff !important; box-shadow: 0 3px 10px rgba(46,125,82,0.35); }
.tc-course.now .hd .st i { font-size: .45rem; animation: tcPulse 1.8s ease-in-out infinite; }
@keyframes tcPulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tc-course.now .hd .st i { animation: none; } }
.tc-course.past .hd .st { background: rgba(255,255,255,0.16) !important; color: #fff !important; }
.tc-course .bd { padding: 22px 22px 24px !important; background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 40%); }
.tc-course h3 { font-size: 1.25rem !important; }
.tc-facts { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; padding: 0 !important; border: 0 !important; margin: 0 0 1.2rem !important; }
.tc-facts > div { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--nm-line); border-radius: 12px; padding: 10px 12px; font-size: .88rem; color: var(--nm-ink); min-width: 0; }
.tc-facts > div > i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: grid; place-items: center; font-size: .78rem; color: #fff; background: linear-gradient(135deg, #64b5f6, #1565c0); }
.tc-course.past .tc-facts > div > i { background: linear-gradient(135deg, #90a4ae, #546e7a); }
.tc-facts > div > span { line-height: 1.4; overflow-wrap: anywhere; }
.tc-facts small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nm-muted); margin-bottom: 1px; }
.tc-topics { align-items: center; }
.tc-topics > small { width: 100%; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nm-muted); margin-bottom: 2px; }
.tc-topics span { border-radius: 999px !important; padding: 0.3rem 0.75rem !important; background: #e8f1fc !important; border: 1px solid #cfe0f5; }

.tc-mentor .pg-card { position: relative; border-radius: 18px !important; border: 1px solid #d7e5f5 !important; background: linear-gradient(160deg, #eef5fe 0%, #ffffff 55%) !important; padding: 26px 24px !important; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tc-mentor .pg-card:hover { transform: translateY(-3px); }
.tc-mentor .pg-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--nm-accent-grad); }
.tc-mentor .pg-ic { width: 52px !important; height: 52px !important; border-radius: 14px !important; color: #fff !important; background: var(--nm-accent-grad) !important; box-shadow: 0 6px 16px rgba(21,101,192,0.3); font-size: 1.2rem !important; }
.tc-mentor .step { position: absolute; right: 18px; top: 14px; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: rgba(21,101,192,0.10); line-height: 1; }
@media (max-width: 575.98px) { .tc-facts { grid-template-columns: 1fr !important; } .tc-course .hd { flex-wrap: wrap; gap: 10px; } }
.tc-course .hd .code { background: none !important; padding: 0 !important; border-radius: 0 !important; font-size: inherit !important; }
.tc-course .hd .code .ic { background: rgba(255,255,255,0.16) !important; padding: 0 !important; border-radius: 12px !important; font-size: 1rem !important; color: #fff !important; }
.tc-course .hd b, .tc-course .hd .code { color: #fff !important; }
/* Teaching: schedule as a full-width row of session chips */
.tc-facts > div.sched { grid-column: 1 / -1; align-items: center; }
.tc-facts .slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tc-facts .slot { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; background: #f0f6fe; border: 1px solid #d7e5f5; border-radius: 999px; padding: 3px 10px; font-size: .84rem; color: var(--nm-ink); }
.tc-facts .slot b { color: #1565c0; font-weight: 700; }
.tc-course.past .tc-facts .slot b { color: #455a64; }
.tc-facts > div.dept { grid-column: 1 / -1; }

/* Facilities: flip cards (same size and flip; richer faces, colour per category) */
.fc-card { --c1: #1565c0; --c2: #64b5f6; --tint: #eef5fe; }
.fc-card.cat-characterization { --c1: #00897b; --c2: #4dd0c4; --tint: #e8f7f5; }
.fc-card.cat-device { --c1: #0277bd; --c2: #4fc3f7; --tint: #e7f5fd; }
.fc-card.cat-support { --c1: #546e7a; --c2: #90a4ae; --tint: #f0f3f5; }
.fc-front { border: 1px solid #dbe6f3 !important; border-radius: 18px !important; background: linear-gradient(180deg, #ffffff 0%, var(--tint) 100%) !important; box-shadow: 0 10px 28px rgba(13,27,62,0.10) !important; }
.fc-front::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.fc-back { border-radius: 18px !important; }
.fc-card .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,40,0) 55%, rgba(10,20,40,0.45) 100%); pointer-events: none; }
.fc-status { background: rgba(255,255,255,0.88) !important; backdrop-filter: blur(6px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.fc-cic { position: absolute; left: 14px; bottom: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1rem;
    background: linear-gradient(135deg, var(--c2), var(--c1)); box-shadow: 0 6px 16px rgba(0,0,0,0.25); border: 2px solid rgba(255,255,255,0.85); }
.fc-overlay { z-index: 3; border-radius: 0; }
.fc-front .bd { padding: 16px 20px 20px !important; }
.fc-front h3 { font-size: 1.15rem !important; }
.fc-tag { background: color-mix(in srgb, var(--c1) 12%, white) !important; color: var(--c1) !important; border: 1px solid color-mix(in srgb, var(--c1) 22%, white); }
.fc-tag i { font-size: .68rem; }
.fc-card:hover .fc-front, .fc-card:focus-visible .fc-front { box-shadow: 0 16px 36px rgba(13,27,62,0.16) !important; }

.fc-back { background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--c2) 30%, transparent) 0%, transparent 60%), linear-gradient(155deg, #0b1424 0%, #0f2240 55%, #12305c 100%) !important; padding: 24px 22px !important; }
.fc-back::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.fc-back .bic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; margin-bottom: 10px; background: linear-gradient(135deg, var(--c2), var(--c1)); box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.fc-back h3 { font-size: 1.2rem !important; margin-bottom: 2px !important; }
.fc-back .sp-lbl { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 4px; }
.fc-back ul { margin: 8px 0 14px !important; display: grid; gap: 6px; text-align: left; width: 100%; }
.fc-back li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 10px !important; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; font-size: .85rem !important; line-height: 1.4; }
.fc-back li::before { content: "\f00c" !important; color: var(--c2) !important; margin: 2px 0 0 !important; font-size: .7rem !important; }
.fc-back .who { border-radius: 999px !important; font-size: .8rem !important; padding: 7px 14px !important; background: rgba(255,255,255,0.1) !important; }
.fc-back .who i { color: var(--c2) !important; }
.fc-back .book { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: #0b1424; background: #fff; padding: 7px 14px; border-radius: 999px; text-decoration: none; transition: background .2s, color .2s; }
.fc-back .book:hover { background: linear-gradient(135deg, var(--c2), var(--c1)); color: #fff; }

/* Team: member cards with a cover band, overlapping round photo, role colours */
.tm-card { --c1: #1565c0; --c2: #42a5f5; position: relative; border-radius: 18px !important; overflow: hidden; border: 1px solid #dbe6f3 !important;
    box-shadow: 0 8px 24px rgba(13,27,62,0.08) !important; transition: transform .2s, box-shadow .2s !important; }
.tm-card.r-pd { --c1: #00897b; --c2: #4dd0c4; }
.tm-card.r-oth { --c1: #37597a; --c2: #78a6cf; }
.tm-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(13,27,62,0.15) !important; }
.tm-card .cover { height: 92px; background: radial-gradient(60% 120% at 100% 0%, rgba(255,255,255,0.22), transparent 60%), linear-gradient(135deg, var(--c1), var(--c2)); position: relative; overflow: hidden; }
.tm-card .cover::after { content: ""; position: absolute; left: -30px; bottom: -60px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 0 0 18px rgba(255,255,255,0.06); }
.tm-card .ph { padding: 0 !important; margin-top: -66px; position: relative; z-index: 1; }
.tm-card .ph img { width: 132px !important; height: 132px !important; box-shadow: 0 0 0 5px #fff, 0 0 0 8px color-mix(in srgb, var(--c2) 55%, white), 0 10px 24px rgba(13,27,62,0.18) !important; }
.tm-card:hover .ph img { box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--c1), 0 12px 28px rgba(13,27,62,0.22) !important; }
.tm-card .bd { padding: 14px 20px 20px !important; }
.tm-card h3 { font-size: 1.12rem !important; margin-top: 4px !important; }
.tm-card .pos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px !important; }
.tm-card .pos .role { color: var(--c1); background: color-mix(in srgb, var(--c1) 10%, white); border: 1px solid color-mix(in srgb, var(--c1) 22%, white); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; }
.tm-card .pos .per { color: var(--nm-muted); font-weight: 600; font-size: .76rem; background: #f3f6fa; border-radius: 999px; padding: 2px 10px; }
.tm-card .quote { position: relative; border: 0 !important; border-radius: 14px; padding: 14px 14px 12px 40px !important; background: color-mix(in srgb, var(--c1) 7%, white) !important; color: var(--nm-ink) !important; font-size: .88rem !important; }
.tm-card .quote i { position: absolute; left: 14px; top: 14px; color: var(--c2); font-size: .9rem; font-style: normal; }
.tm-card .focus { border-radius: 12px; background: #f5f8fc !important; border: 1px solid #e6edf6; }
.tm-card .focus span { color: var(--c1) !important; }
.tm-links { gap: 8px !important; }
.tm-links a { border-radius: 50% !important; width: 34px !important; height: 34px !important; background: #fff; }
.tm-card .tm-links a:hover { background: var(--c1) !important; border-color: var(--c1) !important; color: #fff !important; }

/* PI and advisor */
.tm-pi { border-radius: 20px !important; overflow: hidden; border: 1px solid #dbe6f3 !important; box-shadow: 0 12px 32px rgba(13,27,62,0.10) !important; }
.tm-pi .side { background: radial-gradient(120% 70% at 100% 0%, rgba(66,165,245,0.25), transparent 60%), linear-gradient(160deg, #0b1424 0%, #0f2240 55%, #12305c 100%) !important; border-right: 0 !important; }
.tm-pi .side img { box-shadow: 0 0 0 6px rgba(255,255,255,0.9), 0 0 0 10px rgba(100,181,246,0.45), 0 14px 32px rgba(0,0,0,0.35) !important; }
.tm-pi .side blockquote { color: rgba(255,255,255,0.9) !important; border-left-color: #64b5f6 !important; }
.tm-pi .side .tm-links a { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #fff; }
.tm-pi .side .tm-links a:hover { background: #fff !important; color: var(--nm-ink) !important; }
.tm-pi .focus, .tm-adv .focus { border-radius: 12px; background: #f2f7fd !important; border: 1px solid #e0eaf6; }
.tm-pi .bd blockquote { border-left-color: #64b5f6 !important; }
.tm-adv { border-radius: 20px !important; background: linear-gradient(110deg, #eef5fe 0%, #ffffff 60%) !important; border: 1px solid #dbe6f3 !important; box-shadow: 0 8px 24px rgba(13,27,62,0.07); }
.tm-adv img { box-shadow: 0 0 0 5px #fff, 0 0 0 8px rgba(100,181,246,0.5) !important; }
.tm-adv blockquote { border-left-color: #64b5f6 !important; }

/* Alumni rows as mini cards */
.tm-alumni { border-top: 0 !important; display: grid; gap: 10px; }
.tm-al { border: 1px solid #e3ebf5 !important; border-radius: 14px; padding: 12px 16px !important; background: linear-gradient(110deg, #f5f9fe, #ffffff 60%); transition: box-shadow .2s, transform .2s; }
.tm-al:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13,27,62,0.08); }
.tm-al img { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #bbdefb; }

/* Research page cards */
.rs-areas { border-top: 0 !important; gap: 22px; }
.rs-area { --c1: #1565c0; --c2: #64b5f6; position: relative; padding: 26px 24px 24px !important; border: 1px solid #dbe6f3 !important; border-radius: 18px; overflow: hidden;
    background: linear-gradient(160deg, color-mix(in srgb, var(--c2) 14%, white) 0%, #ffffff 55%) !important; box-shadow: 0 8px 24px rgba(13,27,62,0.07); transition: transform .2s, box-shadow .2s; }
.rs-area:nth-child(3n+2) { --c1: #00897b; --c2: #4dd0c4; }
.rs-area:nth-child(3n+3) { --c1: #0277bd; --c2: #4fc3f7; }
.rs-area + .rs-area { border-left: 1px solid #dbe6f3 !important; padding-left: 24px !important; }
.rs-area::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.rs-area:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(13,27,62,0.13); }
.rs-area .n { position: absolute; right: 18px; top: 12px; font-size: 3rem !important; font-weight: 800 !important; letter-spacing: -0.04em; color: color-mix(in srgb, var(--c1) 12%, transparent) !important; line-height: 1; }
.rs-area .ic { width: 54px !important; height: 54px !important; margin: 0 0 18px !important; border-radius: 15px !important; color: #fff !important; background: linear-gradient(135deg, var(--c2), var(--c1)) !important; box-shadow: 0 8px 18px color-mix(in srgb, var(--c1) 35%, transparent); font-size: 1.25rem !important; }

.rs-projects { gap: 22px !important; }
.rs-proj { position: relative; border-radius: 18px !important; border: 1px solid #cfe0f5 !important; border-left: 5px solid #1e88e5 !important; padding: 22px 24px !important;
    background: linear-gradient(110deg, #eaf3fd 0%, #f6faff 45%, #ffffff 100%) !important; box-shadow: 0 6px 20px rgba(21,101,192,0.08) !important; transition: transform .2s, box-shadow .2s !important; }
.rs-proj:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(21,101,192,0.16) !important; }
.rs-proj .top { margin-bottom: 14px !important; }
.rs-proj .pic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #64b5f6, #1565c0); box-shadow: 0 6px 14px rgba(21,101,192,0.3); }
.rs-proj h3 { font-size: 1.15rem !important; margin: 0 0 .5rem !important; }
.rs-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px !important; padding: .3rem .8rem !important; color: #fff !important; background: linear-gradient(135deg, #66d19e, #2e9d62) !important; box-shadow: 0 3px 10px rgba(46,125,82,0.3); }
.rs-status i { font-size: .42rem; animation: tcPulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .rs-status i { animation: none; } }
.rs-team { gap: 8px !important; padding-top: 14px; border-top: 1px dashed #cfe0f5; }
.rs-team .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #1565c0 !important; font-weight: 700 !important; }
.rs-team span.p { display: inline-flex; align-items: center; gap: 7px; background: #fff !important; border: 1px solid #dbe6f3; border-radius: 999px !important; padding: 3px 10px 3px 3px !important; font-weight: 600; color: var(--nm-ink) !important; }
.rs-team .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #64b5f6, #1565c0); letter-spacing: .02em; }

.rs-collab { gap: 22px !important; }
.rs-org { position: relative; border-radius: 18px !important; border: 1px solid #dbe6f3 !important; padding: 20px !important; overflow: hidden; background: #fff !important; box-shadow: 0 6px 20px rgba(13,27,62,0.06) !important; transition: transform .2s, box-shadow .2s !important; }
.rs-org::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--nm-accent-grad); opacity: 0; transition: opacity .2s; }
.rs-org:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(13,27,62,0.13) !important; }
.rs-org:hover::before { opacity: 1; }
.rs-org .logo { height: 84px !important; justify-content: center; background: linear-gradient(160deg, #f5f9fe, #ffffff); border: 1px solid #e6edf6; border-radius: 14px; margin-bottom: 14px !important; padding: 10px; }
.rs-org .logo img { max-height: 60px !important; }

.rs-fund { border-top: 0 !important; gap: 16px; }
.rs-fund > div { border: 1px solid #dbe6f3 !important; border-radius: 16px; padding: 18px !important; background: linear-gradient(160deg, #f3f8fe 0%, #ffffff 60%); box-shadow: 0 6px 18px rgba(13,27,62,0.06); transition: transform .2s, box-shadow .2s; }
.rs-fund > div + div { border-left: 1px solid #dbe6f3 !important; padding-left: 18px !important; }
.rs-fund > div:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13,27,62,0.12); }
.rs-fund .logo { justify-content: center; background: #fff; border: 1px solid #e6edf6; border-radius: 12px; height: 72px !important; padding: 8px; }
.rs-fund h3 { text-align: center; } .rs-fund p { text-align: center; }

.rs-slides { border-radius: 20px; overflow: hidden; }
.rs-tags span { border-radius: 999px !important; }
.rs-slide blockquote { position: relative; border: 0 !important; background: #eef5fe; border-radius: 14px; padding: 14px 16px 14px 42px !important; }
.rs-slide blockquote i { position: absolute; left: 16px; top: 16px; color: #64b5f6; font-style: normal; }

/* =====================================================================
   Card polish for Booking, Join us, Contact, Policies, Gallery
   ===================================================================== */
/* Shared page cards */
.pg-card { --c1: #1565c0; --c2: #64b5f6; position: relative; overflow: hidden; border-radius: 18px !important; border: 1px solid #dbe6f3 !important;
    background: linear-gradient(160deg, color-mix(in srgb, var(--c2) 12%, white) 0%, #ffffff 55%) !important; box-shadow: 0 8px 24px rgba(13,27,62,0.07) !important; transition: transform .2s, box-shadow .2s !important; }
.pg-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.pg-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(13,27,62,0.13) !important; }
.pg-card .pg-ic { width: 52px !important; height: 52px !important; border-radius: 15px !important; color: #fff !important; background: linear-gradient(135deg, var(--c2), var(--c1)) !important; box-shadow: 0 8px 18px color-mix(in srgb, var(--c1) 30%, transparent); font-size: 1.2rem !important; }
.jn-grid > .pg-card:nth-child(3n+2), .ct-reasons > .pg-card:nth-child(4n+2) { --c1: #00897b; --c2: #4dd0c4; }
.jn-grid > .pg-card:nth-child(3n+3), .ct-reasons > .pg-card:nth-child(4n+3) { --c1: #0277bd; --c2: #4fc3f7; }
.ct-reasons > .pg-card:nth-child(4n+4) { --c1: #37597a; --c2: #78a6cf; }
.pg-check li::before { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; display: grid; place-items: center; font-size: .6rem !important; margin-top: 1px !important; color: #fff !important; background: linear-gradient(135deg, #64b5f6, #1565c0); }
.pg-dark { background: radial-gradient(120% 80% at 100% 0%, rgba(66,165,245,0.22), transparent 60%), linear-gradient(155deg, #0b1424 0%, #0f2240 55%, #12305c 100%) !important; border-radius: 18px !important; box-shadow: 0 14px 34px rgba(8,16,36,0.3); }
.pg-dark .pg-check li { color: rgba(255,255,255,0.88); }

/* Join us */
.jn-card .req { border-top: 1px dashed color-mix(in srgb, var(--c1) 30%, white) !important; color: var(--c1) !important; }
.jn-post { --c1: #d4a017; --c2: #f7d774; }
.jn-post ul { border-top: 0 !important; display: grid; gap: 8px; }
.jn-post li { border: 1px solid #f0e2b4 !important; border-radius: 12px; background: #fffdf5; }
.jn-post li a, .jn-post li span { padding: .7rem .9rem !important; }
.jn-post li a:hover { background: #fff6d8; border-radius: 12px; color: #7a5200 !important; }
.jn-jump a { border-radius: 999px !important; padding: .4rem .9rem !important; }
.jn-apply ol li::marker { color: #64b5f6; }

/* Booking */
.bk-action { border-radius: 20px; background: radial-gradient(120% 80% at 100% 0%, rgba(66,165,245,0.25), transparent 60%), linear-gradient(155deg, #0b1424 0%, #0f2240 55%, #12305c 100%) !important; box-shadow: 0 16px 40px rgba(8,16,36,0.35); border: 1px solid rgba(255,255,255,0.08); }
.bk-users span { border-radius: 999px !important; background: rgba(255,255,255,0.08); }
.bk-users i { color: #64b5f6 !important; }
.bk-btn { border-radius: 12px !important; }
.bk-steps { gap: 18px !important; }
.bk-step { padding: 22px 20px !important; background: linear-gradient(160deg, #eef5fe 0%, #ffffff 60%); border: 1px solid #dbe6f3; border-radius: 18px; box-shadow: 0 8px 22px rgba(13,27,62,0.07); transition: transform .2s, box-shadow .2s; }
.bk-step:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(13,27,62,0.13); }
.bk-step .dot { border: 0 !important; color: #fff !important; background: var(--nm-accent-grad) !important; box-shadow: 0 8px 18px rgba(21,101,192,0.3); border-radius: 16px !important; }
.bk-step:not(:last-child)::after { top: 50px !important; left: calc(100% - 10px) !important; right: -18px !important; width: auto; opacity: .7 !important; }
.bk-step .n { color: #1565c0 !important; }
.bk-step p { max-width: none !important; }
.bk-list { border-radius: 18px !important; overflow: hidden; border: 1px solid #dbe6f3 !important; box-shadow: 0 8px 24px rgba(13,27,62,0.07) !important; }
.bk-list .hd { background: linear-gradient(160deg, #eef5fe, #ffffff); }
.bk-list li { padding: 11px 20px !important; transition: background .15s; }
.bk-list li:hover { background: #f5f9fe; }
.bk-list li b { display: flex; align-items: center; gap: 12px; }
.bk-list li b::before { content: "\f610"; font-family: "Font Awesome 6 Free"; font-weight: 900; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; display: grid; place-items: center; font-size: .78rem; color: #1565c0; background: #e8f1fc; }
.bk-list .cat { border-radius: 999px !important; padding: .22rem .7rem !important; }
.bk-list .cat.growth { background: #e3f0fd !important; color: #1565c0 !important; }
.bk-list .cat.characterization { background: #e0f5f2 !important; color: #00796b !important; }
.bk-list .cat.support { background: #eceff1 !important; color: #455a64 !important; }
.bk-rule { border-radius: 18px !important; border: 1px solid #dbe6f3 !important; padding: 22px !important; box-shadow: 0 8px 24px rgba(13,27,62,0.07) !important; }
.bk-rule.guide { background: linear-gradient(160deg, #eef5fe 0%, #ffffff 60%) !important; }
.bk-rule.safe { background: linear-gradient(160deg, #fdeeee 0%, #ffffff 60%) !important; border-color: #f3d4d1 !important; }
.bk-rule h3 i { width: 40px !important; height: 40px !important; border-radius: 12px !important; color: #fff !important; }
.bk-rule.guide h3 i { background: linear-gradient(135deg, #64b5f6, #1565c0) !important; }
.bk-rule.safe h3 i { background: linear-gradient(135deg, #ef8a80, #c62828) !important; }
.bk-rule li { background: rgba(255,255,255,0.7); border: 1px solid rgba(13,27,62,0.05); border-radius: 10px; padding: .55rem .75rem !important; margin-bottom: 6px; }
@media (max-width: 991.98px) { .bk-step:not(:last-child)::after { display: none !important; } }
@media (max-width: 575.98px) { .bk-steps { gap: 12px !important; } .bk-step { padding: 16px !important; } }

/* Contact */
.ct-form { border-radius: 20px !important; border: 1px solid #dbe6f3 !important; box-shadow: 0 10px 30px rgba(13,27,62,0.08) !important; }
.ct-field input, .ct-field select, .ct-field textarea { border-radius: 12px !important; background: #f8fbff; border-color: #dbe6f3 !important; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { background: #fff; box-shadow: 0 0 0 3px rgba(21,101,192,0.15) !important; border-color: #1565c0 !important; }
.ct-map { border-radius: 20px !important; overflow: hidden; border: 1px solid #dbe6f3 !important; box-shadow: 0 10px 30px rgba(13,27,62,0.08); }
.ct-info i { color: #64b5f6 !important; border-radius: 12px !important; background: rgba(100,181,246,0.14) !important; }
.ct-success, .ct-error { border-radius: 12px; }
.ct-reason button { background: color-mix(in srgb, var(--c1) 10%, white) !important; color: var(--c1) !important; border-radius: 999px !important; padding: .4rem .9rem !important; }
.ct-reason button:hover { text-decoration: none !important; background: var(--c1) !important; color: #fff !important; }

/* Policies */
.pl-box { border-radius: 18px !important; border: 1px solid #dbe6f3 !important; background: linear-gradient(160deg, #f3f8fe 0%, #ffffff 55%) !important; box-shadow: 0 6px 20px rgba(13,27,62,0.06); }
.pl-box h3 i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; display: grid; place-items: center; font-size: .85rem; color: #fff !important; background: linear-gradient(135deg, #64b5f6, #1565c0); }
.pl-alert { border-radius: 14px; border-left-width: 4px !important; }
.pl-emerg { background: radial-gradient(120% 80% at 100% 0%, rgba(255,138,128,0.35), transparent 60%), linear-gradient(150deg, #7f1d1d 0%, #b23b30 100%) !important; box-shadow: 0 14px 34px rgba(127,29,29,0.3); border-radius: 20px !important; }
.pl-emerg .nums a { border-radius: 14px; background: rgba(255,255,255,0.12) !important; border: 1px solid rgba(255,255,255,0.15); transition: background .2s, transform .2s; }
.pl-emerg .nums a:hover { background: rgba(255,255,255,0.22) !important; transform: translateY(-2px); }
.pl-chips span { border-radius: 999px !important; }
.pl-toc { background: #fff; border: 1px solid #dbe6f3; border-radius: 18px; padding: 18px; box-shadow: 0 8px 24px rgba(13,27,62,0.07); }
.pl-toc ol { border-top: 0 !important; display: grid; gap: 2px; }
.pl-toc a { border-bottom: 0 !important; border-radius: 10px; padding: .5rem .6rem !important; }
.pl-toc a:hover { background: #f5f8fd; }
.pl-toc a.on { background: var(--nm-royal); color: #fff !important; box-shadow: none !important; }
.pl-toc a.on::before { color: rgba(255,255,255,0.75); }
.pl-progress { border-radius: 999px; overflow: hidden; }
.pl-progress div { background: var(--nm-accent-grad) !important; }
.pl-ladder { border-radius: 18px; overflow: hidden; border-color: #dbe6f3 !important; box-shadow: 0 6px 20px rgba(13,27,62,0.06); }
@media (max-width: 991.98px) { .pl-toc { position: static; } }

/* Gallery */
.gl-item { border-radius: 16px; box-shadow: 0 8px 22px rgba(13,27,62,0.10); transition: transform .25s, box-shadow .25s; }
.gl-item:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(13,27,62,0.18); }
.gl-filter { border-radius: 999px !important; }
.gl-filter.active { background: var(--nm-royal) !important; border-color: transparent !important; }
.gl-box img { border-radius: 14px; }

/* =====================================================================
   Home page cards: NOMAD letters, How we work, PI, closing banner
   ===================================================================== */
.ih-letters { border-top: 0 !important; display: grid; gap: 10px; }
.ih-letters > div { --c1: #1565c0; --c2: #64b5f6; grid-template-columns: 56px 1fr !important; align-items: center !important; padding: 14px 16px !important; border: 1px solid #dbe6f3 !important; border-radius: 16px;
    background: linear-gradient(110deg, color-mix(in srgb, var(--c2) 12%, white) 0%, #ffffff 55%); box-shadow: 0 6px 18px rgba(13,27,62,0.06); transition: transform .2s, box-shadow .2s; }
.ih-letters > div:nth-child(5n+2) { --c1: #00897b; --c2: #4dd0c4; }
.ih-letters > div:nth-child(5n+3) { --c1: #0277bd; --c2: #4fc3f7; }
.ih-letters > div:nth-child(5n+4) { --c1: #37597a; --c2: #78a6cf; }
.ih-letters > div:nth-child(5n+5) { --c1: #0d47a1; --c2: #42a5f5; }
.ih-letters > div:hover { transform: translateX(4px); box-shadow: 0 12px 26px rgba(13,27,62,0.11); }
.ih-letters b { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem !important; color: #fff !important;
    background: linear-gradient(135deg, var(--c2), var(--c1)); box-shadow: 0 6px 16px color-mix(in srgb, var(--c1) 35%, transparent); }

.ih-cards { gap: 22px !important; }
.ih-card { --c1: #1565c0; --c2: #64b5f6; position: relative; border-radius: 18px !important; overflow: hidden; border: 1px solid #dbe6f3 !important; box-shadow: 0 8px 24px rgba(13,27,62,0.08); }
.ih-card:nth-child(4n+2) { --c1: #00897b; --c2: #4dd0c4; }
.ih-card:nth-child(4n+3) { --c1: #0277bd; --c2: #4fc3f7; }
.ih-card:nth-child(4n+4) { --c1: #37597a; --c2: #78a6cf; }
.ih-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.ih-card .ph { position: relative; }
.ih-card .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,40,0) 55%, rgba(10,20,40,0.4) 100%); }
.ih-card .ph .no { position: absolute; left: 14px; top: 14px; z-index: 1; min-width: 40px; height: 32px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff;
    background: linear-gradient(135deg, var(--c2), var(--c1)); box-shadow: 0 6px 14px rgba(0,0,0,0.25); border: 2px solid rgba(255,255,255,0.8); }
.ih-card .bd { display: flex; flex-direction: column; background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--c2) 8%, white) 100%); padding-bottom: 22px !important; }
.ih-card .go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: var(--c1); }
.ih-card .go i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; background: color-mix(in srgb, var(--c1) 12%, white); transition: transform .2s, background .2s, color .2s; }
.ih-card:hover .go i { transform: translateX(4px); background: var(--c1); color: #fff; }

.ih-pi > .ph { position: relative; border-radius: 24px; padding: 14px; background: radial-gradient(120% 80% at 100% 0%, rgba(66,165,245,0.3), transparent 60%), linear-gradient(155deg, #0b1424 0%, #0f2240 55%, #12305c 100%); box-shadow: 0 18px 40px rgba(8,16,36,0.3); }
.ih-pi > .ph img { display: block; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 20%; border-radius: 16px; }
.ih-pi blockquote { position: relative; border: 0 !important; background: #eef5fe; border-radius: 16px; padding: 18px 20px 18px 52px !important; font-size: 1.1rem !important; }
.ih-pi blockquote i { position: absolute; left: 20px; top: 20px; color: #64b5f6; font-style: normal; font-size: 1.1rem; }
.ih-journey { position: relative; padding-left: 22px !important; }
.ih-journey::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, #1565c0, #64b5f6); border-radius: 2px; }
.ih-journey li { position: relative; border-top: 0 !important; margin-bottom: 10px; padding: 12px 16px !important; background: #fff; border: 1px solid #e3ebf5 !important; border-radius: 14px; box-shadow: 0 4px 14px rgba(13,27,62,0.05); }
.ih-journey li::before { content: ""; position: absolute; left: -22px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #1e88e5; box-shadow: 0 0 0 3px rgba(30,136,229,0.15); }
.ih-journey li:first-child::before { background: #1e88e5; }
.ih-journey .when { color: #1565c0 !important; font-weight: 700; }

.ih-cta { position: relative; overflow: hidden; background: radial-gradient(60% 120% at 100% 0%, rgba(255,255,255,0.15), transparent 60%), var(--nm-royal) !important; }
.ih-cta::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 0 0 40px rgba(255,255,255,0.05), 0 0 0 80px rgba(255,255,255,0.03); pointer-events: none; }
.ih-cta .container { position: relative; z-index: 1; }
@media (max-width: 767.98px) { .ih-journey li { grid-template-columns: 1fr !important; } }
@media (max-width: 991.98px) { .ih-pi > .ph { max-width: 340px; } }

/* Admin dashboard v2 cards */
.ad-stats { background: transparent !important; box-shadow: none !important; gap: 16px; overflow: visible !important; border-radius: 0 !important; }
.ad-stats > a { --c1: #1565c0; --c2: #64b5f6; display: flex !important; align-items: center; gap: 14px; justify-content: flex-start !important; padding: 18px 20px !important; border-radius: 18px; text-decoration: none; color: #fff;
    background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,0.18), transparent 60%), linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 28px color-mix(in srgb, var(--c1) 30%, transparent); border: 0 !important; transition: transform .2s, box-shadow .2s; }
.ad-stats > a:nth-child(2) { --c1: #c77800; --c2: #f7c04a; }
.ad-stats > a:nth-child(3) { --c1: #00897b; --c2: #4dd0c4; }
.ad-stats > a:nth-child(4) { --c1: #0277bd; --c2: #4fc3f7; }
.ad-stats > a:nth-child(2):not(.warn) { --c1: #546e7a; --c2: #90a4ae; }
.ad-stats > a:hover { transform: translateY(-3px); color: #fff; }
.ad-stats > a > i { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem !important; color: #fff !important; background: rgba(255,255,255,0.2); }
.ad-stats .warn b { color: #fff !important; }
.ad-stats > a.warn { animation: adGlow 2.4s ease-in-out infinite; }
@keyframes adGlow { 50% { box-shadow: 0 12px 34px rgba(199,120,0,0.55); } }
@media (prefers-reduced-motion: reduce) { .ad-stats > a.warn { animation: none; } }

.ad-tile { --c1: #1565c0; --c2: #64b5f6; position: relative; overflow: hidden; border-radius: 18px !important; border: 1px solid #dbe6f3 !important; background: linear-gradient(160deg, color-mix(in srgb, var(--c2) 14%, white) 0%, #ffffff 60%) !important; }
.ad-tile.t-wiki { --c1: #00897b; --c2: #4dd0c4; }
.ad-tile.t-inv { --c1: #0277bd; --c2: #4fc3f7; }
.ad-tile.t-users { --c1: #37597a; --c2: #78a6cf; }
.ad-tile:not(.main)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.ad-tile:not(.main)::after { content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 16px; bottom: 14px; font-size: .75rem; color: var(--c1); opacity: .5; transition: transform .2s, opacity .2s; }
.ad-tile:not(.main):hover::after { transform: translateX(4px); opacity: 1; }
.ad-tile .ic { background: linear-gradient(135deg, var(--c2), var(--c1)) !important; box-shadow: 0 6px 16px color-mix(in srgb, var(--c1) 30%, transparent); }
.ad-tile.main { background: radial-gradient(120% 80% at 100% 0%, rgba(66,165,245,0.3), transparent 60%), linear-gradient(155deg, #0b1424 0%, #0f2240 55%, #12305c 100%) !important; border: 0 !important; box-shadow: 0 14px 34px rgba(8,16,36,0.3) !important; }
.ad-tile.main .ic { background: rgba(255,255,255,0.14) !important; box-shadow: none; }

.ad-card { border-radius: 18px !important; border: 1px solid #dbe6f3 !important; box-shadow: 0 8px 24px rgba(13,27,62,0.07) !important; }
.ad-card .hd { background: linear-gradient(160deg, #eef5fe, #ffffff); }
.ad-card .hd h2 { display: flex; align-items: center; gap: 10px; }
.ad-card .hd h2 i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: .8rem; margin: 0 !important; color: #fff !important; background: linear-gradient(135deg, #64b5f6, #1565c0); }
.ad-empty i { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid !important; place-items: center; color: #fff !important; background: linear-gradient(135deg, #66d19e, #2e9d62); font-size: 1.5rem !important; box-shadow: 0 8px 20px rgba(46,125,82,0.3); }
.ad-table tbody tr:hover { background: #f5f9fe; }
.ad-ok, .ad-no { border-radius: 999px !important; padding: .35rem .85rem !important; }
.ad-ok { background: linear-gradient(135deg, #66d19e, #2e9d62) !important; }
.ad-no { background: linear-gradient(135deg, #ef8a80, #c62828) !important; }

.ad-roles > div { --c1: #1565c0; --c2: #64b5f6; position: relative; text-align: left !important; display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "ic b pct" "ic s s" "bar bar bar"; gap: 2px 12px; align-items: center;
    background: linear-gradient(160deg, color-mix(in srgb, var(--c2) 14%, white), #ffffff) !important; border: 1px solid #dbe6f3; border-radius: 16px !important; padding: 14px !important; }
.ad-roles > div.r2 { --c1: #00897b; --c2: #4dd0c4; }
.ad-roles > div.r3 { --c1: #0277bd; --c2: #4fc3f7; }
.ad-roles i { grid-area: ic; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c2), var(--c1)); }
.ad-roles b { grid-area: b; background: none !important; -webkit-text-fill-color: currentColor; color: var(--c1) !important; font-size: 1.6rem !important; }
.ad-roles span { grid-area: s; }
.ad-roles small { grid-area: pct; font-weight: 700; color: var(--c1); font-size: .78rem; }
.ad-roles em { grid-area: bar; display: block; height: 6px; margin-top: 10px; border-radius: 999px; background: color-mix(in srgb, var(--c1) 12%, white); overflow: hidden; }
.ad-roles em s { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--c1), var(--c2)); text-decoration: none; }

.ad-feed { padding-right: 4px !important; }
.ad-feed li { padding: 10px 12px 10px 52px !important; margin-bottom: 8px; border: 1px solid #e6edf6; border-radius: 14px; background: #fff; transition: background .15s; }
.ad-feed li:hover { background: #f5f9fe; }
.ad-feed li::before, .ad-feed li::after { display: none !important; }
.ad-feed .fi { position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: .75rem; color: #fff; background: linear-gradient(135deg, #90a4ae, #546e7a); }
.ad-feed li.k-login .fi { background: linear-gradient(135deg, #64b5f6, #1565c0); }
.ad-feed li.k-wiki .fi { background: linear-gradient(135deg, #4dd0c4, #00897b); }
.ad-feed li.k-user .fi { background: linear-gradient(135deg, #f7c04a, #c77800); }
.ad-feed li.k-content .fi { background: linear-gradient(135deg, #4fc3f7, #0277bd); }
@media (max-width: 991.98px) { .ad-stats > a:nth-child(3) { border-left: 0 !important; } }
@media (max-width: 575.98px) { .ad-stats { gap: 10px; } .ad-stats > a { padding: 14px !important; gap: 10px; } .ad-stats > a > i { width: 38px; height: 38px; flex-basis: 38px; font-size: 1rem !important; } }
.ad-stats > a > i { display: grid !important; }

/* Website content (CMS) dashboard to match */
.wc-steps { gap: 14px !important; background: transparent !important; border: 0 !important; }
.wc-steps div { border: 1px solid #dbe6f3 !important; border-radius: 16px; background: linear-gradient(160deg, #eef5fe, #ffffff 60%); box-shadow: 0 6px 18px rgba(13,27,62,0.06); }
.wc-steps b { border-radius: 10px !important; flex-basis: 30px !important; height: 30px !important; background: var(--nm-accent-grad) !important; }
.wc-quick { box-shadow: 0 14px 34px rgba(8,16,36,0.3); }
.wc-quick a { border-radius: 999px !important; }
.wc-quick a i { color: #64b5f6 !important; }
.wc-find input { border-radius: 12px !important; background: #f8fbff; border-color: #dbe6f3 !important; }
.wc-group .gh { border-bottom: 0 !important; position: relative; }
.wc-group .gh::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--nm-accent-grad); }
.wc-tiles { gap: 14px !important; }
.wc-tile { --c1: #1565c0; --c2: #64b5f6; position: relative; overflow: hidden; border-radius: 16px !important; border: 1px solid #dbe6f3 !important; background: linear-gradient(160deg, color-mix(in srgb, var(--c2) 12%, white) 0%, #ffffff 55%) !important; transition: transform .2s, box-shadow .2s !important; }
.wc-group:nth-of-type(3n+2) .wc-tile { --c1: #00897b; --c2: #4dd0c4; }
.wc-group:nth-of-type(3n+3) .wc-tile { --c1: #0277bd; --c2: #4fc3f7; }
.wc-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13,27,62,0.12) !important; border-color: color-mix(in srgb, var(--c1) 40%, white) !important; }
.wc-tile .ic { color: #fff !important; background: linear-gradient(135deg, var(--c2), var(--c1)) !important; box-shadow: 0 6px 14px color-mix(in srgb, var(--c1) 30%, transparent); }
.wc-tile .count { color: var(--c1) !important; background: color-mix(in srgb, var(--c1) 10%, white); border-radius: 999px; padding: 0 8px; }
.wc-tile .st.edited { color: #2e7d52 !important; }
.wc-box { border-radius: 16px !important; border: 1px solid #dbe6f3 !important; box-shadow: 0 6px 18px rgba(13,27,62,0.06); }

/* =====================================================================
   Inventory pages: header banner, coloured stat cards, pill tabs, tables
   ===================================================================== */
main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 {
    padding: 26px 28px; border-radius: 20px; color: #fff; flex-wrap: wrap; gap: 14px;
    background: radial-gradient(120% 90% at 100% 0%, rgba(66,165,245,0.28), transparent 60%), linear-gradient(155deg, #0b1424 0%, #0f2240 55%, #12305c 100%);
    box-shadow: 0 14px 34px rgba(8,16,36,0.28); }
main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 h2 { color: #fff !important; margin-bottom: 4px; }
main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 h2 i { -webkit-text-fill-color: currentColor; background: none !important; color: #64b5f6 !important; }
main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 p, main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 .text-muted { color: rgba(255,255,255,0.72) !important; }
main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 .breadcrumb { margin: 0; }
main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 .breadcrumb a { color: #90caf9; }
main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 .breadcrumb-item.active, main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }
main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 .btn { background: #fff !important; color: #0b1424 !important; border: 0 !important; border-radius: 12px; padding: .6rem 1.1rem; box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 .btn:hover { background: var(--nm-accent-grad) !important; color: #fff !important; }
main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 .btn i { color: inherit !important; }

/* stat cards: a colour per item type */
main .nm-app .card.bg-primary { background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,0.18), transparent 60%), linear-gradient(135deg, #1565c0, #64b5f6) !important; }
main .nm-app .card.bg-success { background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,0.18), transparent 60%), linear-gradient(135deg, #00897b, #4dd0c4) !important; box-shadow: 0 10px 28px rgba(0,137,123,0.28) !important; }
main .nm-app .card.bg-warning { background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,0.18), transparent 60%), linear-gradient(135deg, #0277bd, #4fc3f7) !important; box-shadow: 0 10px 28px rgba(2,119,189,0.28) !important; }
main .nm-app .card.bg-info { background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,0.18), transparent 60%), linear-gradient(135deg, #37597a, #78a6cf) !important; box-shadow: 0 10px 28px rgba(55,89,122,0.28) !important; }
main .nm-app .card[class*="bg-"] { border-radius: 18px !important; }
main .nm-app .card[class*="bg-"] h3 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
main .nm-app .card[class*="bg-"] p { font-weight: 600; opacity: .9; }
main .nm-app .card[class*="bg-"] .fa-2x { opacity: 1 !important; font-size: 1.3rem !important; width: 52px; height: 52px; border-radius: 15px; display: grid !important; place-items: center; background: rgba(255,255,255,0.2); }
main .nm-app .card[class*="bg-"] .card-footer a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; }
main .nm-app .card[class*="bg-"] .card-footer a i { transition: transform .2s; }
main .nm-app .card[class*="bg-"]:hover .card-footer a i { transform: translateX(4px); }

/* tabs as pills */
main .nm-app .card-header .nav-tabs { border: 0 !important; gap: 6px; flex-wrap: wrap; margin: 0; }
main .nm-app .card-header .nav-tabs .nav-link { border-radius: 999px !important; padding: .45rem 1rem; background: #f3f7fc; border: 1px solid #e0eaf6 !important; }
main .nm-app .card-header .nav-tabs .nav-link:hover { background: #e8f1fc; color: var(--nm-blue); }
main .nm-app .card-header .nav-tabs .nav-link.active { background: var(--nm-royal) !important; color: #fff !important; border-color: transparent !important; }
main .nm-app .card-header { padding: 14px 18px !important; background: linear-gradient(160deg, #eef5fe, #ffffff) !important; }

/* tables and search cards */
main .nm-app .card:not([class*="bg-"]) { border-radius: 18px !important; border: 1px solid #dbe6f3 !important; box-shadow: 0 8px 24px rgba(13,27,62,0.07) !important; }
main .nm-app .table thead th { background: #f2f7fd !important; }
main .nm-app .table tbody tr { transition: background .15s; }
main .nm-app .table tbody tr:hover > * { background: #f5f9fe !important; }
main .nm-app .table td b, main .nm-app .table td strong { color: var(--nm-ink); }
main .nm-app code { background: #e8f1fc !important; color: #0d47a1 !important; border-radius: 6px; padding: 2px 7px; }
main .nm-app .badge { padding: .35em .75em; }
main .nm-app .badge.bg-danger { background: linear-gradient(135deg, #ef8a80, #c62828) !important; }
main .nm-app .badge.bg-success { background: linear-gradient(135deg, #66d19e, #2e9d62) !important; }
main .nm-app .badge.bg-warning { background: linear-gradient(135deg, #ffd27a, #f0a500) !important; color: #4a3200 !important; }
main .nm-app .badge.bg-secondary { background: #e3ebf5 !important; color: #37597a !important; }
main .nm-app .badge.bg-light { background: #fff !important; border: 1px solid #dbe6f3; }
main .nm-app .btn-sm.btn-outline-danger, main .nm-app .btn-sm.btn-danger { border-radius: 10px; }

/* file repository cards */
main .nm-app .card.h-100.shadow-sm { position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; background: linear-gradient(160deg, #f3f8fe 0%, #ffffff 55%) !important; }
main .nm-app .card.h-100.shadow-sm::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--nm-accent-grad); }
main .nm-app .card.h-100.shadow-sm:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(13,27,62,0.14) !important; }
main .nm-app .card.h-100.shadow-sm .card-header { background: transparent !important; border-bottom: 0 !important; padding-top: 16px !important; }
@media (max-width: 575.98px) { main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 { padding: 20px; } }

/* =====================================================================
   DAS Wiki: category colours, cards, lists, side boxes, page view
   ===================================================================== */
.wk-cat, .wk-list a.row { --c1: #1565c0; --c2: #64b5f6; }
.c-procedures { --c1: #00897b !important; --c2: #4dd0c4 !important; }
.c-safety { --c1: #c62828 !important; --c2: #ef8a80 !important; }
.c-iisc { --c1: #37597a !important; --c2: #78a6cf !important; }
.c-software { --c1: #0277bd !important; --c2: #4fc3f7 !important; }
.c-questions { --c1: #c77800 !important; --c2: #f7c04a !important; }

.wk-top { background: radial-gradient(120% 90% at 100% 0%, rgba(66,165,245,0.25), transparent 60%), var(--nm-hero-bg) !important; }
.wk-top .brand { color: #90caf9 !important; }
.wk-top .acts a { border-radius: 12px !important; }
.wk-top .acts .a1 { background: var(--nm-accent-grad) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(21,101,192,0.35); }
.wk-search input { border-radius: 14px !important; }
.wk-search input:focus { outline: 3px solid rgba(100,181,246,0.6) !important; }

.wk-h2 { border-bottom: 0 !important; position: relative; padding-bottom: 12px !important; }
.wk-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--nm-accent-grad); }
.wk-cats { gap: 14px !important; }
.wk-cat { position: relative; overflow: hidden; border-radius: 18px !important; border: 1px solid #dbe6f3 !important; padding: 18px !important;
    background: linear-gradient(160deg, color-mix(in srgb, var(--c2) 15%, white) 0%, #ffffff 60%) !important; box-shadow: 0 6px 18px rgba(13,27,62,0.06); transition: transform .2s, box-shadow .2s !important; }
.wk-cat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.wk-cat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13,27,62,0.12) !important; border-color: color-mix(in srgb, var(--c1) 35%, white) !important; }
.wk-cat .ic { width: 44px !important; height: 44px !important; border-radius: 13px !important; color: #fff !important; background: linear-gradient(135deg, var(--c2), var(--c1)) !important; box-shadow: 0 6px 14px color-mix(in srgb, var(--c1) 30%, transparent); }
.wk-cat small { color: var(--c1) !important; background: color-mix(in srgb, var(--c1) 10%, white); border-radius: 999px; padding: 1px 9px; justify-self: start; }

.wk-list { border: 0 !important; background: transparent !important; display: grid; gap: 8px; }
.wk-list li { border: 0 !important; }
.wk-list a.row { position: relative; border: 1px solid #e3ebf5; border-left: 4px solid var(--c1); border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(13,27,62,0.04); transition: transform .15s, box-shadow .15s, background .15s; }
.wk-list a.row:hover { background: color-mix(in srgb, var(--c2) 8%, white) !important; transform: translateX(3px); box-shadow: 0 10px 22px rgba(13,27,62,0.08); }
.wk-list .ic { width: 36px !important; height: 36px !important; flex-basis: 36px !important; border-radius: 11px !important; color: #fff !important; background: linear-gradient(135deg, var(--c2), var(--c1)) !important; }
.wk-badge { border-radius: 999px !important; padding: .14rem .55rem !important; }

.wk-side .wk-box, .wk-meta .wk-box, .wk-help-side .wk-box { border-radius: 18px !important; border: 1px solid #dbe6f3 !important; box-shadow: 0 6px 18px rgba(13,27,62,0.06); }
.wk-box h3 { display: flex; align-items: center; gap: 10px; }
.wk-box h3 > i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .78rem; color: #fff; background: linear-gradient(135deg, #64b5f6, #1565c0); }
.wk-box.b-q { background: linear-gradient(160deg, #fff6e0, #ffffff 60%) !important; }
.wk-box.b-q h3 > i { background: linear-gradient(135deg, #f7c04a, #c77800); }
.wk-box.b-fill { background: linear-gradient(160deg, #eef5fe, #ffffff 60%) !important; }
.wk-box.b-who h3 > i { background: linear-gradient(135deg, #4dd0c4, #00897b); }
.wk-box .big { background: var(--nm-title-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wk-fillbar { height: 8px; border-radius: 999px; background: #e3ebf5; overflow: hidden; margin-top: 8px; }
.wk-fillbar s { display: block; height: 100%; border-radius: 999px; background: var(--nm-accent-grad); text-decoration: none; }
.wk-fillcap { display: block; color: var(--nm-muted); font-size: .76rem; margin-top: 4px; }
.wk-empty { border-radius: 16px; }

/* page view */
.wk-toc { background: #fff; border: 1px solid #dbe6f3; border-radius: 18px; padding: 16px; box-shadow: 0 6px 18px rgba(13,27,62,0.06); }
.wk-toc a { border-left: 0 !important; border-radius: 10px; padding: 6px 10px !important; }
.wk-toc a.h3 { padding-left: 22px !important; }
.wk-toc a:hover { background: #f5f8fd; }
.wk-toc a.on { background: var(--nm-royal); color: #fff !important; }
.wk-tags a { border-radius: 999px !important; padding: .22rem .7rem !important; }
.wk-notice { border-radius: 14px; }
.wk-by span { background: #f3f7fc; border: 1px solid #e3ebf5; border-radius: 999px; padding: 3px 10px; }
.wk-toc a.h2, .wk-toc a.h3 { font-size: .86rem !important; font-weight: 600 !important; line-height: 1.4 !important; margin: 0 !important; letter-spacing: 0 !important; }
.wk-toc a.h3 { font-size: .8rem !important; font-weight: 500 !important; }

/* =====================================================================
   Wiki editor page: template cards, form card, toolbar, side boxes
   ===================================================================== */
.wk-tpls { border-radius: 20px !important; border: 1px solid #dbe6f3 !important; background: linear-gradient(160deg, #f3f8fe 0%, #ffffff 50%) !important; padding: 20px !important; }
.wk-tpls .hd b { font-size: 1.05rem !important; }
.wk-tpl { --c1: #1565c0; --c2: #64b5f6; position: relative; overflow: hidden; border-radius: 16px !important; border: 1px solid #dbe6f3 !important;
    background: linear-gradient(160deg, color-mix(in srgb, var(--c2) 15%, white) 0%, #ffffff 60%) !important; padding: 16px 14px 14px !important; }
.wk-tpl[data-tpl="procedure"] { --c1: #00897b; --c2: #4dd0c4; }
.wk-tpl[data-tpl="howto"] { --c1: #37597a; --c2: #78a6cf; }
.wk-tpl[data-tpl="trouble"] { --c1: #c77800; --c2: #f7c04a; }
.wk-tpl.blank { --c1: #78909c; --c2: #b0bec5; background: #fff !important; border-style: dashed !important; }
.wk-tpl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.wk-tpl.blank::before { display: none; }
.wk-tpl .ic { width: 42px !important; height: 42px !important; border-radius: 13px !important; color: #fff !important; background: linear-gradient(135deg, var(--c2), var(--c1)) !important; box-shadow: 0 6px 14px color-mix(in srgb, var(--c1) 30%, transparent); }
.wk-tpl.blank .ic { background: #eef2f5 !important; color: #607d8b !important; box-shadow: none; }
.wk-tpl::after { content: "Use \2192"; position: absolute; right: 12px; top: 14px; font-size: .7rem; font-weight: 700; color: var(--c1); background: #fff; border: 1px solid color-mix(in srgb, var(--c1) 25%, white); border-radius: 999px; padding: 1px 8px; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.wk-tpl:hover::after, .wk-tpl:focus-visible::after { opacity: 1; transform: none; }
.wk-tpl:hover { border-color: color-mix(in srgb, var(--c1) 40%, white) !important; }

.wk-form { position: relative; overflow: hidden; border-radius: 20px !important; border: 1px solid #dbe6f3 !important; padding: 26px 24px 22px !important; }
.wk-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--nm-accent-grad); }
.wk-form .cm-field input[type=text], .wk-form .cm-field select { border-radius: 12px !important; background: #f8fbff; border-color: #dbe6f3 !important; }
.wk-form .cm-field input[type=text]:focus, .wk-form .cm-field select:focus { background: #fff; border-color: #1565c0 !important; box-shadow: 0 0 0 3px rgba(21,101,192,0.15) !important; outline: none; }
.wk-form #wkTitle { font-size: 1.05rem; font-weight: 600; padding: .7rem .9rem; }
.wk-tool { background: linear-gradient(180deg, #f3f8fe, #eef5fe) !important; border-color: #d5e3f3 !important; border-radius: 14px 14px 0 0 !important; padding: 8px !important; }
.wk-tool .grp { background: #fff; border: 1px solid #e0eaf6 !important; border-radius: 10px; padding: 2px 4px !important; }
.wk-tool button:hover { background: #e8f1fc !important; border-color: transparent !important; }
.wk-panes #wkBody { border-color: #d5e3f3 !important; }
.wk-panes.write #wkBody, .wk-panes.preview #wkPreview { border-radius: 0 0 14px 14px !important; }
.wk-panes.split #wkBody { border-radius: 0 0 0 14px !important; }
.wk-panes.split #wkPreview { border-radius: 0 0 14px 0 !important; border-color: #d5e3f3 !important; }
.wk-panes #wkBody:focus { border-color: #1565c0 !important; box-shadow: 0 0 0 3px rgba(21,101,192,0.12); }
.wk-tpick, .wk-tbar, .wk-picker { border-color: #d5e3f3 !important; }
.wk-status { padding: 0 4px; }
.wk-form .cm-formbar { border-top: 1px dashed #d5e3f3; padding-top: 16px; margin-top: 6px; }
.wk-form .cm-formbar .cm-btn.primary { border-radius: 12px; padding-left: 1.2rem; padding-right: 1.2rem; box-shadow: 0 6px 16px rgba(21,101,192,0.3); }

.wk-help-side .wk-box { position: relative; overflow: hidden; }
.wk-help-side .wk-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--nm-accent-grad); }
.wk-help-side .wk-box.wk-check::before { background: linear-gradient(90deg, #2e9d62, #66d19e); }
.wk-help-side .wk-box.wk-tips::before { background: linear-gradient(90deg, #c77800, #f7c04a); }
.wk-help-side h3 i { width: 30px; height: 30px; border-radius: 9px; display: grid !important; place-items: center; font-size: .78rem; color: #fff !important; background: linear-gradient(135deg, #64b5f6, #1565c0); }
.wk-help-side .wk-check h3 i { background: linear-gradient(135deg, #66d19e, #2e9d62); }
.wk-help-side .wk-tips h3 i { background: linear-gradient(135deg, #f7c04a, #c77800); }
.wk-help-side .wk-ref { background: linear-gradient(160deg, #f3f8fe 0%, #ffffff 50%) !important; }
.wk-help-side .wk-check { background: linear-gradient(160deg, #eefaf3 0%, #ffffff 50%) !important; }
.wk-help-side .wk-tips { background: linear-gradient(160deg, #fff8e6 0%, #ffffff 50%) !important; }
.wk-check li { border-radius: 8px; padding: 4px 6px !important; }
.wk-check li.ok { background: rgba(46,125,82,0.07); }
.wk-tips ol { counter-reset: tip; list-style: none; padding-left: 0 !important; }
.wk-tips li { counter-increment: tip; position: relative; padding-left: 30px; }
.wk-tips li::before { content: counter(tip); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #f7c04a, #c77800); }
.wk-ref tbody tr td:first-child code { background: #e8f1fc; color: #0d47a1; }
.wk-restore { border-radius: 14px !important; }

/* =====================================================================
   User management, account pages, add-item forms, CMS lists, history
   ===================================================================== */
/* user management */
.u-av { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #fff; letter-spacing: .02em;
    background: linear-gradient(135deg, #78a6cf, #37597a); box-shadow: 0 0 0 3px #fff, 0 0 0 4px #dbe6f3; }
.u-av.r-admin { background: linear-gradient(135deg, #64b5f6, #1565c0); }
.u-av.r-member { background: linear-gradient(135deg, #4dd0c4, #00897b); }
.u-av.r-collaborator { background: linear-gradient(135deg, #4fc3f7, #0277bd); }
main .nm-app .btn-group-sm > .btn, main .nm-app .btn-sm { border-radius: 10px !important; }
main .nm-app .btn-group-sm { gap: 6px; }
main .nm-app .btn-group-sm > .btn, main .nm-app .btn-group-sm > form > .btn { border-radius: 10px !important; }
main .nm-app .btn-success.btn-sm { background: linear-gradient(135deg, #66d19e, #2e9d62) !important; border: 0 !important; color: #fff !important; }
main .nm-app .btn-danger.btn-sm { background: linear-gradient(135deg, #ef8a80, #c62828) !important; border: 0 !important; }
main .nm-app .btn-warning.btn-sm { background: linear-gradient(135deg, #ffd27a, #f0a500) !important; border: 0 !important; color: #4a3200 !important; }
main .nm-app .btn-secondary { background: #fff !important; color: var(--nm-ink) !important; border: 0 !important; }
main .nm-app .form-select-sm { border-radius: 999px !important; padding-left: .8rem; background-color: #f5f8fd; font-weight: 600; }
main .nm-app .card-header h6 { font-size: 1rem; font-weight: 700 !important; color: var(--nm-ink) !important; }
main .nm-app .form-label { font-weight: 600; font-size: .85rem; color: var(--nm-ink); }
main .nm-app .form-control, main .nm-app .form-select { background-color: #f8fbff; border-color: #dbe6f3 !important; }

/* login, register, profile, change password */
main .nm-auth .card { overflow: hidden; border: 1px solid #dbe6f3 !important; box-shadow: 0 18px 44px rgba(13,27,62,0.14) !important; border-radius: 22px !important; }
main .nm-auth .card-header { position: relative; padding: 30px 26px 24px !important; background: radial-gradient(120% 90% at 100% 0%, rgba(66,165,245,0.3), transparent 60%), linear-gradient(155deg, #0b1424 0%, #0f2240 55%, #12305c 100%) !important; border: 0 !important; text-align: center; }
main .nm-auth .card-header h1, main .nm-auth .card-header h2, main .nm-auth .card-header h3, main .nm-auth .card-header h4 { color: #fff !important; font-size: 1.6rem !important; font-weight: 800 !important; }
main .nm-auth .card-header p, main .nm-auth .card-header .text-muted { color: rgba(255,255,255,0.72) !important; }
main .nm-auth .card-header :is(h1,h2,h3,h4,h5) > i { display: inline-grid !important; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin: 0 0 10px !important; font-size: 1.1rem; color: #fff; background: var(--nm-accent-grad); box-shadow: 0 8px 20px rgba(21,101,192,0.4); vertical-align: middle; }
main .nm-auth .card-header h1 i, main .nm-auth .card-header h2 i, main .nm-auth .card-header h3 i { display: block !important; margin: 0 auto 12px !important; }
.page-login main .nm-auth .card-header i, .page-register main .nm-auth .card-header i { display: block !important; }
main .nm-auth .card-body { padding: 26px 28px 28px !important; }
main .nm-auth .form-floating > .form-control { border-radius: 12px !important; }
main .nm-auth .btn-primary, main .nm-auth button[type=submit], main .nm-auth input[type=submit] { padding: .7rem 1.1rem; border-radius: 12px !important; box-shadow: 0 8px 20px rgba(21,101,192,0.3); }
.page-login main .nm-auth :is(button,input)[type=submit], .page-register main .nm-auth :is(button,input)[type=submit] { width: 100%; }
main .nm-auth .card-header .btn { border-radius: 12px !important; background: #fff !important; color: #0b1424 !important; border: 0 !important; }
main .nm-auth .card-header .btn i { color: inherit; }
main .nm-auth .card-footer { background: #f5f9fe !important; border-top: 1px solid #e3ebf5 !important; }
main .nm-auth .alert, main .nm-app .alert { border-radius: 14px; }

/* add-item forms: header as a navy banner */
main .nm-form .row > [class*="col"] > .mb-4:first-child { padding: 24px 26px; border-radius: 20px; color: #fff;
    background: radial-gradient(120% 90% at 100% 0%, rgba(66,165,245,0.28), transparent 60%), linear-gradient(155deg, #0b1424 0%, #0f2240 55%, #12305c 100%); box-shadow: 0 14px 34px rgba(8,16,36,0.28); }
main .nm-form .row > [class*="col"] > .mb-4:first-child h2 { color: #fff !important; }
main .nm-form .row > [class*="col"] > .mb-4:first-child h2 i { -webkit-text-fill-color: currentColor; background: none !important; color: #64b5f6 !important; }
main .nm-form .row > [class*="col"] > .mb-4:first-child .breadcrumb { margin: 0; }
main .nm-form .row > [class*="col"] > .mb-4:first-child .breadcrumb a { color: #90caf9; }
main .nm-form .row > [class*="col"] > .mb-4:first-child .breadcrumb-item.active, main .nm-form .row > [class*="col"] > .mb-4:first-child .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }
main .nm-form .card { position: relative; }
main .nm-form .card:not([class*="bg-"])::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--nm-accent-grad); z-index: 1; }
main .nm-form .card-header { padding-top: 18px !important; }
main .nm-form .form-text { font-size: .78rem; }

/* member dashboard */
main .nm-app .card.shadow { overflow: hidden; }

/* CMS section lists, item forms and history; wiki history */
.cm-head { padding: 22px 24px; border-radius: 20px; background: linear-gradient(160deg, #eef5fe 0%, #ffffff 60%); border: 1px solid #dbe6f3; box-shadow: 0 6px 18px rgba(13,27,62,0.06); }
.cm-table { border-radius: 18px; overflow: hidden; border-collapse: separate !important; border-spacing: 0; border-color: #dbe6f3 !important; box-shadow: 0 8px 24px rgba(13,27,62,0.07); }
.cm-table th { background: #f2f7fd !important; }
.cm-table tr:hover td { background: #f5f9fe !important; }
.cm-table .thumb { border-radius: 10px !important; box-shadow: 0 2px 8px rgba(13,27,62,0.12); }
.cm-table .num { font-weight: 700; color: #1565c0 !important; }
.cm-form { position: relative; overflow: hidden; border-radius: 20px !important; border: 1px solid #dbe6f3 !important; box-shadow: 0 10px 30px rgba(13,27,62,0.08); }
.cm-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--nm-accent-grad); }
.cm-field input[type=text], .cm-field input[type=url], .cm-field input[type=email], .cm-field input[type=number], .cm-field select, .cm-field textarea { border-radius: 12px !important; background: #f8fbff; border-color: #dbe6f3 !important; }
.cm-field input:focus, .cm-field select:focus, .cm-field textarea:focus { background: #fff; border-color: #1565c0 !important; box-shadow: 0 0 0 3px rgba(21,101,192,0.15) !important; outline: none; }
.cm-btn { border-radius: 10px !important; }
.cm-btn.primary { box-shadow: 0 6px 16px rgba(21,101,192,0.28); }
.cm-note { border-radius: 14px; }
.cm-hist { border: 0 !important; background: transparent !important; display: grid; gap: 8px; }
.cm-hist li { position: relative; border: 1px solid #e3ebf5 !important; border-radius: 14px; background: #fff; padding: 12px 16px 12px 46px !important; box-shadow: 0 4px 12px rgba(13,27,62,0.04); }
.cm-hist li::before { content: "\f1da"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: .65rem; color: #fff; background: linear-gradient(135deg, #64b5f6, #1565c0); }
.cm-hist li:hover { background: #f5f9fe; }
.wk-diff { border-radius: 14px; border-color: #dbe6f3 !important; overflow: hidden; }
@media (max-width: 767.98px) { .cm-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* =====================================================================
   Footer v2
   ===================================================================== */
.nm-footer { position: relative; overflow: hidden; padding-top: 76px !important;
    background: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.4px) 0 0 / 34px 34px,
                radial-gradient(70% 90% at 100% 0%, rgba(66,165,245,0.18), transparent 60%),
                radial-gradient(60% 80% at 0% 100%, rgba(21,101,192,0.18), transparent 60%),
                linear-gradient(160deg, #070d1a 0%, #0b1424 45%, #0f2240 100%) !important; }
.nm-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #1565c0, #29b6f6, #1565c0); }
.nm-footer .container { position: relative; z-index: 1; }
.nm-footer .nm-foot-logo { height: 46px !important; opacity: 1 !important; }
.nm-footer p.lead-small { color: rgba(255,255,255,0.72); }
.nm-foot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.nm-foot-chips span { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 4px 12px; }
.nm-foot-chips i { font-size: .72rem; }
.nm-foot-acts { display: flex; gap: 10px; }
.nm-foot-acts a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff !important; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); transition: transform .2s, background .2s, border-color .2s; }
.nm-foot-acts a i { color: #fff !important; }
.nm-foot-acts a:hover { transform: translateY(-3px); background: var(--nm-accent-grad); border-color: transparent; }
.nm-footer h6 { position: relative; padding-bottom: 10px; font-size: .78rem !important; font-weight: 700 !important; letter-spacing: .12em; text-transform: uppercase; color: #fff !important; }
.nm-footer h6::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--nm-accent-grad); }
.nm-footer ul:not(.nm-contact) a { display: inline-flex !important; align-items: center; gap: 0; transition: color .2s, gap .2s; }
.nm-footer ul:not(.nm-contact) a::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .55rem; color: #64b5f6; width: 0; overflow: hidden; opacity: 0; transition: width .2s, opacity .2s, margin .2s; }
.nm-footer ul:not(.nm-contact) a:hover { color: #fff; }
.nm-footer ul:not(.nm-contact) a:hover::before { width: 10px; opacity: 1; margin-right: 6px; }
.nm-footer .nm-contact li { align-items: flex-start !important; gap: 12px !important; margin-bottom: 12px !important; }
.nm-footer .nm-contact i { width: 32px !important; height: 32px; flex: 0 0 32px; border-radius: 10px; display: grid; place-items: center; font-size: .78rem; color: #fff !important; background: linear-gradient(135deg, rgba(100,181,246,0.35), rgba(21,101,192,0.45)); border: 1px solid rgba(255,255,255,0.12); }
.nm-footer .nm-contact a, .nm-footer .nm-contact span { padding-top: 5px; line-height: 1.5; }
.nm-footer .nm-foot-bottom { margin-top: 48px !important; border-top: 1px solid rgba(255,255,255,0.1) !important; }
.nm-footer .nm-partners { gap: 10px !important; }
.nm-footer .nm-partners a { display: grid; place-items: center; transition: transform .2s; }
.nm-footer .nm-partners a:hover { transform: translateY(-2px); }
.nm-footer .nm-partners img { height: 38px !important; width: 38px !important; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.nm-footer .nm-top { width: 38px; height: 38px; border-radius: 50%; color: #fff !important; background: var(--nm-accent-grad); box-shadow: 0 6px 16px rgba(21,101,192,0.4); margin-left: 6px; }
.nm-footer .nm-top i { color: #fff !important; font-size: .8rem; }

/* =====================================================================
   Navbar v3: pill links, account chip, compact on scroll, top bar
   ===================================================================== */
.nm-topbar { font-size: .78rem !important; }
.nm-topbar-links { gap: 0 !important; align-items: center; }
.nm-topbar-links a { padding: 0 .75rem; position: relative; }
.nm-topbar-links a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 10px; transform: translateY(-50%); background: rgba(255,255,255,0.18); }
.nm-topbar-links a.on { color: #64b5f6 !important; }
.nm-topbar .nm-login { margin-left: .6rem; padding: 3px 12px !important; border-radius: 999px; background: var(--nm-accent-grad); color: #fff !important; font-weight: 600; }
.nm-topbar .nm-login::before { display: none; }
.nm-topbar .nm-login:hover { filter: brightness(1.1); }

.navbar.nm-nav { transition: padding .25s ease, box-shadow .25s ease, background .25s ease; padding-top: .85rem !important; padding-bottom: .85rem !important; }
.navbar.nm-nav.scrolled { padding-top: .45rem !important; padding-bottom: .45rem !important; box-shadow: 0 10px 30px rgba(5,12,28,0.45) !important;
    background: linear-gradient(90deg, rgba(10,20,38,0.96) 0%, rgba(13,27,42,0.96) 45%, rgba(15,42,79,0.96) 100%) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nm-nav .nm-logo { transition: height .25s ease; }
.nm-nav.scrolled .nm-logo { height: 38px !important; }
@media (min-width: 992px) {
    .nm-nav .navbar-nav { gap: 2px; }
    .nm-nav .nav-link { border-radius: 10px; transition: background .2s, color .2s; }
    .nm-nav .nav-link:hover { background: rgba(255,255,255,0.08) !important; }
    .nm-nav .nav-link.active { background: rgba(100,181,246,0.16) !important; box-shadow: inset 0 0 0 1px rgba(100,181,246,0.25); }
    .nm-nav .nav-link.active::after { left: 50% !important; right: auto !important; width: 18px; transform: translateX(-50%); bottom: -0.5rem !important; height: 3px !important; border-radius: 3px !important; }
    .nm-nav.scrolled .nav-link.active::after { bottom: -0.3rem !important; }
    .nm-nav .navbar-nav:first-of-type > .nav-item:nth-last-child(-n+2) .nav-link { }
}
/* account chip */
.nm-nav .nav-item.dropdown > .nav-link { display: inline-flex !important; align-items: center; gap: 8px; padding: 4px 12px 4px 4px !important; border-radius: 999px !important; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); margin-left: 6px; }
.nm-nav .nav-item.dropdown > .nav-link:hover { background: rgba(255,255,255,0.14) !important; }
.nm-nav .nav-item.dropdown > .nav-link::after { margin-left: 2px; }
.nm-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; letter-spacing: .02em; background: var(--nm-accent-grad); box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.nm-uname { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-nav .dropdown-menu { padding: 8px !important; min-width: 230px; margin-top: 10px !important; }
.nm-nav .dropdown-header { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--nm-muted); }
.nm-nav .dropdown-item { border-radius: 10px; padding: .5rem .7rem; font-weight: 500; }
.nm-nav .dropdown-item:hover { background: #eef5fe; color: #1565c0; }
.nm-nav .dropdown-item i { width: 18px; color: #1565c0; }
.nm-nav .dropdown-item.js-logout { color: #c62828; }
.nm-nav .dropdown-item.js-logout i { color: #c62828; }
.nm-nav .dropdown-item.js-logout:hover { background: #fdecea; }
/* phone menu */
@media (max-width: 991.98px) {
    .nm-nav .navbar-collapse .nav-link { border-radius: 10px; padding: .6rem .8rem !important; }
    .nm-nav .navbar-collapse .nav-link:hover { background: rgba(255,255,255,0.06); }
    .nm-nav .navbar-collapse .nav-link.active { background: rgba(100,181,246,0.14); }
    .nm-nav .nav-item.dropdown > .nav-link { margin: 8px 0 4px; }
    .nm-uname { max-width: 220px; }
}
@media (min-width: 992px) and (max-width: 1279.98px) { .nm-uname { display: none; } .nm-nav .nav-item.dropdown > .nav-link { padding: 3px 8px 3px 3px !important; margin-left: 2px; } }

/* =====================================================================
   Home hero slideshow v2
   ===================================================================== */
.ih-hero .shade { background:
    radial-gradient(70% 90% at 0% 50%, rgba(8,16,36,0.88) 0%, rgba(8,16,36,0.55) 45%, rgba(8,16,36,0) 75%),
    linear-gradient(0deg, rgba(8,16,36,0.78) 0%, rgba(8,16,36,0) 42%),
    linear-gradient(180deg, rgba(8,16,36,0.45) 0%, rgba(8,16,36,0) 22%) !important; }
.ih-hero .shade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1.4px) 0 0 / 30px 30px; mask-image: linear-gradient(90deg, #000 0%, transparent 55%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%); }
.ih-kicker { display: inline-flex !important; align-items: center; gap: 9px; padding: 6px 14px 6px 10px; border-radius: 999px; color: #e3f2fd !important;
    background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .76rem !important; }
.ih-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #4fc3f7; box-shadow: 0 0 0 0 rgba(79,195,247,0.7); animation: ihPing 2s ease-out infinite; }
@keyframes ihPing { 0% { box-shadow: 0 0 0 0 rgba(79,195,247,0.7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(79,195,247,0); } }
.ih-hero h1 { text-shadow: 0 4px 30px rgba(0,0,0,0.35); }
.ih-hero .content .inner > * { animation: ihRise .9s cubic-bezier(.2,.7,.2,1) both; }
.ih-hero .content .inner > :nth-child(2) { animation-delay: .08s; }
.ih-hero .content .inner > :nth-child(3) { animation-delay: .16s; }
.ih-hero .content .inner > :nth-child(4) { animation-delay: .24s; }
@keyframes ihRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ih-hero .ih-btn { border-radius: 14px !important; padding: .9rem 1.45rem !important; }
.ih-hero .ih-btn-light { background: #fff !important; color: #0b1424 !important; box-shadow: 0 10px 28px rgba(0,0,0,0.3); }
.ih-hero .ih-btn-light i { transition: transform .2s; }
.ih-hero .ih-btn-light:hover { background: var(--nm-accent-grad) !important; color: #fff !important; }
.ih-hero .ih-btn-light:hover i { transform: translateX(4px); color: #fff !important; }
.ih-hero .ih-btn-line { background: rgba(255,255,255,0.08) !important; border: 1px solid rgba(255,255,255,0.35) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ih-hero .ih-btn-line:hover { background: rgba(255,255,255,0.16) !important; border-color: #fff !important; }

.ih-controls .container { justify-content: space-between !important; align-items: flex-end !important; }
.ih-caption { margin-left: auto; display: inline-flex !important; align-items: center; gap: 12px; text-align: left !important; padding: 10px 16px 10px 10px; border-radius: 16px;
    background: rgba(10,20,40,0.45); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: 360px; }
.ih-caption .cam { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; background: var(--nm-accent-grad); }
.ih-caption .cam i { color: #fff !important; font-size: .85rem; }
.ih-caption .tx { font-size: .8rem; line-height: 1.4; }
.ih-caption.swap .tx { animation: ihRise .5s ease both; }
.ih-nav { display: flex; align-items: center; gap: 12px; margin-left: 18px; }
.ih-dots { display: flex; gap: 6px; margin-right: 6px; }
.ih-dots button { width: 34px; height: 18px; padding: 0; border: 0; background: none; display: grid; align-items: center; cursor: pointer; }
.ih-dots button span { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.3); overflow: hidden; position: relative; }
.ih-dots button span::after { content: ""; position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, #64b5f6, #fff); border-radius: 4px; }
.ih-dots button.done span::after { width: 100%; }
.ih-dots button.on span::after { animation: ih-bar 6s linear forwards; }
.ih-dots button:hover span { background: rgba(255,255,255,0.5); }
.ih-arrow { border-color: rgba(255,255,255,0.3) !important; background: rgba(255,255,255,0.08) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ih-arrow:hover { background: #fff !important; color: #0b1424 !important; }
.ih-arrow:hover i { color: #0b1424 !important; }
.ih-progress { display: none !important; }
@keyframes ih-bar { from { width: 0; } to { width: 100%; } }
@media (max-width: 991.98px) {
    .ih-caption { display: none !important; }
    .ih-nav { margin-left: 0; }
}
@media (max-width: 575.98px) { .ih-dots { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .ih-hero .content .inner > *, .ih-caption.swap .tx, .ih-kicker .dot { animation: none !important; }
    .ih-dots button.on span::after { animation: none; width: 100%; }
}
@media (max-width: 767.98px) { .ih-hero .content .inner { padding-top: 28px; } .ih-hero .shade { background: linear-gradient(180deg, rgba(8,16,36,0.55) 0%, rgba(8,16,36,0.72) 45%, rgba(8,16,36,0.9) 100%) !important; } }

/* =====================================================================
   Research "Our researchers at work" slideshow v2
   ===================================================================== */
.rs-slides { border: 1px solid #dbe6f3 !important; box-shadow: 0 16px 40px rgba(13,27,62,0.12); background: #fff !important; }
.rs-slide .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,36,0) 55%, rgba(8,16,36,0.55) 100%), linear-gradient(90deg, rgba(8,16,36,0) 75%, rgba(8,16,36,0.12) 100%); pointer-events: none; }
.rs-slides .carousel-item .ph img { transform: scale(1.06); }
.rs-slides .carousel-item.active .ph img { animation: ih-zoom 9s ease-out forwards; }
.rs-slide .ph .no { position: absolute; right: 18px; top: 12px; z-index: 1; font-size: 3.4rem; font-weight: 800; letter-spacing: -0.05em; color: rgba(255,255,255,0.35); line-height: 1; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.rs-slide .ph .role { position: absolute; left: 18px; bottom: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; color: #fff; font-weight: 600; font-size: .82rem;
    background: rgba(10,20,40,0.5); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rs-slide .ph .role i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: var(--nm-accent-grad); }
.rs-slide .tx { background: radial-gradient(90% 70% at 100% 0%, rgba(100,181,246,0.14), transparent 60%), linear-gradient(160deg, #f5f9fe 0%, #ffffff 60%); }
.rs-slide .person { display: flex; align-items: center; gap: 14px; margin-bottom: .9rem; }
.rs-slide .person .av { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: #fff; background: var(--nm-accent-grad); box-shadow: 0 8px 20px rgba(21,101,192,0.3); }
.rs-slide .person .who { font-size: .72rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #1565c0 !important; margin: 0 !important; }
.rs-slide .person h3 { margin: 2px 0 0 !important; }
.rs-slides .carousel-item.active .tx > * { animation: ihRise .7s cubic-bezier(.2,.7,.2,1) both; }
.rs-slides .carousel-item.active .tx > :nth-child(2) { animation-delay: .06s; }
.rs-slides .carousel-item.active .tx > :nth-child(3) { animation-delay: .12s; }
.rs-slides .carousel-item.active .tx > :nth-child(4) { animation-delay: .18s; }
.rs-tags span { border: 1px solid #cfe0f5; background: #eef5fe !important; }

.rs-ctrl { gap: 10px !important; padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.85); border: 1px solid #dbe6f3; box-shadow: 0 8px 22px rgba(13,27,62,0.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rs-ctrl > button { width: 36px !important; height: 36px !important; border: 0 !important; background: #eef5fe !important; color: #1565c0 !important; }
.rs-ctrl > button:hover { background: var(--nm-accent-grad) !important; color: #fff !important; }
.rs-bars { display: flex; gap: 5px; margin-right: 4px; }
.rs-bars button { width: 26px; height: 16px; padding: 0; border: 0; background: none; display: grid; align-items: center; cursor: pointer; }
.rs-bars button span { display: block; height: 4px; border-radius: 4px; background: #d5e3f3; overflow: hidden; position: relative; }
.rs-bars button span::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: 4px; background: var(--nm-accent-grad); }
.rs-bars button.done span::after { width: 100%; }
.rs-bars button.on span::after { animation: ih-bar 6s linear forwards; }

.rs-people { display: flex; gap: 10px; margin-top: 18px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.rs-people button { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid #dbe6f3; background: #fff; text-align: left; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.rs-people button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,27,62,0.1); }
.rs-people button.on { border-color: transparent; background: var(--nm-royal); box-shadow: 0 8px 20px rgba(21,101,192,0.3); }
.rs-people img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.rs-people b { display: block; font-size: .84rem; color: var(--nm-ink); line-height: 1.2; }
.rs-people small { display: block; font-size: .72rem; color: var(--nm-muted); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.rs-people button.on b { color: #fff; } .rs-people button.on small { color: rgba(255,255,255,0.75); }
@media (max-width: 991.98px) { .rs-ctrl { right: 16px !important; } }
@media (max-width: 575.98px) { .rs-bars { display: none; } .rs-slide .ph .no { font-size: 2.4rem; } }
@media (prefers-reduced-motion: reduce) { .rs-slides .carousel-item.active .ph img, .rs-slides .carousel-item.active .tx > * { animation: none !important; } .rs-bars button.on span::after { animation: none; width: 100%; } }
@keyframes ih-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.rs-ctrl .rs-bars button { width: 26px !important; height: 16px !important; border: 0 !important; background: none !important; border-radius: 0 !important; color: inherit !important; }
.rs-ctrl .rs-bars button:hover { background: none !important; }
.rs-slide .tx { padding-bottom: 104px !important; }
.rs-bars button span, .ih-dots button span { width: 100%; }

/* =====================================================================
   Gallery v2: filter card, tiles with tags, lightbox with thumbnails
   ===================================================================== */
.gl-bar { padding: 10px 12px 10px 10px; border-radius: 18px; background: #fff; border: 1px solid #dbe6f3; box-shadow: 0 8px 24px rgba(13,27,62,0.07); }
.gl-filter { display: inline-flex !important; align-items: center; gap: 8px !important; border-color: #e0eaf6 !important; background: #f5f8fd !important; padding: .5rem .95rem !important; }
.gl-filter i { color: #1565c0; font-size: .8rem; }
.gl-filter.active i { color: #fff; }
.gl-filter em { border-radius: 999px !important; }
.gl-showing { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--nm-muted); }
.gl-showing i { color: #1565c0; }
.gl-showing b { color: var(--nm-ink); }
.gl-grid { column-gap: 20px !important; }
.gl-item { margin-bottom: 20px !important; border-radius: 18px !important; isolation: isolate; }
.gl-item.in { animation: glIn .45s ease both; }
@keyframes glIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.gl-item img { border-radius: 18px; }
.gl-item::after { content: ""; position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); pointer-events: none; }
.gl-item .tag { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff;
    background: rgba(10,20,40,0.45); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gl-item .tag i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .58rem; background: linear-gradient(135deg, #64b5f6, #1565c0); }
.gl-item .tag.c-people i { background: linear-gradient(135deg, #4dd0c4, #00897b); }
.gl-item .tag.c-events i { background: linear-gradient(135deg, #f7d774, #d4a017); }
.gl-item .zoom { position: absolute; right: 12px; top: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #0b1424; background: rgba(255,255,255,0.92); font-size: .78rem; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.gl-item:hover .zoom, .gl-item:focus-visible .zoom { opacity: 1; transform: none; }
.gl-item .cap { border-radius: 0 0 18px 18px; background: linear-gradient(0deg, rgba(8,16,36,0.92), rgba(8,16,36,0.55) 60%, rgba(8,16,36,0)) !important; }
@media (hover: none) { .gl-item .zoom { opacity: 1; transform: none; width: 30px; height: 30px; } }

.gl-box { background: radial-gradient(80% 70% at 50% 40%, rgba(21,101,192,0.18), transparent 70%), rgba(6,12,26,0.96) !important; backdrop-filter: blur(6px); padding: 70px 90px 120px !important; flex-direction: column; }
.gl-box figure { display: flex; flex-direction: column; align-items: center; }
.gl-box img { border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.5); max-height: 66vh !important; }
.gl-box img.fade { animation: glFade .35s ease both; }
@keyframes glFade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.gl-box figcaption { display: inline-block; margin-top: 16px !important; padding: 10px 18px; border-radius: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); max-width: 760px; }
.gl-box .gl-count { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); font-variant-numeric: tabular-nums; }
.gl-box button.gl-close, .gl-box button.gl-prev, .gl-box button.gl-next { background: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.2) !important; backdrop-filter: blur(8px); }
.gl-box button.gl-close:hover, .gl-box button.gl-prev:hover, .gl-box button.gl-next:hover { background: #fff !important; color: #0b1424 !important; }
.gl-thumbs { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; max-width: min(920px, calc(100vw - 32px)); overflow-x: auto; padding: 6px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); scrollbar-width: none; }
.gl-thumbs::-webkit-scrollbar { display: none; }
.gl-box .gl-thumbs button { position: static !important; transform: none !important; flex: 0 0 auto; width: 64px !important; height: 48px !important; padding: 0; border-radius: 10px !important; overflow: hidden; border: 2px solid transparent !important; background: none !important; opacity: .55; transition: opacity .2s, border-color .2s; }
.gl-box .gl-thumbs button:hover { opacity: .9; background: none !important; }
.gl-box .gl-thumbs button.on { opacity: 1; border-color: #64b5f6 !important; }
.gl-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; box-shadow: none !important; max-height: none !important; }
@media (max-width: 767.98px) {
    .gl-box { padding: 64px 12px 100px !important; }
    .gl-box .gl-prev, .gl-box .gl-next { top: auto !important; bottom: 84px; transform: none !important; }
    .gl-thumbs button { width: 52px !important; height: 40px !important; }
    .gl-showing { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .gl-item.in, .gl-box img.fade { animation: none !important; } }
@media (max-width: 767.98px) { .gl-filters { flex-wrap: nowrap !important; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; } .gl-filters::-webkit-scrollbar { display: none; } .gl-filter { flex: 0 0 auto; } }

/* =====================================================================
   Lab policies v2: a colour per section, ladder cards, acknowledgement
   ===================================================================== */
.pl-sec { --c1: #1565c0; --c2: #64b5f6; --tint: #eef5fe; }
#safety { --c1: #c62828; --c2: #ef8a80; --tint: #fdeeee; }
#access { --c1: #1565c0; --c2: #64b5f6; --tint: #eef5fe; }
#ethics { --c1: #00897b; --c2: #4dd0c4; --tint: #e8f7f5; }
#environment { --c1: #2e7d32; --c2: #81c784; --tint: #ecf7ed; }
#violations { --c1: #c77800; --c2: #f7c04a; --tint: #fff6e0; }
#emergency { --c1: #8e1d1d; --c2: #e57373; --tint: #fdeeee; }

.pl-sec > h2 { border-bottom: 0 !important; align-items: center !important; position: relative; padding-bottom: 14px !important; }
.pl-sec > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.pl-sec > h2 span { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; display: grid; place-items: center; font-size: .95rem !important; font-weight: 800 !important; color: #fff !important;
    background: linear-gradient(135deg, var(--c2), var(--c1)); box-shadow: 0 6px 16px color-mix(in srgb, var(--c1) 30%, transparent); }
.pl-sec .pl-box { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--tint) 0%, #ffffff 55%) !important; border-color: color-mix(in srgb, var(--c1) 18%, white) !important; transition: transform .2s, box-shadow .2s; }
.pl-sec .pl-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.pl-sec .pl-box:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13,27,62,0.10); }
.pl-sec .pl-box h3 i { background: linear-gradient(135deg, var(--c2), var(--c1)) !important; }
.pl-sec .pg-check li::before { background: linear-gradient(135deg, var(--c2), var(--c1)) !important; }
.pl-sec .pl-table td:first-child { color: var(--nm-ink-2) !important; }
.pl-sec .pl-table tr:hover td { background: color-mix(in srgb, var(--c1) 5%, white); }
.pl-sec .pl-table a { color: var(--c1) !important; font-weight: 700; }
.pl-alert { display: flex; align-items: center; gap: 12px; background: linear-gradient(110deg, #fdecea, #fff 80%) !important; border: 1px solid #f3cfcb !important; border-left: 4px solid #c62828 !important; }
.pl-alert::before { content: "\f071"; font-family: "Font Awesome 6 Free"; font-weight: 900; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ef8a80, #c62828); font-size: .8rem; }

/* contents: a coloured number per section */
.pl-toc li:nth-child(1) a::before { color: #c62828 !important; }
.pl-toc li:nth-child(2) a::before { color: #1565c0 !important; }
.pl-toc li:nth-child(3) a::before { color: #00897b !important; }
.pl-toc li:nth-child(4) a::before { color: #2e7d32 !important; }
.pl-toc li:nth-child(5) a::before { color: #c77800 !important; }
.pl-toc li:nth-child(6) a::before { color: #8e1d1d !important; }
.pl-toc a.on::before { color: rgba(255,255,255,0.85) !important; }
.pl-toc a::before { font-weight: 800; }

/* violations: escalating steps */
.pl-ladder { counter-reset: lad; gap: 14px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; }
.pl-ladder > div { --s1: #f7c04a; --s2: #c77800; counter-increment: lad; position: relative; border: 1px solid color-mix(in srgb, var(--s2) 25%, white) !important; border-radius: 16px; padding: 18px 18px 18px !important;
    background: linear-gradient(160deg, color-mix(in srgb, var(--s1) 18%, white) 0%, #ffffff 60%) !important; box-shadow: 0 6px 18px rgba(13,27,62,0.06); }
.pl-ladder > div:nth-child(2) { --s1: #ffb74d; --s2: #e65100; }
.pl-ladder > div:nth-child(3) { --s1: #ff8a65; --s2: #d84315; }
.pl-ladder > div:nth-child(4) { --s1: #ef5350; --s2: #8e1d1d; background: linear-gradient(160deg, #fbe3e1 0%, #ffffff 60%) !important; }
.pl-ladder > div::before { content: counter(lad); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; margin-bottom: 10px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--s1), var(--s2)); box-shadow: 0 6px 14px color-mix(in srgb, var(--s2) 30%, transparent); }
.pl-ladder > div:nth-child(4)::before { content: "!"; }
.pl-ladder > div:not(:last-child)::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .55rem; color: #fff; background: var(--s2); z-index: 1; box-shadow: 0 0 0 3px #fff; }
.pl-ladder > div b { color: var(--s2) !important; }
@media (max-width: 991.98px) { .pl-ladder > div:not(:last-child)::after { display: none; } .pl-ladder > div { border-bottom: 1px solid color-mix(in srgb, var(--s2) 25%, white) !important; } }

/* acknowledgement */
.pl-actions { border-radius: 20px; border: 1px solid #cdebd9 !important; background: radial-gradient(90% 120% at 100% 0%, rgba(102,209,158,0.18), transparent 60%), linear-gradient(110deg, #ecf8f1 0%, #ffffff 70%) !important; box-shadow: 0 10px 28px rgba(13,27,62,0.08); position: relative; padding-left: 82px !important; }
.pl-actions::before { content: "\f46c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 24px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #66d19e, #2e7d52); box-shadow: 0 6px 16px rgba(46,125,82,0.3); }
.pl-actions p { font-weight: 600; color: var(--nm-ink) !important; }
.pl-actions .pg-btn { border-radius: 12px !important; }
.pl-ack { background: linear-gradient(135deg, #66d19e, #2e9d62) !important; border: 0 !important; color: #fff !important; box-shadow: 0 8px 20px rgba(46,125,82,0.3); }
.pl-ack.done { background: #2e7d52 !important; opacity: .9; }
@media (max-width: 575.98px) { .pl-actions { padding: 76px 20px 20px !important; } .pl-actions::before { top: 20px; transform: none; } }

/* Facilities: filter + search as one floating card */
.fc-bar { background: transparent !important; border: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; margin-top: -34px; padding: 0; top: 74px !important; pointer-events: none; }
.fc-bar .container { pointer-events: auto; flex-wrap: nowrap !important; gap: 12px !important; min-height: 0 !important; padding: 10px 10px 10px 12px !important; border-radius: 18px; background: rgba(255,255,255,0.96);
    border: 1px solid #dbe6f3; box-shadow: 0 14px 34px rgba(13,27,62,0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fc-filters { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap !important; overflow-x: auto; gap: 6px !important; scrollbar-width: none; padding: 2px; }
.fc-filters::-webkit-scrollbar { display: none; }
.fc-filter { flex: 0 0 auto; display: inline-flex !important; align-items: center; gap: 8px !important; white-space: nowrap; border-radius: 999px !important; border: 1px solid #e0eaf6 !important; background: #f5f8fd !important;
    padding: .5rem .95rem !important; font-size: .86rem !important; color: var(--nm-ink-2) !important; transition: background .2s, color .2s, border-color .2s; }
.fc-filter::before { font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .78rem; color: #1565c0; }
.fc-filter[data-cat="all"]::before { content: "\f00a"; }
.fc-filter[data-cat="growth"]::before { content: "\f5fd"; }
.fc-filter[data-cat="characterization"]::before { content: "\f610"; color: #00897b; }
.fc-filter[data-cat="device"]::before { content: "\f2db"; color: #0277bd; }
.fc-filter[data-cat="support"]::before { content: "\f7d9"; color: #546e7a; }
.fc-filter:hover { border-color: #90caf9 !important; color: #1565c0 !important; background: #eef5fe !important; }
.fc-filter em { border-radius: 999px !important; background: #fff !important; border: 1px solid #e0eaf6; padding: 0 7px !important; }
.fc-filter.active { background: var(--nm-royal) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 6px 14px rgba(21,101,192,0.3); }
.fc-filter.active::before { color: #fff !important; }
.fc-filter.active em { background: rgba(255,255,255,0.22) !important; border-color: transparent; color: #fff !important; }
.fc-search { flex: 0 0 260px; width: auto !important; }
.fc-search input { border-radius: 999px !important; background: #f5f8fd; border-color: #e0eaf6 !important; padding: .55rem 1rem .55rem 2.4rem !important; }
.fc-search input:focus { background: #fff; border-color: #1565c0 !important; box-shadow: 0 0 0 3px rgba(21,101,192,0.15) !important; }
.fc-sec:first-of-type { padding-top: 44px; }
@media (max-width: 991.98px) {
    .fc-bar { position: relative !important; top: auto !important; }
    .fc-bar .container { flex-wrap: wrap !important; }
    .fc-filters { flex: 1 1 100%; }
    .fc-search { flex: 1 1 100%; }
}
@media (max-width: 575.98px) {
    .fc-bar .container { width: calc(100% - 32px); margin-left: 16px; margin-right: 16px; }
    .fc-bar { margin-top: -26px; }
}
.fc-bar .container { flex-wrap: wrap !important; row-gap: 8px !important; }
.fc-filters { flex: 0 0 auto !important; max-width: 100%; }
.fc-search { flex: 1 1 220px !important; min-width: 220px; }
@media (max-width: 575.98px) { .fc-search { min-width: 0; flex-basis: 100% !important; } }
@media (min-width: 576px) { .fc-filters { flex-wrap: wrap !important; overflow: visible !important; row-gap: 6px; } }
@media (min-width: 576px) { .fc-filters { display: contents !important; } .fc-bar .container { gap: 6px !important; row-gap: 8px !important; align-items: center !important; } .fc-search { margin-left: 6px; } }
.fc-bar .container { justify-content: flex-start !important; }

/* Publications search */
.pb-search { margin-bottom: 22px !important; }
.pb-search .box { position: relative; display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 5px; border-radius: 14px; background: #f5f8fd; border: 1px solid #dbe6f3; transition: border-color .2s, box-shadow .2s, background .2s; margin: 0; cursor: text; }
.pb-search .box:focus-within { background: #fff; border-color: #1565c0; box-shadow: 0 0 0 4px rgba(21,101,192,0.14); }
.pb-search .ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--nm-accent-grad); font-size: .8rem; }
.pb-search .ic i { position: static !important; transform: none !important; color: #fff !important; }
.pb-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: .4rem 0 !important; font-size: .95rem !important; box-shadow: none !important; outline: none !important; }
.pb-search input::-webkit-search-cancel-button { display: none; }
.pb-search .clr { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #dfe8f3; color: #37597a; font-size: .65rem; }
.pb-search .clr:hover { background: #1565c0; color: #fff; }
.pb-search .clr[hidden] { display: none; }
.pb-search kbd { font-size: .7rem; padding: 1px 7px; border-radius: 6px; background: #fff; color: var(--nm-muted); border: 1px solid #dbe6f3; box-shadow: none; }
.pb-search .box:focus-within kbd { display: none !important; }
.pb-search .hint { display: block; margin: 7px 4px 0; font-size: .76rem; color: var(--nm-muted); }
.pb-search .hint b { color: #1565c0; }
.pb-search .hint.none b { color: #c62828; }
.pb-item h4 mark { background: linear-gradient(transparent 55%, #ffe58a 55%); padding: 0 1px; color: inherit; }
.pb-empty { border-radius: 16px !important; background: linear-gradient(160deg, #f3f8fe, #ffffff) !important; border: 1px dashed #c5d6ea !important; padding: 36px !important; text-align: center; color: var(--nm-muted); }
.pb-empty::before { content: "\f002"; font-family: "Font Awesome 6 Free"; font-weight: 900; display: block; width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px; line-height: 48px; color: #fff; background: var(--nm-accent-grad); }
.pb-search input:focus { border: 0 !important; box-shadow: none !important; outline: none !important; background: transparent !important; }
.pb-search .clr i { position: static !important; transform: none !important; color: inherit !important; }

/* Team: section pills + search in one floating card */
.tm-bar { background: transparent !important; border: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; margin-top: -34px; top: 74px !important; pointer-events: none; }
.tm-bar .container { pointer-events: auto; min-height: 0 !important; gap: 10px !important; padding: 10px 10px 10px 12px !important; border-radius: 18px; background: rgba(255,255,255,0.96);
    border: 1px solid #dbe6f3; box-shadow: 0 14px 34px rgba(13,27,62,0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tm-jump { gap: 6px !important; }
.tm-jump a { display: inline-flex !important; align-items: center; gap: 8px; border-radius: 999px !important; border: 1px solid #e0eaf6; background: #f5f8fd; padding: .5rem .95rem !important; font-size: .86rem !important; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.tm-jump a i { font-size: .78rem; color: #1565c0; }
.tm-jump a[href="#phd"] i { color: #1565c0; } .tm-jump a[href="#postdoc"] i { color: #00897b; } .tm-jump a[href="#alumni"] i { color: #546e7a; } .tm-jump a[href="#lead"] i { color: #d4a017; }
.tm-jump a em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--nm-ink-2); background: #fff; border: 1px solid #e0eaf6; border-radius: 999px; padding: 0 7px; }
.tm-jump a:hover { background: #eef5fe !important; border-color: #90caf9; color: #1565c0 !important; }
.tm-jump a.on { background: var(--nm-royal) !important; color: #fff !important; border-color: transparent; box-shadow: 0 6px 14px rgba(21,101,192,0.3); }
.tm-jump a.on i { color: #fff !important; }
.tm-jump a.on em { background: rgba(255,255,255,0.22); border-color: transparent; color: #fff; }
.tm-search { flex: 1 1 260px; max-width: 380px; width: auto !important; position: static !important; }
.tm-search .box { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; background: #f5f8fd; border: 1px solid #e0eaf6; margin: 0; cursor: text; transition: border-color .2s, box-shadow .2s, background .2s; }
.tm-search .box:focus-within { background: #fff; border-color: #1565c0; box-shadow: 0 0 0 4px rgba(21,101,192,0.14); }
.tm-search .ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; background: var(--nm-accent-grad); font-size: .75rem; }
.tm-search .ic i, .tm-search .clr i { position: static !important; transform: none !important; color: #fff !important; }
.tm-search .clr i { color: inherit !important; }
.tm-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: .35rem 0 !important; font-size: .92rem; box-shadow: none !important; outline: none !important; }
.tm-search input::-webkit-search-cancel-button { display: none; }
.tm-search .cnt { font-size: .72rem; font-weight: 700; color: #1565c0; background: #e8f1fc; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.tm-search .cnt.zero { color: #c62828; background: #fdecea; }
.tm-search .cnt[hidden], .tm-search .clr[hidden] { display: none; }
.tm-search .clr { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #dfe8f3; color: #37597a; font-size: .65rem; }
.tm-search .clr:hover { background: #1565c0; color: #fff; }
.tm-search kbd { font-size: .7rem; padding: 1px 7px; border-radius: 6px; background: #fff; color: var(--nm-muted); border: 1px solid #dbe6f3; box-shadow: none; }
.tm-search .box:focus-within kbd { display: none !important; }
[data-search] h3 mark, .tm-al b mark { background: linear-gradient(transparent 55%, #ffe58a 55%); padding: 0 1px; color: inherit; }
.tm-none { border-radius: 18px !important; background: linear-gradient(160deg, #f3f8fe, #ffffff) !important; border: 1px dashed #c5d6ea !important; }
.tm-none b { display: block; color: var(--nm-ink); margin-bottom: 4px; }
.tm-none::before { content: "\f002"; font-family: "Font Awesome 6 Free"; font-weight: 900; display: block; width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px; line-height: 48px; color: #fff; background: var(--nm-accent-grad); }
.tm-sec:first-of-type { padding-top: 44px; }
@media (max-width: 991.98px) {
    .tm-bar { position: relative !important; top: auto !important; }
    .tm-jump { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
    .tm-jump::-webkit-scrollbar { display: none; }
    .tm-search { flex: 1 1 100%; max-width: none; }
}
@media (max-width: 575.98px) { .tm-bar .container { width: calc(100% - 32px); margin-left: 16px; margin-right: 16px; } .tm-bar { margin-top: -26px; } }

/* DAS Wiki search v2 */
.wk-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 6px; border-radius: 18px; background: #fff; box-shadow: 0 14px 36px rgba(0,0,0,0.28); max-width: 760px !important; }
.wk-search:focus-within { box-shadow: 0 0 0 4px rgba(100,181,246,0.35), 0 14px 36px rgba(0,0,0,0.28); }
.wk-search .ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; display: grid; place-items: center; background: var(--nm-accent-grad); }
.wk-search .ic i { position: static !important; transform: none !important; color: #fff !important; }
.wk-search input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; outline: none !important; padding: .55rem .2rem !important; font-size: 1rem !important; background: transparent !important; }
.wk-search input::-webkit-search-cancel-button { display: none; }
.wk-search kbd { position: static !important; transform: none !important; }
.wk-search .clr { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #e8eef6; color: #37597a; font-size: .7rem; }
.wk-search .clr i { position: static !important; transform: none !important; color: inherit !important; }
.wk-search .clr:hover { background: #1565c0; color: #fff; }
.wk-search .clr[hidden] { display: none; }
.wk-search .go { border: 0; border-radius: 12px; padding: .62rem 1.1rem; font-weight: 700; font-size: .9rem; color: #fff; background: var(--nm-royal); }
.wk-search .go:hover { background: var(--nm-accent-grad); }
.wk-sug { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 1050; list-style: none; margin: 0; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid #dbe6f3; box-shadow: 0 20px 44px rgba(8,16,36,0.3); }
.wk-sug[hidden] { display: none; }
.wk-sug li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; color: var(--nm-ink); }
.wk-sug li.on, .wk-sug li[role=option]:hover { background: #eef5fe; }
.wk-sug li.none { cursor: default; color: var(--nm-muted); font-size: .86rem; padding: 6px 10px; }
.wk-sug .si { --c1: #1565c0; --c2: #64b5f6; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: .78rem; background: linear-gradient(135deg, var(--c2), var(--c1)); }
.wk-sug .si i { position: static !important; transform: none !important; color: #fff !important; }
.wk-sug .st { flex: 1; min-width: 0; }
.wk-sug .st b { display: block; font-size: .92rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-sug .st small { display: block; font-size: .74rem; color: var(--nm-muted); }
.wk-sug .arr { color: #90a4b8; font-size: .75rem; position: static !important; transform: none !important; }
.wk-sug li.all { border-top: 1px solid #e6edf6; margin-top: 4px; padding-top: 10px; border-radius: 0 0 12px 12px; }
.wk-sug li.all .si { background: #e8f1fc; color: #1565c0; }
.wk-sug li.all .si i { color: #1565c0 !important; }
.wk-sug mark, .wk-list b mark { background: linear-gradient(transparent 55%, #ffe58a 55%); padding: 0 1px; color: inherit; }
.wk-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: .8rem; }
.wk-pop[hidden] { display: none; }
.wk-pop span { color: rgba(255,255,255,0.65); margin-right: 2px; }
.wk-pop a { color: #e3f2fd; text-decoration: none; padding: 3px 11px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); }
.wk-pop a::before { content: "#"; opacity: .6; margin-right: 1px; }
.wk-pop a:hover { background: rgba(255,255,255,0.18); color: #fff; }
@media (max-width: 575.98px) { .wk-search .go { display: none; } .wk-search .ic { width: 36px; height: 36px; flex-basis: 36px; } }
.wk-top { position: relative; z-index: 1001; }
.wk-search input:focus, .wk-search input:focus-visible { outline: none !important; box-shadow: none !important; border: 0 !important; }

/* Inventory list search */
main .nm-app .inv-search .card-body { padding: 14px 16px 10px !important; }
main .nm-app .inv-search form { align-items: center; }
main .nm-app .inv-box { position: relative; display: flex !important; align-items: center; gap: 8px; flex-wrap: nowrap !important; padding: 4px 10px 4px 4px; border-radius: 999px; background: #f5f8fd; border: 1px solid #dbe6f3; transition: border-color .2s, box-shadow .2s, background .2s; }
main .nm-app .inv-box:focus-within { background: #fff; border-color: #1565c0; box-shadow: 0 0 0 4px rgba(21,101,192,0.14); }
main .nm-app .inv-box .inv-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50% !important; border: 0 !important; display: grid; place-items: center; padding: 0 !important; color: #fff !important; background: var(--nm-accent-grad) !important; }
main .nm-app .inv-box .inv-ic i { color: #fff !important; }
main .nm-app .inv-box .form-control { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: .45rem .2rem !important; border-radius: 0 !important; min-width: 0; }
main .nm-app .inv-box .form-control:focus { box-shadow: none !important; }
main .nm-app .inv-cnt { font-size: .74rem; font-weight: 700; color: #1565c0; background: #e8f1fc; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
main .nm-app .inv-cnt.zero { color: #c62828; background: #fdecea; }
main .nm-app .inv-cnt[hidden], main .nm-app .inv-clr[hidden], main .nm-app .inv-empty[hidden] { display: none !important; }
main .nm-app .inv-clr { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #dfe8f3; color: #37597a; font-size: .68rem; }
main .nm-app .inv-clr:hover { background: #1565c0; color: #fff; }
main .nm-app .inv-kbd { font-size: .7rem; padding: 1px 7px; border-radius: 6px; background: #fff; color: var(--nm-muted); border: 1px solid #dbe6f3; box-shadow: none; }
main .nm-app .inv-box:focus-within .inv-kbd { display: none !important; }
main .nm-app .inv-search .btn { border-radius: 999px !important; padding: .6rem 1rem; }
main .nm-app .inv-search .btn[type=submit] { background: var(--nm-royal) !important; border: 0 !important; color: #fff !important; }
main .nm-app .inv-search .inv-reset { border: 1px solid #dbe6f3 !important; color: var(--nm-ink-2) !important; background: #fff !important; }
main .nm-app .inv-search .inv-reset:hover { background: #f5f8fd !important; color: #1565c0 !important; }
main .nm-app .inv-search .form-select { border-radius: 999px !important; }
main .nm-app .inv-hint { display: block; margin: 8px 6px 0; font-size: .75rem; color: var(--nm-muted); }
main .nm-app .inv-empty { margin: 14px 0; padding: 26px; text-align: center; border-radius: 16px; border: 1px dashed #c5d6ea; background: linear-gradient(160deg, #f3f8fe, #fff); color: var(--nm-muted); }
main .nm-app .inv-empty b { display: block; color: var(--nm-ink); }

/* =====================================================================
   Inventory editing + change history
   ===================================================================== */
main .nm-app td .inv-act { width: 32px; height: 32px; padding: 0 !important; display: inline-grid !important; place-items: center; border-radius: 10px !important; margin-right: 4px; border: 1px solid #dbe6f3 !important; background: #fff !important; }
main .nm-app td .inv-act.edit { color: #1565c0 !important; }
main .nm-app td .inv-act.edit:hover { background: var(--nm-accent-grad) !important; color: #fff !important; border-color: transparent !important; }
main .nm-app td .inv-act.hist { color: #546e7a !important; }
main .nm-app td .inv-act.hist:hover { background: #eef2f5 !important; }
main .nm-app td form .btn-outline-danger, main .nm-app .btn-group form .btn-outline-danger { width: 32px; height: 32px; padding: 0 !important; display: inline-grid; place-items: center; border-radius: 10px !important; }
main .nm-app td { white-space: normal; }
main .nm-app td:last-child { white-space: nowrap; }
main .nm-app .btn-group .inv-act { width: 32px; height: 31px; border-radius: 10px !important; margin-left: 4px; }
.inv-histlink { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: #1565c0; text-decoration: none; padding: 5px 12px; border-radius: 999px; background: #eef5fe; border: 1px solid #d5e3f3; }
.inv-histlink:hover { background: #1565c0; color: #fff; }
.inv-histrow { display: flex; justify-content: flex-end; margin: -8px 0 10px; }
main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 .btn.inv-histbtn { background: rgba(255,255,255,0.1) !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.25) !important; box-shadow: none; }
main .nm-app .col-12 > .d-flex.justify-content-between.mb-4 .btn.inv-histbtn:hover { background: rgba(255,255,255,0.2) !important; }

.ie-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ie-quick { border-radius: 16px; padding: 16px; background: linear-gradient(160deg, #eef5fe 0%, #ffffff 70%); border: 1px solid #d5e3f3; margin-bottom: 16px; }
.ie-quick .hd { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ie-quick .hd .ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--nm-accent-grad); }
.ie-quick .hd b { display: block; color: var(--nm-ink); }
.ie-quick .hd small { color: var(--nm-muted); font-size: .8rem; }
.ie-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ie-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ie-field.wide { grid-column: 1 / -1; }
.ie-field label { font-size: .82rem; font-weight: 700; color: var(--nm-ink); margin: 0; }
.ie-field label .req { color: #c62828; }
.ie-field label .opt { font-weight: 500; color: var(--nm-muted); }
.ie-field input:not([type=checkbox]), .ie-field select, .ie-field textarea { width: 100%; border: 1px solid #dbe6f3; border-radius: 12px; background: #f8fbff; padding: .55rem .8rem; font-size: .93rem; color: var(--nm-ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.ie-field input:focus, .ie-field select:focus, .ie-field textarea:focus { outline: none; background: #fff; border-color: #1565c0; box-shadow: 0 0 0 3px rgba(21,101,192,0.15); }
.ie-field.changed input:not([type=checkbox]), .ie-field.changed select, .ie-field.changed textarea { border-color: #f0a500; background: #fffbea; }
.ie-field .was { font-size: .74rem; color: #a06b00; min-height: 0; }
.ie-field .was:empty { display: none; }
.ie-field.err input, .ie-field.err select, .ie-field.err textarea { border-color: #c62828; background: #fdeeee; }
.ie-field .e { color: #c62828; font-size: .76rem; }
.ie-check { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; padding: .55rem 0; }
.ie-check input { width: 18px; height: 18px; accent-color: #1565c0; }
.ie-more { margin: 4px 0 16px; border: 1px solid #e3ebf5; border-radius: 16px; padding: 4px 16px; }
.ie-more[open] { padding-bottom: 16px; }
.ie-more summary { cursor: pointer; padding: 10px 0; font-weight: 700; color: #1565c0; list-style: none; display: flex; align-items: center; gap: 8px; }
.ie-more summary::-webkit-details-marker { display: none; }
.ie-more summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; margin-left: auto; transition: transform .2s; }
.ie-more[open] summary::after { transform: rotate(180deg); }
.ie-note { margin-bottom: 14px; }
.ie-summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fffbea; border: 1px solid #f6dc8b; color: #7a5200; font-size: .86rem; font-weight: 600; margin-bottom: 14px; }
.ie-summary[hidden] { display: none; }
.ie-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px dashed #d5e3f3; }
.ie-bar .btn { border-radius: 12px !important; }
.ie-keep { margin-left: auto; font-size: .78rem; color: var(--nm-muted); display: inline-flex; gap: 6px; align-items: center; }

.ie-hist h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; color: var(--nm-ink); margin: 0 0 14px; }
.ie-hist h3 .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #90a4ae, #546e7a); font-size: .85rem; }
.ie-none { color: var(--nm-muted); font-size: .88rem; background: #f5f8fd; border-radius: 12px; padding: 14px; }
.ie-all { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-size: .84rem; font-weight: 600; color: #1565c0; text-decoration: none; }
.ie-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; max-height: 640px; overflow-y: auto; }
.ie-timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, #90caf9, #e3ebf5); border-radius: 2px; }
.ie-timeline > li { position: relative; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #e3ebf5; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(13,27,62,0.04); }
.ie-timeline > li::before { content: ""; position: absolute; left: -17px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #1e88e5; }
.ie-timeline > li.del { background: #fff7f6; border-color: #f3d4d1; }
.ie-timeline > li.del::before { border-color: #c62828; }
.ie-timeline .who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ie-timeline .who .av { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #fff; background: var(--nm-accent-grad); }
.ie-timeline .who b { display: block; font-size: .86rem; color: var(--nm-ink); }
.ie-timeline .who small { color: var(--nm-muted); font-size: .74rem; }
.ie-timeline ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ie-timeline ul li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .84rem; }
.ie-timeline .f { font-weight: 700; color: var(--nm-ink-2); min-width: 110px; }
.ie-timeline .o { background: #fdecea; color: #a12a20; border-radius: 6px; padding: 1px 7px; text-decoration: line-through; text-decoration-color: rgba(161,42,32,0.45); overflow-wrap: anywhere; }
.ie-timeline .n { background: #e6f6ee; color: #1f6b43; border-radius: 6px; padding: 1px 7px; font-weight: 600; overflow-wrap: anywhere; }
.ie-timeline ul i { color: #90a4b8; font-size: .65rem; }
.ie-timeline .note { margin: 8px 0 0; font-size: .82rem; color: var(--nm-ink-2); background: #f5f8fd; border-radius: 10px; padding: 7px 10px; display: flex; gap: 8px; }
.ie-timeline .note i { color: #1565c0; margin-top: 3px; }

.ih-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ih-types { display: flex; gap: 6px; flex-wrap: wrap; }
.ih-types a { display: inline-flex; align-items: center; gap: 7px; padding: .45rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--nm-ink-2); text-decoration: none; background: #f5f8fd; border: 1px solid #e0eaf6; }
.ih-types a i { color: #1565c0; font-size: .78rem; }
.ih-types a em { font-style: normal; font-size: .72rem; background: #fff; border: 1px solid #e0eaf6; border-radius: 999px; padding: 0 7px; }
.ih-types a.on { background: var(--nm-royal); color: #fff; border-color: transparent; }
.ih-types a.on i { color: #fff; } .ih-types a.on em { background: rgba(255,255,255,0.22); border-color: transparent; color: #fff; }
.ih-find { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 4px; border-radius: 999px; background: #f5f8fd; border: 1px solid #dbe6f3; flex: 1 1 320px; max-width: 460px; }
.ih-find:focus-within { background: #fff; border-color: #1565c0; box-shadow: 0 0 0 4px rgba(21,101,192,0.14); }
.ih-find .ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--nm-accent-grad); font-size: .75rem; }
.ih-find input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: .92rem; }
.ih-find .btn { border-radius: 999px !important; }
.ih-focus { margin: -6px 0 14px; padding: 10px 14px; border-radius: 12px; background: #eef5fe; border: 1px solid #d5e3f3; font-size: .88rem; color: var(--nm-ink-2); }
.ih-focus i { color: #1565c0; margin-right: 6px; }
.ih-list { max-height: none; padding-left: 22px; }
.ih-list > li .top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ih-list .ty { display: inline-flex; gap: 6px; align-items: center; font-size: .72rem; font-weight: 700; color: #1565c0; background: #e8f1fc; border-radius: 999px; padding: 2px 9px; }
.ih-list .nm { font-weight: 800; color: var(--nm-ink); text-decoration: none; }
.ih-list .nm:hover { color: #1565c0; text-decoration: underline; }
.ih-list .gone { font-size: .72rem; font-weight: 700; color: #c62828; background: #fdecea; border-radius: 999px; padding: 2px 9px; }
.ih-list .when { margin-left: auto; font-size: .76rem; color: var(--nm-muted); }
.ih-list .snap { font-size: .8rem; color: var(--nm-muted); margin: 0 0 4px; }
.ih-list .edit { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-size: .8rem; font-weight: 600; color: #1565c0; text-decoration: none; }
@media (max-width: 991.98px) { .ie-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) { .ie-keep { margin-left: 0; } .ie-timeline .f { min-width: 0; width: 100%; } }
/* history: additions */
.ie-timeline > li.add { background: #f3fbf6; border-color: #cdebd9; }
.ie-timeline > li.add::before { border-color: #2e9d62; background: #2e9d62; }
.ih-list .new { font-size: .72rem; font-weight: 700; color: #1f6b43; background: #e6f6ee; border-radius: 999px; padding: 2px 9px; }
.ie-timeline .added { margin: 0; font-size: .8rem; color: var(--nm-ink-2); line-height: 1.5; }
.ie-timeline .added span { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: #1f6b43; background: #e6f6ee; border-radius: 999px; padding: 1px 9px; margin-right: 6px; font-size: .74rem; }

/* Site-wide confirmation box (replaces the browser's confirm pop-up) */
.nmc-wrap { position: fixed; inset: 0; z-index: 6000; display: grid; place-items: center; padding: 16px; background: rgba(6,12,26,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: nmcFade .15s ease; }
.nmc-wrap[hidden] { display: none; }
body.nmc-open { overflow: hidden; }
@keyframes nmcFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nmcPop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.nmc-card { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 26px 24px 20px; text-align: center; box-shadow: 0 30px 70px rgba(6,12,26,0.4); animation: nmcPop .2s cubic-bezier(.2,.7,.2,1); }
.nmc-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: var(--nm-accent-grad); box-shadow: 0 10px 24px rgba(21,101,192,0.35); }
.nmc-card.danger .nmc-ic { background: linear-gradient(135deg, #ef8a80, #c62828); box-shadow: 0 10px 24px rgba(198,40,40,0.35); }
.nmc-msg { font-size: 1.02rem; font-weight: 600; color: var(--nm-ink); margin: 0 0 20px; line-height: 1.5; }
.nmc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nmc-btns button { border: 0; border-radius: 12px; padding: .7rem 1rem; font-weight: 700; font-size: .95rem; transition: filter .15s, background .15s; }
.nmc-no { background: #eef2f7; color: var(--nm-ink-2); }
.nmc-no:hover { background: #e2e8f0; }
.nmc-yes { color: #fff; background: var(--nm-royal); box-shadow: 0 6px 16px rgba(21,101,192,0.3); }
.nmc-card.danger .nmc-yes { background: linear-gradient(135deg, #e53935, #b71c1c); box-shadow: 0 6px 16px rgba(198,40,40,0.3); }
.nmc-yes:hover { filter: brightness(1.08); }
.nmc-btns button:focus-visible { outline: 3px solid rgba(100,181,246,0.6); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .nmc-wrap, .nmc-card { animation: none; } }
main .nm-app .btn-group-sm .u-del, main .nm-app .btn-group .btn-danger.btn-sm { margin-left: 4px; }
.nmc-msg { overflow-wrap: anywhere; }

/* ===== Facilities flip card: Safari fix =====
   Safari lets layered children of the front face (blurred status badge, icon, "Hover to flip" label)
   show through, mirrored, on the back. Give each face its own 3D layer, and swap visibility exactly
   halfway through the 0.8s turn so only one face can ever be painted. */
.fc-inner { -webkit-transform-style: preserve-3d; }
.fc-inner > .fc-front { -webkit-transform: rotateY(0deg); transform: rotateY(0deg); visibility: visible; transition: visibility 0s linear .4s; }
.fc-inner > .fc-back { -webkit-transform: rotateY(180deg) translateZ(1px); transform: rotateY(180deg) translateZ(1px); visibility: hidden; transition: visibility 0s linear .4s; }
.fc-card.flipped .fc-inner > .fc-front { visibility: hidden; }
.fc-card.flipped .fc-inner > .fc-back { visibility: visible; }
@media (hover: hover) {
    .fc-card:hover .fc-inner > .fc-front { visibility: hidden; }
    .fc-card:hover .fc-inner > .fc-back { visibility: visible; }
}
.fc-front .fc-status { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,0.95) !important; }
