
/* ==========================================================
   PITTSBURG MICROPOLITAN ECONOMIC REPORTS
   Pittsburg State University
   CSS Version 11
   ========================================================== */

/* ==========================================================
   1. VARIABLES AND BASE STYLES
   ========================================================== */

:root {
    --psu-red: #dd0000;
    --ink: #171923;
    --muted: #5f6670;
    --line: #e1e4e8;
}

body {
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: #c40000;
    text-decoration: none;
}

a:hover {
    color: #990000;
    text-decoration: underline;
}

.container-xxl {
    max-width: 1400px;
}

/* ==========================================================
   2. HERO
   ========================================================== */

.hero {
    min-height: 310px;
    background-color: #26313b;
    background-image:
        linear-gradient(
            105deg,
            rgba(12, 20, 30, .35),
            rgba(12, 20, 30, .05)
        ),
        var(--metro-hero-image, none);
    background-position: center 48%;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-inner {
    padding-top: 45px;
    padding-bottom: 45px;
}

.hero-panel {
    max-width: 600px;
    background: rgba(255, 255, 255, .95);
    padding: 30px 34px 32px;
}

.eyebrow {
    font-size: .96rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #454a53;
    margin-bottom: .5rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.65rem);
    margin: 0 0 .5rem;
}

.hero-intro {
    font-size: 1.12rem;
    max-width: 440px;
    color: #303540;
}

/* ==========================================================
   3. BUTTONS
   ========================================================== */

.btn-danger {
    background: var(--psu-red);
    border-color: var(--psu-red);
}

.btn-danger:hover {
    background: #b80000;
    border-color: #b80000;
}

.btn-outline-danger {
    color: #c00;
    border-color: #c00;
}

.btn {
    border-radius: 3px;
    font-size: .9rem;
    font-weight: 700;
    padding: .7rem 1rem;
}

#micropolitan .btn-indicator {
    border-radius: 0;
}

/* ==========================================================
   4. SECTION NAVIGATION
   ========================================================== */

.section-nav {
    display: flex;
    justify-content: center;
    gap: clamp(12px, 3vw, 38px);
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.section-nav a {
    color: #23262d;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .92rem;
    font-weight: 700;
}

.section-nav a:hover {
    color: #c00;
}

/* ==========================================================
   5. GENERAL SECTIONS
   ========================================================== */

.section {
    padding: 31px 0;
    border-bottom: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.section-heading p {
    margin: 0;
}

.section-heading > a {
    font-size: 1rem;
    white-space: nowrap;
}

/* ==========================================================
   6. OVERVIEW
   ========================================================== */

.overview p {
    line-height: 1.65;
}

.overview-aside {
    background: #f3f4f6;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 30px 24px;
    gap: 20px;
}

.overview-aside > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.overview-aside > div + div {
    border-left: 1px solid #d5d8dc;
    padding-left: 20px;
}

.overview-icon {
    color: var(--psu-red);
    font-size: 2rem;
}

.overview-aside strong {
    font-size: 1rem;
}

.overview-aside small {
    color: #66707a;
    line-height: 1.5;
}

/* ==========================================================
   7. ECONOMIC SNAPSHOT
   ========================================================== */

.metric-card {
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 20px 21px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(17, 17, 17, .02);
    display: flex;
    flex-direction: column;
}

.metric-name {
    font-size: 1rem;
    font-weight: 500;
    color: #444c57;
    line-height: 1.4;
}

.metric-value {
    font-size: 2rem;
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.2;
    color: #14161d;
    font-variant-numeric: tabular-nums;
}

.metric-change {
    font-size: .875rem;
    line-height: 1.5;
    font-weight: 600;
    min-height: 38px;
}

.metric-change.change-good {
    color: #16733c;
}

.metric-change.change-bad {
    color: #b42318;
}

.metric-change.change-neutral {
    color: #667085;
}

.metric-period {
    font-size: .92rem;
    line-height: 1.5;
    color: #626873;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: auto !important;
}

/* ==========================================================
   8. REPORTS
   ========================================================== */

.recent-panel {
    border-left: 1px solid var(--line);
    padding-left: 28px;
}

/* ----------------------------------------------------------
   Quarterly section heading

   Version 11:
   - Heading takes the full available width
   - No extra heading link
   - Normal wrapping, ideally two lines
   ---------------------------------------------------------- */

#micropolitan .recent-panel .quarterly-section-heading {
    display: block;
    width: 100%;
    margin-bottom: 18px;
}

#micropolitan .recent-panel .quarterly-section-heading h2 {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}

/* ----------------------------------------------------------
   Quarterly report list

   One bordered container with stacked rows.
   ---------------------------------------------------------- */

#micropolitan #report-list {
    border: 1px solid #dce1e7;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

/* Individual report */

#micropolitan #report-list .report-item {
    padding: 14px 16px 16px;
    border-bottom: 1px solid #dce1e7;
    background: #fff;
}

#micropolitan #report-list .report-item:last-child {
    border-bottom: 0;
}

/* Period */

#micropolitan #report-list .report-period {
    font-family: Arial, Helvetica, sans-serif;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
    color: #626b7b;
    margin: 0 0 8px;
}

/* Report title */

#micropolitan #report-list .report-item h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: #222;
    letter-spacing: 0;
    margin: 0 0 14px;
}

/* View Report link */

#micropolitan #report-list .report-item a {
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #c40000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#micropolitan #report-list .report-item a:hover {
    color: #900;
}

/* ----------------------------------------------------------
   Compatibility with older report markup
   ---------------------------------------------------------- */

.report-list {
    border: 1px solid var(--line);
    border-radius: 3px;
}

.report-row {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
}

.report-row:last-child {
    border-bottom: 0;
}

.report-row a {
    font-weight: 600;
    font-size: 1rem;
}

.report-row small {
    display: block;
    color: #777;
    font-size: .92rem;
    margin-top: 4px;
}

/* ----------------------------------------------------------
   Featured annual report
   ---------------------------------------------------------- */

.featured-report {
    padding-top: 10px;
}

.featured-report .report-label {
    text-transform: uppercase;
    font-size: .92rem;
    letter-spacing: .1em;
    color: #777;
}

.featured-report .report-period {
    color: #626873;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.featured-report h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    line-height: 1.3;
    max-width: 540px;
}

.featured-report p {
    max-width: 540px;
}

.featured-report .btn {
    display: inline-block;
}

/* ==========================================================
   9. ECONOMIC TRENDS
   ========================================================== */

.trend-tabs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin: 15px 0 19px;
}

.btn-indicator {
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #444;
    font-size: 1rem;
    font-weight: 500;
    padding: 11px 8px;
    cursor: pointer;
    transition:
        color .15s ease,
        border-color .15s ease,
        background-color .15s ease;
}

.btn-indicator:hover {
    color: #c00;
    background-color: #f7f7f7;
}

.btn-indicator[aria-pressed="true"] {
    border-color: var(--psu-red);
    color: #c00;
    font-weight: 700;
}

.chart-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.chart-wrap {
    height: 270px;
    position: relative;
    width: 100%;
    min-width: 0;
}

.chart-wrap canvas {
    display: block;
    max-width: 100%;
}

#chart-source {
    color: #626873;
    font-size: .875rem;
    line-height: 1.5;
}

/* Accessible chart data */

#trends details {
    margin-top: 18px;
}

#trends summary {
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

#trends details table {
    width: 100%;
}

#trends details th,
#trends details td {
    padding: .65rem .75rem;
    vertical-align: top;
}

/* ==========================================================
   10. DATA RESOURCES
   ========================================================== */

.resources-panel {
    border-left: 1px solid var(--line);
    padding-left: 28px;
}

.resources-table {
    font-size: 1rem;
}

.resources-table td,
.resources-table th {
    padding: .7rem .4rem;
    vertical-align: top;
}

.resources-table th {
    color: #626873;
    font-weight: 600;
}

.resources-table a {
    font-weight: 600;
}

#resource-search,
#resource-category {
    max-width: 100%;
}

/* ==========================================================
   11. PARTNERS
   ========================================================== */

.partners {
    padding: 28px;
    margin: 0 -12px;
}

.partners p {
    margin-bottom: 12px;
}

.partner-placeholder {
    font-weight: 700;
    color: #3b4048;
}

/* ==========================================================
   12. DEMO NOTE
   ========================================================== */

.demo-note {
    padding: 18px 0;
    font-size: .92rem;
}

/* ==========================================================
   13. ACCESSIBILITY
   ========================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .btn-indicator {
        transition: none;
    }
}

/* ==========================================================
   14. RESPONSIVE
   ========================================================== */

@media (max-width: 991px) {
    .recent-panel,
    .resources-panel {
        border-left: 0;
        padding-left: 12px;
    }

    .hero {
        min-height: 260px;
    }
}

@media (max-width: 576px) {
    .hero-inner {
        padding: 20px 12px;
    }

    .hero-panel {
        padding: 22px;
    }

    .overview-aside {
        grid-template-columns: 1fr;
    }

    .overview-aside > div + div {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid #ddd;
        padding-top: 15px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading > a {
        white-space: normal;
    }

    .chart-wrap {
        height: 250px;
    }

    .metric-value {
        font-size: 1.8rem;
    }

    .metric-card {
        padding: 18px;
    }

    .trend-tabs {
        gap: 4px;
    }

    .btn-indicator {
        font-size: .9rem;
        padding: 10px 7px;
    }

    .partners {
        padding: 20px 12px;
        margin: 0;
    }
}
