/* The Phoenix corridor viewer, in OUR Community Forestry's look: their site's dark green, olive, cream and terracotta, and Lora. */
:root {
	--ink: #283618; --olive: #606c38; --forest: #3e5641; --cream: #faf8ef; --sand: #e6e1c5; --terra: #c06e52; --gold: #e0a526;
	--hair: #ddd9c4; --mute: #6f7664; --top: 56px; --grew: #3a6b2c; --lost: #cf7a4a;
	--serif: 'Lora', Georgia, 'Times New Roman', serif; --sans: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--ink); font: 15px/1.5 var(--sans); overflow: hidden; }

#top { position: absolute; left: 0; right: 0; top: 0; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--ink); color: #fff; z-index: 20; }
#top .brand img { height: 40px; width: auto; display: block; }
/* inside a StoryMap the story puts an open-in-a-new-tab button over the top right corner */
.framed #top { padding-right: 62px; }
.framed #top .brand, .framed #top .title { display: none; }
.framed { --top: 48px; }
#top .title { flex: 1; min-width: 0; }
#top h1 { font: 600 20px/1.15 var(--serif); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#top p { margin: 1px 0 0; font-size: 12.5px; color: #d9dcc8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tabs { display: flex; gap: 4px; flex: none; }
#tabs button { font: 600 14px var(--sans); color: #e9ebdc; background: transparent; border: 1px solid transparent; border-radius: 4px; padding: 8px 12px; cursor: pointer; }
#tabs button:hover { border-color: #56633a; }
#tabs button.on { background: var(--cream); color: var(--ink); }

main { position: absolute; left: 0; right: 0; top: var(--top); bottom: 0; }
.tab { position: absolute; inset: 0; display: none; }
.tab.on { display: block; }

/* ---------------------------------------------------------------- the 3D view */
#view { background: radial-gradient(ellipse at 50% 35%, #3b4a26 0%, #222e14 60%, #161f0c 100%); overflow: hidden; }
#potree_render_area { position: absolute; inset: 0; }
#potree_render_area canvas { display: block; }

.swipe { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; z-index: 7; pointer-events: none; }
.swipe .line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--cream); box-shadow: 0 0 6px rgba(0, 0, 0, .55); }
.swipe .knob { position: absolute; top: 72%; left: -22px; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .5); cursor: ew-resize; pointer-events: auto; touch-action: none; display: flex; align-items: center; justify-content: center; }
.tag { position: absolute; top: 14px; z-index: 6; font: 600 13.5px var(--sans); color: var(--ink); background: var(--cream); border-radius: 4px; padding: 5px 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); pointer-events: none; white-space: nowrap; }
#tagL, #mtagL { transform: translateX(calc(-100% - 12px)); } #tagR, #mtagR { transform: translateX(12px); }
body.single #swipe, #map.single #mswipe { display: none; }
body.single #tagR, #map.single #mtagR { display: none; }
body.single #tagL, #map.single #mtagL { left: 50% !important; transform: translateX(-50%); }
/* side by side: a fixed line between the panes, each year's name in the middle of its pane; stacked on a tall screen */
body.sbs #swipe .knob { display: none; }
body.sbs #tagL { left: 25% !important; transform: translateX(-50%); } body.sbs #tagR { left: 75% !important; transform: translateX(-50%); }
body.sbs.stacked #swipe { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 0; }
body.sbs.stacked #swipe .line { top: -1px; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
body.sbs.stacked #tagL { left: 50% !important; top: 14px; bottom: auto; } body.sbs.stacked #tagR { left: 50% !important; top: calc(50% + 14px); bottom: auto; }

/* the tree numbers in the 3D view */
#marks { position: absolute; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; }
.mark { position: absolute; left: 0; top: 0; font: 600 12px var(--sans); color: var(--ink); background: var(--cream); border: 1.5px solid var(--ink); border-radius: 12px; padding: 1px 7px; box-shadow: 0 1px 5px rgba(0, 0, 0, .5); cursor: pointer; pointer-events: auto; white-space: nowrap; will-change: transform; }
.mark[hidden] { display: none; }
.mark.sel { background: var(--gold); z-index: 1; }
/* the chosen tree's ring and measuring staff */
.rule { position: absolute; overflow: hidden; pointer-events: none; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .9)); }
.rule .ring { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 6 4; }
.rule .staff, .rule g path { fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; }
.rule g path { stroke-width: 2.5; }
.rule .y26 path { stroke: var(--gold); }
.rule text { font: 600 12.5px var(--sans); fill: var(--cream); paint-order: stroke; stroke: rgba(22, 31, 12, .95); stroke-width: 4px; stroke-linejoin: round; white-space: pre; }
.rule .y26 text { fill: #f3c659; }

.panelbox, #panel { position: absolute; left: 14px; top: 14px; width: 318px; max-height: calc(100% - 60px); overflow-y: auto; z-index: 8; background: var(--cream); border-radius: 6px; padding: 12px 14px 10px; box-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
.panelbox .group + .group, #panel .group + .group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); }
.label { font: 600 12px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--olive); margin-bottom: 6px; }
.seg { display: flex; border: 1px solid var(--olive); border-radius: 4px; overflow: hidden; }
.seg button { flex: 1 1 0; font: 600 13px var(--sans); color: var(--ink); background: #fff; border: 0; border-left: 1px solid var(--olive); padding: 8px 4px; cursor: pointer; white-space: nowrap; }
/* rows whose labels differ much in length share the width by their words, so the long one keeps its side room */
#shows button, #steps button, #years button, #myears button { flex: 1 1 auto; padding-left: 7px; padding-right: 7px; }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: #f1eedb; }
.seg button.on { background: var(--olive); color: #fff; }
#shows button { font-size: 12.5px; padding-left: 2px; padding-right: 2px; }
.seg.three, .seg.under { margin-top: 6px; }
.seg[hidden] { display: none; }
#picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#picks button { font: 600 12.5px var(--sans); color: var(--ink); background: var(--sand); border: 0; border-radius: 13px; padding: 5px 10px; cursor: pointer; }
#picks button:hover { background: #d9d3b0; }
.seg button:disabled { color: #a9ad9c; cursor: default; background: #fff; }
select { width: 100%; font: 14px var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--olive); border-radius: 4px; padding: 8px 6px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--olive); margin: 0; }
.hint { margin: 10px 0 0; font-size: 12.5px; color: var(--mute); }
.hint.first { margin-top: 8px; }
#legend { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; font-size: 12.5px; }
#legend[hidden] { display: none; }
#legend div { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
#legend i { width: 12px; height: 12px; border-radius: 2px; flex: none; }
#legend .ramp { grid-column: 1 / -1; display: block; }
#legend .ramp em { font-style: normal; }
#legend .ramp b { display: block; height: 10px; border-radius: 2px; background: linear-gradient(to right, #2b83ba, #abdda4, #ffffbf, #fdae61, #d7191c); }
#legend .ramp span { display: flex; justify-content: space-between; margin-top: 2px; color: var(--mute); }
#panelToggle, .ptoggle { display: none; position: absolute; left: 12px; top: 12px; z-index: 9; font: 600 13.5px var(--sans); color: var(--ink); background: var(--cream); border: 0; border-radius: 4px; padding: 8px 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); cursor: pointer; }

#card { position: absolute; right: 14px; bottom: 40px; width: 372px; max-width: calc(100% - 28px); z-index: 9; background: var(--cream); border-radius: 6px; padding: 14px 16px 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, .45); border-top: 4px solid var(--gold); }
#card[hidden], body[data-tab=trees] #card, body[data-tab=how] #card { display: none; }
#card .no { font: 600 12px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--olive); }
#card h2 { font: 600 21px/1.2 var(--serif); margin: 2px 0 0; padding-right: 22px; }
#card .sp { margin: 0 0 8px; font: italic 14px var(--serif); color: var(--mute); }
#card table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
#card th, #card td { text-align: right; padding: 4px 0 4px 8px; border-top: 1px solid var(--hair); font-weight: 400; white-space: nowrap; }
#card thead th { border-top: 0; font-size: 12px; color: var(--mute); }
#card tbody th { text-align: left; color: var(--mute); padding-left: 0; }
#card td { font-variant-numeric: tabular-nums; }
#card td:last-child { font-weight: 600; }
#card .chg { margin: 9px 0 0; font: 600 15.5px var(--serif); color: #2f5823; }
#card .chg.down { color: #9c4f36; }
#card .rec { margin: 4px 0 0; font-size: 12.5px; color: var(--mute); }
#card .rec[hidden] { display: none; }
#card .go { margin-top: 10px; }
#card .go button { font: 600 13px var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--olive); border-radius: 4px; padding: 7px 12px; cursor: pointer; }
#card .go button:hover { background: #f1eedb; }
body[data-tab=view] #cardView, body[data-tab=map] #cardMap { display: none; }
#cardClose { position: absolute; right: 6px; top: 4px; width: 30px; height: 30px; font: 22px/1 var(--sans); color: var(--mute); background: transparent; border: 0; cursor: pointer; }

.credit { position: absolute; right: 0; bottom: 0; z-index: 7; font-size: 12px; color: #e9ebdc; background: rgba(22, 31, 12, .78); padding: 4px 10px; border-top-left-radius: 4px; }
.credit a, .foot a { color: inherit; }
.credit .short, #cardMore, #tmeasure, #ttable .short { display: none; }
#loading { position: absolute; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; background: rgba(22, 31, 12, .55); transition: opacity .5s; }
#loading.done { opacity: 0; pointer-events: none; }
#loading .box { text-align: center; color: #fff; font: 500 17px var(--serif); }
#loading img { width: 64px; height: auto; animation: breathe 1.8s ease-in-out infinite; }
#loading.err img { animation: none; opacity: .5; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }

/* ---------------------------------------------------------------- the map */
#map { background: #1b2510; overflow: hidden; }
#mapArea { position: absolute; inset: 0; z-index: 0; background: transparent; font: 13px var(--sans); }
#mapArea .leaflet-bar { border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
#mapArea .leaflet-bar a { color: var(--ink); background: var(--cream); border-bottom-color: var(--hair); }
#mapArea .leaflet-bar a:hover { background: #fff; }
#mapArea .leaflet-top.leaflet-right { top: 46px; }
#mapArea .leaflet-interactive:focus { outline: none; }
.leaflet-tooltip.tip { font: 600 13px var(--sans); color: var(--ink); background: var(--cream); border: 0; border-radius: 4px; padding: 5px 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.leaflet-tooltip.tip::before { border-top-color: var(--cream); }
#mlegend .ramp b { display: block; height: 12px; border-radius: 2px; border: 1px solid var(--hair); }
#mlegend .ramp span { display: flex; justify-content: space-between; margin-top: 3px; font-size: 12.5px; }
#mlegend .ramp em { font-style: normal; }
#mlegend .sizes { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 12.5px; }
#mlegend .sizes div { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
#mlegend .sizes i { display: block; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px #9a9d8c; flex: none; }
#mcrownkey { display: flex; gap: 16px; margin: 6px 0 0 24px; font-size: 12.5px; }
#mcrownkey[hidden] { display: none; }
#mcrownkey div { display: flex; align-items: center; gap: 6px; }
#mcrownkey i { width: 22px; height: 0; border-top: 2px solid var(--ink); }
#mcrownkey i.dash { border-top-style: dashed; }
#mscale { position: absolute; left: 14px; bottom: 12px; z-index: 6; display: flex; align-items: flex-end; gap: 12px; pointer-events: none; }
#mscale .north svg { display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
#mscale .bar { color: #fff; font: 600 12px var(--sans); text-shadow: 0 1px 3px #000, 0 0 2px #000; }
#mscale .bar b { display: block; height: 6px; border: 2px solid #fff; border-top: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .6); min-width: 20px; }
#mscale .bar span { display: block; text-align: center; margin-top: 2px; }

/* ---------------------------------------------------------------- the trees table */
#trees { background: var(--cream); overflow-y: auto; }
.page.wide { max-width: 1120px; }
.tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 18px 0 12px; font: 15px var(--sans); }
.tools .seg { flex: none; } .tools .seg button { padding: 8px 14px; }
.tools .hint { margin: 0; }
.chip { font: 600 13px var(--sans); color: var(--ink); background: var(--sand); border: 0; border-radius: 14px; padding: 6px 12px; cursor: pointer; }
.chip[hidden] { display: none; }
.tablebox { overflow-x: auto; border: 1px solid var(--hair); border-radius: 6px; background: #fff; }
#ttable { width: 100%; border-collapse: separate; border-spacing: 0; font: 14.5px/1.35 var(--sans); }
#ttable th, #ttable td { padding: 7px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--hair); }
#ttable thead th { background: #f3f0e1; font-weight: 600; color: var(--ink); padding: 0; }
#ttable thead tr.groups th { padding: 8px 12px 2px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--olive); text-align: center; border-bottom: 0; }
#ttable thead tr.groups th.g { border-left: 1px solid var(--hair); }
#ttable thead button { position: relative; width: 100%; font: inherit; color: inherit; background: transparent; border: 0; padding: 6px 10px 8px; text-align: inherit; cursor: pointer; white-space: nowrap; }
#ttable thead button:hover { background: var(--sand); }
#ttable thead i { position: absolute; right: 0; top: 50%; margin-top: -7px; width: 10px; font-style: normal; font-size: 9px; color: var(--olive); text-align: center; }
#ttable .txt { text-align: left; }
#ttable td.txt b { font-weight: 600; } #ttable td.txt em { display: block; font: italic 13px var(--serif); color: var(--mute); }
#ttable td.num { font-variant-numeric: tabular-nums; }
#ttable td.first { color: var(--mute); }
#ttable.species td.first { color: inherit; }
#ttable tbody tr { cursor: pointer; }
#ttable tbody tr:hover td, #ttable tbody tr:focus td { background: #f6f3e4; }
#ttable tbody tr:focus { outline: none; }
#ttable tbody tr:last-child td { border-bottom: 0; }
#ttable th:nth-child(3), #ttable td:nth-child(3), #ttable th:nth-child(6), #ttable td:nth-child(6) { border-left: 1px solid var(--hair); }
#ttable tr.groups th:nth-child(3) { border-left: 1px solid var(--hair); }
#ttable td.few, #ttable th.few { text-align: center; }
#ttable td.chg { font-weight: 600; }
#ttable td.chg .val { display: inline-block; min-width: 40px; }
#ttable td.chg .bar { display: inline-block; position: relative; width: 68px; height: 12px; margin-left: 10px; vertical-align: -1px; background: linear-gradient(var(--mute), var(--mute)) 50% 0 / 1px 100% no-repeat; }
#ttable td.chg .bar i { position: absolute; top: 1px; bottom: 1px; min-width: 3px; }
#ttable td.chg .bar i.pos { left: calc(50% + 1px); background: var(--grew); border-radius: 0 1px 1px 0; }
#ttable td.chg .bar i.neg { right: 50%; background: var(--lost); border-radius: 1px 0 0 1px; }

/* ---------------------------------------------------------------- how it was made */
#how { background: var(--cream); overflow-y: auto; }
.page { max-width: 820px; margin: 0 auto; padding: 34px 22px 60px; font: 17px/1.65 var(--serif); }
.page h2 { font: 700 32px/1.2 var(--serif); margin: 0 0 8px; }
.page h3 { font: 600 22px/1.25 var(--serif); margin: 0 0 6px; }
.page .lead { font-size: 19px; color: #3c4633; margin: 0 0 8px; }
.step { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--hair); }
.step p { margin: 0 0 12px; }
figure { margin: 16px 0 6px; }
figure img { width: 100%; height: auto; display: block; border-radius: 4px; border: 1px solid var(--hair); background: #fff; }
figcaption { font: 13.5px/1.45 var(--sans); color: var(--mute); margin-top: 6px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair figure { margin-top: 8px; } .pair img { aspect-ratio: 1 / 1; object-fit: cover; }
.foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--hair); font: 14px/1.5 var(--sans); color: var(--mute); }

/* side by side: the full card stood over the foot of the October tree, so it opens short here on any screen */
body.sbs #cardMore { display: inline-block; }
body.sbs #card:not(.open) table, body.sbs #card:not(.open) .rec, body.sbs #card:not(.open) .sp { display: none; }
body.sbs #card .go { display: flex; gap: 8px; }

/* the Trees tab, "The mix": three counts, then the planting by genus and by height class */
#trees.mix .tablebox, #trees.mix #tmeasure, #trees.mix .tools .hint, #trees.mix #treesFoot { display: none; }
#tmix[hidden] { display: none; }
.mixnums { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin: 4px 0 22px; }
.mixnums div { padding: 14px 8px 12px; text-align: center; border-left: 1px solid var(--hair); } .mixnums div:first-child { border-left: 0; }
.mixnums b { display: block; font: 600 34px/1.1 var(--serif); color: var(--ink); } .mixnums span { font: 14px var(--sans); color: var(--mute); }
.mixgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mixcard { background: #fff; border: 1px solid var(--hair); border-radius: 6px; padding: 18px 20px 16px; font: 14.5px/1.35 var(--sans); }
.mixcard h3 { margin: 0 0 2px; } .mixcard .sub { margin: 0 0 12px; font: 14px/1.4 var(--sans); color: var(--mute); }
.grow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px 48px; align-items: center; column-gap: 12px; padding: 5px 0; border-top: 1px solid var(--hair); }
.grow.head { border-top: 0; padding: 0 0 4px; font-size: 12px; color: var(--mute); } .grow.head span { text-align: right; }
.grow .gl b { display: block; font-weight: 600; } .grow .gl em { display: block; font: italic 13px var(--serif); color: var(--mute); }
.grow .gb { position: relative; height: 12px; } .grow .gb i { position: absolute; left: 0; top: 0; bottom: 0; min-width: 3px; background: var(--olive); border-radius: 0 1px 1px 0; }
.grow .gb::after { content: ''; position: absolute; left: 40%; top: -17px; bottom: -17px; border-left: 1px dashed #8a8f7c; }
.grow.head .gb { height: 14px; } .grow.head .gb::after { top: 14px; bottom: -6px; } .grow.head .gb em { position: absolute; left: 40%; top: 0; transform: translateX(-50%); font-style: normal; }
.grow .gn { text-align: right; font-variant-numeric: tabular-nums; } .grow .gn:last-child { font-weight: 600; }
.mixcard .key { margin: 0 0 10px; font-size: 13px; color: var(--ink); } .mixcard .key i { display: inline-block; width: 11px; height: 11px; margin: 0 6px 0 0; vertical-align: -1px; border-radius: 1px; } .mixcard .key i.k26 { margin-left: 16px; }
.k25 { background: #56702a; } .k26 { background: #c9a03a; }          /* the pair passes the chart color check; October 2026 is gold as in the 3D view */
.hrow { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 8px 0; border-top: 1px solid var(--hair); }
.hrow .hl { font-weight: 600; } .hpair { display: grid; row-gap: 3px; padding-right: 30px; }
.hb { display: flex; align-items: center; height: 12px; } .hb i { display: block; height: 12px; min-width: 3px; border-radius: 0 1px 1px 0; } .hb b { margin-left: 7px; font: 400 13px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
#tmix .foot { margin-top: 22px; }

/* a short screen (a small laptop, an embed): the tree card opens short there too */
@media (max-height: 760px) and (min-width: 761px) {
	#cardMore { display: inline-block; }
	#card:not(.open) table, #card:not(.open) .rec, #card:not(.open) .sp { display: none; }
	#card .go { display: flex; gap: 8px; }
}

@media (max-width: 760px) {
	:root { --top: 88px; }
	#top { flex-wrap: wrap; gap: 0 10px; padding: 0 10px; align-content: flex-start; }
	#top .brand { height: 48px; display: flex; align-items: center; } #top .brand img { height: 34px; }
	#top .title { height: 48px; display: flex; align-items: center; } #top h1 { font-size: 17px; } #top p { display: none; }
	.framed { --top: 44px; } .framed #top { align-content: center; padding-right: 54px; }
	#tabs { flex: 1 0 100%; gap: 2px; height: 36px; } #tabs button { flex: 1 1 0; padding: 6px 2px; font-size: 13px; white-space: nowrap; }
	#panelToggle, .ptoggle { display: block; }
	.panelbox, #panel { display: none; top: 54px; left: 12px; width: min(318px, calc(100% - 24px)); max-height: calc(100% - 110px); }
	body.panel #panel, #map.panel .panelbox { display: block; }
	.tag { top: auto; bottom: 30px; font-size: 12.5px; }
	.credit .long { display: none; } .credit .short { display: inline; }
	body.sbs.stacked #tagL { top: 12px; left: auto !important; right: 12px; transform: none; } body.sbs.stacked #tagR { top: calc(50% + 12px); left: auto !important; right: 12px; transform: none; }
	#card { left: 12px; right: 12px; width: auto; max-width: none; bottom: 30px; padding: 12px 14px 10px; }
	#card h2 { font-size: 19px; } #card table { font-size: 13px; }
	#cardMore { display: inline-block; }
	#card:not(.open) table, #card:not(.open) .rec, #card:not(.open) .sp { display: none; }
	#card .go { display: flex; gap: 8px; }
	body.panel[data-tab=view] #card { display: none; }
	#mscale { bottom: 64px; left: 12px; }
	.pair { grid-template-columns: 1fr; }
	.page { font-size: 16px; padding: 24px 12px 50px; } .page h2 { font-size: 26px; }
	.tools .hint { flex-basis: 100%; }
	.mixgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; } .mixcard { padding: 14px 12px 12px; } .mixnums b { font-size: 28px; }
	.grow { grid-template-columns: 104px minmax(0, 1fr) 30px 40px; column-gap: 8px; } .hrow { grid-template-columns: 92px minmax(0, 1fr); }
	.tools #tview button { padding: 8px 10px; }
	#ttable { font-size: 13.5px; } #ttable th, #ttable td { padding: 6px 6px; } #ttable thead button { padding: 6px 6px 8px; }
	#ttable td.chg .bar { width: 34px; margin-left: 4px; } #ttable td.chg .val { min-width: 34px; }
	#tmeasure { display: flex; }
	#ttable .long { display: none; } #ttable .short { display: inline; }
	#ttable.showh .mc, #ttable.showc .mh { display: none; }
	#ttable tr.groups th.g { border-left: 0; text-align: right; padding-right: 9px; }
	#ttable td.txt b { white-space: normal; } #ttable td.txt { white-space: normal; min-width: 96px; }
	#ttable th:nth-child(6), #ttable td:nth-child(6) { border-left: 0; } #ttable.showc th.mc:nth-child(6), #ttable.showc td.mc:nth-child(6) { border-left: 1px solid var(--hair); }
}

/* the 360 view: over whichever tab is open, under the header (it sits inside main, which starts under the header) */
#pano { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 15; background: #10160a; }
#pano[hidden] { display: none; }
#panoCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; outline: 0; }
#panoCanvas:active { cursor: grabbing; }
#panoLoading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font: 500 17px var(--serif); pointer-events: none; }
#panoLoading[hidden] { display: none; }
#panoClose { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); font: 400 26px/1 var(--sans); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
#panoText { position: absolute; left: 14px; bottom: 14px; max-width: min(430px, calc(100% - 28px)); background: var(--cream); border-radius: 6px; padding: 10px 14px 11px; box-shadow: 0 4px 16px rgba(0, 0, 0, .45); pointer-events: none; }
#panoText h2 { font: 600 18px/1.25 var(--serif); margin: 0 0 2px; }
#panoText p { margin: 0; font-size: 13.5px; }
#panoText .note { margin-top: 3px; font-size: 12px; color: var(--mute); }
.pin360 i { position: absolute; left: -14px; top: 8px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .55); }
.pin360 span { display: block; width: 44px; height: 28px; box-sizing: border-box; border-radius: 14px; background: var(--gold); border: 2px solid #fff; color: var(--ink); font: 700 12.5px/24px var(--sans); text-align: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .55); cursor: pointer; }
.pin360:hover span, .pin360:focus span { background: #f0b93a; }
#mpanolist .chip { display: inline-flex; align-items: center; gap: 8px; }
#mpanolist .chip i { font: 700 11px/18px var(--sans); font-style: normal; background: var(--gold); border-radius: 9px; padding: 0 6px; }
#mpanos[hidden] { display: none; }
@media (max-width: 760px) { #panoText { left: 10px; right: 10px; bottom: 10px; max-width: none; } #panoText h2 { font-size: 16.5px; } }
