/* Trail Outlook: rider-facing conditions estimate (TRAILFORKS_CONNECT_RIDE_WINDOW_PLAN.md section 8) */
/* the block is a .box1 (background, padding, radius); colours are tokens so the map's dark mode can swap them */
.tf-rw {
    --rw-ink: #1f2a1d;
    --rw-muted: #5f6b5c;
    --rw-rule: #e2e5df;
    --rw-chip: #ebeee8;
    --rw-link: #366b2d;
    margin: 0 0 15px;
    color: var(--rw-ink);
}

.tf-map-dark .tf-rw {
    --rw-ink: #e6ebe4;
    --rw-muted: #a9b3a5;
    --rw-rule: #343a32;
    --rw-chip: #2a3028;
    --rw-link: #9fd88f;
    background-color: #1e221d;
}

.tf-rw a {
    color: var(--rw-link);
}

.tf-rw-muted {
    color: var(--rw-muted);
    font-weight: normal;
}

.tf-rw-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.box1 .tf-rw-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    text-shadow: none;
}

.tf-rw-tag {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rw-muted);
    border: 1px solid var(--rw-rule);
    border-radius: 3px;
    padding: 1px 5px;
}

.tf-rw-updated {
    margin-left: auto;
    font-size: 12px;
    color: var(--rw-muted);
}

.tf-rw-lead {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    text-wrap: balance;
}

.tf-rw-closed {
    margin: 10px 0 0;
    padding: 8px 10px;
    background: #fbe9e7;
    color: #9f2a1c;
    border-radius: 4px;
}

.tf-rw-dot {
    display: inline-block;
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: baseline;
}

.tf-rw-dot--lg {
    width: 12px;
    height: 12px;
    margin-right: 0;
    transform: translateY(1px);
}

/* region: share good, then the mix of conditions as one bar with its key */
.tf-rw-share {
    margin: 14px 0 8px;
    font-size: 14px;
}

.tf-rw-share b {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.tf-rw-share .tf-rw-muted {
    margin-left: 6px;
    font-size: 13px;
}

.tf-rw-mix {
    display: flex;
    gap: 2px;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.tf-rw-mix span {
    flex-basis: 0;
    min-width: 4px;
}

.tf-rw-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    font-size: 13px;
}

/* region: driest and wettest trails */
.tf-rw-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 420px));
    gap: 14px 48px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--rw-rule);
}

.tf-rw-subtitle {
    display: flex;
    justify-content: space-between;
    margin: 0 0 2px;
    font-size: 13px;
}

.tf-rw-subtitle .tf-rw-muted {
    font-size: 11px;
}

.tf-rw-trails {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.tf-rw-trails li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto 2.2em;
    gap: 10px;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid var(--rw-rule);
}

.tf-rw-trails li:last-child {
    border-bottom: 0;
}

.tf-rw-trails .smaller_icon {
    align-self: center;
    line-height: 0;
}

.tf-rw-trails a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-rw-wet {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.tf-rw-label {
    white-space: nowrap;
}

.tf-rw-label--closed {
    color: #9f2a1c;
    font-weight: bold;
}

/* trail: what it is like now beside the wetness gauge */
.tf-rw-now {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 1.4fr);
    gap: 12px 20px;
    align-items: end;
    margin-top: 14px;
}

.tf-rw-words {
    font-size: 15px;
    font-weight: bold;
}

.tf-rw-slick {
    font-size: 12px;
    color: var(--rw-muted);
}

.tf-rw-conf {
    display: inline-block;
    margin-top: 6px;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 12px;
    background: var(--rw-chip);
}

.tf-rw-conf--3 {
    background: #dcebd0;
    color: #1f2a1d;
}

.tf-rw-conf--1 {
    background: #f6e6c8;
    color: #1f2a1d;
}

.tf-rw-gauge-value {
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--rw-muted);
}

.tf-rw-gauge-value b {
    margin-right: 2px;
    font-size: 20px;
    color: var(--rw-ink);
    font-variant-numeric: tabular-nums;
}

/* bands follow the wetness table in plan section 5.4: dusty, dry, hero, damp, wet, mud */
.tf-rw-gauge-bar {
    position: relative;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #d9b44a 0%, #c9c26a 18%, #3d7a1c 32%, #8fb3c9 48%, #4a90c8 65%, #7a4b23 88%);
}

.tf-rw-gauge-mark {
    position: absolute;
    top: -4px;
    width: 6px;
    height: 18px;
    margin-left: -3px;
    background: #1e2a1c;
    border: 2px solid #fff;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tf-rw-gauge-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: var(--rw-muted);
}

.tf-rw-rider {
    margin: 14px 0 0;
    padding: 8px 10px;
    border-radius: 4px;
    background: var(--rw-chip);
    font-size: 13px;
}

/* chart */
.tf-rw-chartwrap {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--rw-rule);
}

.tf-rw-charttitle {
    font-size: 13px;
    font-weight: 600;
}

.tf-rw-chart {
    width: 100%;
}

.tf-rw-source {
    font-size: 11px;
    color: var(--rw-muted);
    text-align: right;
}

/* trail: chart, explanation and links stay folded under "More details" */
.tf-rw-more {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--rw-rule);
}

.tf-rw-more > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    color: var(--rw-link);
    font-size: 13px;
    font-weight: 600;
}

.tf-rw-more > summary::-webkit-details-marker {
    display: none;
}

.tf-rw-more > summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.tf-rw-more[open] > summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.tf-rw-more > summary:focus-visible {
    outline: 2px solid var(--rw-link);
    outline-offset: 2px;
}

.tf-rw-more-hide,
.tf-rw-more[open] .tf-rw-more-show {
    display: none;
}

.tf-rw-more[open] .tf-rw-more-hide {
    display: inline;
}

.tf-rw-more .tf-rw-chartwrap {
    margin-top: 10px;
}

.tf-rw-explain-title {
    margin-top: 14px;
}

.tf-rw-explain {
    margin: 4px 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
}

.tf-rw-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 16px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--rw-rule);
}

.tf-rw-disclaimer {
    margin: 0;
    font-size: 12px;
    color: var(--rw-muted);
}

.tf-rw-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 13px;
    font-weight: 600;
}

.tf-rw-links:not(:has(a)) {
    display: none;
}

/* trail page header: Trail Outlook between the reported status and the rating. Columns shrink to their
   content with one even gap, and the rows line up with the status column: words / small grey line / meter */
.trailbuttons:has(.tf-rw-hcol) > .col-3 {
    width: auto;
    margin-right: 20px;
}

/* phones: tighter gaps, and just the badge on row 2 (the hover tip has the time) so the rating stays on the row */
@media (max-width: 480px) {
    .trailbuttons:has(.tf-rw-hcol) > .col-3 {
        margin-right: 12px;
    }

    .tf-rw-hcard-when .grey {
        display: none;
    }
}

.trailbuttons .tf-rw-hcol {
    max-width: 135px;
}

.tf-rw-hcard {
    display: block;
    color: #1f2a1d;
    text-decoration: none;
}

a.tf-rw-hcard:hover {
    text-decoration: none;
}

a.tf-rw-hcard:hover .tf-rw-hcard-now {
    text-decoration: underline;
}

.tf-rw-hcard > span {
    display: block;
}

/* the height of the stars and the "Status:" line */
.tf-rw-hcard-now {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 26px;
}

/* the height of the "on <date>" and "Avg:" lines */
.tf-rw-hcard-when {
    height: 18px;
    line-height: 18px;
    white-space: nowrap;
}

/* badge so the row reads as an estimate, not a report */
.tf-rw-hcard-tag {
    display: inline-block;
    padding: 0 4px;
    border: 1px solid #dfe3dc;
    border-radius: 3px;
    font-size: 10px;
    line-height: 12px;
    color: #6b7280;
    vertical-align: 1px;
}

/* centred on the reported condition's line; same bands as .tf-rw-gauge-bar */
.tf-rw-hcard-bar {
    position: relative;
    height: 5px;
    margin-top: 8px;
    border-radius: 3px;
    background: linear-gradient(to right, #d9b44a 0%, #c9c26a 18%, #3d7a1c 32%, #8fb3c9 48%, #4a90c8 65%, #7a4b23 88%);
}

.tf-rw-hcard-bar span {
    position: absolute;
    top: -3px;
    width: 3px;
    height: 11px;
    margin-left: -1px;
    border-radius: 2px;
    background: #1e2a1c;
}

/* Status > Trail status | Trail Outlook sub-nav */
.tf-rw-statusnav {
    margin: 10px 0 0;
}

/* history calendar on the Conditions tab: one cell per day, coloured by share of good trails */
.tf-rw-cal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16px, 1fr));
    gap: 2px;
    max-width: 640px;
    margin: 8px 0;
}

.tf-rw-cal span {
    display: block;
    height: 16px;
    border-radius: 2px;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    color: #fff;
}

.tf-rw-cal-legend {
    font-size: 12px;
    color: #5f6b5c;
}

/* map detail panel */
.tf-rw--compact.box1 {
    padding: 10px 12px;
}

.tf-rw--compact .tf-rw-lead {
    font-size: 15px;
}

.tf-rw--compact .tf-rw-now {
    grid-template-columns: 1fr;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .tf-rw-now {
        grid-template-columns: 1fr;
    }

    .tf-rw-lead {
        font-size: 16px;
    }

    .tf-rw-foot {
        flex-direction: column;
    }
}

/* Trail Outlook Nearby, /reports/trailoutlook/: location bar, summary beside the map, areas and trails tables */
.tf-rwn {
    --rw-ink: #1f2a1d;
    --rw-muted: #5f6b5c;
    --rw-rule: #e2e5df;
    color: var(--rw-ink);
}

.tf-rwn-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 0 14px;
}

.tf-rwn-where {
    margin: 0;
    font-size: 15px;
}

.tf-rwn-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tf-rwn-controls .tf-segmented__btn {
    text-decoration: none;
    color: inherit;
}

.tf-rwn-controls .tf-segmented__btn.is-active {
    color: #fff;
}

.tf-rwn-locate-msg {
    flex-basis: 100%;
    margin: 0;
    font-size: 13px;
    color: #9f2a1c;
}

.tf-rwn-top {
    display: grid;
    grid-template-columns: minmax(300px, 380px) 1fr;
    gap: 16px;
    margin: 0 0 16px;
}

.tf-rwn .tf-rwn-summary {
    margin: 0;
}

.tf-rwn-empty {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--rw-muted);
}

.tf-rwn-map {
    position: relative;
    min-height: 480px;
    border-radius: 6px;
    overflow: hidden;
}

.tf-rwn-map .map,
.tf-rwn-map #map {
    height: 100%;
    min-height: 480px;
}

/* next 3 days: one cell per hour, grouped by day */
.tf-rwn-hours-title {
    margin: 18px 0 6px;
}

.tf-rwn-hours {
    display: flex;
    gap: 4px;
}

.tf-rwn-day {
    display: flex;
    flex-direction: column;
    flex-basis: 0;
    min-width: 0;
}

.tf-rwn-dayname {
    font-size: 11px;
    font-weight: 600;
    color: var(--rw-muted);
}

.tf-rwn-cells {
    display: flex;
    height: 22px;
    border-radius: 3px;
    overflow: hidden;
}

.tf-rwn-cells span {
    flex: 1 1 0;
    min-width: 0;
}

.tf-rwn-cells span:hover {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8);
}

.tf-rwn-hours-key {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    font-size: 11px;
    color: var(--rw-muted);
}

.tf-rwn .tf-rw-foot {
    margin-top: 14px;
}

.tf-rwn-section .tf-rw-title {
    margin-bottom: 10px;
}

.tf-rwn-section .tf-rw-title .tf-rw-muted {
    font-size: 13px;
}

.tf-rwn-section .tf-rw-mix {
    min-width: 120px;
    max-width: 260px;
}

.tf-rwn-num {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.tf-rwn-fly {
    padding: 0;
    border: 0;
    background: none;
    color: #366b2d;
    font: inherit;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    cursor: pointer;
}

.tf-rwn-fly:hover {
    text-decoration-style: solid;
}

.tf-rwn-fly:focus-visible {
    outline: 2px solid #366b2d;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .tf-rwn-top {
        grid-template-columns: 1fr;
    }

    .tf-rwn-map,
    .tf-rwn-map .map,
    .tf-rwn-map #map {
        min-height: 360px;
    }
}

/* Nearest trails filters */
.tf-rwn-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0 0 12px;
}

.tf-rwn-input {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #cfd5cb;
    border-radius: 4px;
    background: #fff;
    color: var(--rw-ink);
    font: inherit;
    font-size: 14px;
}

input.tf-rwn-input {
    flex: 1 1 200px;
    max-width: 280px;
}

.tf-rwn-input::placeholder {
    color: #6b7280;
}

.tf-rwn-input:focus-visible,
.tf-rwn-check input:focus-visible {
    outline: 2px solid #366b2d;
    outline-offset: 1px;
}

.tf-rwn-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.tf-rwn-check input {
    accent-color: #366b2d;
}

.tf-rwn-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--rw-muted);
    font-variant-numeric: tabular-nums;
}

.tf-rwn-none {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--rw-muted);
}

@media (max-width: 600px) {
    input.tf-rwn-input {
        flex-basis: 100%;
        max-width: none;
    }

    select.tf-rwn-input {
        flex: 1 1 140px;
        min-width: 0;
    }

    .tf-rwn-count {
        margin-left: 0;
    }
}

/* Trail Outlook accuracy page, /about/conditions/accuracy/ */
.tf-rwa {
    --rw-ink: #1f2a1d;
    --rw-muted: #5f6b5c;
    --rw-rule: #e2e5df;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 24px;
    color: var(--rw-ink);
}

.tf-rwa-hero {
    margin: 8px 0 20px;
}

.tf-rwa-hero h1 {
    margin: 0 0 6px;
}

.tf-rwa-lede {
    max-width: 62ch;
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: var(--rw-muted);
}

.tf-rwa-empty {
    color: var(--rw-muted);
}

.tf-rwa-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.tf-rwa .box1.tf-rw {
    margin: 0 0 16px;
}

/* headline number beside the weekly bars */
.tf-rwa-score {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 1.6fr;
    gap: 24px 40px;
    align-items: end;
}

.tf-rwa-big {
    margin: 0;
    font-size: 88px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #366b2d;
    font-variant-numeric: tabular-nums;
}

.tf-rwa-big span {
    font-size: 44px;
    letter-spacing: 0;
}

.tf-rwa-big--none {
    color: var(--rw-muted);
}

.tf-rwa-big-label {
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: 600;
    text-wrap: balance;
}

.tf-rwa-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 20px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--rw-rule);
}

.tf-rwa-facts dt,
.tf-rwa-facts dd {
    float: none;
    width: auto;
    padding: 0;
    text-align: left;
}

.tf-rwa-facts dt {
    font-size: 12px;
    color: var(--rw-muted);
}

.tf-rwa-facts dd {
    margin: 2px 0 0;
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tf-rwa-h2 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.3;
    text-shadow: none;
}

.tf-rwa-h3 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rw-muted);
}

.tf-rwa-sub,
.tf-rwa-note {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--rw-muted);
}

.tf-rwa-note {
    margin: 6px 0 0;
    font-size: 12px;
}

.tf-rwa-weeks {
    display: flex;
    align-items: stretch;
    gap: 4px;
    height: 140px;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--rw-rule);
    background: repeating-linear-gradient(to top, transparent 0, transparent 34px, var(--rw-rule) 34px, var(--rw-rule) 35px);
}

.tf-rwa-week {
    display: flex;
    flex: 1 1 0;
    align-items: flex-end;
    min-width: 0;
}

.tf-rwa-week-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    background: #366b2d;
    transition: background-color .15s ease-out;
}

.tf-rwa-week:hover .tf-rwa-week-bar {
    background: #24491e;
}

.tf-rwa-week--few .tf-rwa-week-bar {
    background: #b9c9b4;
}

.tf-rwa-weeks-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: var(--rw-muted);
}

/* estimate group rows: a stacked bar of what riders reported */
.tf-rwa-matrix {
    display: grid;
    gap: 8px;
}

.tf-rwa-row {
    display: grid;
    grid-template-columns: 150px 1fr 56px;
    align-items: center;
    gap: 14px;
}

.tf-rwa-row--head {
    font-size: 12px;
    color: var(--rw-muted);
}

.tf-rwa-row--head span:last-child,
.tf-rwa-agree {
    text-align: right;
}

.tf-rwa-est {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
}

.tf-rwa-est .tf-rw-dot {
    margin-right: 0;
}

.tf-rwa-est .tf-rw-muted {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.tf-rwa-stack {
    display: flex;
    gap: 2px;
    height: 26px;
    border-radius: 4px;
    overflow: hidden;
}

.tf-rwa-stack span {
    display: flex;
    flex-basis: 0;
    align-items: center;
    justify-content: center;
    min-width: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
    font-variant-numeric: tabular-nums;
    opacity: .55;
}

.tf-rwa-stack span.tf-rwa-stack-match,
.tf-rwa-stack span:hover {
    opacity: 1;
}

.tf-rwa-agree {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tf-rwa-legend {
    margin: 14px 0 10px;
}

.tf-rwa-cols {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
    align-items: start;
}

.tf-rwa-cols .table1 {
    width: 100%;
}

.tf-rwa-meter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.tf-rwa-meter-bar {
    flex: 1 1 auto;
    max-width: 160px;
    height: 8px;
    border-radius: 4px;
    background: var(--rw-rule);
    overflow: hidden;
}

.tf-rwa-meter-bar span {
    display: block;
    height: 100%;
    background: #366b2d;
}

.tf-rwa-meter b {
    min-width: 3ch;
    font-variant-numeric: tabular-nums;
}

.tf-rwa-section p {
    font-size: 14px;
    line-height: 1.55;
}

.tf-rwa-groups {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
}

.tf-rwa-groups div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    font-size: 14px;
}

.tf-rwa-groups dt,
.tf-rwa-groups dd {
    float: none;
    width: auto;
    padding: 0;
    text-align: left;
}

.tf-rwa-groups dt {
    font-weight: 700;
    color: var(--rw-ink);
}

.tf-rwa-facts dt::after,
.tf-rwa-groups dt::after {
    content: none;
}

.tf-rwa-groups dd {
    margin: 0;
    color: var(--rw-muted);
}

@media (max-width: 860px) {
    .tf-rwa-score,
    .tf-rwa-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .tf-rwa-big {
        font-size: 68px;
    }

    .tf-rwa-row {
        grid-template-columns: 1fr 48px;
        gap: 4px 10px;
    }

    .tf-rwa-row--head {
        display: none;
    }

    .tf-rwa-est {
        grid-column: 1 / -1;
    }
}

/* trail impact line in the trail block (LC38) */
.tf-rw-impact {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin: 6px 0 4px;
    font-size: 13px;
    line-height: 1.35;
}

.tf-rw-impact .tf-rw-dot {
    position: relative;
    top: 1px;
}

.tf-rw-impact-why {
    display: block;
    font-size: 12px;
    color: var(--rw-muted);
}

/* trail impact ring: ring and legend side by side */
.tf-rwi {
    margin: 14px 0 6px;
    padding-top: 12px;
    border-top: 1px solid var(--rw-rule);
}

.tf-rwi-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.tf-rwi-head .tf-rw-subtitle {
    margin: 0;
    font-weight: bold;
}

.tf-rwi-head .tf-rw-muted {
    font-size: 12px;
}

.tf-rwi-body {
    display: flex;
    align-items: center;
    gap: 18px;
}

.tf-rwi-ring {
    flex: none;
    width: 112px;
    height: 112px;
}

.tf-rwi-track {
    stroke: var(--rw-chip);
}

.tf-rwi-total {
    font-size: 24px;
    font-weight: bold;
    fill: var(--rw-ink);
}

.tf-rwi-unit {
    font-size: 11px;
    fill: var(--rw-muted);
}

.tf-rwi-legend {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.9;
}

.tf-rwi-legend b {
    display: inline-block;
    min-width: 2.2em;
    text-align: right;
    margin-right: 4px;
}

/* legend rows linking to the map: read as the legend, underline on hover */
.tf-rwi-legend a {
    color: inherit;
    text-decoration: none;
    border-radius: 4px;
}

.tf-rwi-legend a:hover {
    text-decoration: underline;
}

.tf-rwi-legend a:focus-visible {
    outline: 2px solid #366b2d;
    outline-offset: 1px;
}

.tf-rwi-none {
    color: var(--rw-muted);
}

/* region admin Trail Outlook policy page */
.tf-rwp {
    max-width: 720px;
}

.tf-rwp-saved {
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--rw-chip);
}

.tf-rwp-now {
    padding: 8px 0;
    border-top: 1px solid var(--rw-rule);
    border-bottom: 1px solid var(--rw-rule);
}

.tf-rwp-choices {
    margin: 14px 0;
    padding: 0;
    border: 0;
}

.tf-rwp-choices legend {
    margin-bottom: 6px;
    font-weight: bold;
}

.tf-rwp-choice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
}

.tf-rwp-choice input {
    margin-top: 3px;
}

.tf-rwp-choice .tf-rw-muted {
    display: block;
    font-size: 13px;
}

.tf-rwp-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 4px 0 0 24px;
}

.tf-rwp-custom input {
    width: 4em;
    margin-left: 4px;
}

.tf-rwp-custom.is-off {
    opacity: 0.45;
}

.tf-rwp-h3 {
    margin: 20px 0 6px;
}

.tf-rwp-list {
    padding-left: 18px;
    color: var(--rw-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* home page Trail Outlook block: compact Nearby summary beside the impact ring */
.tf-rwh {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 12px 14px;
}

.tf-rwh-summary {
    flex: 1 1 200px;
    min-width: 0;
}

.tf-rwh-lead {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    text-wrap: balance;
}

.tf-rwh-share {
    margin: 0;
    font-size: 13px;
}

.tf-rwh-share b {
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.tf-rwh-sub {
    margin: 1px 0 7px;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tf-rwh .tf-rw-mix {
    height: 6px;
    border-radius: 3px;
}

.tf-rwh-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    font-size: 12px;
}

.tf-rwh .tf-rwi {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 0 0 20px;
    border-top: 0;
    border-left: 1px solid var(--rw-rule);
}

.tf-rwh .tf-rwi-head {
    margin-bottom: 4px;
    gap: 4px;
}

.tf-rwh .tf-rwi-head .tf-rw-subtitle,
.tf-rwh .tf-rwi-head .tf-rw-muted {
    font-size: 12px;
}

.tf-rwh .tf-rwi-body {
    gap: 12px;
}

.tf-rwh .tf-rwi-ring {
    width: 72px;
    height: 72px;
}

.tf-rwh .tf-rwi-legend {
    font-size: 12px;
    line-height: 1.55;
}

.tf-rwh .tf-rwi-legend b {
    min-width: 2em;
}

/* stacked on narrow screens: drop the divider */
@media (max-width: 420px) {
    .tf-rwh .tf-rwi {
        padding-left: 0;
        border-left: 0;
    }
}
