/* Site-wide styles for every page, including the mobile layouts. */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');

:root {
    --font-family: 'Barlow', sans-serif;
    --text-color: #36454F;       /* forced light-theme text color, matches .streamlit/config.toml */
    --bg-color: #ffffff;
    --heading-blue: #2364a0;     /* section headings: "Response Distribution", "Year-over-Year Trends", etc. */
    --title-font-color: #59595b; /* chart title / caption muted gray */
    --label-color: #333333;
    --track-color: #ececec;
    --border-gray: #808080;
    /* Darker gray for text; meets WCAG 4.5:1 on white and with white text.
       --border-gray is for non-text borders only. */
    --accessible-gray: #757575;
    /* Border for interactive controls; meets WCAG 3:1 against white,
       --header-bg and --card-bg. Decorative dividers use lighter grays. */
    --control-border: #8d8d8d;
    --grid-color: #e5e5e5;
    --header-bg: #f9f9f9;
    --card-bg: #f9f6f0;          /* off-white chart-card background */
    --card-border: #efe9db;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--bg-color);
}

a {
    color: var(--heading-blue);
}

.page-shell {
    max-width: 65rem;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Demographic Breakdown uses a slightly wider column. */
.page-shell--wide {
    max-width: 68rem;
}

/* --- Header: logos and nav in one bar. The page heading is .page-title,
   below the header. --- */
.site-header {
    position: relative;
    background-color: var(--header-bg);
    border-bottom: 1px solid #e0e0e0;
    padding: 14px 0;
    margin-bottom: 1.5rem;
}

.site-header__inner {
    max-width: 68rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
}

/* The ARC logo and site logo, kept together as one flex item. Bottom-
   aligned because the ARC logo is sized to the height of the "METRO
   ATLANTA SPEAKS" wordmark, which sits at the bottom of the site logo. */
.site-header__brand {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.site-header__arc-logo {
    display: inline-flex;
}

.site-header__arc-logo img {
    height: 52.25px;
    width: auto;
    display: block;
}

.site-header__logo {
    display: inline-flex;
}

.site-header__logo img {
    height: 56px;
    width: auto;
    display: block;
}

/* --- Nav: inline with the logo on desktop, a hamburger dropdown on
   mobile (see the max-width:768px block). The hamburger is a CSS-only
   checkbox toggle, so it works on pages that load no JS. --- */
.nav-toggle-checkbox {
    display: none;
}

.nav-toggle-btn {
    display: none;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- Page title, at the top of each page's content --- */
.page-title {
    color: var(--heading-blue);
    font-size: 34px;
    font-weight: 600;
    margin: 0 0 1.25rem;
}

.site-nav a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--title-font-color);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover {
    color: var(--heading-blue);
}

.site-nav a.active {
    color: var(--heading-blue);
    border-bottom-color: var(--heading-blue);
}

/* --- Intro blurb (splash page): headline, subline and fine print on
   separate lines. --- */
.intro-blurb {
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.intro-blurb .headline {
    display: block;
    color: #F15B29;
    font-size: 22px;
    font-weight: bold;
}

.intro-blurb .subline {
    display: block;
    margin-top: 0.5rem;
    /* Meets WCAG 4.5:1 on white. */
    color: #177da9;
    font-size: 20px;
    font-weight: 600;
}

.intro-blurb .fineprint {
    display: block;
    margin-top: 1rem;
    color: var(--title-font-color);
    font-size: 15px;
    font-weight: 400;
}

/* --- Section headings --- */
.section-heading {
    color: var(--heading-blue);
    font-size: 27px;
    font-weight: bold;
    margin: 0 0 0.75rem;
}

.section-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2rem 0;
}

.section-caption {
    /* Meets WCAG 4.5:1 on --card-bg. */
    color: var(--title-font-color);
    font-size: 14px;
    margin-top: 0.5rem;
}

.info-box {
    background: #e7f3fe;
    border-left: 4px solid #29ABE2;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 0.75rem;
}

.warning-box {
    background: #fff6e5;
    border-left: 4px solid #eda100;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 0.75rem;
}

.tip-box {
    font-size: 15px;
    margin-top: 0.75rem;
}

/* --- Controls row: question picker, year radio, Topline/Detailed pill --- */
.controls-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.controls-row__years {
    flex: 1 1 320px;
}

.controls-row__demographic {
    flex: 0 0 auto;
    margin-right: 1.5rem;
}

.demo-select {
    display: block;
    font-family: var(--font-family);
    font-size: 14px;
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--control-border);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    cursor: pointer;
    min-width: 190px;
}

/* Sized to its content so the year buttons get the remaining width and a
   full year range fits on one line. */
.controls-row__mode {
    flex: 0 0 auto;
}

.field-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--label-color);
    margin-bottom: 6px;
    display: block;
}

.question-select-wrap {
    margin-bottom: 1rem;
}

/* --- Desktop question picker (questionPicker.js). The button and every
   option share one 3-column grid (category | question | trend) so the
   columns line up. --- */
.qpicker {
    position: relative;
}

.qpicker__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    font-family: var(--font-family);
    padding: 8px 10px;
    border: 2px solid var(--border-gray);
    border-radius: 5px;
    background: white;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
}

.qpicker__button-row,
.qpicker__option {
    display: grid;
    grid-template-columns: 150px 1fr 118px;
    align-items: center;
    column-gap: 10px;
    width: 100%;
}

.qpicker__chevron {
    flex: 0 0 auto;
    font-size: 11px;
    color: var(--title-font-color);
}

.qpicker__panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 420px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--control-border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 500;
    padding: 4px;
}

.qpicker__option {
    font-family: var(--font-family);
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
}

.qpicker__option:hover {
    background: #eaf3fb;
}

/* Keyboard focus gets a visible outline; the background tint alone is
   too faint (WCAG 3:1). */
.qpicker__option:focus {
    background: #eaf3fb;
    outline: 2px solid var(--heading-blue);
    outline-offset: -2px;
}

.qpicker__option.selected {
    background: #eaf3fb;
}

.qpicker-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qpicker-question {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.35;
}

.qpicker-trend {
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.qpicker-trend--available {
    /* Meets WCAG 4.5:1 on the hover/selected background. */
    color: #157e3c;
    font-weight: 600;
}

.qpicker-trend--none {
    /* Meets WCAG 4.5:1 on white and the hover/selected background. */
    color: #656e7d;
    font-style: italic;
}

/* --- Help tooltip: a "?" icon next to a field label that shows help text
   on hover or focus. --- */
.help-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 6px;
    border-radius: 50%;
    /* Meets WCAG 4.5:1 for the white "?". */
    background: var(--accessible-gray);
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
}

.help-icon:hover,
.help-icon:focus {
    background: var(--heading-blue);
    outline: none;
}

.help-icon__tooltip {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: max-content;
    max-width: 260px;
    background: #333333;
    color: white;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 500;
    pointer-events: none;
}

.help-icon__tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333333;
}

.help-icon:hover .help-icon__tooltip,
.help-icon:focus .help-icon__tooltip {
    display: block;
}

/* Year buttons, styled like the demographic buttons (solid blue when selected). */
.year-radio-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.year-radio-group button {
    font-family: var(--font-family);
    font-size: 14px;
    padding: 4px 10px;
    border: 1px solid var(--control-border);
    border-radius: 16px;
    background: white;
    color: var(--text-color);
    cursor: pointer;
}

.year-radio-group button.selected {
    background: var(--heading-blue);
    border-color: var(--heading-blue);
    color: white;
}

/* Topline/Detailed toggle */
.mode-pills {
    display: inline-flex;
    border: 1px solid var(--control-border);
    border-radius: 20px;
    overflow: hidden;
}

.mode-pills button {
    font-family: var(--font-family);
    font-size: 14px;
    padding: 6px 16px;
    border: none;
    background: white;
    color: var(--text-color);
    cursor: pointer;
}

.mode-pills button.selected {
    background: var(--heading-blue);
    color: white;
}

/* --- Chart card toolbar: a card's heading and the controls beside it. --- */
.chart-card__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.chart-card__toolbar .section-heading {
    margin: 0;
}

/* Download buttons at the bottom right of each chart card. */
.chart-card__footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.download-csv-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--heading-blue);
    background: none;
    border: 1px solid var(--heading-blue);
    border-radius: 14px;
    padding: 5px 12px;
    cursor: pointer;
}

.download-csv-btn:hover {
    background: var(--heading-blue);
    color: white;
}

/* Sliding switch: a rounded track with both labels and a thumb that JS
   positions under the selected label (demographicBreakdown.js). The
   transition makes the thumb slide. */
.chart-view-toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 2px;
    padding: 3px;
    /* Meets WCAG 4.5:1 for the white label text. */
    background: var(--accessible-gray);
    border-radius: 18px;
    cursor: pointer;
}

.chart-view-toggle__thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: 0;
    background: white;
    border-radius: 15px;
    transition: left 0.25s ease, width 0.25s ease;
}

.chart-view-toggle button {
    position: relative;
    z-index: 1;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border: none;
    border-radius: 15px;
    background: transparent;
    /* Full opacity so the text meets WCAG 4.5:1. */
    color: #ffffff;
    cursor: pointer;
    transition: color 0.2s ease;
}

.chart-view-toggle button.selected {
    color: var(--accessible-gray);
}

/* Fade and scale transition when switching between stacked and small
   multiples (see switchChartView in demographicBreakdown.js). */
#crosstab-container {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

#crosstab-container.chart-transition-exit {
    opacity: 0;
    transform: scale(0.97);
}

#crosstab-container.chart-transition-enter {
    opacity: 0;
    transform: scale(1.03);
}

/* Cursor-following chart tooltip (attachCursorTooltip in charts.js).
   Fixed-positioned on <body> so scrollable chart wrappers can't clip it. */
.cursor-tooltip {
    position: fixed;
    display: none;
    pointer-events: none;
    z-index: 1000;
    background: white;
    /* Meets WCAG 3:1 for the tooltip outline. */
    border: 1px solid var(--control-border);
    border-radius: 6px;
    padding: 6px 10px;
    font-family: var(--font-family);
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

/* Small multiples can be wider than the card; scroll horizontally. */
.small-multiples-scroll {
    overflow-x: auto;
    padding-bottom: 6px;
}

/* Demographic buttons (mobile) */
.demo-segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 1rem 0;
}

.demo-segmented button {
    font-family: var(--font-family);
    font-size: 13px;
    padding: 6px 14px;
    border: 1px solid var(--control-border);
    border-radius: 16px;
    background: white;
    color: var(--text-color);
    cursor: pointer;
}

.demo-segmented button.selected {
    background: var(--heading-blue);
    border-color: var(--heading-blue);
    color: white;
}

/* --- Chart container --- */
.chart-container {
    width: 100%;
    /* Disables double-tap-to-zoom on charts so a quick tap shows the tooltip
       instead of resizing the chart. Pinch-to-zoom still works. */
    touch-action: manipulation;
}

/* --- Chart card: the off-white panel behind a section's heading, chart
   and caption. Charts have transparent backgrounds so this shows through.
   Empty cards are hidden. --- */
.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-card:empty {
    display: none;
}

/* --- Mobile: label-above-bar rows --- */
.bar-row {
    margin-bottom: 14px;
}

.bar-row__label {
    font-size: 14px;
    color: var(--label-color);
    margin-bottom: 4px;
    line-height: 1.35;
}

.bar-row__track-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-row__track {
    flex: 1 1 auto;
    background: var(--track-color);
    border-radius: 4px;
    height: 16px;
    overflow: hidden;
}

.bar-row__fill {
    height: 100%;
    border-radius: 4px;
}

.bar-row__pct {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--label-color);
    min-width: 36px;
    text-align: right;
}

/* Mobile topline list title */
.mobile-topline-title {
    font-style: italic;
    color: var(--title-font-color);
    font-size: 16px;
    margin-bottom: 16px;
}

/* --- Mobile demographic cards --- */
.demo-card-heading {
    font-weight: 600;
    color: var(--heading-blue);
    font-size: 19px;
    line-height: 1.3;
}

.demo-card-subtitle {
    color: var(--title-font-color);
    font-style: italic;
    font-size: 16px;
    margin-top: 4px;
    margin-bottom: 14px;
}

.demo-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

.demo-card.selected {
    border: 2px solid var(--title-font-color);
}

.demo-card__header {
    font-weight: 600;
    font-size: 15px;
    color: var(--label-color);
    margin-bottom: 10px;
}

.demo-card__button {
    width: 100%;
    font-family: var(--font-family);
    font-size: 14px;
    padding: 8px 10px;
    margin-top: 6px;
    border: 1px solid var(--heading-blue);
    border-radius: 5px;
    background: white;
    color: var(--heading-blue);
    cursor: pointer;
}

.demo-card__button:hover {
    background: #eaf3fb;
}

/* --- Mobile question picker --- */
.mobile-qpicker {
    border: 1px solid var(--control-border);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.mobile-qpicker__summary {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Fill the row so the chevron sits at the right edge and long text wraps. */
.mobile-qpicker__summary .mobile-qpicker__option-rows {
    flex: 1 1 auto;
    min-width: 0;
}

.mobile-qpicker__summary::-webkit-details-marker {
    display: none;
}

/* Down arrow; points up when the list is open. */
.mobile-qpicker__summary::after {
    content: "\25BC";
    flex: 0 0 auto;
    font-size: 11px;
    color: var(--title-font-color);
    transition: transform 0.2s ease;
}

.mobile-qpicker[open] > .mobile-qpicker__summary::after {
    transform: rotate(180deg);
}

.mobile-qpicker__body {
    padding: 0 12px 12px;
}

.mobile-qpicker__caption {
    font-size: 12px;
    /* Meets WCAG 4.5:1 on white. */
    color: var(--accessible-gray);
    margin-bottom: 6px;
}

.mobile-qpicker__option {
    width: 100%;
    text-align: left;
    font-family: var(--font-family);
    font-size: 14px;
    padding: 10px;
    margin-bottom: 4px;
    border: 1px solid var(--control-border);
    border-radius: 5px;
    background: white;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-qpicker__option:disabled {
    background: #eaf3fb;
    border-color: var(--heading-blue);
    color: var(--heading-blue);
    cursor: default;
}

/* Category, question and trend label stacked one per line to fit a phone
   screen. */
.mobile-qpicker__option-rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-qpicker__option-rows .qpicker-trend {
    text-align: left;
}

/* --- Splash page (index.html): intro blurb and a button into the
   dashboard. --- */
.splash-shell {
    padding-top: 2rem;
}

.splash-cta {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    background: var(--heading-blue);
    color: white;
    text-decoration: none;
}

.splash-cta:hover {
    background: #1c5488;
}

/* --- Footer --- */
.site-footer {
    margin-top: 2.5rem;
}

.site-footer__credit {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.site-footer__logos {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.site-footer__col {
    flex: 1 1 220px;
    text-align: center;
}

.site-footer__col img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.75rem;
}

.link-button {
    display: inline-block;
    font-family: var(--font-family);
    font-size: 13px;
    padding: 6px 14px;
    margin: 3px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
}

.link-button:hover {
    background: #f2f2f2;
}

.site-footer__more-data {
    color: var(--heading-blue);
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* --- Scroll indicator: clicking scrolls down about one screen, then the
   button fades out (js/scrollIndicator.js). --- */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    padding: 0;
    background-color: #2364a0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator.is-hiding {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.scroll-indicator::before {
    content: "\2193";
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* --- FAQ page --- */
.faq-item {
    border: 1px solid var(--control-border);
    border-radius: 6px;
    margin-bottom: 10px;
}

.faq-item__summary {
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.faq-item__summary::-webkit-details-marker {
    display: none;
}

/* Down arrow; points up when a question is open. */
.faq-item__summary::after {
    content: "\25BC";
    flex: 0 0 auto;
    font-size: 11px;
    color: var(--title-font-color);
    transition: transform 0.2s ease;
}

.faq-item[open] > .faq-item__summary::after {
    transform: rotate(180deg);
}

.faq-item__body {
    padding: 0 14px 14px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

/* --- Loading / empty states --- */
.loading-note {
    color: var(--title-font-color);
    font-size: 14px;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .site-header__arc-logo img {
        height: 39.2px;
    }
    .site-header__brand {
        gap: 4px;
    }
    .site-header__logo img {
        height: 42px;
    }
    .page-title {
        font-size: 26px;
    }
    .page-shell, .page-shell--wide {
        padding: 0 1rem 2rem;
    }
    .site-footer__logos {
        flex-direction: column;
    }

    /* Hamburger button in place of the nav links on narrow screens. */
    .nav-toggle-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 32px;
        height: 32px;
        padding: 0;
        border: none;
        background: none;
        cursor: pointer;
    }

    .nav-toggle-btn span {
        display: block;
        height: 2px;
        background: var(--label-color);
        border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    /* Collapsed by default; opens as a dropdown panel below the header
       bar (not pushing content down) when the checkbox is checked. */
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--header-bg);
        border-top: 1px solid var(--control-border);
        border-bottom: 1px solid var(--control-border);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        padding: 0.25rem 1rem;
    }

    .nav-toggle-checkbox:checked ~ .site-nav {
        display: flex;
    }

    .site-nav a {
        font-size: 16px;
        padding: 0.9rem 0;
        border-bottom: 1px solid #ececec;
    }

    .site-nav a:last-child {
        border-bottom: none;
    }

    /* Hamburger -> X when the panel is open. */
    .nav-toggle-checkbox:checked ~ .nav-toggle-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle-checkbox:checked ~ .nav-toggle-btn span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle-checkbox:checked ~ .nav-toggle-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}
