/* Georgia Tech brand tokens — see design.md */
:root {
    --gt-gold: #b39051;
    --gt-white: #ffffff;
    --gt-navy: #051e39;
    --gt-dark-gold: #8f713d;
    --gt-diploma: #f9f6e5;
    --gt-buzz: #eaaa00;
    --gt-campanile: #048a81;
    --gt-tech-lawn: #066034;
    --gt-whistle: #660064;
    --gt-gold-tint: #f3ead6;
    --gt-gold-line: #e0d2b4;
    --gt-font-sans: "Roboto", Helvetica, Arial, sans-serif;
    --gt-font-slab: "Roboto Slab", Georgia, serif;
    --gt-radius: 12px;
    --gt-radius-sm: 8px;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--gt-font-sans);
    background: var(--gt-diploma);
    color: var(--gt-navy);
    overflow: hidden;
}

body.landing-page {
    overflow: auto;
}

/* Faint hive-inspired dot matrix (brand pattern, low contrast) */
.gt-dot-matrix,
.dashboard-shell,
.landing-page {
    background-color: var(--gt-diploma);
    background-image: radial-gradient(rgba(179, 144, 81, 0.18) 1px, transparent 1.2px);
    background-size: 18px 18px;
}

/* ---- Landing ---- */

.landing-page {
    min-height: 100vh;
    overflow: auto;
    position: relative;
}

.landing-page .gt-hex {
    position: absolute;
    width: 140px;
    height: 160px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    pointer-events: none;
    opacity: 0.14;
}

.landing-page .gt-hex-gold {
    background: var(--gt-gold);
    top: 18%;
    right: 8%;
}

.landing-page .gt-hex-navy {
    background: var(--gt-navy);
    width: 90px;
    height: 104px;
    bottom: 18%;
    left: 7%;
}

.landing-page .gt-hex-campanile {
    background: var(--gt-campanile);
    width: 64px;
    height: 74px;
    top: 28%;
    left: 14%;
}

.gt-masthead {
    background: var(--gt-white);
    border-bottom: 4px solid var(--gt-gold);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    min-height: 72px;
}

.gt-masthead-logo {
    height: 40px;
    width: auto;
    display: block;
}

.landing-main {
    max-width: 760px;
    margin: 72px auto 96px;
    padding: 0 24px 48px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-kicker {
    font-family: var(--gt-font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gt-dark-gold);
    margin-bottom: 16px;
}

.landing-title {
    font-family: var(--gt-font-slab);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gt-navy);
    line-height: 1.15;
    margin-bottom: 16px;
}

.landing-description {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--gt-navy);
    opacity: 0.82;
    max-width: 36em;
    margin: 0 auto 36px;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.gt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: var(--gt-radius-sm);
    font-family: var(--gt-font-sans);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gt-btn:hover {
    text-decoration: none;
}

.gt-btn-navy {
    background: var(--gt-navy);
    color: var(--gt-white);
    border-color: var(--gt-navy);
}

.gt-btn-navy:hover {
    background: #0a2d52;
    color: var(--gt-white);
    border-color: var(--gt-gold);
}

.gt-btn-gold {
    background: var(--gt-gold);
    color: var(--gt-navy);
    border-color: var(--gt-gold);
}

.gt-btn-gold:hover {
    background: var(--gt-dark-gold);
    color: var(--gt-white);
    border-color: var(--gt-dark-gold);
}

.gt-btn-outline {
    background: var(--gt-white);
    color: var(--gt-navy);
    border-color: var(--gt-gold);
}

.gt-btn-outline:hover {
    background: var(--gt-gold-tint);
    color: var(--gt-navy);
    text-decoration: none;
}

.landing-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gt-dark-gold);
    padding: 12px;
    background: linear-gradient(to top, var(--gt-diploma), transparent);
}

/* ---- Dashboard shell ---- */

.dashboard-shell {
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.dashboard-shell-sidebar {
    position: sticky;
    top: 0;
    width: 268px;
    min-width: 268px;
    height: 100vh;
    background: var(--gt-white);
    border-right: 1px solid var(--gt-gold-line);
    padding: 20px 16px;
    display: flex;
    overflow: hidden;
    flex-shrink: 0;
}

.dashboard-sidebar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 4px 4px 16px;
    border-bottom: 3px solid var(--gt-gold);
}

.sidebar-brand-logo {
    height: 36px;
    width: auto;
    max-width: 100%;
    display: block;
}

.sidebar-brand-text {
    font-family: var(--gt-font-slab);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gt-navy);
    letter-spacing: 0.01em;
}

.sidebar-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gt-dark-gold);
    margin-top: 8px;
    padding: 0 4px;
}

.sidebar-nav-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 11px 12px;
    border-radius: var(--gt-radius-sm);
    color: var(--gt-navy);
    font-family: var(--gt-font-sans);
    font-size: 0.97rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-nav-button:hover {
    background: var(--gt-gold-tint);
    color: var(--gt-navy);
}

.sidebar-nav-button-subitem {
    padding-left: 22px;
    font-size: 0.93rem;
}

.sidebar-nav-button-active {
    background: var(--gt-gold-tint);
    color: var(--gt-navy);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--gt-gold);
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    padding: 10px 4px 2px;
}

.sidebar-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--gt-gold);
    border-radius: var(--gt-radius-sm);
    color: var(--gt-navy);
    text-decoration: none;
    background: var(--gt-white);
    font-weight: 500;
}

.sidebar-login-link:hover {
    text-decoration: none;
    color: var(--gt-navy);
    background: var(--gt-gold-tint);
}

.dashboard-shell-main {
    flex: 1;
    min-width: 0;
    height: 100vh;
    padding: 20px 22px 28px;
    overflow-x: hidden;
    overflow-y: auto;
}

.dashboard-main-content {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.dashboard-card {
    width: 100%;
    border: 1px solid var(--gt-gold-line);
    border-radius: var(--gt-radius);
    box-shadow: 0 8px 24px rgba(5, 30, 57, 0.06);
    background: var(--gt-white);
}

.metric-card {
    width: 100%;
    min-height: 126px;
}

.metric-card .card-body {
    overflow: visible;
}

.metric-card-label-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.metric-card-label {
    margin-bottom: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gt-dark-gold);
    white-space: normal;
    overflow-wrap: anywhere;
}

.info-tip {
    position: relative;
    flex: 0 0 auto;
}

.info-tip-btn {
    list-style: none;
    cursor: pointer;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--gt-gold);
    color: var(--gt-dark-gold);
    background: var(--gt-white);
    font-family: var(--gt-font-slab);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
}

.info-tip-btn::-webkit-details-marker {
    display: none;
}

.info-tip-bubble {
    display: none;
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    padding: 10px 12px;
    background: var(--gt-navy);
    color: var(--gt-white);
    border-radius: 8px;
    font-family: var(--gt-font-sans);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    box-shadow: 0 8px 20px rgba(5, 30, 57, 0.18);
}

.info-tip[open] .info-tip-bubble,
.info-tip:hover .info-tip-bubble,
.info-tip:focus-within .info-tip-bubble {
    display: block;
}

.metric-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.metric-card-value {
    margin-bottom: 8px;
    font-family: var(--gt-font-slab);
    font-size: 2rem;
    font-weight: 600;
    color: var(--gt-navy);
    line-height: 1.15;
}

.metric-card-value-compact {
    font-size: 1.65rem;
    line-height: 1.2;
}

.metric-card-detail {
    margin-bottom: 0;
    color: var(--gt-dark-gold);
    font-size: 0.88rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.metric-card-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--gt-gold-line);
    border-radius: 8px;
    color: var(--gt-navy);
    font-size: 0.82rem;
    font-weight: 600;
}

.content-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 18px 20px 14px;
}

.content-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.content-card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.chart-number {
    flex: 0 0 auto;
    background: none;
    color: var(--gt-gold);
    font-family: var(--gt-font-slab);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
}

.content-card-title {
    margin-bottom: 0;
    font-family: var(--gt-font-slab);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gt-navy);
}

.network-center-note {
    margin: 0 0 12px;
    padding: 10px 14px;
    background: var(--gt-gold-tint);
    border: 1px solid var(--gt-gold-line);
    border-radius: 8px;
    color: var(--gt-navy);
    font-size: 0.95rem;
    line-height: 1.4;
}

.content-card-subtitle {
    margin-bottom: 14px;
    color: var(--gt-dark-gold);
    font-size: 0.96rem;
}

.content-card .js-plotly-plot,
.content-card .dash-graph {
    width: 100% !important;
    max-width: 100%;
    min-height: clamp(280px, 26vh, 560px);
}

.content-card .nsewdrag {
    cursor: default !important;
}

.network-graph-panel .nsewdrag {
    cursor: grab !important;
}

.network-graph-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}

.network-graph-panel .dash-graph {
    width: 100% !important;
    min-height: min(72vh, 920px) !important;
    height: min(78vh, 980px) !important;
    max-height: none;
}

.network-graph-panel .plot-container.plotly,
.network-graph-panel .js-plotly-plot {
    height: 100% !important;
}

.network-graph-toolbar {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    padding-top: 6px;
}

.network-graph-reset-btn {
    font-family: var(--gt-font-sans);
    font-weight: 500;
    color: var(--gt-navy);
    background: var(--gt-white);
    border: 1px solid var(--gt-gold);
    border-radius: var(--gt-radius-sm);
    padding: 6px 12px;
}

.network-graph-reset-btn:hover {
    background: var(--gt-gold-tint);
    color: var(--gt-navy);
}

.content-card .card-body > .dash-graph,
.content-card .card-body > .js-plotly-plot,
.content-card .card-body > div {
    min-width: 0;
}

.table-card .dash-table-container {
    overflow-x: auto;
}

.dash-table-container .dash-header {
    font-family: var(--gt-font-sans);
}

.Select-control,
.Select-menu-outer,
.form-control {
    font-family: var(--gt-font-sans);
    color: var(--gt-navy);
}

@media (max-width: 992px) {
    .dashboard-shell {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .dashboard-shell-sidebar {
        position: static;
        width: 100%;
        min-width: 100%;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--gt-gold-line);
        overflow: visible;
    }

    .dashboard-shell-main {
        height: auto;
        padding: 18px 14px 24px;
        overflow: visible;
    }

    .network-graph-panel .dash-graph {
        min-height: 52vh !important;
        height: 58vh !important;
    }

    .gt-masthead {
        padding: 14px 18px;
    }

    .landing-main {
        margin-top: 48px;
    }
}
