/* Lane D's pages: Hours, Notices and History (otc-team #477; served as a static file at /edit/edit.css, LANES.md rule 18). Only what
   lane B's portal.css does not already style; its colour variables (--kit-*) carry light and dark. Phone first: one column, every
   control at least 44 px high, nothing wider than the screen at 320 px. */
.kit-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.kit-required { color: var(--kit-muted); font-weight: 400; }
.kit-error { display: block; color: var(--kit-bad-text); font-weight: 600; margin: 0.25rem 0; }
.kit-error-line { display: block; }
.kit-field--error input, .kit-field--error select, .kit-field--error textarea { border-color: var(--kit-bad-text); border-width: 2px; }
.kit-field--boolean { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.kit-field--boolean input { width: 1.5rem; height: 1.5rem; margin: 0; }
.kit-field--boolean label { display: inline-flex; align-items: center; min-height: 44px; margin: 0; cursor: pointer; }
.kit-form input[type="time"], .kit-form input[type="date"] { min-height: 44px; }
.hours-row, .notice-row { border: 1px solid var(--kit-line); border-radius: var(--kit-radius); padding: 0.75rem 1rem; margin: 0 0 1rem; min-width: 0; }
.hours-row legend, .notice-row legend { font-weight: 700; padding: 0 0.25rem; }
.hours-break summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--kit-brand); }
.hours-break summary::after { content: "+"; margin-left: 0.5rem; }
.hours-break[open] > summary::after { content: "\2212"; }
.hours-table { border-collapse: collapse; width: 100%; max-width: 30rem; margin: 0 0 0.75rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--kit-line); vertical-align: top; }
.hours-table th { font-weight: 600; padding-left: 0; }
.hours-open { font-weight: 600; }
.hours-open[data-open-state="open"] { color: var(--kit-ok-text); }
.notice-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.notice-list > li { border-bottom: 1px solid var(--kit-line); padding: 0.75rem 0; overflow-wrap: anywhere; }
.notice-list a, .feature-notes a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 1rem; }
.notice-coming { padding-left: 1.25rem; }
.feature-notes ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.edit-history { padding-left: 1.25rem; }
.edit-history-item { margin: 0 0 1rem; overflow-wrap: anywhere; }
.edit-history-filter ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.edit-history-filter a { display: inline-flex; align-items: center; min-height: 44px; }
.edit-history-filter a[aria-current="page"] { font-weight: 700; }
/* The Hours page: on a phone, what the site shows now comes first, then the form; on a wide screen the two sit side by side in the
   same order (page order matches the screen order, for screen readers and keyboards). */
.hours-page { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .hours-page { grid-template-columns: minmax(15rem, 1fr) minmax(0, 2fr); align-items: start; } }
.hours-now { border: 1px solid var(--kit-line); border-radius: var(--kit-radius); padding: 0.75rem 1rem; }
.hours-today, .hours-reading { font-weight: 600; }
.hours-reading { margin: 0 0 0.5rem; }
.hours-confirm .kit-actions, .undo-form { margin: 0.5rem 0 1rem; }
.notice-quick-form { margin: 0 0 1.25rem; }
.notice-quick-form .kit-muted { margin: 0.25rem 0 0; }
.notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.notice-actions form { margin: 0; }
.kit-form input[type="text"] { min-height: 44px; }
.tool-preview-card { border-left: 4px solid var(--kit-brand); margin: 0 0 1rem; }
.kit-chip-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 1rem; padding: 0.5rem 0.75rem; border: 1px solid var(--kit-line); border-radius: var(--kit-radius); background: var(--kit-surface); }
.kit-drawer { border: 1px solid var(--kit-line); border-radius: var(--kit-radius); margin: 1rem 0; background: var(--kit-surface); }
.kit-drawer-summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0.5rem 1rem; font-weight: 600; color: var(--kit-brand); }
.kit-drawer-body { padding: 0.5rem 1rem 1rem; border-top: 1px solid var(--kit-line); }
.flyer-sheet { max-width: 38rem; margin: 0 0 1.5rem; padding: 1.5rem; border: 2px solid var(--kit-brand); border-radius: var(--kit-radius); text-align: center; }
.flyer-qr-box { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--kit-line); }
.flyer-qr { display: block; width: 11.25rem; height: 11.25rem; border: 1px solid var(--kit-line); }
@media print { .kit-top, .portal-top, .portal-tabs, .flyer-share { display: none !important; } .flyer-sheet { max-width: 100%; margin: 0; border-width: 2px; page-break-inside: avoid; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
