/*
 * Panciuto skin: hand-written bridges between Lisa's v14 markup and Origin's hooks. Everything else is generated
 * (shared.css, <page>.css). Keep this file short; each rule says why it exists.
 */

/* Origin's js/navigation.js needs one #site-navigation around the toggle, links and panel; Lisa's tree has the panel
   after the header. The wrapper (header.php) holds both and must draw no box, or the sticky header stops sticking. */
.pc-nav-root { display: contents; }

/* Open menu. Lisa's panel shows with .is-open on itself and hides with [hidden] (her HTML has no script).
   Origin's script puts .is-open on #site-navigation, which holds the panel. */
#site-navigation:not(.is-open) .pc-menu-panel { display: none; }
#site-navigation.is-open .pc-menu-panel { opacity: 1; transform: none; }

/* Lisa's panel is z-index 200; Origin's plain menu bar (menu-subnav, 999, measured 11-13 at 390) painted over it until
   the menu page is drawn in the skin. The open panel goes above every page bar. */
body.is-menu-open .pc-menu-panel { z-index: 1000; }

/* Menu jump list: Origin's js/menu.js marks the current section aria-current="page"; Lisa's scroll-spy said "true".
   Same underline for Origin's value (menu.css line: .pc-msub a[aria-current="true"]). */
.pc-msub a[aria-current="page"] { text-decoration: underline 2px; text-underline-offset: 6px; }

/* "Sold out today" tag (section map gap 8), as Build drew it 11-12 with Lisa's tokens (_panciuto-build/states/
   3-soldout-menu.html:364-365); not in Lisa's v14, so not in the generated files. */
.pc-soldout { display: inline-block; margin-left: 10px; padding: 5px 8px 4px; background: var(--brand-1); color: var(--surface-light-bg); font-family: var(--font-family-heading); font-weight: var(--font-weight-h5); font-size: 13px; line-height: 1; letter-spacing: var(--letter-spacing-btn-label); text-transform: uppercase; vertical-align: 0.15em; white-space: nowrap; }
.pc-dish__price .pc-soldout { color: var(--surface-light-bg); font-size: 15px; vertical-align: 0.4em; }

/* Dish page facts: the allergens line links to Contact (Amy 11-13). Lisa's facts had no link, so it got the browser's blue
   on black (axe colour-contrast, 11-13). Her cream text, underlined so it still reads as a link. */
.pc-dish__facts a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* JavaScript off: the menu button can't open anything, so hide it. Lisa's phone header already shows the nav words
   (Menu, Visit) beside the logo, so every page stays reachable (Origin swaps html.no-js for .js before paint). */
.no-js .menu-toggle { display: none; }

/* Contact form spam trap (Origin's engine): hidden as in Origin's contact-form-section.css, which this page doesn't load
   (the skin draws the form). Seen 11-13: "Leave this empty" showed on the Contact page. */
.pc-form .contact-form__trap { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Home intro, 768px and up: the text wells take part in the box's height, so bigger text (WCAG 1.4.12 text spacing)
   grows the box instead of sliding under the "Feast your eyes" panel, which overlaps the intro's last 121px (home.css
   .pc-feast-wrap). At normal text the wells + 121px are shorter than Lisa's 4:3 box, so nothing moves. The video keeps
   its own clipping (.pc-intro__media). Found 11-13 by the gate's spacing check at 810 ("Hello Hyde Park" hidden). */
@media (min-width: 768px) {
	.pc-intro { overflow: visible; }
	.pc-wells { position: relative; padding-bottom: 121px; box-sizing: border-box; }
}

/* Live Google map (functions.php panciuto_map_html): fills Lisa's map strip exactly as the picture did; the picture sits
   behind it until Google paints. Skip map shows when focused (screen-reader-text focus style). */
.pc-map__live { display: block; width: 100%; height: 100%; border: 0; background: var(--surface-dark-bg) center / cover no-repeat; }
.is-map-focus { outline: calc(var(--focus-ring-width) + 2px) solid var(--focus-ring-contrast); outline-offset: calc(-1 * var(--focus-ring-width) - 4px); } /* black: the skin's cream ring vanished on Google's near-white map (screenshot 11-16); black is the ring's own contrast colour */ /* 11-16 quality-check: a keyboard user tabbing into the live map saw no ring (WCAG 2.4.7). The browser can't style a focused cross-site frame, so functions.php's map script marks the map's box; same ring as links, drawn inside the box (an outline paints over the map) so nothing clips it. */
.pc-map__live:not([src]) { display: none; } /* 11-14: the map waiting to load near the screen (or, JavaScript off, the empty one beside the <noscript> map) takes no room */
.pc-map__skip:focus { position: absolute; z-index: 3; left: 12px; top: 12px; width: auto; height: auto; clip: auto; clip-path: none; padding: 10px 14px; background: var(--surface-light-bg); color: var(--surface-light-text); }
