/* ORVEKA: design changes approved in the design lab on 24 Nov 2026 (client choices pasted by Matthew).
   Loaded last by app.py, so removing its <link> there reverts every visual change below in one step.
   Text changes (dashes, "Pomáháme", removed developer note) live in the HTML and translation files. */

/* ---------- 1.2 Menu: current page highlighted (orveka-navigace.js sets aria-current),
   "Pomáháme" in the same colour as the other links (was green #4e882b, 4.30:1). */
body .site-header.orveka-global-header .main-nav a.orveka-impact-link:not([aria-current=page]){color:inherit}
body .site-header.orveka-global-header .main-nav a.orveka-impact-link:not([aria-current=page]):hover,
body .site-header.orveka-global-header .main-nav a.orveka-impact-link:not([aria-current=page]):focus-visible{color:#0b6fb8}

/* ---------- AI 1 (variant B): section eyebrows (small tracked capitals with a green line) removed. */
.eyebrow,.ct-eyebrow,.vet-eyebrow,.oc-kicker,.shop-eyebrow,.shop-other-eyebrow,.about-kicker,
.orth-eyebrow,.prot-eyebrow,.wheel-eyebrow,.impact-eyebrow,.page > .mark{display:none!important}
/* The owner page uses its eyebrow as the page's only h1: hidden visually, kept for screen readers and search. */
h1.owner-page-title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
/* Labels inside cards stay (they carry information), without widened letter-spacing (CLAUDE.md 8b). */
.collab-label,.ct-path-kicker,.ct-direct-kicker,.vet-role-label,.orth-location,.prot-location,.wheel-category{letter-spacing:0!important}

/* ---------- AI 2 + AI 3 note: no pastel circles behind icons; icons stay. Step numbers (1 2 3 4) keep their circles. */
.symbol,.step-icon,.collab-symbol,.ct-path-icon,.ct-direct-icon,.owner-vet-note-symbol,.owner-honest-icon,
.vet-icon,.vet-step-symbol,.vet-role-ico,.vet-benefit-symbol,.orth-note-icon,.prot-info-icon,.wheel-advice-icon,
.product-icon{background:none!important;background-image:none!important;box-shadow:none!important;border-color:transparent!important}
/* Product icons were white on a coloured disc; without the disc they take the card's colour (3:1 or more on white). */
.orthoses .product-icon{color:#1f8a35!important}
.prostheses .product-icon{color:#006cc8!important}
.wheelchairs .product-icon{color:#b36b00!important}
.aids .product-icon{color:#7457b3!important}

/* ---------- AI 4: Kontakt cards, even 1px border instead of the 5px coloured top stripe. */
.ct-path{border-top:1px solid #dfebf3!important}

/* ---------- AI 7: product names in normal case (ORTÉZY, PROTÉZY, REHABILITAČNÍ VOZÍKY -> like "E-shop"). */
.product-card h3{text-transform:lowercase!important}
.product-card h3::first-letter{text-transform:uppercase}
html[lang=de] .product-card.aids h3{text-transform:none!important} /* "Online-Shop" keeps its capital S */

/* ---------- Apple 1: "Osobní odběr v ČR" broke into one syllable per line on phones. */
label:has(> input[name=deliveryMode]){flex-wrap:wrap!important;column-gap:12px!important}
label:has(> input[name=deliveryMode]) > b{flex:1 1 auto!important;min-width:0!important;width:auto!important}
label:has(> input[name=deliveryMode]) > small{flex:1 0 100%!important;padding-left:32px!important;text-align:left!important}

/* ---------- Apple 2: contrast 4.5:1 for text (measured with execution/design_audit.py). Site colours, one step deeper:
   green #2e7d32 (5.1:1 on white), blue #0b6fb8 for fills (5.2:1 with white text), #0b5fa0 for blue text, grey #526a79. */
a.process-owner,#pro-majitele a.collab-cta,button.owner-form-submit{background:#2e7d32!important;background-image:none!important}
a.process-clinic,#pro-veterinare a.collab-cta,button.vet-partner-btn,button.vet-form-submit{background:#0b6fb8!important;background-image:none!important}
#pro-majitele .collab-label{color:#2e7d32!important}
#pro-veterinare .collab-label{color:#0b5fa0!important}
/* The two role labels keep their hues, one step darker. */
.vet-role-clinic .vet-role-label{color:#0b5fa0!important}
.vet-role-orveka .vet-role-label{color:#1d7036!important}
.vet-training-note strong,.vet-training-note strong *{color:#0b5fa0!important}
.orth-location,.prot-location{color:#0b5fa0!important}
.orth-variants-icon,.prot-variants-icon{color:#2e7d32!important}
.shop-state-note > span{color:#0b6fb8!important}
.ct-field em{color:#b3263e!important}
.oc-muted,#oc-price-totals .oc-hint strong,#oc-price-items .oc-price-row > span,#oc-price-totals .oc-total-row > span:first-child{color:#526a79!important}
.oc-stephead > span{background:#2e7d32!important}
.owner-number{color:#2e7d32!important}
.vet-step-number{color:#0b5fa0!important}

/* ---------- Apple 3: country select as tall as the other fields on iPhone (was 23 px). */
select#oc-country{height:44px!important;font-size:16px!important}

/* ---------- Apple 4: comfortable line length (~70 characters) and no hand-made line breaks. */
#kdy-mohou-pomoci p.lead,.products-lead,.oc-panel p.oc-muted,.orth-outro-panel > p,.orth-clinical-note p,
.about-mission-panel > p,.owner-honest-note p,.owner-vet-note p,.vet-training-note p{max-width:68ch!important}
#kdy-mohou-pomoci p.lead br,.products-lead br{display:none}

/* ---------- Round 2, 1: phone header as the client described it. Logo, menu, language on the right in the same
   shape and size as the menu button; "Objednat" floats bottom right; on the order page it is hidden and the
   existing price bar sits in that corner. */
@media (max-width:767px){
  body .site-header.orveka-global-header .header-actions{margin-left:auto!important;justify-content:flex-end!important;align-items:center!important}
  body .site-header.orveka-global-header .header-actions details.orveka-lang-selector{min-height:0!important;height:auto!important}
  body .site-header.orveka-global-header .header-actions details.orveka-lang-selector > summary{min-height:0!important;height:31px!important;line-height:1!important;
    box-sizing:border-box!important;display:flex!important;align-items:center!important;padding:0 12px!important;
    background:#f0f7fc!important;border:1px solid #c8dce9!important;border-radius:9px!important}
  /* The header slides away while scrolling (transform), so a fixed button inside it would move with it.
     orveka-final.js adds a separate a.orveka-floating-order to <body>; the header button is hidden on phones. */
  body .site-header .header-actions a.orveka-order-cta,body .site-header .header-actions a.order{display:none!important}
  /* 30 Nov 2026 (Matthew: "ať je to dole na liště, a když lišta není, ať je to dole na hraně telefonu"): iOS Safari ends the
     viewport at the top of its bottom toolbar while the toolbar shows (inset 0 there), so 8 px puts the button right on the
     toolbar; with the toolbar gone the viewport reaches the screen edge and the inset (home indicator) keeps it just above it.
     The old 20 px + inset left it floating high over the content. */
  a.orveka-floating-order{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:max(8px,env(safe-area-inset-bottom,0px));
    z-index:60;display:flex;align-items:center;height:48px;padding:0 22px;border-radius:9px;background:#70b437;color:#fff;
    font-weight:700;font-size:16px;text-decoration:none;box-shadow:0 6px 18px rgba(16,39,79,.25);transition:opacity .2s,transform .2s}
  /* 27 Nov 2026 (review L1-01): same dark green as the hero owner button (white text 5.1:1; the old light green gave 2.5:1). L1-02: the button slides away, see .is-hidden and orveka-revize-20261127.js. */
  a.orveka-floating-order.is-hidden{opacity:0;transform:translateY(16px);pointer-events:none}
  /* 30 Nov 2026 (Matthew): full bottom bar like other apps, not too tall: white dock across the bottom (8 px + 46 px button
     + 8 px, plus the home-indicator inset), one hairline on top, the green button inside. orveka-revize-20261127.js wraps
     the button in it and toggles .is-hidden on the dock (over the hero buttons and the footer only). */
  .orveka-order-dock{position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid #dbe5ee;
    padding:8px max(16px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
    transition:transform .2s}
  .orveka-order-dock.is-hidden{transform:translateY(100%);pointer-events:none}
  .orveka-order-dock a.orveka-floating-order{position:static;width:100%;height:46px;justify-content:center;padding:0 16px;border-radius:12px;box-shadow:none;font-size:17px}
  html:not([data-page="objednat-ortezu"]) body{padding-bottom:72px}
  /* 27 Nov 2026: the floating button hides over the footer (L1-02), so pages with the footer need no white strip under it. */
  html:not([data-page="objednat-ortezu"]) body:has(footer.orveka-footer){padding-bottom:0}
}
@media (min-width:768px){a.orveka-floating-order,.orveka-order-dock{display:none}}

/* Round 2, 3: the e-shop info box was empty once its sentence went; hide it while it has no text. */
.shop-state-note:not(:has(strong:not(:empty))){display:none!important}

/* Client feedback 25 Nov 2026 (Matthew), point by point. */
/* 1: "Pro majitele" and "Pro veterináře" under the process steps: the same width, centred. */
@media (min-width:768px){
  body .process-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:min(100%,940px)!important;
    margin-left:auto!important;margin-right:auto!important;justify-content:center!important}
  body .process-actions :is(a.process-owner,a.process-clinic){width:100%!important;max-width:none!important;box-sizing:border-box!important}
}
/* 3: the consultation dialog's photo note has no icon on the orthoses page, so its text sat in the 36 px icon column. */
.owner-files-note > div:only-child{grid-column:1 / -1}
/* 12: the e-shop box on the order page gets its heading (the review build hid it in Czech); its kicker would repeat it. */
html body #oc-app#oc-app#oc-app .orveka-landing-shop .orveka-landing-description h2{display:block!important}
html body #oc-app .orveka-landing-shop .oc-kicker{display:none!important}
/* 13: the two big order buttons about a quarter lower; "Pokračovat k objednávce" matches them. */
.order-page .orveka-landing-cta{min-height:57px!important;padding-top:10px!important;padding-bottom:10px!important}
body #oc-app button#oc-continue-order{min-height:57px;border-radius:15px;font-size:18px;padding:10px 22px}
@media (max-width:1100px){.order-page .orveka-landing-cta{min-height:50px!important}body #oc-app button#oc-continue-order{min-height:50px}}
@media (max-width:767px){.order-page .orveka-landing-cta{min-height:48px!important}body #oc-app button#oc-continue-order{min-height:48px}}
/* 15: the language list opens to the left, so on a phone it no longer runs off the right edge. */
.site-header details.orveka-lang-selector .orveka-lang-choices{left:auto!important;right:0!important}
/* Found while checking: list items are flex with an 11 px gap, and the typography script wraps "a lehké" in a span,
   which became its own flex item, so words got 11 px gaps ("Kvalitní   a lehké   materiály"). */
li .orveka-type-nowrap{display:contents}
/* 14 (client chose A in the lab, 25 Nov 2026): on phones the products sit on a full-width light blue band, so it is
   clear where the product section starts and ends. Desktop unchanged. */
@media (max-width:767px){
  #produkty{background:#e6f1fa;padding:28px 0 30px!important;margin:18px 0;border-top:1px solid #cfe2f1;border-bottom:1px solid #cfe2f1}
  #produkty .product-card{border:1px solid #cfe0ee!important;box-shadow:0 6px 18px rgba(16,60,100,.08)!important}
}

/* Matouš 25. 11.: "Objednat" white on a phone too, like on desktop; orveka-mobile.js greenContrast sets a dark ink inline. */
@media(max-width:767px){a.orveka-floating-order,a.orveka-floating-order *,a.orveka-order-cta,a.orveka-order-cta *{--orveka-mobile-contrast-ink:#fff!important;color:#fff!important}}

/* Clinic stand 26 Nov 2026 (Matthew): "Vzorky ORVEKA pro vaši kliniku" larger, photo of the stand beside the text,
   link to the stand in the e-shop. Markup from tools/clinic_stand_20261126.py. */
.vets-page .vet-training-note.vet-samples-note{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:44px;align-items:center;padding:44px 48px;margin-block:32px}
.vets-page .vet-samples-note h3{font-size:36px!important;line-height:1.15;margin:0 0 16px}
.vets-page .vet-samples-note .vet-samples-text p{font-size:18px;line-height:1.55;max-width:none!important}
.vets-page .vet-samples-link{display:inline-flex;align-items:center;min-height:48px;margin-top:22px;padding:0 24px;border-radius:12px;background:#0a76cf;color:#fff!important;font-weight:600;font-size:16px;text-decoration:none}
.vets-page .vet-samples-link:hover{background:#0862ad}
.vets-page .vet-samples-link:focus-visible{outline:3px solid #0b5fa0;outline-offset:3px}
.vets-page .vet-samples-photo{display:block;border-radius:14px;overflow:hidden;border:1px solid #c8e6fa;background:#fff}
.vets-page .vet-samples-photo img{display:block;width:100%;height:auto}
@media(max-width:900px){
  .vets-page .vet-training-note.vet-samples-note{grid-template-columns:minmax(0,1fr)!important;gap:22px;padding:24px 20px}
  .vets-page .vet-samples-note h3{font-size:28px!important}
  .vets-page .vet-samples-link{width:100%;justify-content:center}
}
/* E-shop 26 Nov 2026: descriptions keep their line breaks (technical parameters), #produkt-<id> lands below the header. */
.otheraids-page .shop-product-main>p:not(.shop-product-tag){white-space:pre-line}
.otheraids-page .shop-product{scroll-margin-top:110px}
