/* Shared cool theme overrides for all UI subpages. */
:root {
    --page-bg: #edf8fa;
    --page-bg-soft: #f8fbfb;
    --page-bg-deep: #dcecef;
    --header-bg: #10272f;
    --header-border: rgba(151, 226, 229, 0.22);
    --text-light: #f7fcfd;
    --muted-light: #b8d5d8;
    --accent: #31d4dc;
    --accent-deep: #0f7f8c;
    --accent-soft: rgba(49, 212, 220, 0.14);
    --search-bg: #f7fdfd;
    --search-text: #4d6870;
    --hero-tint: rgba(8, 34, 43, 0.56);
    --hero-fallback-a: #7fd7de;
    --hero-fallback-b: #2d8d99;
    --ink: #102a33;
    --ink-muted: #4d6870;
    --ink-soft: #4d6870;
    --text-main: #102a33;
    --text-body: #4d6870;
    --text-muted: #4d6870;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #e6f3f4;
    --surface-elevated: rgba(255, 255, 255, 0.9);
    --surface-border: rgba(23, 76, 87, 0.14);
    --card-border: rgba(23, 76, 87, 0.13);
    --panel-dark: #10272f;
    --panel-border: rgba(188, 239, 241, 0.2);
    --surface-dark: #10272f;
    --shadow-soft: 0 16px 34px rgba(19, 54, 62, 0.1);
    --shadow-strong: 0 26px 56px rgba(15, 43, 51, 0.16);
}

body {
    color: var(--ink);
    background: #f8fbfb;
}

#particles-js,
.team-particles,
.developers-particles {
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    opacity: 1;
}

#particles-js canvas,
.team-particles canvas,
.developers-particles canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
}

.page-shell > main,
.page-shell > footer {
    position: relative;
    z-index: 1;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(49, 212, 220, 0.72);
    outline-offset: 4px;
}

.site-header {
    background: linear-gradient(0deg, rgb(0 0 0 / 98%), rgb(16 57 65 / 98%));
    border-color: var(--header-border);
    box-shadow: 0 12px 30px rgba(5, 22, 28, 0.18);
}

.site-footer {
    background: #282a2d;
    color: #f5f5f5;
}

.site-footer,
.site-footer p,
.site-footer span,
.site-footer a,
.site-footer h2,
.site-footer li,
.site-footer .footer-legal-label {
    color: #f5f5f5;
}

.brand-title,
.footer-brand {
    color: #f9feff;
}

.brand-accent,
.site-nav a:hover,
.footer-links a:hover,
.footer-contact-list a:hover,
.footer-legal-label:hover,
.footer-legal-item:hover .footer-legal-label,
.footer-legal-item:focus-within .footer-legal-label {
    color: #7ce8ea;
}

.site-nav a::after {
    background: linear-gradient(90deg, #7ce8ea, #d8fbfb);
}

.brand-tagline,
.site-header .brand-tagline {
    color: #ffffff;
}

.search-form {
    background: rgba(247, 253, 253, 0.96);
    border: 1px solid rgba(158, 211, 217, 0.72);
}

.search-icon {
    border-color: var(--accent-deep);
}

.search-icon::after {
    background: var(--accent-deep);
}

.search-form input,
.search-form input::placeholder {
    color: var(--search-text);
}

.search-form input {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;
}

.search-form input:focus,
.search-form input:focus-visible {
    outline: none;
    box-shadow: none;
}

.search-form input::-webkit-search-decoration,
.search-form input::-webkit-search-cancel-button,
.search-form input::-webkit-search-results-button,
.search-form input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.dropdown-content {
    background: rgba(13, 35, 45, 0.98);
    border-color: rgba(124, 232, 234, 0.22);
    box-shadow: 0 20px 44px rgba(4, 20, 26, 0.28);
}

.dropdown-content a {
    border-color: rgba(124, 232, 234, 0.12);
}

.dropdown-content a:hover {
    background: rgba(49, 212, 220, 0.16);
    color: #7ce8ea;
}

.section-kicker,
.overview-label,
.member-info .title,
.staff-role-label,
.map-detail-label,
.footer-contact-list a:hover,
.footer-links a:hover {
    color: var(--accent-deep);
}

.portfolio-hero,
.header,
.team-gallery,
.meet-team,
.team-member,
.staff-intro,
.purpose-hero-copy,
.direction-card,
.overview-card,
.core-card,
.location-hero-copy,
.location-overview,
.map-info,
.map-card,
.search-hero,
.search-summary-bar,
.search-empty,
.search-result-card,
.dev-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 246, 247, 0.94));
    border-color: var(--surface-border);
    box-shadow: var(--shadow-soft);
}

.portfolio-hero-copy h1,
.project-shell h1,
.Project-record,
.other-project-title,
.header h1,
.hero-copy h1,
.gallery-copy h2,
.meet-copy h2,
.team-member-heading h2,
.staff-intro h2,
.member-info h3,
.card-content h3,
.purpose-hero-copy h1,
.direction-card h2,
.overview-card h2,
.core-card h3,
.location-hero-copy h1,
.map-info-copy h2,
.map-card-header h2,
.search-hero h1,
.developers-heading h2,
.hero-panel h1,
.dev-card h2 {
    color: var(--ink);
}

.portfolio-hero-lead,
.project-shell p,
.overview-card p,
.header p,
.hero-lead,
.gallery-copy p,
.meet-copy p,
.staff-intro p,
.member-info p,
.role-desc,
.purpose-lead,
.purpose-stat span,
.direction-step p,
.core-card p,
.location-hero-copy p,
.map-info-lead,
.map-detail-card,
.search-lead,
.search-summary-bar,
.search-result-card p,
.developers-heading p,
.dev-card p {
    color: var(--ink-soft);
}

.portfolio-button-primary,
.purpose-button-primary,
.hero-button-primary,
.map-open-link,
.search-result-link {
    background: linear-gradient(135deg, #2fcbd3 0%, #138c9b 100%);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(19, 140, 155, 0.22);
}

.portfolio-button-primary:hover,
.purpose-button-primary:hover,
.hero-button-primary:hover,
.map-open-link:hover,
.search-result-link:hover {
    background: linear-gradient(135deg, #45dfe4 0%, #159cab 100%);
    box-shadow: 0 18px 34px rgba(19, 140, 155, 0.3);
}

.portfolio-button-secondary,
.purpose-button-secondary,
.hero-button-secondary {
    background: rgba(247, 253, 253, 0.8);
    border-color: rgba(23, 76, 87, 0.16);
    color: var(--ink);
}

.portfolio-stat,
.hero-stat,
.purpose-stat,
.direction-step,
.leader-point,
.principle-card,
.value-pill-row span,
.map-detail-card {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(23, 76, 87, 0.13);
}

.portfolio-hero-panel,
.purpose-hero-panel,
.mission-card,
.location-hero-panel,
.hero-panel {
    background:
        linear-gradient(150deg, #153943 0%, #102a33 58%, #0b1e29 100%);
    border-color: rgba(178, 236, 239, 0.18);
    color: #f8ffff;
}

.portfolio-hero-panel *,
.purpose-hero-panel *,
.mission-card *,
.location-hero-panel *,
.hero-panel * {
    color: inherit;
}

.hero-panel .hero-copy h1 {
    color: #f8ffff;
}

.hero-panel .hero-lead {
    color: #d7eef1;
}

.developers-content-space .developers-heading {
    background: transparent;
    box-shadow: none;
}

.hero-panel .hero-copy,
.hero-panel .hero-stats,
.hero-panel .hero-stat {
    min-width: 0;
}

.hero-panel .hero-copy h1,
.hero-panel .hero-lead,
.hero-panel .hero-stat span {
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .hero-panel .hero-copy h1 {
        font-size: clamp(2rem, 8.5vw, 2.6rem);
        line-height: 1.04;
    }
}

.portfolio-panel-header .section-kicker,
.purpose-hero-panel .section-kicker,
.mission-card .section-kicker,
.location-hero-panel .section-kicker,
.hero-panel .section-kicker {
    color: #aaf6f6;
}

.portfolio-panel-badge,
.hero-panel-badge,
.core-icon,
.direction-index,
.project-icon {
    background: rgba(49, 212, 220, 0.14);
    border-color: rgba(124, 232, 234, 0.22);
    color: var(--accent-deep);
}

.service-card:hover,
.training-card:hover,
.project-card:hover,
.Project-other.card:hover,
.staff-card:hover,
.core-card:hover,
.dev-card:hover,
.search-result-card:hover {
    border-color: rgba(49, 212, 220, 0.36);
    box-shadow: 0 18px 38px rgba(19, 140, 155, 0.14);
}

.project-card,
.Project-other.card,
.staff-card {
    background: linear-gradient(180deg, #fff 0%, #e8f4f5 100%);
    border-color: var(--surface-border);
}

.Project-other.card .other-project-header .section-kicker {
    color: var(--accent-deep);
}

.Project-other.card .other-project-title {
    color: var(--ink);
}

.Project-other.card .other-project-intro,
.Project-other.card .project-bullets {
    color: var(--ink-soft);
}

.Project-other.card .other-project-badge {
    background: rgba(49, 212, 220, 0.08);
    border-color: rgba(49, 212, 220, 0.2);
    color: var(--accent-deep);
}

.project-card::after,
.staff-card::before,
.gallery-badge {
    background: rgba(16, 42, 51, 0.92);
    color: #f8ffff;
}

.flip-card-front::before {
    background: rgba(49, 212, 220, 0.14);
    color: var(--accent-deep);
}

.project-bullets li::before,
.mission-list li::before {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(49, 212, 220, 0.16);
}

.card-image-container {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(180deg, #31d4dc, #0f7f8c);
}

.footer-legal-card,
.footer-legal-card::after {
    background: #f8ffff;
    border-color: rgba(38, 83, 87, 0.18);
}

.footer-legal-card strong {
    color: var(--ink);
}

.footer-legal-card p {
    color: var(--ink-soft);
}

.loader::after {
    background:
        radial-gradient(farthest-side, #7ce8ea 94%, #0000) top / 8px 8px no-repeat,
        conic-gradient(#0000 30%, #31d4dc);
}

.search-page #particles-js {
    opacity: 1;
}

.search-page main {
    background: transparent;
}

.search-page .search-hero,
.search-page .search-results-section {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.search-page .search-hero {
    padding-top: clamp(26px, 4vw, 34px);
}

.search-page .search-hero .search-shell {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    box-shadow: 0 16px 36px rgba(19, 54, 62, 0.08);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.search-page .search-summary-bar,
.search-page .search-empty,
.search-page .search-result-card {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid var(--surface-border);
    box-shadow: 0 12px 28px rgba(19, 54, 62, 0.06);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.search-page .search-results-section {
    padding-top: 24px;
}

.search-page .search-summary-bar {
    margin-top: 0;
}

.search-page .section-kicker,
.search-page .search-suggestion a {
    color: var(--accent-deep);
}

/* Final cool-theme cleanup: remove old orange/brown page accents. */
body {
    --accent: #31d4dc !important;
    --accent-deep: #0f7f8c !important;
    --accent-soft: rgba(49, 212, 220, 0.14) !important;
    --hero-tint: rgba(8, 34, 43, 0.56) !important;
    --hero-fallback-a: #7fd7de !important;
    --hero-fallback-b: #2d8d99 !important;
    --surface: rgba(255, 255, 255, 0.9) !important;
    --surface-strong: #e6f3f4 !important;
    --surface-border: rgba(23, 76, 87, 0.14) !important;
    --card-border: rgba(23, 76, 87, 0.13) !important;
    --panel-dark: #10272f !important;
    --panel-border: rgba(188, 239, 241, 0.2) !important;
    --shadow-soft: 0 16px 34px rgba(19, 54, 62, 0.1) !important;
    --shadow-strong: 0 26px 56px rgba(15, 43, 51, 0.16) !important;
}

.section-kicker,
.overview-label,
.portfolio-panel-badge,
.hero-panel-badge,
.staff-role-label,
.map-detail-label,
.search-result-category,
.search-suggestion a,
.search-result-card h2 a:hover,
.search-result-link:hover,
.dev-card a,
.developer-link,
.member-info .title,
.Project-other.card .other-project-badge,
.footer-legal-label:hover {
    color: var(--accent-deep) !important;
}

.portfolio-button-primary,
.purpose-button-primary,
.hero-button-primary,
.map-open-link,
.search-result-link,
.location-button,
.contact-button,
.dev-button,
.portfolio-button,
.purpose-button,
.hero-button,
.direction-index,
.core-icon,
.project-icon,
.contact-icon,
.point-card-icon,
.search-result-category,
mark {
    background: linear-gradient(135deg, rgba(49, 212, 220, 0.18), rgba(15, 127, 140, 0.12)) !important;
    border-color: rgba(49, 212, 220, 0.24) !important;
    color: var(--accent-deep) !important;
    box-shadow: none !important;
}

.site-footer .footer-contact-icon {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.site-footer .footer-contact-icon svg {
    color: #ffffff !important;
}

.portfolio-button-primary,
.purpose-button-primary,
.hero-button-primary,
.map-open-link,
.dev-button,
.contact-button {
    background: linear-gradient(135deg, #2fcbd3 0%, #138c9b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 26px rgba(19, 140, 155, 0.22) !important;
}

.portfolio-button-primary:hover,
.purpose-button-primary:hover,
.hero-button-primary:hover,
.map-open-link:hover,
.dev-button:hover,
.contact-button:hover {
    background: linear-gradient(135deg, #45dfe4 0%, #159cab 100%) !important;
    border-color: rgba(124, 232, 234, 0.38) !important;
    box-shadow: 0 18px 34px rgba(19, 140, 155, 0.24) !important;
}

.portfolio-hero,
.header,
.team-gallery,
.meet-team,
.team-member,
.staff-intro,
.purpose-hero-copy,
.direction-card,
.overview-card,
.core-card,
.location-hero-copy,
.location-overview,
.map-info,
.map-card,
.search-hero .search-shell,
.search-summary-bar,
.search-empty,
.search-result-card,
.development-overview,
.developers-content-space,
.dev-card,
.project-card,
.Project-other.card,
.staff-card,
.leader-point,
.principle-card,
.value-pill-row span,
.map-detail-card,
.search-result-tags li {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: var(--surface-border) !important;
    box-shadow: var(--shadow-soft) !important;
}

.search-page .search-hero .search-shell,
.search-page .search-summary-bar,
.search-page .search-empty,
.search-page .search-result-card {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: var(--surface-border) !important;
    box-shadow: 0 12px 28px rgba(19, 54, 62, 0.06) !important;
}

.portfolio-hero-panel,
.purpose-hero-panel,
.mission-card,
.location-hero-panel,
.hero-panel,
.Project-other.card {
    background: linear-gradient(150deg, #153943 0%, #102a33 58%, #0b1e29 100%) !important;
    border-color: rgba(178, 236, 239, 0.18) !important;
    box-shadow: 0 24px 50px rgba(5, 22, 28, 0.24) !important;
}

.minor-carousel-shell {
        background: transparent !important;
        box-shadow: none !important;
    }

.Project-other.card .other-project-header .section-kicker {
    color: #7ce8ea !important;
}

.Project-other.card .other-project-title {
    color: #f8ffff !important;
}

.Project-other.card .other-project-intro,
.Project-other.card .project-bullets {
    color: #d7eef1 !important;
}

.Project-other.card .other-project-badge {
    background: rgba(49, 212, 220, 0.1) !important;
    border-color: rgba(124, 232, 234, 0.36) !important;
    color: #7ce8ea !important;
}

.portfolio-hero::before,
.portfolio-hero::after,
.header::before,
.header::after,
.team-gallery::before,
.team-gallery::after,
.meet-team::before,
.meet-team::after,
.staff-intro::before,
.staff-intro::after,
.purpose-hero-copy::before,
.purpose-hero-copy::after,
.direction-card::before,
.direction-card::after,
.overview-card::before,
.overview-card::after,
.core-card::before,
.core-card::after,
.location-hero-copy::before,
.location-hero-copy::after,
.map-info::before,
.map-info::after,
.map-card::before,
.map-card::after,
.hero-panel::before,
.hero-panel::after,
.dev-card::before,
.dev-card::after,
.project-card::before,
.Project-other.card::before,
.staff-card::before,
.staff-card::after {
    background: transparent !important;
    box-shadow: none !important;
}

.site-footer,
.dropdown-content,
.gallery-badge,
.project-card::after {
    background: #282a2d !important;
    border-color: rgba(124, 232, 234, 0.16) !important;
}

.footer-legal-card,
.footer-legal-card::after {
    background: #f8ffff !important;
    border-color: rgba(38, 83, 87, 0.18) !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-color: rgba(49, 212, 220, 0.72) !important;
}

.staff-card,
.staff-card:nth-child(even) {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(23, 76, 87, 0.14) !important;
    box-shadow: 0 16px 34px rgba(19, 54, 62, 0.1) !important;
}

.staff-card .card-content,
.staff-card:nth-child(even) .card-content {
    background: transparent !important;
    color: var(--ink) !important;
}

.staff-card .card-content h3 {
    color: var(--ink) !important;
}

.staff-card .role-desc,
.staff-card .card-content p {
    color: var(--ink-soft) !important;
}

.staff-card .staff-role-label {
    color: var(--accent-deep) !important;
}

.staff-card::before {
    background: linear-gradient(135deg, #2fcbd3 0%, #138c9b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(19, 140, 155, 0.22) !important;
}

.staff-card .card-image-container {
    background: linear-gradient(180deg, #31d4dc 0%, #0f7f8c 100%) !important;
}

.map-info,
.map-detail-card,
.map-card,
.location-overview .overview-card {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(23, 76, 87, 0.14) !important;
    box-shadow: 0 16px 34px rgba(19, 54, 62, 0.1) !important;
}

.map-info *,
.map-detail-card *,
.map-card *,
.location-overview .overview-card * {
    color: var(--ink) !important;
}

.map-info .section-kicker,
.map-detail-label,
.map-card .section-kicker,
.map-card-badge,
.location-overview .overview-label {
    color: var(--accent-deep) !important;
}

.map-info-lead,
.map-figure figcaption,
.map-card .map-hint,
.location-overview .overview-card p,
.map-detail-card strong {
    color: var(--ink-soft) !important;
}

.map-detail-card {
    background: rgba(255, 255, 255, 0.58) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.map-card-badge {
    background: rgba(49, 212, 220, 0.12) !important;
    border-color: rgba(49, 212, 220, 0.24) !important;
}

.map-open-link {
    color: #ffffff !important;
}

.location-overview {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.location-overview .overview-card {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(23, 76, 87, 0.18) !important;
    box-shadow: 0 12px 28px rgba(19, 54, 62, 0.06) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.location-hero-panel .section-kicker,
.hero-panel-header .section-kicker,
.hero-check-item h3,
.hero-panel-note p,
.map-card-header .section-kicker,
.map-detail-label {
    color: #aaf6f6 !important;
}

.hero-check-item p,
.hero-panel-note p {
    color: #d7eef1 !important;
}

.hero-check-icon,
.hero-panel-note,
.map-card-badge {
    background: rgba(49, 212, 220, 0.12) !important;
    border-color: rgba(124, 232, 234, 0.24) !important;
    box-shadow: none !important;
}

.hero-check-icon::after {
    background: #31d4dc !important;
}

.hero-panel-badge {
    background: rgba(49, 212, 220, 0.12) !important;
    border-color: rgba(124, 232, 234, 0.24) !important;
    color: #aaf6f6 !important;
}

.map-info .section-kicker,
.map-card-header .section-kicker,
.map-detail-label {
    color: #0f7f8c !important;
}

.dev-card::before {
    background: linear-gradient(90deg, #31d4dc, rgba(15, 127, 140, 0.18)) !important;
}

.dev-avatar {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 42%),
        linear-gradient(135deg, #31d4dc 0%, #0f7f8c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 26px rgba(19, 140, 155, 0.18) !important;
}

.dev-tags span,
.github-link {
    background: rgba(49, 212, 220, 0.08) !important;
    border-color: rgba(49, 212, 220, 0.22) !important;
    color: var(--ink) !important;
}

.github-link,
.info-link {
    color: var(--accent-deep) !important;
}

.github-link:hover,
.info-link:hover {
    background: rgba(49, 212, 220, 0.14) !important;
    border-color: rgba(49, 212, 220, 0.34) !important;
    color: var(--accent-deep) !important;
}

.dev-card:hover {
    border-color: rgba(49, 212, 220, 0.28) !important;
    box-shadow: var(--shadow-strong) !important;
}

.dev-info .info-row {
    border-top-color: rgba(23, 76, 87, 0.12) !important;
}

.container > .header {
    background: linear-gradient(150deg, #153943 0%, #102a33 58%, #0b1e29 100%) !important;
    border-color: rgba(178, 236, 239, 0.18) !important;
    box-shadow: 0 24px 50px rgba(5, 22, 28, 0.24) !important;
}

.page-shell > main > .container {
    padding-top: clamp(12px, 1.5vw, 18px) !important;
}

.container > .header .section-kicker {
    color: #aaf6f6 !important;
}

.container > .header h1,
.container > .header .hero-copy h1,
.container > .header .hero-stat strong {
    color: #f8ffff !important;
}

.container > .header .hero-lead,
.container > .header .hero-stat span {
    color: #d7eef1 !important;
}

.container > .header .hero-stat {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(178, 236, 239, 0.18) !important;
    box-shadow: none !important;
}

/* Team page member-card refresh. Scoped here because this theme file loads last. */
.team-page .staff-intro {
    overflow: hidden;
}

.team-page .staff-intro::before {
    content: "";
    position: absolute;
    inset: auto clamp(18px, 4vw, 42px) -1px auto;
    width: min(320px, 48vw);
    height: 6px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, #31d4dc, #8fe3c7, #f4b75e) !important;
    box-shadow: 0 -10px 28px rgba(49, 212, 220, 0.16) !important;
}

.team-page .staff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(18px, 2vw, 24px);
}

.team-page .staff-card,
.team-page .staff-card:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
        "photo"
        "content";
    align-content: start;
    overflow: visible;
    min-height: 100%;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(234, 248, 249, 0.86)) !important;
    border-color: rgba(23, 76, 87, 0.16) !important;
    box-shadow: 0 18px 38px rgba(19, 54, 62, 0.11) !important;
    transform: translateZ(0);
    isolation: isolate;
}

.team-page .staff-card::before {
    top: 18px;
    left: 18px;
    width: auto;
    min-width: 42px;
    height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(16, 42, 51, 0.9) !important;
    border: 1px solid rgba(178, 236, 239, 0.2);
    box-shadow: 0 12px 26px rgba(5, 22, 28, 0.18) !important;
    z-index: 3;
}

.team-page .staff-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(49, 212, 220, 0.18), transparent 35%),
        linear-gradient(315deg, rgba(244, 183, 94, 0.16), transparent 36%) !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 0;
}

.team-page .staff-card .card-image-container,
.team-page .staff-card .card-content {
    position: relative;
    z-index: 1;
}

.team-page .staff-card:hover {
    transform: translateY(-7px);
    border-color: rgba(49, 212, 220, 0.34) !important;
    box-shadow: 0 26px 54px rgba(19, 54, 62, 0.16) !important;
}

.team-page .staff-card:hover::after {
    opacity: 1;
}

.team-page .staff-card .card-image-container {
    min-height: 0;
    height: clamp(250px, 27vw, 315px);
    margin: 16px 16px 0;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.38), transparent 24%),
        linear-gradient(145deg, #153943 0%, #138c9b 54%, #31d4dc 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.team-page .staff-card .card-image-container::before {
    inset: auto 0 0;
    height: 46%;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, transparent, rgba(8, 34, 43, 0.28)) !important;
    z-index: 2;
}

.team-page .staff-card .card-image-container img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-page .staff-card .card-content,
.team-page .staff-card:nth-child(even) .card-content {
    min-height: auto;
    padding: 18px 20px 22px;
    align-content: start;
    gap: 9px;
}

.team-page .staff-card .card-content h3 {
    font-size: clamp(1.16rem, 1.45vw, 1.42rem);
    line-height: 1.13;
    letter-spacing: 0;
}

.team-page .staff-card .staff-role-label {
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(49, 212, 220, 0.11);
    border: 1px solid rgba(49, 212, 220, 0.2);
    font-size: 0.68rem;
    line-height: 1.3;
    letter-spacing: 0.1em;
}

.team-page .staff-card .role-desc {
    margin-top: 2px;
    font-size: 0.91rem;
    line-height: 1.62;
}

.team-page .team-member {
    overflow: hidden;
    border-radius: 28px;
}

.team-page .team-member::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(49, 212, 220, 0.2), transparent 68%) !important;
    pointer-events: none;
}

.team-page .member-header {
    align-items: stretch;
}

.team-page .member-photo {
    min-height: 100%;
}

.team-page .member-photo img {
    height: 100%;
    min-height: 430px;
    object-position: center top;
}

.team-page .member-info {
    align-content: center;
    padding: clamp(10px, 2vw, 18px) 0;
}

@media (max-width: 1080px) {
    .team-page .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .team-page .staff-grid {
        grid-template-columns: 1fr;
    }

    .team-page .staff-card,
    .team-page .staff-card:nth-child(even) {
        grid-template-columns: clamp(112px, 30vw, 150px) minmax(0, 1fr);
        grid-template-areas: "photo content";
        align-items: stretch;
        overflow: hidden;
    }

    .team-page .staff-card .card-image-container {
        height: auto;
        min-height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .team-page .staff-card .card-content,
    .team-page .staff-card:nth-child(even) .card-content {
        padding: 46px 18px 18px;
    }

    .team-page .staff-card::before {
        top: 14px;
        left: calc(clamp(112px, 30vw, 150px) + 18px);
    }

    .team-page .member-photo img {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .team-page .staff-card,
    .team-page .staff-card:nth-child(even) {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photo"
            "content";
        overflow: visible;
    }

    .team-page .staff-card .card-image-container {
        height: 260px;
        margin: 14px 14px 0;
        border-radius: 16px;
    }

    .team-page .staff-card .card-content,
    .team-page .staff-card:nth-child(even) .card-content {
        padding: 18px 18px 20px;
    }

    .team-page .staff-card::before {
        top: 26px;
        left: 26px;
    }
}

.team-page .staff-carousel {
    position: relative;
    overflow: hidden;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(178, 236, 239, 0.26);
    border-radius: 30px;
    background:
        radial-gradient(circle at 18% 0%, rgba(143, 227, 199, 0.35), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(49, 212, 220, 0.32), transparent 30%),
        linear-gradient(145deg, rgba(16, 42, 51, 0.96), rgba(14, 104, 114, 0.9) 48%, rgba(18, 134, 142, 0.88)) !important;
    box-shadow:
        0 30px 70px rgba(5, 22, 28, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -28px 60px rgba(4, 28, 35, 0.22) !important;
}

.team-page .staff-carousel::before,
.team-page .staff-carousel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.team-page .staff-carousel::before {
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 22%, transparent 72%, rgba(255, 255, 255, 0.12)),
        radial-gradient(circle at 50% 115%, rgba(255, 255, 255, 0.18), transparent 45%) !important;
    opacity: 0.9;
}

.team-page .staff-carousel::after {
    left: 8%;
    right: 8%;
    bottom: -42px;
    height: 70px;
    border-radius: 50%;
    background: rgba(49, 212, 220, 0.34) !important;
    filter: blur(28px);
}

.team-page .staff-carousel-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.team-page .staff-carousel-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.team-page .staff-carousel-copy .section-kicker {
    color: #aaf6f6 !important;
}

.team-page .staff-carousel-copy h2 {
    margin: 0;
    color: #f8ffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1.05;
}

.team-page .staff-carousel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.team-page .staff-carousel-button {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(178, 236, 239, 0.36);
    border-radius: 50%;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)) !important;
    color: #ffffff;
    font: inherit;
    font-size: 1.28rem;
    cursor: pointer;
    box-shadow:
        0 14px 30px rgba(5, 22, 28, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.team-page .staff-carousel-button:hover {
    transform: translateY(-2px);
    border-color: rgba(170, 246, 246, 0.74);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(49, 212, 220, 0.18)) !important;
}

.team-page .staff-carousel-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
    transform: none;
}

.team-page .staff-carousel .staff-grid {
    position: relative;
    z-index: 2;
    counter-reset: team-card;
    display: flex;
    grid-template-columns: none;
    gap: clamp(12px, 1.6vw, 18px);
    overflow-x: auto;
    overflow-y: visible;
    padding: 6px 8px 22px;
    margin: 0 -8px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(170, 246, 246, 0.75) rgba(255, 255, 255, 0.12);
    cursor: grab;
    touch-action: pan-y;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    user-select: none;
}

.team-page .staff-carousel .staff-grid:active,
.team-page .staff-carousel .staff-grid.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.team-page .staff-carousel .staff-grid::-webkit-scrollbar {
    height: 11px;
}

.team-page .staff-carousel .staff-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.team-page .staff-carousel .staff-grid::-webkit-scrollbar-thumb {
    border: 3px solid rgba(10, 54, 64, 0.96);
    border-radius: 999px;
    background: linear-gradient(90deg, #31d4dc, #8fe3c7);
}

.team-page .staff-carousel .staff-card,
.team-page .staff-carousel .staff-card:nth-child(even) {
    flex: 0 0 clamp(220px, 24vw, 270px);
    scroll-snap-align: start;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(231, 251, 251, 0.88)) !important;
    border-color: rgba(211, 251, 252, 0.42) !important;
    box-shadow:
        0 16px 34px rgba(5, 22, 28, 0.22),
        0 6px 16px rgba(49, 212, 220, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.team-page .staff-carousel .staff-grid.is-dragging .staff-card {
    pointer-events: none;
}

.team-page .staff-carousel .staff-card img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.team-page .staff-carousel .staff-card:hover {
    box-shadow:
        0 22px 44px rgba(5, 22, 28, 0.28),
        0 0 28px rgba(49, 212, 220, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.team-page .staff-carousel .card-image-container {
    height: clamp(165px, 18vw, 205px);
    margin: 12px 12px 0;
    border-radius: 14px;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.44), transparent 24%),
        linear-gradient(145deg, #12343e 0%, #0f7f8c 54%, #31d4dc 100%) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.36),
        0 16px 30px rgba(5, 22, 28, 0.12);
}

.team-page .staff-carousel .staff-card::before {
    top: 14px;
    left: 14px;
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
    font-size: 0.68rem;
}

.team-page .staff-carousel .card-content,
.team-page .staff-carousel .staff-card:nth-child(even) .card-content {
    padding: 14px 14px 16px;
    gap: 7px;
}

.team-page .staff-carousel .staff-card .card-content h3 {
    font-size: clamp(0.98rem, 1.15vw, 1.14rem);
    line-height: 1.1;
}

.team-page .staff-carousel .staff-card .staff-role-label {
    padding: 5px 8px;
    font-size: 0.56rem;
    line-height: 1.25;
}

.team-page .staff-carousel .staff-card .role-desc {
    font-size: 0.77rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .team-page .staff-carousel-header {
        align-items: start;
    }

    .team-page .staff-carousel .staff-card,
    .team-page .staff-carousel .staff-card:nth-child(even) {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photo"
            "content";
        flex-basis: min(250px, 76vw);
        overflow: hidden;
    }

    .team-page .staff-carousel .staff-card::before {
        top: 24px;
        left: 24px;
    }

    .team-page .staff-carousel .card-image-container {
        height: 210px;
        min-height: 0;
        margin: 14px 14px 0;
        border-radius: 16px;
    }

    .team-page .staff-carousel .card-content,
    .team-page .staff-carousel .staff-card:nth-child(even) .card-content {
        padding: 14px 14px 16px;
    }
}

@media (max-width: 520px) {
    .team-page .staff-carousel {
        padding: 16px 12px;
        border-radius: 24px;
    }

    .team-page .staff-carousel-header {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .team-page .staff-carousel-actions {
        justify-content: flex-end;
    }

    .team-page .staff-carousel-button {
        width: 44px;
        height: 44px;
    }
}

/* Shared tablet and smart display refinements for UI pages */
.site-nav {
    gap: clamp(14px, 2vw, 22px);
    min-width: 0;
}

.site-nav a {
    font-size: clamp(0.92rem, 1.3vw, 0.98rem);
    white-space: nowrap;
}

.header-actions {
    min-width: 0;
    overflow: visible;
}

@media (min-width: 861px) and (max-width: 1100px) and (orientation: portrait) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 12px 16px;
        padding: 12px 16px;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        justify-content: flex-start;
        gap: 10px 16px;
        padding-top: 0;
    }

    .search-form {
        min-width: min(220px, 34vw);
        max-width: 260px;
    }

    .team-page .header {
        padding: clamp(28px, 5vw, 44px);
    }

    .team-page .hero-grid {
        gap: 18px;
    }

    .team-page .hero-copy h1,
    .purpose-hero-copy h1,
    .portfolio-hero-copy h1,
    .developers-section .hero-copy h1,
    .location-hero-copy h1,
    .search-hero h1 {
        max-width: 18ch;
        font-size: clamp(2.35rem, 5vw, 3.2rem);
        line-height: 1;
    }

    .team-page .hero-lead,
    .purpose-lead,
    .portfolio-hero-lead,
    .developers-section .hero-lead,
    .location-hero-copy .hero-lead,
    .search-hero p {
        max-width: 64ch;
        line-height: 1.65;
    }

    .team-page .mascot-video-stage {
        max-height: 430px;
        aspect-ratio: 16 / 9;
        margin-top: 8px;
    }
}

@media (min-width: 861px) and (max-width: 1100px) and (max-height: 720px) {
    .site-header {
        gap: 8px 16px;
        padding: 8px 16px;
    }

    .brand img {
        width: 36px !important;
        height: 36px !important;
    }

    .brand-title {
        font-size: 1.25rem;
    }

    .brand-tagline {
        max-width: 210px;
        font-size: 0.52rem;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 8px 16px;
        padding-top: 0;
    }

    .site-nav a {
        font-size: 0.88rem;
    }

    .search-form {
        min-width: 190px;
        max-width: 230px;
        padding: 5px 12px;
    }

    .menu-button {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .team-page .container,
    .portfolio-section,
    .developers-section,
    .map-experience,
    .search-hero {
        padding-top: 16px;
        padding-bottom: 34px;
    }

    .team-page .header,
    .portfolio-hero,
    .developers-section .hero-panel,
    .developers-content-space,
    .purpose-hero-copy,
    .purpose-hero-panel,
    .location-hero-copy,
    .location-hero-panel,
    .map-card,
    .map-info,
    .search-hero .search-shell {
        border-radius: 22px;
        padding: 20px;
    }

    .team-page .hero-grid,
    .purpose-hero-shell,
    .portfolio-hero,
    .developers-section .hero-panel,
    .location-hero {
        grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.86fr);
        gap: 16px;
    }

    .team-page .hero-copy h1,
    .purpose-hero-copy h1,
    .portfolio-hero-copy h1,
    .developers-section .hero-copy h1,
    .location-hero-copy h1,
    .search-hero h1 {
        max-width: 17ch;
        font-size: clamp(2rem, 4.2vw, 2.8rem);
        line-height: 1;
    }

    .team-page .hero-lead,
    .purpose-lead,
    .portfolio-hero-lead,
    .developers-section .hero-lead,
    .location-hero-copy .hero-lead,
    .map-info-lead,
    .map-hint,
    .search-hero p {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .purpose-button,
    .portfolio-button,
    .hero-button {
        min-height: 36px;
        padding: 8px 14px;
        font-size: 0.84rem;
    }

    .team-page .hero-highlights,
    .purpose-stat-grid,
    .portfolio-hero-stats,
    .cards-grid {
        gap: 8px;
    }

    .team-page .mascot-video-stage {
        max-height: 150px;
        aspect-ratio: 16 / 9;
        margin: 0;
    }

    .team-page .hero-stat,
    .purpose-stat,
    .portfolio-stat {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .team-page .hero-stat strong,
    .purpose-stat strong,
    .portfolio-stat strong {
        font-size: 0.9rem;
    }

    .team-page .hero-stat span,
    .purpose-stat span,
    .purpose-hero-panel p,
    .portfolio-stat span,
    .portfolio-panel p {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .map-container {
        min-height: 230px;
    }
}

/* Searchable minor projects panel */
.project-grid.other-projects {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
}

.Project-other.card.minor-project-panel {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 20px !important;
    border: 1px solid rgba(178, 236, 239, 0.2) !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 28%),
        linear-gradient(150deg, #153943 0%, #102a33 58%, #0b1e29 100%) !important;
    box-shadow:
        0 24px 50px rgba(5, 22, 28, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.Project-other.card.minor-project-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 232, 234, 0.34) !important;
    box-shadow:
        0 30px 62px rgba(5, 22, 28, 0.28),
        0 0 34px rgba(49, 212, 220, 0.12) !important;
}

.minor-project-panel-header {
    position: relative;
    z-index: 1;
    padding: clamp(18px, 3vw, 24px) clamp(18px, 3vw, 26px);
    border-bottom: 1px solid rgba(178, 236, 239, 0.16);
    background: linear-gradient(135deg, rgba(49, 212, 220, 0.18), rgba(15, 127, 140, 0.08));
}

.minor-project-panel-header .section-kicker {
    margin-bottom: 6px;
    color: #7ce8ea !important;
}

.minor-project-panel-header .other-project-title {
    color: #f8ffff !important;
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

.minor-project-panel-header .other-project-badge {
    align-self: flex-start;
    border-radius: 999px;
    background: rgba(49, 212, 220, 0.1) !important;
    border-color: rgba(124, 232, 234, 0.36) !important;
    color: #aaf6f6 !important;
}

.minor-project-panel-body {
    position: relative;
    z-index: 1;
    padding: clamp(16px, 3vw, 24px) clamp(18px, 3vw, 26px) clamp(18px, 3vw, 26px);
}

.minor-project-panel .other-project-intro {
    margin: 0 0 16px;
    max-width: 76ch;
    color: #d7eef1 !important;
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    line-height: 1.6;
}

.minor-project-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.minor-project-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.minor-project-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(170, 246, 246, 0.72);
    border-radius: 50%;
    transform: translateY(-58%);
    pointer-events: none;
}

.minor-project-search-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: rgba(170, 246, 246, 0.72);
    transform: rotate(45deg);
}

.minor-project-search-input {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px 9px 38px;
    border: 1px solid rgba(178, 236, 239, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    color: #f8ffff;
    font: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.minor-project-search-input::placeholder {
    color: rgba(215, 238, 241, 0.7);
}

.minor-project-search-input:focus {
    border-color: rgba(124, 232, 234, 0.62);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 0 0 3px rgba(49, 212, 220, 0.14);
}

.minor-project-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(124, 232, 234, 0.28);
    border-radius: 999px;
    background: rgba(49, 212, 220, 0.1);
    color: #aaf6f6;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.minor-project-scroll-area {
    max-height: min(54vh, 360px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 232, 234, 0.5) transparent;
}

.minor-project-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.minor-project-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.minor-project-scroll-area::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(124, 232, 234, 0.5);
}

.minor-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.minor-project-item {
    min-width: 0;
    min-height: 86px;
    padding: 11px 12px;
    border: 1px solid rgba(178, 236, 239, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8ffff;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.minor-project-item:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 232, 234, 0.42);
    background: rgba(49, 212, 220, 0.12);
}

.minor-project-name {
    margin: 0;
    color: #f8ffff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

.minor-project-sub {
    margin: 4px 0 0;
    color: #d7eef1;
    font-size: 0.8rem;
    line-height: 1.35;
}

.minor-project-tag {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 4px 7px;
    border: 1px solid rgba(124, 232, 234, 0.26);
    border-radius: 6px;
    background: rgba(49, 212, 220, 0.12);
    color: #aaf6f6;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.minor-project-empty-state {
    grid-column: 1 / -1;
    padding: 26px 18px;
    border: 1px dashed rgba(178, 236, 239, 0.24);
    border-radius: 8px;
    color: #d7eef1;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .minor-project-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .minor-project-search-row {
        align-items: stretch;
        flex-direction: column;
    }

    .minor-project-count-pill {
        align-self: flex-start;
    }

    .minor-project-scroll-area {
        max-height: 430px;
    }

    .minor-project-grid {
        grid-template-columns: 1fr;
    }
}
