/* Steelhead Forecast Web Interface Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #1abc9c;
    --excellent-color: #27ae60;
    --good-color: #3498db;
    --fair-color: #f39c12;
    --poor-color: #e74c3c;
    --bg-color: #ecf0f1;
    --text-color: #2c3e50;
    --border-color: #bdc3c7;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: white;
    text-decoration: none;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero .update-info {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* River Selection */
.river-selection {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

/* River Table */
.river-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.river-table thead {
    background-color: var(--primary-color);
    color: white;
}

.river-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.river-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.river-table tbody tr:hover {
    background-color: #f8f9fa;
}

.river-table tbody tr:last-child {
    border-bottom: none;
}

.river-table td {
    padding: 1rem;
}

.river-table .river-name strong {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.river-table .location {
    color: #666;
}

.river-table .location em {
    color: #999;
    font-size: 0.9rem;
}

.river-table .state {
    color: #666;
    font-weight: 500;
}

.river-table .forecast-grade {
    white-space: nowrap;
}

.river-table .score-text {
    color: #666;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.river-table .no-forecast {
    color: #999;
    font-style: italic;
}

.river-table .action {
    text-align: right;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Badge Sizes */
.badge-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
}

/* River Grid (Legacy - keeping for backwards compatibility) */
.river-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.river-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.river-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.river-card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
}

.river-card-header h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.river-card-header .station-id {
    font-size: 0.85rem;
    opacity: 0.8;
}

.river-card-body {
    padding: 1rem;
}

.river-card-body p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.river-card-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Forecast Page */
.forecast-header {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.forecast-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.forecast-meta p {
    margin-bottom: 0.5rem;
}

.forecast-actions {
    text-align: right;
}

/* Forecast Chart */
.forecast-visualization {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.forecast-chart-container {
    height: 400px;
    margin-top: 1rem;
}

/* Forecast Table */
.forecast-table-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.forecast-table {
    width: 100%;
    border-collapse: collapse;
}

.forecast-table thead {
    background-color: var(--primary-color);
    color: white;
}

.forecast-table th,
.forecast-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.forecast-table .discharge {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Quality Badges */
.quality-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.quality-excellent {
    background-color: var(--excellent-color);
    color: white;
}

.quality-good {
    background-color: var(--good-color);
    color: white;
}

.quality-fair {
    background-color: var(--fair-color);
    color: white;
}

.quality-poor {
    background-color: var(--poor-color);
    color: white;
}

/* Score Breakdown */
.score-breakdown-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.breakdown-item {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakdown-label {
    font-weight: 500;
    color: #555;
}

.breakdown-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Legend */
.legend-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.legend-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Info Section */
.info-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.info-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* About Page */
.about-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-section ul,
.about-section ol {
    margin-left: 2rem;
}

.about-section li {
    margin-bottom: 0.5rem;
}

/* Error Page */
.error-container {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.error-container h2 {
    color: var(--poor-color);
    margin-bottom: 1.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer .disclaimer {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Breakdown Cells (Score Components) */
.breakdown-cell {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    font-weight: 500;
}

/* Historical Table Styling */
.historical-table-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.historical-table-container h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* River Link Styling */
.river-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.river-link:hover {
    color: var(--secondary-color);
}

.river-link strong {
    color: var(--primary-color);
}

.river-link:hover strong {
    color: var(--secondary-color);
}

/* Location Pin Styling */
.location-pin {
    display: inline-block;
    margin-left: 0.75rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    transition: transform 0.2s;
    line-height: 1;
    text-decoration: none !important;
    border: none;
}

.location-pin:hover {
    transform: scale(1.15);
    text-decoration: none !important;
}

.location-pin:focus {
    outline: none;
    text-decoration: none !important;
}

.location-pin svg {
    vertical-align: middle;
    display: block;
}

/* USGS Link Styling */
.usgs-link {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
    transition: transform 0.2s;
    line-height: 1;
    text-decoration: none !important;
    border: none;
}

.usgs-link:hover {
    transform: scale(1.15);
    text-decoration: none !important;
}

.usgs-link:focus {
    outline: none;
    text-decoration: none !important;
}

.usgs-link svg {
    vertical-align: middle;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    .river-grid {
        grid-template-columns: 1fr;
    }

    .forecast-header {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 1rem;
    }

    .breakdown-grid {
        grid-template-columns: 1fr;
    }
}

/* Flash Messages */
.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    border-left: 4px solid;
}

.flash-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.flash-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.flash-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.flash-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* login/logout in the nav */
.nav-user span { opacity: 0.8; margin-right: 0.5rem; font-size: 0.9rem; }
.nav-logout { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: inherit; border-radius: 4px; padding: 0.15rem 0.5rem; cursor: pointer; font-size: 0.85rem; }
.nav-logout:hover { background: rgba(255,255,255,0.15); }

/* ---- feedback board ---- */
.nav-badge { display:inline-block; min-width:1.2em; padding:0 0.35em; border-radius:1em; background:#e74c3c; color:#fff; font-size:0.75rem; text-align:center; vertical-align:middle; margin-left:0.2em; }
.fb-fab { position:fixed; right:1.25rem; bottom:1.25rem; z-index:50; background:var(--secondary-color); color:#fff; border:none; border-radius:2rem; padding:0.6rem 1.1rem; font-size:0.95rem; box-shadow:0 2px 8px rgba(0,0,0,0.25); cursor:pointer; }
.fb-fab:hover { background:#2980b9; }
.fb-modal[hidden] { display:none; }
.fb-modal { position:fixed; inset:0; z-index:60; background:rgba(0,0,0,0.35); display:flex; align-items:flex-end; justify-content:flex-end; padding:1rem; }
.fb-form { background:#fff; border-radius:8px; width:min(440px, 100%); padding:1rem 1.1rem; box-shadow:0 6px 24px rgba(0,0,0,0.3); display:flex; flex-direction:column; gap:0.6rem; }
.fb-form-head { display:flex; justify-content:space-between; align-items:center; }
.fb-x { background:none; border:none; font-size:1.4rem; line-height:1; cursor:pointer; color:#666; }
.fb-form label { display:flex; flex-direction:column; font-size:0.8rem; color:#555; gap:0.2rem; flex:1; }
.fb-form select, .fb-form input, .fb-form textarea { font-size:0.95rem; padding:0.4rem 0.45rem; border:1px solid #ccc; border-radius:4px; color:#222; }
.fb-form .fb-row { display:flex; gap:0.6rem; align-items:flex-end; }
.fb-shown { font-size:0.8rem; color:#555; padding-bottom:0.5rem; white-space:nowrap; }
.fb-actions { display:flex; justify-content:flex-end; }
.fb-wrap { max-width:1100px; margin:0 auto; }
.fb-help, .fb-empty, .fb-muted { color:#666; font-size:0.9rem; }
.fb-filters { display:flex; gap:0.5rem; flex-wrap:wrap; margin:0.75rem 0 1rem; }
.fb-filters select { padding:0.35rem; font-size:0.9rem; }
.fb-table { width:100%; border-collapse:collapse; background:#fff; border:1px solid #ddd; }
.fb-table th, .fb-table td { padding:0.5rem 0.6rem; border-bottom:1px solid #eee; text-align:left; font-size:0.9rem; vertical-align:top; }
.fb-table th { background:#fafafa; font-size:0.75rem; text-transform:uppercase; color:#555; }
.fb-table tr.fb-thread-row { cursor:pointer; } .fb-table tr.fb-thread-row:hover { background:#f5f8fa; }
.fb-table tr.fb-new td { background:#fffbe6; }
.fb-table tr.status-resolved td { color:#888; }
.fb-body-col { max-width:38rem; white-space:normal; }
.fb-kind { display:inline-block; padding:0.1rem 0.5rem; border-radius:3px; font-size:0.75rem; color:#fff; background:#7f8c8d; white-space:nowrap; }
.fb-kind-report { background:#16a085; } .fb-kind-forecast { background:#8e44ad; } .fb-kind-site { background:#7f8c8d; }
.fb-status { font-size:0.8rem; padding:0.1rem 0.4rem; border-radius:3px; border:1px solid #ccc; }
.fb-status-open { border-color:#e67e22; color:#a04b00; } .fb-status-acknowledged { border-color:#3498db; color:#1b5e8a; } .fb-status-resolved { border-color:#27ae60; color:#1d7a43; }
.fb-tag { font-size:0.7rem; background:#eee; border-radius:3px; padding:0 0.35rem; margin-left:0.3rem; color:#555; }
.fb-tag-new { background:#e74c3c; color:#fff; }
.fb-card { background:#fff; border:1px solid #ddd; border-radius:6px; padding:0.9rem 1rem; margin-bottom:0.75rem; }
.fb-root { border-left:4px solid var(--secondary-color); }
.fb-reply { margin-left:1.5rem; }
.fb-meta { display:flex; flex-wrap:wrap; gap:0.6rem; align-items:center; margin-bottom:0.5rem; }
.fb-body { white-space:pre-wrap; line-height:1.45; }
.fb-by { color:#777; font-size:0.8rem; margin-top:0.5rem; }
.fb-reply-form textarea { width:100%; box-sizing:border-box; font-size:0.95rem; padding:0.45rem; border:1px solid #ccc; border-radius:4px; margin-bottom:0.5rem; }
.fb-admin { display:flex; flex-wrap:wrap; gap:0.6rem; align-items:center; background:#fafafa; }
.fb-link-btn { background:none; border:none; color:#c0392b; cursor:pointer; font-size:0.8rem; padding:0; margin-left:0.5rem; }


/* ---- Site structure (2026-09-09): landing, suites, research ------------ */
.nav-menu a.active { color: var(--accent-color); border-bottom: 2px solid var(--accent-color); }
.nav-menu li.nav-sep { opacity: 0.35; padding: 0 0.25rem; }

.landing { text-align: center; padding: 2.5rem 0 3rem; }
.landing h2 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.landing-sub { color: #555; max-width: 640px; margin: 0 auto 2rem; }
.suite-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 820px; margin: 0 auto; }
.suite-btn { display: flex; flex-direction: column; justify-content: center; min-height: 220px; padding: 2rem; border-radius: 12px;
  color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,0.12); transition: transform 0.12s, box-shadow 0.12s; }
.suite-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.18); }
.suite-trout { background: linear-gradient(135deg, #1e8449 0%, #1abc9c 100%); }
.suite-steelhead { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); }
.suite-title { font-size: 2.2rem; font-weight: 700; letter-spacing: 0.02em; }
.suite-sub { margin-top: 0.5rem; opacity: 0.9; font-size: 0.95rem; }
.landing-foot { margin-top: 2rem; color: #666; font-size: 0.9rem; }
.suite-plan { margin: 0.5rem 0 1rem 1.5rem; }
.suite-plan li { margin: 0.25rem 0; }

.sh-head { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 1.2rem 1.5rem; margin-bottom: 1.2rem; }
.sh-head h2 { margin-bottom: 0.4rem; }
.sh-intro { color: #444; max-width: 860px; }
.sh-links { margin-top: 0.8rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sh-h3 { margin: 1.4rem 0 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.8rem; }
.class-card { display: flex; flex-direction: column; gap: 0.2rem; background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 0.8rem 0.9rem;
  text-decoration: none; color: inherit; border-left: 4px solid var(--secondary-color); }
.class-card:hover { border-color: var(--secondary-color); }
.class-num { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--primary-color); color: #fff; font-size: 0.85rem; font-weight: 700; flex: 0 0 auto; }
.class-name { font-weight: 600; }
.class-attr, .class-meta { font-size: 0.82rem; color: #555; }
.class-count { font-size: 0.78rem; color: #888; margin-top: 0.2rem; }
.class-section { margin-top: 0.5rem; }
.class-blurb { color: #444; margin-bottom: 0.5rem; max-width: 900px; }
.river-meta { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #ddd; font-size: 0.86rem; }
.river-meta th, .river-meta td { padding: 6px 8px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.river-meta th { background: #fafafa; font-size: 0.78rem; color: #444; white-space: nowrap; }
.river-meta td.river-name { white-space: nowrap; font-weight: 600; }
.river-meta td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }
.river-meta tr.has-labels td { background: #f6fbf7; }
.river-more { margin-top: 0.3rem; color: #333; font-weight: 400; }
.tag { display: inline-block; font-size: 0.68rem; padding: 0 0.35rem; border-radius: 3px; background: #eee; color: #555; margin-left: 0.3rem; vertical-align: middle; font-weight: 500; }
.tag-labels { background: #d5efdc; color: #1e6b3a; }
.sh-foot { margin-top: 1.5rem; }

.doc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.doc-card { display: flex; flex-direction: column; gap: 0.3rem; background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 1rem 1.1rem; text-decoration: none; color: inherit; }
.doc-card:hover { border-color: var(--secondary-color); }
.doc-title { font-weight: 600; font-size: 1.05rem; }
.doc-date { font-size: 0.8rem; color: #888; }
.doc-summary { font-size: 0.9rem; color: #444; }
.doc-file { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; color: #888; margin-top: 0.3rem; }

.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.doc-side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; font-size: 0.85rem; }
.doc-side-block { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 0.8rem 0.9rem; margin-bottom: 0.8rem; }
.doc-side-title { font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: #666; margin-bottom: 0.4rem; }
.doc-side-list, .doc-toc ul { list-style: none; margin: 0; padding: 0; }
.doc-toc ul ul { padding-left: 0.8rem; }
.doc-side li { margin: 0.15rem 0; }
.doc-side li.current > a { font-weight: 600; }
.doc-side a { color: var(--primary-color); text-decoration: none; }
.doc-side a:hover { text-decoration: underline; }
.md-body { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 1.5rem 2rem; line-height: 1.6; min-width: 0; }
.md-body h1 { font-size: 1.7rem; margin-bottom: 0.8rem; }
.md-body h2 { font-size: 1.35rem; margin: 1.8rem 0 0.6rem; padding-top: 0.6rem; border-top: 1px solid #eee; }
.md-body h3 { font-size: 1.1rem; margin: 1.3rem 0 0.4rem; }
.md-body h4 { font-size: 1rem; margin: 1rem 0 0.3rem; }
.md-body p, .md-body ul, .md-body ol { margin-bottom: 0.8rem; }
.md-body ul, .md-body ol { padding-left: 1.4rem; }
.md-body li { margin: 0.2rem 0; }
.md-body table { border-collapse: collapse; font-size: 0.85rem; margin: 0.6rem 0 1rem; display: block; overflow-x: auto; max-width: 100%; }
.md-body th, .md-body td { border: 1px solid #ddd; padding: 4px 8px; vertical-align: top; }
.md-body th { background: #fafafa; text-align: left; }
.md-body code { background: #f4f4f4; padding: 0 0.25rem; border-radius: 3px; font-size: 0.88em; }
.md-body pre { background: #f4f4f4; padding: 0.8rem; overflow-x: auto; border-radius: 4px; margin-bottom: 0.8rem; }
.md-body pre code { background: none; padding: 0; }
.md-body hr { border: 0; border-top: 1px solid #eee; margin: 1.5rem 0; }
.md-body blockquote { border-left: 3px solid #ddd; padding-left: 0.8rem; color: #555; }
.md-body a { color: var(--secondary-color); }
.doc-source { margin-top: 2rem; font-size: 0.8rem; color: #888; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-side { position: static; max-height: none; }
}
.tag-s { background: #fde9c9; color: #7a4a00; }
.river-meta td.optimal { white-space: nowrap; font-weight: 600; }
.river-meta td.access { white-space: nowrap; }
.river-meta td.flow { white-space: nowrap; font-variant-numeric: tabular-nums; }
.flow-date { font-size: 0.8em; }
.access-of { color: #999; font-size: 0.75em; }
.row-notes { margin-top: 0.2rem; font-weight: 400; white-space: normal; max-width: 720px; }
.row-notes summary { cursor: pointer; color: var(--secondary-color); font-size: 0.8rem; }
.row-notes p { margin: 0.3rem 0 0; font-size: 0.85rem; color: #333; }
.row-research { color: #555; }
.river-meta td.cls { min-width: 12rem; cursor: help; text-decoration: underline dotted #bbb; text-underline-offset: 3px; }
.sh-title { margin: 0 0 0.6rem; }
/* rivers page header: title and the station request / custom river buttons (from the retired forecast table, 2026-09-22) */
.sh-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 0.6rem; }
.sh-head .sh-title { margin: 0; }
.sh-head .action-buttons { gap: 0.5rem; }
/* map pin and gauge page links after the river name */
.river-meta td.river-name .gauge-links { display: inline-flex; gap: 0.2rem; margin-left: 0.35rem; vertical-align: middle; }
.river-meta td.river-name .gauge-links a { line-height: 1; border: none; text-decoration: none; }
.river-meta td.river-name .gauge-links a:hover { transform: scale(1.15); }
.river-meta td.river-name .gauge-links svg { width: 15px; height: 15px; display: block; }
.class-table td { font-size: 0.84rem; }
.river-meta td.fc { white-space: nowrap; }
/* rivers page sparkline: last four weeks and the forecast, one segment per day coloured by grade */
.river-meta td.spark-cell { white-space: nowrap; vertical-align: middle; padding-top: 3px; padding-bottom: 3px; }
.spark { display: block; overflow: visible; }
.spark line { stroke-width: 2; stroke-linecap: round; fill: none; }
.spark .sp-excellent { stroke: var(--excellent-color); }
.spark .sp-good { stroke: var(--good-color); }
.spark .sp-fair { stroke: var(--fair-color); }
.spark .sp-poor { stroke: var(--poor-color); }
.spark .sp-na { stroke: #bbb; }
.spark .sp-fc { stroke-dasharray: 3 2; stroke-width: 1.6; }
.spark .sp-today { stroke: #999; stroke-width: 1; stroke-dasharray: 2 2; }
.sp-key { font-weight: 700; }
.sp-key-excellent { color: var(--excellent-color); }
.sp-key-good { color: var(--good-color); }
.sp-key-fair { color: var(--fair-color); }
.sp-key-poor { color: var(--poor-color); }
sup.est { color: #b9770e; font-weight: 700; margin-left: 1px; }

/* second nav row: the suite's own pages */
.subnav { background: #34495e; border-top: 1px solid rgba(255,255,255,0.08); }
.subnav .container { display: flex; align-items: center; gap: 1rem; padding-top: 0.35rem; padding-bottom: 0.35rem; }
.subnav-suite { color: rgba(255,255,255,0.55); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.subnav-menu { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; }
.subnav-menu a { color: #fff; text-decoration: none; font-size: 0.95rem; padding: 0.15rem 0; }
.subnav-menu a:hover { color: var(--accent-color); }
.subnav-menu a.active { color: var(--accent-color); border-bottom: 2px solid var(--accent-color); }
.shell { background: #fff; border: 1px dashed #bbb; border-radius: 6px; padding: 1.2rem 1.5rem; color: #555; max-width: 860px; }
.shell h2 { margin: 0 0 0.4rem; color: var(--text-color); }
.shell ul { margin: 0.5rem 0 0 1.2rem; }
.shell .mirror { font-size: 0.85rem; color: #888; margin-top: 0.8rem; }
