/* =====================================================================
   WordPress glue for the Park Mall 2026 design system:
   page shell, toggled panels, editor content (legal pages), small fixes.
   ===================================================================== */

html { scroll-padding-top: 24px; }
body { margin: 0; background: #FAF8F3; }
.pm { min-height: 100vh; }
/* hidden above the viewport (not off to the side: in RTL a far-left box makes the page scroll sideways) */
.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 100; padding: 10px 16px; background: #0B0C26; color: #fff; border-radius: 6px; transform: translateY(-300%); }
.skip:focus { transform: none; }

/* the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

/* header toggles */
.searchbar[hidden], .mnav[hidden], [data-level-panel][hidden] { display: none !important; }
.burger .i-open, .burger .i-close { display: grid; place-items: center; }
.burger .i-close { display: none; }
.burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: grid; }
.hd-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hd .sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.hd .sugg a { text-decoration: none; }
.hd .nav a.is-on::after { bottom: -1px; height: 2px; }
.hd .status [data-status-label]:empty::before { content: "\00a0"; }

/* footer */
.ft .ft-h { margin: 0 0 18px; font: 600 12.5px/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
[dir="rtl"] .ft .ft-h { letter-spacing: 0; font-size: 14px; }
.ft .hours { margin-top: 22px; display: grid; gap: 4px; }
.ft .hours b { font: 600 26px/1.1 var(--display); letter-spacing: -.02em; }

/* access map shell (the map's own rules are in pages.css) */
.mapx .layer { position: absolute; inset: 0; }

/* inline SVG icons inside links/buttons that come from pm26_arrow('') */
.link svg { flex: none; }

/* editor content: legal pages, single event, fiche descriptions */
.entry { max-width: 760px; color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font: 800 30px/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); margin-top: 1.8em; }
.entry h3 { font: 700 21px/1.25 var(--text); color: var(--ink); margin-top: 1.5em; }
.entry a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry ul, .entry ol { padding-inline-start: 1.3em; }
.entry li + li { margin-top: .4em; }
.entry img { border-radius: var(--r-photo); height: auto; }
[dir="rtl"] .entry h2 { font-family: var(--ar-display); font-weight: 400; letter-spacing: 0; }

/* search results / fallback list */
.results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.results li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.results a { text-decoration: none; font-size: 19px; }
.results p { margin: 6px 0 0; }

/* forms: sending state and server errors */
.form [type="submit"][disabled] { opacity: .6; cursor: progress; }
.form .f-err { color: #B42318; font: 500 14px/1.4 var(--text); margin: 0; }
.hp-field { position: absolute !important; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* logo tiles: give the grid a definite row so the square badge fits the 3:2 tile */
.logo-tile { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.logo-tile img { height: 100%; width: auto; max-width: 100%; justify-self: center; }

/* choice chips inside forms are radio buttons */
.seg .chip { position: relative; }
.seg .chip input.sr { position: absolute; opacity: 0; pointer-events: none; }
.seg .chip:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.seg .chip:has(input:checked) { background: var(--night); border-color: var(--night); color: #fff; }
.field input[type="file"] { padding: 12px 14px; min-height: 52px; background: #fff; cursor: pointer; }
.card-f { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 36px; }
.f-done:focus { outline: none; }
@media (max-width: 760px) { .card-f { padding: 22px; } }
.drop:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.pg-isken .pm { background: #F4F1EA; }

/* restaurant list: franchise mark and small wordmark tiles */
.pg-restaurants .frb { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; font: 600 11.5px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: #B4570F; }
.pg-restaurants .frb::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.pg-restaurants .li .logo-tile .wordmark { font-size: 12px; line-height: 1.1; }
.pg-restaurants .li > span:nth-child(2) { display: block; }

/* fiche without a photo: the brand badge on stone */
.pg-fiche .fiche-logo { display: grid; place-items: center; background: var(--stone); }
.pg-fiche .fiche-logo .logo-tile { width: 56%; border: 0; background: transparent; }
.pg-fiche .fiche .facts b a { text-decoration: none; }

/* events agenda list */
.pg-evenements .ev-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pg-evenements .ev-list a { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.pg-evenements .ev-date { display: grid; place-items: center; height: 72px; border-radius: 8px; background: var(--night); color: rgba(255,255,255,.75); font: 600 12px/1 var(--text); text-transform: uppercase; letter-spacing: .1em; }
.pg-evenements .ev-date b { font: 800 26px/1 var(--display); color: #FFCD34; letter-spacing: -.02em; }
.pg-evenements .ev-list small { display: block; margin-top: 4px; color: var(--ink-3); }
.pg-evenements .dome-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* legal side menu uses links */
.pg-legal .toc a { text-decoration: none; padding: 10px 0; font: 500 15.5px var(--text); color: var(--ink-3); }
.pg-legal .toc a.is-on { color: var(--ink); }
.pg-legal .toc a.is-on::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 1px; background: var(--yellow); margin-inline-end: 10px; }
.pg-fiche main > .wrap > .crumbs { margin-top: 32px; }
