/*
Theme Name: M.M. Orologi
Theme URI: https://www.mmorologi.it
Author: All4 Agency
Author URI: https://all4.agency
Description: Tema su misura per M.M. Orologi: minimale, veloce, senza page builder.
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.1
Text Domain: mmorologi
*/

/* Layout: a white gallery wall — warm-grey plinths in a 2→4 column grid, one black action per screen, references set like engraved serials */
:root {
  --paper: #FFFFFF;
  --plinth: #F2F1EE;
  --ink: #141414;
  --mute: #74726D;
  --line: #E6E4E0;
  --avail: #2D6A4E;
  --on-ink: #FFFFFF;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gut: clamp(16px, 4vw, 44px);
  --maxw: 1320px;
  --t-xs: 11px; --t-s: 13px; --t-m: 15px; --t-l: 19px; --t-xl: clamp(24px, 3.2vw, 34px); --t-xxl: clamp(30px, 5vw, 56px);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-m)/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: .02em; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.eyebrow { font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
h1, h2, h3 { font-weight: 500; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
.price { font-variant-numeric: tabular-nums; }
.price s { color: var(--mute); margin-right: .45em; font-size: .9em; }

/* preview strip */
.preview { background: var(--plinth); color: var(--mute); font-size: var(--t-xs); letter-spacing: .08em; text-align: center; padding: 7px var(--gut); }
.preview b { color: var(--ink); font-weight: 600; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; }
.top-l, .top-r { display: flex; align-items: center; gap: 18px; }
.top-r { justify-content: flex-end; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; margin-inline: -8px; }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.5; }
.mark { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.mark b { font-weight: 600; font-size: 17px; letter-spacing: .34em; margin-right: -.34em; }
.mark span { font-size: 9px; letter-spacing: .42em; margin-right: -.42em; color: var(--mute); margin-top: 5px; }
.nav-desk { display: none; gap: 26px; font-size: var(--t-s); }
.nav-desk a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 900px) { .nav-desk { display: flex; } .burger { display: none; } }

/* menu panel */
.menu { position: fixed; inset: 0; z-index: 40; background: var(--paper); padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gut) 30px; display: flex; flex-direction: column; gap: 30px; overflow-y: auto; }
.menu-head { display: flex; justify-content: space-between; align-items: center; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: 26px; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.menu nav a small { font-size: var(--t-s); color: var(--mute); }
.menu .menu-foot { color: var(--mute); font-size: var(--t-s); display: grid; gap: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; font-size: var(--t-s); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--ink); transition: background .2s, color .2s; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #2B2B2B; }
.btn-line { background: var(--paper); color: var(--ink); }
.btn-line:hover { background: var(--plinth); }
.btn-block { width: 100%; }
.link-u { font-size: var(--t-s); border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }

/* hero slider: full width, the last 6 watches "in evidenza" */
.hs { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); }
.hs-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-slide { position: relative; scroll-snap-align: start; min-width: 0; }
.hs-img { position: relative; }
.hs-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 56%; opacity: .94; }
@media (min-width: 760px) { .hs-img img { aspect-ratio: 16 / 7; max-height: 640px; } }
.hs-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, var(--ink) 0%, rgba(10,10,10,.55) 16%, rgba(10,10,10,0) 38%); }
@media (min-width: 760px) { .hs-img::after { background: linear-gradient(to top, rgba(10,10,10,.84) 0%, rgba(10,10,10,.5) 40%, rgba(10,10,10,0) 72%); } }
.hs-txt { position: relative; z-index: 1; margin-top: -72px; padding: 0 var(--gut) 76px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
@media (min-width: 760px) { .hs-txt { position: absolute; left: 0; right: 0; bottom: 0; margin-top: 0; padding: 0 var(--gut) calc(clamp(22px, 4vw, 44px) + 50px); } }
.hs-txt .eyebrow { color: rgba(255,255,255,.8); }
.hs-name { font-size: var(--t-xxl); line-height: 1.06; max-width: 18ch; }
.hs-meta { display: flex; gap: 10px 16px; align-items: baseline; justify-content: center; flex-wrap: wrap; font-size: 18px; }
.hs-ref { font-size: var(--t-s); color: rgba(255,255,255,.72); }
.hs-meta s { color: rgba(255,255,255,.6); }
.hs-txt .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); min-width: min(300px, 100%); margin-top: 4px; }
.hs-txt .btn:hover { background: var(--plinth); }
.hs-ctrl { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin-inline: auto; display: flex; align-items: center; gap: 16px; padding-block: 0 clamp(12px, 2vw, 22px); }
.hs-count { font-size: var(--t-xs); color: rgba(255,255,255,.75); min-width: 54px; font-variant-numeric: tabular-nums; }
.hs-bars { flex: 1; display: flex; gap: 6px; min-width: 0; }
.hs-bar { flex: 1; height: 22px; display: flex; align-items: center; }
.hs-bar span { display: block; width: 100%; height: 2px; background: rgba(255,255,255,.28); position: relative; overflow: hidden; }
.hs-bar span::after { content: ""; position: absolute; inset: 0; background: var(--on-ink); transform: scaleX(0); transform-origin: left; }
.hs-bar.done span::after { transform: scaleX(1); }
.hs-bar.on span::after { animation: hsfill 6s linear forwards; }
.hs.paused .hs-bar.on span::after { animation-play-state: paused; }
@keyframes hsfill { to { transform: scaleX(1); } }
@media (max-width: 759px) { .hs-name { font-size: 30px; } .hs-meta { font-size: 17px; } }
@media (min-width: 900px) {
  .hs-img::after { background: linear-gradient(to right, rgba(10,10,10,.8) 0%, rgba(10,10,10,.48) 32%, rgba(10,10,10,0) 60%), linear-gradient(to top, rgba(10,10,10,.6) 0%, rgba(10,10,10,0) 28%); }
  .hs-txt { left: max(var(--gut), calc((100vw - var(--maxw)) / 2 + var(--gut))); right: auto; top: 0; width: min(520px, 40vw); padding: 0 0 64px; justify-content: center; align-items: flex-start; text-align: left; }
  .hs-name { max-width: 13ch; }
  .hs-meta { justify-content: flex-start; }
}
.hs-nav { display: flex; gap: 12px; }
.hs-nav svg { stroke: var(--on-ink) !important; }
.hs :focus-visible { outline-color: var(--on-ink); }
@media (prefers-reduced-motion: reduce) { .hs-bar.on span::after { animation: none; transform: scaleX(1); } #hsPause { display: none; } }

/* sections */
.sec { padding-block: clamp(44px, 7vw, 88px); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 3vw, 32px); }
.sec-head h2 { font-size: var(--t-xl); }
.sec-head.center { justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 10px; }

/* grid + card */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 20px; } }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.plinth { position: relative; background: var(--plinth); aspect-ratio: 4 / 5; overflow: hidden; }
.plinth img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .plinth img { transform: scale(1.035); }
.tag { position: absolute; top: 10px; left: 10px; background: var(--paper); color: var(--ink); font-size: var(--t-xs); padding: 3px 8px; letter-spacing: .04em; }
.sold-badge { position: absolute; top: 10px; right: 10px; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-size: 9px; letter-spacing: .14em; font-weight: 600; text-transform: uppercase; }
.card.is-sold .plinth img { filter: saturate(.55); opacity: .9; }
.meta { display: grid; gap: 3px; text-align: center; padding-inline: 4px; }
.meta .brand { font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.meta .name { font-size: var(--t-m); line-height: 1.3; }
.meta .ref { font-size: var(--t-xs); color: var(--mute); }
.meta .price { margin-top: 4px; font-size: var(--t-m); }
.meta .sold-txt { margin-top: 4px; font-size: var(--t-s); color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }

/* brand logos carousel */
.logos { border-bottom: 1px solid var(--line); }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marq 90s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; }
@keyframes marq { to { transform: translateX(-50%); } }
.logo-item { display: grid; place-items: center; padding: clamp(26px, 3.4vw, 40px) clamp(30px, 4.4vw, 64px); color: var(--ink); opacity: .8; transition: opacity .2s; }
.logo-item:hover, .logo-item:focus-visible { opacity: 1; }
.logo-item svg { height: calc(var(--h) * .8); width: auto; display: block; }
@media (min-width: 900px) { .logo-item svg { height: var(--h); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee-track { animation: none; width: auto; justify-content: center; } .marquee-set { flex-wrap: wrap; justify-content: center; } .marquee-set[aria-hidden="true"], .logo-item[data-dup] { display: none; } }

/* minimal line icons */
.ic { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* sell band */
.sell { background: var(--plinth); }
.sell-in { display: grid; gap: clamp(26px, 4vw, 56px); padding-block: clamp(44px, 7vw, 88px); }
@media (min-width: 900px) { .sell-in { grid-template-columns: 5fr 7fr; align-items: start; } }
.sell h2 { font-size: var(--t-xl); margin-top: 10px; }
.sell p { color: var(--mute); max-width: 46ch; margin: 14px 0 26px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: var(--t-s); color: var(--mute); grid-row: span 2; padding-top: 2px; }
.steps b { font-weight: 500; }
.steps span { color: var(--mute); font-size: var(--t-s); }

/* services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.services div { display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.services .ic { margin-bottom: 8px; }
.services b { font-weight: 500; }
.services span { color: var(--mute); font-size: var(--t-s); }

/* sold strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 22%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
@media (max-width: 899px) { .strip { grid-auto-columns: 42%; } }
.strip .card { scroll-snap-align: start; }
.strip-note { margin-top: 18px; color: var(--mute); font-size: var(--t-s); text-align: center; }
.strip-note a { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* catalog */
.cat-head { padding-top: clamp(28px, 5vw, 56px); display: grid; gap: 8px; }
.cat-head h1 { font-size: var(--t-xxl); line-height: 1.05; }
.cat-head p { color: var(--mute); margin: 0; }
.toolbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 60px); z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); margin-top: 22px; }
.toolbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.chip { font-size: var(--t-s); padding: 7px 14px; border: 1px solid var(--line); white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tool-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 0 10px; height: 36px; min-width: 0; }
.search svg { width: 16px; height: 16px; stroke: var(--mute); fill: none; stroke-width: 1.6; flex: none; }
.search input { border: 0; outline: 0; font: inherit; font-size: var(--t-s); width: 13ch; background: transparent; color: var(--ink); }
.select { font: inherit; font-size: var(--t-s); height: 36px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 0 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button { font-size: var(--t-s); padding: 0 12px; height: 34px; }
.seg button[aria-pressed="true"] { background: var(--plinth); font-weight: 500; }
.count { font-size: var(--t-s); color: var(--mute); padding-block: 18px 22px; }
.empty { padding: 60px 0; text-align: center; color: var(--mute); display: grid; gap: 14px; justify-items: center; }

/* product */
.crumbs { font-size: var(--t-s); color: var(--mute); padding-block: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; gap: clamp(22px, 4vw, 64px); }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } .pdp-info { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); } }
.gal { display: grid; gap: 10px; min-width: 0; }
.gal-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--plinth); }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
@media (min-width: 900px) { .gal-track img { aspect-ratio: 1 / 1; } }
.gal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { width: 64px; flex: none; aspect-ratio: 4 / 5; background: var(--plinth); opacity: .55; transition: opacity .2s; outline-offset: 1px; }
.thumbs button[aria-current="true"] { opacity: 1; outline: 1px solid var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal-n { font-size: var(--t-xs); color: var(--mute); }
.pdp-info { display: grid; gap: 18px; min-width: 0; }
.status { display: flex; gap: 10px; align-items: center; font-size: var(--t-s); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--avail); }
.status.sold .dot { background: var(--mute); }
.pdp-info h1 { font-size: var(--t-xl); line-height: 1.15; }
.pdp-ref { font-size: var(--t-s); color: var(--mute); }
.pdp-price { font-size: 24px; }
.pdp-cta { display: grid; gap: 10px; }
.pdp-note { font-size: var(--t-s); color: var(--mute); }
.spec { border-top: 1px solid var(--ink); }
.spec h2 { font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 500; padding: 16px 0 6px; }
.spec dl { margin: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.spec dt, .spec dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--t-s); }
.spec dt { color: var(--mute); }
.spec dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: var(--t-m); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--mute); }
.acc details[open] summary::after { content: "−"; }
.acc details p { margin: 0 0 18px; color: var(--mute); font-size: var(--t-s); max-width: 60ch; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.foot-in { display: grid; gap: 30px; padding-block: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .foot-in { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot h3 { font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin-bottom: 10px; }
.foot p { margin: 0; font-size: var(--t-s); }
.foot .mark { align-items: flex-start; }
.foot .mark b, .foot .mark span { margin-right: 0; }
.foot-tag { color: var(--mute); margin-top: 14px !important; max-width: 34ch; }
.foot-base { border-top: 1px solid var(--line); padding-block: 16px; font-size: var(--t-xs); color: var(--mute); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.copy { cursor: copy; border-bottom: 1px dotted var(--mute); }

/* whatsapp fab */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 30; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.fab svg { width: 26px; height: 26px; fill: var(--on-ink); }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); transform: translateX(-50%); background: var(--ink); color: var(--on-ink); font-size: var(--t-s); padding: 9px 16px; z-index: 50; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== WordPress build additions ===== */
.skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--paper); padding: 10px 14px; z-index: 100; }
.mark { color: var(--ink); }
.mark svg { height: 34px; width: auto; display: block; }
.menu-head .mark svg { height: 30px; }
.foot-logo { width: 120px; height: auto; display: block; }
.nav-desk a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.card[hidden] { display: none !important; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: var(--t-l); margin: 1.6em 0 .6em; }
.page-head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(18px, 3vw, 28px); display: grid; gap: 8px; }
.page-head h1 { font-size: var(--t-xxl); line-height: 1.05; }
.page-head p { color: var(--mute); margin: 0; max-width: 60ch; }
.contact-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-block: 32px; }
.contact-grid h3 { font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin-bottom: 8px; }
.contact-grid p { margin: 0; }
.two-col { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }

/* sell form */
.mm-form { display: grid; gap: 28px; }
.mm-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; }
.mm-form legend { font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); padding: 0 0 12px; border-bottom: 1px solid var(--line); width: 100%; margin-bottom: 4px; }
.mm-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mm-field { display: grid; gap: 6px; min-width: 0; }
.mm-field label, .mm-label { font-size: var(--t-s); }
.mm-field .req { color: var(--mute); }
.mm-field input[type="text"], .mm-field input[type="email"], .mm-field input[type="tel"], .mm-field select, .mm-field textarea { font: inherit; font-size: var(--t-m); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; width: 100%; min-width: 0; }
.mm-field textarea { min-height: 110px; resize: vertical; }
.mm-field input:focus, .mm-field select:focus, .mm-field textarea:focus { outline: none; border-color: var(--ink); }
.mm-checks { display: flex; gap: 22px; flex-wrap: wrap; }
.mm-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-s); }
.mm-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.mm-drop { position: relative; border: 1px dashed #BDBAB4; background: var(--plinth); padding: 26px 18px; text-align: center; display: grid; gap: 6px; justify-items: center; transition: border-color .2s, background .2s; }
.mm-drop.is-over { border-color: var(--ink); background: #ECEAE6; }
.mm-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.mm-drop small { color: var(--mute); font-size: var(--t-xs); }
.mm-files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.mm-files li { position: relative; aspect-ratio: 1; background: var(--plinth); overflow: hidden; font-size: 10px; color: var(--mute); display: grid; place-items: center; text-align: center; padding: 4px; }
.mm-files img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mm-notice { padding: 16px 18px; border: 1px solid var(--ink); font-size: var(--t-s); }
.mm-notice.ok { background: var(--plinth); }
.mm-notice.err { border-color: #9B2C2C; color: #9B2C2C; }
.mm-form .btn[disabled] { opacity: .6; cursor: progress; }
.chip[aria-current="page"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
/* WordPress adds width/height attributes to images: let the design's aspect ratios win */
.hs-img img, .gal-track img, .thumbs img, .plinth img { height: auto; }
.plinth img { height: 100%; }
@media (min-width: 900px) { .gal-track img { aspect-ratio: 1 / 1; } }

/* ===== QA fixes (audit 8 Oct 2026) ===== */
:root { --mute: #6C6A65; } /* 4.8:1 on the plinth grey, 5.4:1 on white (WCAG AA) */
.mm-drop:focus-within { border-style: solid; border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 3px; }
.search:focus-within { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.btn { text-align: center; line-height: 1.35; padding-block: 12px; }
.thumbs { padding: 3px; margin: -3px; }
.thumbs img { height: 100%; }
.foot-base { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); } /* room for the WhatsApp button at every width */
.mm-drop.is-over { background: #EEECE8; }
@media (max-width: 599px) { .toolbar { position: static; } }
/* Hero: the frame keeps its proportions even while a slide's photo is still loading */
.hs-img { aspect-ratio: 3 / 4; overflow: hidden; }
@media (min-width: 760px) { .hs-img { aspect-ratio: 16 / 7; max-height: 640px; } }
.hs-img img { position: absolute; inset: 0; width: 100%; height: 100% !important; aspect-ratio: auto; max-height: none; }
.hs-img img:not([src]) { visibility: hidden; }
