/* Jaunpils Bites V3: WordPress additions. Loaded after fable.css and product.css. Small on purpose. */

/* ---------- old pages in a plain readable layout ---------- */
.prose{max-width:760px;padding-top:34px;padding-bottom:80px;line-height:1.65}
.prose > * + *{margin-top:1em}
.prose h1,.prose h2,.prose h3,.prose h4{font-family:var(--display);font-weight:700;line-height:1.2;margin-top:1.6em}
.prose h2{font-size:clamp(26px,3vw,34px)}
.prose h3{font-size:clamp(21px,2.2vw,26px)}
.prose h4{font-size:19px}
.prose > :first-child{margin-top:0}
.prose ul,.prose ol{padding-left:1.4em}
.prose ul{list-style:disc}
.prose ol{list-style:decimal}
.prose li + li{margin-top:.35em}
.prose a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.prose a:hover{text-decoration-thickness:2px}
.prose a.btn{text-decoration:none}
.prose img,.prose video,.prose iframe{max-width:100%;height:auto}
.prose figure{margin:1.4em 0}
.prose figcaption,.prose .wp-caption-text{font-size:15px;opacity:.75;margin-top:6px}
.prose blockquote{margin:1.4em 0;padding:4px 0 4px 18px;border-left:4px solid var(--honey)}
.prose hr{border:0;border-top:2px solid var(--honey);margin:2em 0}
.prose table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:16px}
.prose th,.prose td{padding:8px 12px;border-bottom:1px solid rgba(58,30,5,.18);text-align:left;vertical-align:top}
.prose th{font-weight:700}
.prose .grid{margin-top:0}

/* ---------- old Elementor pages: full width, nothing added ---------- */
.old-page{padding:0;margin:0;position:relative;z-index:0}
.old-page [id]{scroll-margin-top:84px}
/* the sticky header stays on top of anything the old page makes sticky */
.head{z-index:50}
.admin-bar .head{top:32px}
@media(max-width:782px){.admin-bar .head{top:46px}}
@media(max-width:600px){.admin-bar .head{top:0}}

/* ---------- header basket: FunnelKit's icon or the fallback link, sized like the preview ---------- */
.head__cart{display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:46px;height:46px;position:relative}
.head__cart > *{display:grid;place-items:center;min-width:46px;height:46px;margin:0;padding:0;border-radius:50%;color:var(--ink);text-decoration:none;position:relative}
.head__cart > *:hover{background:var(--honey)}
.head__cart a{color:var(--ink);text-decoration:none}
.head__cart svg,.head__cart img{width:26px;height:26px}
.head__cart .icon-btn svg{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* WooCommerce's own script may add a "View cart" link after an add button; the theme shows "Ielikts grozā" instead */
.tile .added_to_cart,.pp .added_to_cart,[data-builder] .added_to_cart{display:none}

/* ---------- menus ---------- */
.nav a.is-current{font-weight:700}
.menu nav a.is-current{font-weight:700}
.foot__menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;align-content:start}
@media(min-width:800px){.foot__menu{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:800px){.foot__in:has(> .foot__menu){grid-template-columns:1.2fr 2.6fr .8fr}}
.foot__menu a{display:block;padding:5px 0;text-decoration:none}
.foot__menu a:hover{text-decoration:underline}

/* ---------- placeholders: shown, but not working yet ---------- */
.is-soon,[aria-disabled="true"].is-soon{opacity:.45;cursor:not-allowed;filter:saturate(.6)}
.is-soon *{cursor:not-allowed}
button.is-soon:hover,.btn.is-soon:hover{transform:none}
.soon-note{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:6px;background:var(--cream);border:1px solid rgba(58,30,5,.25);color:var(--ink);font:500 12px/1.5 var(--body);letter-spacing:.02em;vertical-align:middle;opacity:1}

/* ---------- WordPress basics ---------- */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.screen-reader-text:focus{position:fixed!important;top:8px;left:8px;width:auto;height:auto;padding:10px 16px;margin:0;clip-path:none;z-index:100;background:var(--cream);color:var(--ink);border-radius:8px}
.vh:focus{position:fixed;top:8px;left:8px;z-index:100;width:auto;height:auto;padding:10px 16px;clip-path:none;background:var(--cream);color:var(--ink);border-radius:8px}
.alignleft{float:left;margin:.3em 1.4em 1em 0}
.alignright{float:right;margin:.3em 0 1em 1.4em}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.alignwide,.alignfull{max-width:none}
@media(max-width:600px){.alignleft,.alignright{float:none;margin:1em 0}}
.prose::after{content:"";display:table;clear:both}
.wp-caption{max-width:100%}
.nav-links{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:34px}
.nav-links .page-numbers{display:grid;place-items:center;min-width:44px;height:44px;padding:0 12px;border-radius:10px;background:var(--white);color:var(--ink);font-weight:700;text-decoration:none}
.nav-links a.page-numbers:hover{background:var(--honey)}
.nav-links .page-numbers.current{background:var(--ink);color:var(--cream)}
.nav-links .page-numbers.dots{background:transparent}

/* product page states added during integration */
.buy__oos{margin:14px 0;padding:14px 16px;border-radius:14px;background:#fff;font-size:17px}
.sz.is-soon,.sz.is-out{cursor:not-allowed}
.sz.is-soon .sz__box,.sz.is-out .sz__box{opacity:.55}
.sz.is-soon:hover .sz__box,.sz.is-out:hover .sz__box{background:#fff}
.gift.is-soon{cursor:not-allowed}
.lad.is-soon .lad__tix button{cursor:not-allowed}
.soon-note[hidden]{display:none}
.buy__native{margin:14px 0}
.buy__native .button,.buy__native button[type=submit]{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 26px;border:0;border-radius:12px;background:var(--red);color:#fff;font:700 19px/1.1 var(--display);cursor:pointer}
.buy__native select,.buy__native input[type=number]{min-height:48px;padding:8px 12px;border:2px solid #CDBF9F;border-radius:12px;background:#fff;font:400 17px var(--body);color:var(--ink)}

/* No sideways scroll, ever (iPhone Safari ignores overflow-x:hidden on body alone when something sits off-canvas).
   "clip" cuts the overflow without turning the element into a scroll box, so sticky header and sticky scenes keep working. */
html{overflow-x:hidden;max-width:100%}
body{max-width:100%;position:relative}
@supports (overflow:clip){
  html,body{overflow-x:clip}
  .foot,.strip{overflow-x:clip}
}
/* #saturs (the wrapper around all page content) must NOT clip or hide overflow. Measured 2026-11-12 on the owner's iPhone:
   with overflow-x:clip on it, every pinned (position:sticky) box inside shook by up to 3 px while scrolling, even with
   nothing animating in it, while the header, which sits outside #saturs, stayed still. Removing the clip cured it.
   Rule for the whole theme: no overflow of any kind on a parent of a pinned box. html and body above already stop
   sideways scrolling; anything that sticks out sideways should be clipped on its own section instead. */
