/* EconoWeb Minimal — collection additions for the Hugo package.
   Kept separate so minimal-collection.css stays byte-identical to the approved
   frozen source. These rules cover the signature link, contact field errors and
   the on-demand cookie-preferences dialog (built dynamically in the prototype). */

/* Skip link — accessibility contract (WCAG 2.4.1). The frozen prototype omitted
   one; per the correction brief a missing prototype skip link is not a waiver.
   Off-screen until focused, then a visible pill in the approved palette. */
.m-skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 999px; background: var(--primary); color: var(--paper); font-weight: 600; font-size: 14px; text-decoration: none; transition: top var(--dur) var(--ease); }
.m-skip:focus { top: 12px; outline: 2px solid var(--paper); outline-offset: 2px; }

.m-sign-mateuss { font-weight: 500; color: var(--ink); text-decoration: none; }
.m-sign-mateuss:hover { color: var(--primary-ink); }

/* Pre-submit demonstration disclosure — shown BEFORE any input is collected on
   the contact and complaints forms. States the form is a local simulation that
   transmits/stores nothing (post-submit DEMO text alone is not sufficient). */
.m-demo-note { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--primary); border-radius: 8px; background: color-mix(in srgb, var(--primary) 8%, transparent); color: var(--ink); font-size: 14px; line-height: 1.5; }

.m-field-err { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--err); }
.m-input[aria-invalid="true"] { border-bottom-color: var(--err); }

/* Cookie preferences dialog */
.m-prefs-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: color-mix(in srgb, var(--ink) 42%, transparent); }
.m-prefs-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.m-prefs-h { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.m-prefs-intro { font-size: 15px; line-height: 1.55; color: var(--body); }
.m-prefs-body { padding: 22px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
.m-prefs-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 18px 26px; border-top: 1px solid var(--line); }
.m-cat-head { display: flex; align-items: center; gap: 12px; }
.m-cat-t { font-size: 16px; font-weight: 600; color: var(--ink); }
.m-cat-always { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--muted); }
.m-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.m-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.m-switch-ui { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); transition: background var(--dur) var(--ease); }
.m-switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: var(--paper); transition: transform var(--dur) var(--ease); }
.m-switch input:checked + .m-switch-ui { background: var(--primary); }
.m-switch input:checked + .m-switch-ui::after { transform: translateX(18px); }
.m-switch input:focus-visible + .m-switch-ui { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Frozen landing cascade restoration (responsive fidelity) ─────────────
   minimal-collection.css is vendored byte-identical to the frozen deliverable.
   That file appends collection-wide "ADDITIONS" (catalog/interior card rules)
   AFTER the base skin, and three of them override the landing sections:
     .m-proc{display:flex;flex-wrap:wrap;grid-template-columns:none}
     .m-proc .m-step{flex:1 1 150px;max-width:300px}  (+ flex-basis:130px ≤600)
     .m-dots{flex-wrap:wrap;max-width:100%}
   In the frozen LANDING render those same override blocks sit in <head> BEFORE
   the base skin, so the base process GRID wins below 1025px (6 → 3 → 2 columns)
   and the ≤360px carousel wrap (a frozen <head> rule absent from the external
   file) applies. Vendoring the external file verbatim inverts that order,
   collapsing the process to a single flex column at ≤600px and dropping the
   ≤360px carousel wrap. We restore the frozen landing cascade here — this sheet
   loads after minimal-collection.css — without editing the byte-identical file.
   Scoped to #main-content (id+class specificity) so it beats the bare-class
   additions, leaves legal/complaints interior pages untouched, and preserves
   the ≥1025px `!important` desktop step distribution in minimal-collection.css. */
#main-content .m-proc { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px 28px; }
@media (max-width: 1000px) { #main-content .m-proc { grid-template-columns: repeat(3, 1fr); row-gap: 36px; } #main-content .m-proc-line { display: none; } }
@media (max-width: 600px) { #main-content .m-proc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 360px) { #main-content .m-car-bar { flex-wrap: wrap; row-gap: 12px; } #main-content .m-dots { margin-left: 0; width: 100%; justify-content: center; } }

/* Legal + Complaints Book page additions */
.m-legal-h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 8px; }
.m-rt > * + * { margin-top: 16px; }
.m-rt h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin-top: 32px; letter-spacing: -0.02em; }
.m-rt p, .m-rt li { font-size: 16px; line-height: 1.7; color: var(--body); }
.m-rt ul { margin-top: 12px; padding-left: 20px; }
.m-rt li + li { margin-top: 6px; }
.m-rt a { color: var(--primary); }
.m-cb-h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin-top: 40px; margin-bottom: 4px; letter-spacing: -0.02em; }
.m-cb-provider { margin-top: 14px; padding-left: 20px; }
.m-cb-provider li { font-size: 16px; line-height: 1.7; color: var(--body); }
.m-cb-provider li + li { margin-top: 4px; }
.m-cb-confirm { margin-top: 32px; padding: 24px 26px; border-radius: var(--r-surface); background: var(--sec-surface); border: 1px solid var(--line); }
.m-cb-confirm-h { font-size: 18px; font-weight: 600; color: var(--ink); }
.m-cb-confirm p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--body); }
.m-cb-confirm-code { margin-top: 12px; }

/* Approved logos are very wide (about 6:1): never let the header logo push the burger off-screen or the footer logo overflow at 375/320 px. No effect at >= 390 px. */
.m-logo { min-width: 0; max-width: calc(100vw - 104px); }
.m-logo img { max-width: 100%; object-fit: contain; object-position: left center; }
.m-foot-logo { max-width: 100%; object-fit: contain; object-position: left center; }

/* Logo sizing = the approved demo entries' own rules (owner decision 2026-09-30: the approved demos have the correct logo sizes).
   Header: max 230x45 (180x38 up to 600 px); footer: max min(100%,320px) x 60; aspect ratio, asset bytes and object-fit:contain untouched. */
html body img[data-brand-logo]{width:auto!important;height:auto!important;max-width:100%;object-fit:contain;max-height:60px}
html body header img[data-brand-logo="header"]{max-width:230px!important;max-height:45px!important;width:auto!important;height:auto!important}
html body footer img[data-brand-logo="footer"]{max-width:min(100%,320px)!important;max-height:60px!important}
@media(max-width:600px){html body header img[data-brand-logo="header"]{max-width:180px!important;max-height:38px!important}}
