@layer page {
.pg-resources .res-board { overflow: hidden; border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--yellow); color: var(--ink); box-shadow: 0 8px 0 var(--orange); }
.pg-resources .res-board-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); padding: var(--s4) clamp(20px, 3vw, 32px); border-bottom: 2px solid var(--ink); background: var(--orange); }
.pg-resources .res-board-head h2 { font-family: var(--font-action); font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--ink); }
.pg-resources .res-clock { max-width: none; font-family: var(--font-action); font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pg-resources .res-holiday { max-width: none; padding: var(--s3) clamp(20px, 3vw, 32px); border-bottom: 2px solid var(--ink); font-weight: 700; }
.pg-resources .res-board-cols { display: grid; }
.pg-resources .res-board-col { display: grid; align-content: start; gap: var(--s3); padding: var(--s5) clamp(20px, 3vw, 32px); }
.pg-resources .res-board-col + .res-board-col { border-top: 2px solid var(--ink); }
.pg-resources .res-board-col h3 { font-family: var(--font-action); font-size: 1.625rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.pg-resources .res-now-list { display: grid; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.pg-resources .res-now-item, .pg-resources .res-bed {
display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px var(--s3); max-width: none;
padding: var(--s2) var(--s3); border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: var(--paper);
}
.pg-resources .res-now-name { font-family: var(--font-action); font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.pg-resources .res-state { grid-column: 1 / -1; font-size: var(--t-small); line-height: 1.3; }
.pg-resources .res-state.is-open, .pg-resources .res-state.is-later, .pg-resources .res-state.is-call { justify-self: start; padding: 2px 8px 1px; border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--font-action); font-size: 1rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.pg-resources .res-state.is-open { background: var(--orange); }
.pg-resources .res-state.is-later { background: var(--yellow); }
.pg-resources .res-state.is-call { background: var(--paper); }
.pg-resources .res-now-go, .pg-resources .res-bed-call { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; white-space: nowrap; }
.pg-resources .res-bed-call { padding: 0 var(--s3); border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--font-action); font-size: 1.1875rem; text-decoration: none; }
.pg-resources .res-board-empty { font-weight: 700; line-height: 1.4; }
.pg-resources .res-board-more { justify-self: start; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-family: var(--font-action); font-size: 1.1875rem; font-weight: 700; text-transform: uppercase; }
.pg-resources .res-board-more::after { content: '\2193'; }
.pg-resources .res-week { min-width: 0; margin: var(--s4) 0 0; padding: 0; border: 0; }
.pg-resources .res-day-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pg-resources .res-day-tabs label { display: grid; place-items: center; min-height: 44px; border: 2px solid var(--ink); border-radius: var(--r-sm); font-family: var(--font-action); font-size: 1.125rem; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: background-color var(--d-hover) var(--ease-out), color var(--d-hover) var(--ease-out); }
.pg-resources .res-day-tabs label:has(.res-day-input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.pg-resources .res-day-tabs label:has(.res-day-input:checked) { background: var(--teal); color: var(--yellow); }
.pg-resources .res-axis { display: none; }
.pg-resources .res-bars { display: grid; margin: var(--s3) 0 0; padding: 0; list-style: none; }
.pg-resources .res-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name time' 'track track'; align-items: baseline; gap: 2px var(--s3); max-width: none; padding-block: var(--s2); border-bottom: 1px solid var(--ink); }
.pg-resources .res-bar-name { grid-area: name; font-family: var(--font-action); font-size: 1.1875rem; font-weight: 700; line-height: 1.15; }
.pg-resources .res-bar-time { grid-area: time; font-size: var(--t-small); line-height: 1.3; text-align: end; }
.pg-resources .res-bar-row.is-closed .res-bar-time { font-weight: 700; }
.pg-resources .res-bar-track { grid-area: track; position: relative; display: block; height: 24px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); overflow: hidden; }
.pg-resources .res-bar-svg { display: block; width: 100%; height: 100%; }
.pg-resources .res-tick { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.pg-resources .res-bar { fill: var(--teal); }
.pg-resources .res-bar.is-now { fill: var(--orange); }
.pg-resources .res-bar-start { fill: var(--orange); }
.pg-resources .res-now-line { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 3px; margin-inline-start: -1.5px; background: var(--ink); }
.pg-resources .res-dial { display: grid; gap: var(--s4); margin-top: var(--s4); }
.pg-resources .res-dial-inputs { display: grid; gap: var(--s4); }
.pg-resources .res-slider { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--s1) var(--s3); }
.pg-resources .res-slider-label { font-family: var(--font-action); font-size: 1.375rem; font-weight: 700; text-transform: uppercase; }
.pg-resources .res-slider-out { font-family: var(--font-action); font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pg-resources .res-slider input { grid-column: 1 / -1; width: 100%; min-height: 44px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.pg-resources .res-dial-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); max-width: none; padding-top: var(--s3); border-top: 2px solid var(--ink); font-family: var(--font-action); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; }
.pg-resources .res-dial-result strong { display: inline-block; font-size: clamp(4rem, 12vw, 6rem); line-height: .9; font-variant-numeric: tabular-nums; }
.pg-resources .res-dial-say { min-height: 1.45em; font-weight: 700; line-height: 1.45; }
.pg-resources .res-scale { position: relative; margin-top: var(--s5); }
.pg-resources .res-scale svg { display: block; width: 100%; height: 44px; }
.pg-resources .res-scale-base { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pg-resources .res-scale-advisory { fill: var(--orange); }
.pg-resources .res-scale-warning { fill: var(--carmine); }
.pg-resources .res-scale-tick { stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pg-resources .res-scale-marker { position: absolute; top: -6px; inset-inline-start: 0; width: 6px; height: 56px; margin-inline-start: -3px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--yellow); transition: transform 420ms var(--ease-out); }
.pg-resources .res-scale-labels { position: relative; height: 1.5em; max-width: none; margin-top: var(--s1); font-family: var(--font-action); font-size: 1rem; font-weight: 700; }
.pg-resources .res-scale-labels span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.pg-resources .res-scale-labels span:nth-child(1) { inset-inline-start: 0; transform: none; }
.pg-resources .res-scale-labels span:nth-child(2) { inset-inline-start: 50%; }
.pg-resources .res-scale-labels span:nth-child(3) { inset-inline-start: 68.75%; }
.pg-resources .res-scale-labels span:nth-child(4) { inset-inline-start: 81.25%; }
.pg-resources .res-scale-labels span:nth-child(5) { inset-inline-end: 0; transform: none; }
@media (hover: hover) {
.pg-resources .res-day-tabs label:hover { background: var(--orange); color: var(--ink); }
.pg-resources .res-bed-call:hover { background: var(--orange); }
.pg-resources .res-now-go:hover, .pg-resources .res-board-more:hover { text-decoration-thickness: 2px; }
}
@media (min-width: 768px) {
.pg-resources .res-board-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-resources .res-board-col + .res-board-col { border-top: 0; border-inline-start: 2px solid var(--ink); }
.pg-resources .res-board-col.res-board-beds { grid-column: 1 / -1; border-top: 2px solid var(--ink); border-inline-start: 0; }
.pg-resources .res-board-beds .res-now-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-resources .res-axis { display: grid; grid-template-columns: 11rem repeat(16, minmax(0, 1fr)) 10rem; margin-top: var(--s4); font-family: var(--font-action); font-size: .9375rem; font-weight: 700; }
.pg-resources .res-axis::before { content: ''; }
.pg-resources .res-axis span { grid-column: span 3; padding-inline-start: 2px; }
.pg-resources .res-axis span:last-child { grid-column: span 1; white-space: nowrap; }
.pg-resources .res-bar-row { grid-template-columns: 11rem minmax(0, 1fr) 10rem; grid-template-areas: 'name track time'; align-items: center; column-gap: 0; }
.pg-resources .res-bar-name { padding-inline-end: var(--s3); }
.pg-resources .res-bar-time { padding-inline-start: var(--s3); }
.pg-resources .res-dial-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); }
}
@media (min-width: 1100px) {
.pg-resources .res-board-cols { grid-template-columns: 1fr 1fr 1.15fr; }
.pg-resources .res-board-col.res-board-beds { grid-column: auto; border-top: 0; border-inline-start: 2px solid var(--ink); }
.pg-resources .res-board-beds .res-now-list { grid-template-columns: minmax(0, 1fr); }
}
@keyframes res-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes res-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes res-dial { from { transform: translateY(105%); } to { transform: none; } }
@keyframes res-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes res-land { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes res-tick { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes res-stand { from { transform: scaleY(0); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
.pg-resources .res-head h1 { animation: res-rise 640ms var(--ease-out) both; }
.pg-resources .res-date { animation: res-rise 640ms 90ms var(--ease-out) both; }
.pg-resources .res-needs-q { animation: res-rise 600ms 160ms var(--ease-out) both; }
.pg-resources .res-needs li { animation: res-drop 380ms var(--ease-out) both; }
.pg-resources .res-needs li:nth-child(1) { animation-delay: 0ms; }
.pg-resources .res-needs li:nth-child(2) { animation-delay: 40ms; }
.pg-resources .res-needs li:nth-child(3) { animation-delay: 80ms; }
.pg-resources .res-needs li:nth-child(4) { animation-delay: 120ms; }
.pg-resources .res-needs li:nth-child(5) { animation-delay: 160ms; }
.pg-resources .res-needs li:nth-child(6) { animation-delay: 200ms; }
.pg-resources .res-needs li:nth-child(7) { animation-delay: 240ms; }
.pg-resources .res-needs li:nth-child(8) { animation-delay: 280ms; }
.pg-resources .res-live:not([hidden]) { animation: res-rise 520ms var(--ease-out) both; }
.pg-resources [data-res-rise] { transition: transform 620ms var(--ease-out), opacity 620ms var(--ease-out); }
.pg-resources .is-waiting { opacity: 0; transform: translateY(32px); }
.pg-resources .res-keys.is-dialing .res-digit { animation: res-dial 560ms var(--ease-out) both; }
.pg-resources .res-keys.is-dialing .res-digit:nth-child(2) { animation-delay: 90ms; }
.pg-resources .res-keys.is-dialing .res-digit:nth-child(3) { animation-delay: 180ms; }
.pg-resources .res-chart.is-pending .res-bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.pg-resources .res-chart.is-drawing .res-bar { transform-box: fill-box; transform-origin: left center; animation: res-grow 700ms var(--ease-out) both; }
.pg-resources .res-chart.is-drawing .res-now-line { transform-origin: bottom; animation: res-stand 320ms 400ms var(--ease-out) both; }
.pg-resources .res-now-item.is-landing, .pg-resources .res-bed.is-landing { animation: res-land 440ms var(--ease-out) both; }
.pg-resources .res-clock.is-tick { animation: res-tick 380ms var(--ease-out); }
.pg-resources .res-dial-result strong.is-tick { animation: res-tick 300ms var(--ease-out); }
}
@media print {
.pg-resources .res-board, .pg-resources .res-dial, .pg-resources .res-scale-marker, .pg-resources .res-day-tabs { display: none; }
.pg-resources .is-waiting { opacity: 1; transform: none; }
}
}
