/* Design review 27 Nov 2026 (lab QGa1EMW6cNKXAQpGvk61pf): site-wide fixes, loaded last on every page. Owner: global group (G1).
   Where the real rule is simple it was changed in place (navigace.css: header 84 px, order button green, breakpoint 1000 px;
   design-20261124.css: floating order button). What is here must win against old !important rules, so it uses the same
   !important only where the old rule has one; each block says which finding it builds. */

/* Phone text shortening (Matthew 27 Nov: on the phone shorten texts where no information is lost): .m-more hides on phones only. */
@media (max-width:767px){.m-more{display:none!important}}

/* ---------- L1-01: (30 Nov 2026, Matthew: "vrať ty světlejší barvy") the darker greens and blues of 27 Nov are undone; buttons
   keep their original lighter colours and gradients, only the sizes from L1-14 stay. */

/* ---------- L1-02: floating Order button slides away while reading downwards, returns on scroll up, stays away over the hero
   buttons and the footer (orveka-revize-20261127.js toggles .is-hidden; the transition lives in design-20261124.css). */

/* ---------- L1-04: opened phone menu: cross instead of hamburger, dimmed page, big Order button, no second language box. */
@media (max-width:767px){
  body.orveka-mobile-menu-open::after{content:"";position:fixed;left:0;right:0;bottom:0;top:66px;background:rgba(6,29,71,.38);z-index:30;pointer-events:none}
  body .site-header.orveka-global-header .main-nav{z-index:40}
  body .site-header.orveka-global-header .orveka-nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  body .site-header.orveka-global-header .orveka-nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
  body .site-header.orveka-global-header .orveka-nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  body .site-header.orveka-global-header .main-nav .orveka-mobile-language{display:none!important}
}
body .site-header.orveka-global-header .main-nav a.orveka-menu-order{display:none}
@media (max-width:999px){
  body .site-header.orveka-global-header .main-nav a.orveka-menu-order{display:flex;align-items:center;justify-content:center;margin:16px 0 8px;min-height:52px;
    padding:0 16px;border:0;border-radius:12px;background:#6fb43f;color:#fff;font-weight:700;font-size:18px;text-decoration:none}
}

/* ---------- L1-08 (Matthew redirected it): the language button keeps exactly the height of the other header buttons; on the phone
   only the flag shows, the code (EN) goes away because space is tight. The desktop keeps the whole button.
   The code is wrapped by the site script into span.orveka-lang-code; it stays readable for screen readers (clipped, not removed). */
@media (max-width:767px){
  body .site-header.orveka-global-header .header-actions details.orveka-lang-selector>summary .orveka-lang-code{
    position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  body .site-header.orveka-global-header .header-actions details.orveka-lang-selector>summary{padding:0 10px!important}
}

/* ---------- L1-12: phone footer about one third shorter: smaller logo, legal links in two columns, 15 px text.
   The home footer (footer-compact) is styled in orveka-footer-dokumenty.css, orveka-mobile.css and orveka-uvod-mobil.css with
   body.compact-mobile selectors; !important is used here to win over all three. */
@media (max-width:767px){
  html body .orveka-footer .footer-brand img,html body .orveka-footer.footer-compact .footer-brand img{width:170px!important;height:auto;max-height:none}
  html body .orveka-footer .footer-document-links,html body .orveka-footer.footer-compact .footer-document-links{display:grid!important;grid-template-columns:1fr 1fr!important;column-gap:18px;row-gap:0}
  html body .orveka-footer .footer-document-links a,html body .orveka-footer.footer-compact .footer-document-links a{font-size:15px!important;line-height:1.25;min-height:44px;display:flex;align-items:center;width:auto}
  html body .orveka-footer .footer-main{padding-bottom:0}
}

/* ---------- L1-14: one style for the main buttons (phone): 52 px tall, 12 px corners, 17 px bold, column width;
   dark green for owners, dark blue for the rest. Desktop sizes are left as they were. */
@media (max-width:767px){
  html body :is(.audience-btn,.collab-cta,.owner-config-link,.owner-contact-btn,.orth-primary-link,.shop-add,.oc-mainbtn,.process-owner,.process-clinic){
    min-height:52px;border-radius:12px;font-size:17px;font-weight:700;box-shadow:none;width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:center}
  html body .collab-card a.collab-cta{width:100%!important;max-width:none!important} /* the home stylesheet sets 80% / auto with more specific selectors */
}

/* ---------- L1-10: undone 30 Nov 2026 (original gradients back). */

/* ---------- L1-09 (desktop): hero text without forced line breaks, one calm paragraph that stays on the light part of the picture. */
@media (min-width:1000px){
  html body .hero .intro br.desktop{display:none}
  html body .hero .intro{max-width:min(36em,50vw)}
}

/* ---------- L1-05 (desktop): every home section uses one frame, 1344 px wide, centred (left edge 48 px at 1440). */
@media (min-width:1000px){
  html body section.situations .wrap,html body section.products .products-inner,html body section.process .process-wrap,
  html body section.stories .stories-wrap,html body section.collaboration .collaboration-wrap{max-width:1440px;width:100%;margin-left:auto;margin-right:auto;padding-left:48px;padding-right:48px;box-sizing:border-box}
  html body :is(section.situations,section.products,section.process,section.stories) :is(h2,.lead,.products-lead,.eyebrow){margin-left:0}
  html body .hero-inner{padding-left:max(48px,calc((100vw - 1344px)/2))}
}

/* ---------- Section heading scale for the whole site (L1-03, L1-11, L2-06, L2-13).
   Phone: section titles 28 px, left aligned, bigger than card titles (20 px). Desktop home: 44 px (H1 stays the largest).
   The Czech typography layer sizes headings from --orveka-type-heading-size with !important, so the variable is set on the heading too. */
@media (max-width:767px){
  html body :is(section.situations h2,section.products h2,section.process h2,section.stories h2,.owner-heading h2,.owner-contact-inner h2,
    .vet-section-heading h2,.vet-training-copy h2,.about-mission-panel h2){--orveka-type-heading-size:28px;font-size:28px!important;line-height:1.15!important;text-align:left!important;margin-left:0!important;margin-right:0!important;max-width:none!important}
  html body :is(.owner-heading,.owner-heading-centered,.vet-section-heading,.vet-centered){text-align:left!important;margin-left:0!important;margin-right:0!important;max-width:none!important}
  html body section.situations article.card h3{font-size:20px!important}
  html body .product-card h3{font-size:19px!important;line-height:1.2}
}
@media (min-width:768px) and (max-width:999px){
  html body :is(section.situations h2,section.products h2,section.process h2,section.stories h2){--orveka-type-heading-size:36px;font-size:36px!important;line-height:1.1!important}
}
@media (min-width:1000px){
  html body :is(section.situations h2,section.products h2,section.process h2,section.stories h2){--orveka-type-heading-size:44px;font-size:44px!important;line-height:1.1!important}
}
/* L2-13 (desktop): every section title of the owner page starts at the left content edge, like the text below it. */
@media (min-width:768px){
  html body :is(.owner-heading h2,.owner-pricing .owner-heading,.owner-habituation .owner-heading,.owner-heading){text-align:left!important;margin-left:0!important;margin-right:0!important;padding-left:0!important}
}

/* ---------- L1-16 (phone): stories strip is a normal swipeable row: no endless movement, one card and a bit of the next, snaps card by card. */
@media (max-width:767px){
  html body .story-marquee-viewport{overflow-x:auto!important;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scroll-padding-left:0;touch-action:pan-x pan-y}
  html body .story-marquee-track{width:max-content;gap:12px;padding:0!important;margin:0!important}
  html body .story-loop-card{scroll-snap-align:start;flex:0 0 78%}
  html body .story-loop-card[aria-hidden="true"]{display:none!important}
}

/* L1-04: a long translation can collapse the desktop menu between 1000 and 1279 px: the Order button is then also in the menu. */
body .site-header.orveka-global-header.orveka-force-collapsed .main-nav a.orveka-menu-order{display:flex;align-items:center;justify-content:center;margin:16px 0 8px;min-height:52px;padding:0 16px;border:0;border-radius:12px;background:#6fb43f;color:#fff;font-weight:700;font-size:18px}

/* ---------- L2-05 (phone): one side margin of 20 px on every page. Each page has its own container with its own margin and padding
   (11, 16, 18 + 20, 24 px, which added up to 11 to 38 px); the shared rule in orveka-mobile.css gives 20 px of padding, so here the
   containers lose their own margin and width limit. Cards and panels inside start exactly at 20 px. */
@media (max-width:767px){
  html body :is(.owner-container,.about-container,.vet-container,.impact-container,.orth-shell,.prot-shell,.wheel-shell,.shop-shell,.ct-shell){
    width:auto!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:20px;padding-right:20px;box-sizing:border-box} /* !important: each page sets its own width as .xxx-page .container (more specific) */
  html body main.shell{padding-left:20px;padding-right:20px}
  html body .oc-container{width:auto!important;max-width:none!important;margin-left:20px!important;margin-right:20px!important;padding-left:0;padding-right:0}
}

/* 27 Nov 2026 (Matthew: "kolečka i na úvodu"): on the phone the step number sat small beside the heading. It becomes the
   same light blue circle the desktop timeline shows, above the heading, like the owner page steps (L2-04). */
@media (max-width:767px){
  html body .process-step{grid-template-columns:minmax(0,1fr)!important;row-gap:0}
  html body .process-step > *,html body .process-step .step-copy > div > *,html body .process-step picture > img{grid-column:1!important;grid-row:auto!important}
  html body .process-step .step-number{position:static;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
    background:#e0f2ff;color:#0782e5;font-size:17px;font-weight:700;line-height:1;margin:0 0 6px;padding:0;border:0;box-shadow:none} /* + 8 px row gap = 14 px, as on the owner page */
  html body .process-step .step-copy h3{margin-top:0}
}

/* Home hero vet note (desktop): the <br class="desktop"> breaks sit at the Czech word positions, so in other
   languages they cut a line short (FR 27 Nov 2026: "offertes par" and "l'accompagner" alone on a line).
   Czech keeps its hand-set breaks; other languages wrap on their own, balanced. */
html:not([lang="cs"]) .veterinary-note br.desktop{display:none}
html:not([lang="cs"]) .veterinary-note strong,html:not([lang="cs"]) .veterinary-note p{text-wrap:balance}
