.osp-metrics { container-type: inline-size; }
.osp-metrics dl { margin: 0; }

/* Narrow (sidebar): label above value. */
.osp-metrics__row {
	display: block;
	padding: .5rem 0;
	border-bottom: 1px solid rgba(128, 128, 128, .25);
}
.osp-metrics__row:last-child { border-bottom: 0; }
.osp-metrics dt { font-weight: 600; font-size: .85em; opacity: .8; }
.osp-metrics dd { margin: .1rem 0 0; overflow-wrap: anywhere; }
.osp-metrics__note { margin: .6rem 0 0; font-size: .85em; opacity: .75; }
.osp-metrics__coords { font-size: .85em; opacity: .75; }

/* Trip totals */
.osp-totals { margin: 1.5rem 0; }
.osp-totals__title { margin: 0 0 .5rem; }
.osp-totals__group { margin: 1rem 0 .25rem; font-size: 1em; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.osp-totals__none { font-style: italic; opacity: .75; }
.osp-totals__notes { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .85em; opacity: .8; }
.osp-totals__notes li { margin: .15rem 0; }

/* Wide (content area / full-width placement): label and value side by side. */
@container (min-width: 24rem) {
	.osp-metrics__row {
		display: grid;
		grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
		gap: 0 1rem;
	}
	.osp-metrics dt { font-size: 1em; opacity: 1; }
	.osp-metrics dd { margin: 0; }
}
.osp-metrics__sub { margin: 1rem 0 .3rem; font-size: 1em; }
.osp-metrics__conditions-note { opacity: 1; font-style: italic; }
.osp-wxchart__table { margin: .4rem 0; font-size: .9em; }
.osp-wxchart__table summary { cursor: pointer; }
.osp-wxchart__table table { border-collapse: collapse; margin-top: .4rem; }
.osp-wxchart__table th, .osp-wxchart__table td { padding: .1rem .6rem; text-align: right; border-bottom: 1px solid rgba(128, 128, 128, .25); }
.osp-wxchart__table tbody th { text-align: left; font-weight: normal; }

.osp-units { display: inline-flex; gap: 0; margin-left: .6rem; vertical-align: middle; font-size: .7rem; font-weight: normal; letter-spacing: 0; text-transform: none; }
.osp-units button { padding: .1rem .5rem; border: 1px solid rgba(128, 128, 128, .5); background: transparent; color: inherit; cursor: pointer; font: inherit; }
.osp-units button + button { border-left: 0; }
.osp-units button[aria-pressed="true"] { background: rgba(128, 128, 128, .25); font-weight: 600; }

.osp-gear__table { width: 100%; border-collapse: collapse; margin: .5rem 0; font-size: .92em; }
.osp-gear__table th, .osp-gear__table td { padding: .2rem .5rem; border-bottom: 1px solid rgba(128, 128, 128, .25); text-align: left; }
.osp-gear__table td:nth-child(2), .osp-gear__table td:nth-child(3) { text-align: right; white-space: nowrap; }
.osp-gear__cat th { background: rgba(128, 128, 128, .12); font-weight: 600; }
.osp-gear__tag { font-size: .75em; opacity: .7; border: 1px solid currentColor; border-radius: 3px; padding: 0 .3em; margin-left: .3em; }

/* Sidebar version of the trip totals: each section folds away. */
.osp-totals__sec { border-bottom: 1px solid rgba(128,128,128,.25); }
.osp-totals__sum { cursor: pointer; list-style: none; display: block; position: relative; padding-right: 1.4rem; }
.osp-totals__sum::-webkit-details-marker { display: none; }
.osp-totals__sum::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-weight: 600; opacity: .7; }
.osp-totals__sec[open] > .osp-totals__sum::after { content: "\2212"; }
.osp-totals__sum:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.osp-totals__sum .osp-totals__group { margin: .7rem 0 .5rem; }
.osp-totals__sec[open] > dl:last-child, .osp-totals__sec[open] > .osp-totals__notes:last-child { margin-bottom: .7rem; }
/* Gear in the narrow sidebar: smaller tables that scroll sideways rather than overflow, numeric columns aligned. */
#secondary .osp-gear__table { font-size: .8em; display: block; overflow-x: auto; }
#secondary .osp-gear__table th, #secondary .osp-gear__table td { padding: .15rem .35rem; }
.osp-gear__table td { text-align: right; white-space: nowrap; }
.osp-gear__table td:first-child { text-align: left; white-space: normal; }
.osp-gear .osp-units { font-size: .6em; vertical-align: middle; margin-left: .5rem; }