/* Local fixes on top of the staging mirror (2026-11-24).
   One block per point on the review checklist:
   https://claude.ai/artifact/VDjzroNjzJ131KSL6D7cQg
   These are meant as a readable spec for the developer, not as the final code. */

/* P5 — Sällskap form: remove the "Meny" field (it only ever had one option). */
.rrw .dk-f:has(> #s-menu) { display: none !important; }

/* P10 — Julbord form: no separate "Allergier eller specialkost" field.
   The message box carries the hint instead (placeholder set in local-fixes.js). */
.rrw .dk-f:has(> #f-allergy) { display: none !important; }

/* P11 — iPhone: half the page stops painting when the keyboard opens while
   moving between form fields. Subpage heroes were sized with dvh, which
   changes height every time the keyboard opens/closes and forces a relayout
   of everything below. svh is the small viewport and never changes with the
   keyboard. UNTESTED on a real iPhone. */
.rrw .st-mhero { height: calc(100svh - 77px); }

/* P12 — Footer: "FÖLJ OSS" broke onto two lines around 1650 px because the
   last column auto-sized to ~76 px. Headings never wrap. */
.rrw .b3-foot-lbl { white-space: nowrap; }

/* P13 — "Boka bord" always comes first in a button pair (not the navigation).
   The rows are flex, so order moves it without touching the markup.
   Each button keeps its own style. */
.rrw main .st-mbtns > .dk-book-pop,
.rrw main .st-mbtns > a[href$="/boka-bord"],
.rrw main [class*="-btns"] > .dk-book-pop,
.rrw main [class*="-btns"] > a[href$="/boka-bord"] { order: -1; }

/* P16 — Sällskap info block: "Skicka en förfrågan" comes before "Se menyerna".
   Only the order changes; each button keeps its own style. */
.rrw main .st-panel-btns > a[href="#forfragan"] { order: -1; }

/* P17 — Footer brand column: logo, "Anno 1939 · Vid Domkyrkan" and Boka bord
   are centred on each other at every width (desktop had them left-aligned). */
.rrw footer .dk-ftr .dk-ftr-top { text-align: center; justify-items: center; }

/* P9 — "Önskad tid" on Julbord and Sällskap: clock box like Borgmästaren's (built in local-fixes.js).
   The button copies the other fields exactly; the list is a time schedule with
   tabs Lunch / Eftermiddag / Kväll and the times as tiles (design 3). Opens upwards (.up) when there is no room below. */
.rrw .dk-f .dk-time { position: relative; }
.rrw .dk-f .dk-timebtn { -webkit-appearance: none; appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 52px; padding: 12px 14px; border: 1px solid #B9A98A; border-radius: 0; background: #F6F1E7; color: #2A1608; font: 17px/1.6 "EB Garamond", Georgia, serif; text-align: left; cursor: pointer; box-sizing: border-box; }
.rrw .dk-f .dk-time:not(.has-val) .dk-timeval { color: #6B5A48; }
.rrw .dk-f .dk-timebtn:disabled { cursor: default; }
.rrw .dk-f .dk-timebtn:disabled svg { opacity: .4; }
.rrw .dk-f .dk-timebtn:focus-visible { outline: 2px solid var(--dk-blue); outline-offset: 1px; }
.rrw .dk-f .dk-timepop { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: 100%; max-width: 320px; padding: 12px; background: #F6F1E7; border: 1px solid #B9A98A; box-shadow: 0 8px 24px rgba(42, 22, 8, .14); box-sizing: border-box; }
.rrw .dk-f .dk-time.up .dk-timepop { top: auto; bottom: calc(100% + 4px); }
.rrw .dk-f .dk-timepop[hidden] { display: none; }
.rrw .dk-f .dk-timetabs { display: grid; border: 1px solid #B9A98A; margin-bottom: 10px; }
.rrw .dk-f .dk-timetab { -webkit-appearance: none; appearance: none; border: 0; border-radius: 0; background: #F6F1E7; color: #2A1608; font: 15px/1.2 "EB Garamond", Georgia, serif; padding: 8px 4px; cursor: pointer; }
.rrw .dk-f .dk-timetab + .dk-timetab { border-left: 1px solid #B9A98A; }
.rrw .dk-f .dk-timetab small { display: block; font-size: 12px; color: #6B5A48; font-variant-numeric: tabular-nums; }
.rrw .dk-f .dk-timetab.on { background: #2A1608; color: #F6F1E7; }
.rrw .dk-f .dk-timetab.on small { color: #D8CBB0; }
.rrw .dk-f .dk-timetab:hover:not(.on) { background: #E8DFC8; }
.rrw .dk-f .dk-timetab:focus-visible { outline: 2px solid var(--dk-blue); outline-offset: -2px; }
.rrw .dk-f .dk-timegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rrw .dk-f .dk-timeopt { -webkit-appearance: none; appearance: none; height: 40px; border: 1px solid #D8CBB0; border-radius: 0; background: #FFFDF8; color: #2A1608; font: 16px/1 "EB Garamond", Georgia, serif; font-variant-numeric: tabular-nums; cursor: pointer; }
.rrw .dk-f .dk-timeopt:hover { background: #E8DFC8; }
.rrw .dk-f .dk-timeopt.on { background: #2A1608; border-color: #2A1608; color: #F6F1E7; }
.rrw .dk-f .dk-timeopt:disabled { color: rgba(42, 22, 8, .25); background: transparent; border-style: dashed; cursor: default; }
.rrw .dk-f .dk-timeopt:focus-visible { outline: 2px solid var(--dk-blue); outline-offset: -2px; }
.rrw .dk-f .dk-time-err { margin: 6px 0 0; font-size: 14px; color: #8B3A10; }
.rrw .dk-f .dk-time-err[hidden] { display: none; }
