/* OP-Web additions to OP-Design's site-v1.css (vendored unchanged). */
/* Google Play badge (W4): Google's file unchanged, with clear space of a quarter of the badge height on every side
   (Design docs/site-v1.md). The EN file carries it; the TR, es, es-ES, pt and pt-PT files' art reaches their sides, so it is added here. */
.play { justify-self: start; } /* under 600 px the bands' grid would stretch it (Design 26.11) */
.play img { display: block; }
/* The padding sits outside the drawn file (box 186x73, hero 216x85), so the art keeps its 0.25 scale (Design 26.11). */
.play img.badge-tr,
.play img.badge-es,
.play img.badge-es-ES,
.play img.badge-pt,
.play img.badge-pt-PT { box-sizing: content-box; padding: 5px 12px; }
.play.lg img.badge-tr,
.play.lg img.badge-es,
.play.lg img.badge-es-ES,
.play.lg img.badge-pt,
.play.lg img.badge-pt-PT { padding: 6px 14px; }
/* Viewer entry pages (W2): the site's page while choosing a file, the viewer's layout once a file is open. The
   viewer's own header and footer stay hidden on the site view; the site's header and footer hide while viewing. */
[data-entry] .w-header { display: none; }
[data-entry] body:not(.is-viewing) .w-footer { display: none; }
[data-entry] body.is-viewing .s-top, [data-entry] body.is-viewing .s-foot { display: none; }
[data-entry] body.is-viewing { font-size: var(--type-body-m-size); line-height: var(--type-body-m-line); }
.fbox.is-dragover { border-style: solid; border-color: var(--accent-default); background: var(--surface-selected); }
/* Reflow at 320 px and 200% text (WCAG 1.4.10, W6): grid columns may shrink below their content, long words break
   (site containers only, never the viewer), and the licence text wraps. */
.wrap { overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
pre.licence { white-space: pre-wrap; }
/* The skip link shows when it has focus (WCAG 2.4.1 and 2.4.7, W6). */
a.vh:focus { position: fixed; z-index: 100; inset-block-start: 8px; inset-inline-start: 8px; width: auto; height: auto; clip: auto;
  overflow: visible; white-space: normal; padding: 8px 12px; border-radius: 8px; background: var(--surface-page); color: var(--text-link); }
/* The viewer's icon-only buttons and hidden file input set no font; the browser's default "Arial" would then load
   the engine's Arial face (109 KB) before any intent. They take the UI font on entry pages (first paint, W6). */
[data-entry] .op-icon-btn, [data-entry] input.w-sr { font-family: var(--font-ui); }
/* Language menu (comms 0015), shown once more than two languages are built: a details element, no script. */
.s-langs { position: relative; }
.s-langs > summary { list-style: none; cursor: pointer; border-radius: 8px; }
.s-langs > summary::-webkit-details-marker { display: none; }
.s-langs > summary:hover { background: var(--surface-hover); }
.s-langs ul { position: absolute; inset-inline-end: 0; top: 100%; z-index: 20; min-inline-size: 12rem; max-inline-size: calc(100vw - 32px);
  list-style: none; margin: 0; padding: 4px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--surface-raised); }
.s-langs a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 8px; color: var(--text-primary); text-decoration: none; }
.s-langs a:hover { background: var(--surface-hover); }
.s-langs a[aria-current] { font-weight: 600; }
/* Under 1024 px the menu shows only the globe (its name stays for screen readers), so the header and the nav fit
   with the longer Spanish and Portuguese labels (measured 28.11, 840 to 1280 px). */
@media (max-width: 63.9375em) {
  .s-langs > summary span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Longer Spanish and Portuguese words (comms 0015): headings may hyphenate, and big headings step down on narrow
   screens to a rem floor (1.75rem), so they still grow with the browser's text size; nothing else shrinks. */
:root:is(:lang(es), :lang(pt)) :is(h1, h2) { hyphens: auto; }
@media (max-width: 37.4375em) { :root:is(:lang(es), :lang(pt)) h1 { font-size: 1.75rem; } }
