/* Brochure library (portal decision B108) — house colours INK #1A252B, ORANGE #FD9D49, sand #A89F8E.
   TYPE AND BUTTONS ARE THE THEME'S (Remco 29.11.2026 09:31/09:38, lane brochure-website-flow F2/F5 d): the markup carries
   .section-eyebrow, .section-title, .page-btn — this file sets NO font-family, font-weight, letter-spacing or line-height of
   its own (only sizes of the module's small parts). Class names avoid «__title», «__eyebrow», «__label» and «__heading»:
   style-v5-brand.css forces letter-spacing on [class*="__eyebrow"] etc. with !important. A printed booklet, slightly tilted, kept inside the page container at every
   width; generous white space; motion only without «reduced motion». */
/* --bl-header: the theme's own measured header bottom (--mobile-nav-offset, set by apexa-shared.js from #nav) — the JS below
   refines it; never the old 110px guess, which sat 40px short of the phone header with its utility row (S6, 29.11.2026).
   --bl-ease/--bl-dur: the theme's motion token (style-v4.css --ease = the portal's cubic-bezier(.16,1,.3,1)) — ONE curve on both sites (S3). */
.brochure-library{--bl-ink:#1A252B;--bl-orange:#FD9D49;--bl-sand:#A89F8E;--bl-paper:#F6F3EE;--bl-header:var(--mobile-nav-offset,9.5rem);
  --bl-ease:var(--ease,cubic-bezier(.16,1,.3,1));--bl-dur:.42s;
  position:relative;isolation:isolate;scroll-margin-top:var(--bl-header);
  color:var(--bl-ink);padding:clamp(4rem,9vw,8rem) 0 clamp(4rem,8vw,7rem);overflow-x:clip;
  background:linear-gradient(180deg,var(--bl-paper) 0%,#fff 62%)}
/* S6: as the FIRST section of a page the module clears the fixed header (utility row + nav pill) exactly like the theme's own
   first sections — .page-hero's top padding (style-pages.css «clears the utility bar + nav pill»), never a number of its own */
:is(main,.main-container)>.brochure-library:first-child{padding-top:clamp(9rem,14vw,12rem)}
/* the warm, soft light behind the hero — the background layer of the desktop parallax (S6 b); it only ever moves by translate */
.brochure-library::before{content:"";position:absolute;z-index:-1;top:clamp(0rem,3vw,3rem);inset-inline-end:-12%;width:min(70vw,760px);aspect-ratio:1;border-radius:50%;
  background:radial-gradient(closest-side,rgba(253,157,73,.13),rgba(253,157,73,0));pointer-events:none;translate:0 var(--bl-bgy,0px)}
/* only while the parallax runs: the two moving layers get their own compositor layer — a translate then never repaints the page */
.brochure-library.bl-parallax::before,.brochure-library.bl-parallax .brochure-library__cover{will-change:translate}
.brochure-library__hero{display:grid;gap:clamp(2.5rem,6vw,5rem);align-items:center;grid-template-columns:minmax(0,1fr)}
@media (min-width:900px){.brochure-library__hero{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}}
/* top-aligned: when the theme font arrives (Typekit swap ~1 s) and the text re-wraps, the column grows downwards — a centred column
   jumped up and down (CLS 0.10 at 1440 on staging, S3 rule «CLS 0.00») */
.brochure-library__copy{min-width:0;align-self:start}
.brochure-library__headline{margin:0;max-width:18ch;text-wrap:balance}
.brochure-library__lines{list-style:none;margin:2rem 0 0;padding:0;display:grid;gap:.85rem;max-width:34rem;color:rgba(26,37,43,.78)}
.brochure-library__lines li{display:flex;gap:.9rem}
.brochure-library__lines li::before{content:"";flex:none;width:1rem;height:1px;margin-top:.8em;background:var(--bl-orange)}
.brochure-library__new{margin:1.8rem 0 0;max-width:34rem;color:rgba(26,37,43,.75)}
.brochure-library__new strong{display:inline-block;margin-inline-end:.5rem;padding:.15rem .55rem;border-radius:999px;background:rgba(253,157,73,.16);color:#9a4d0c;font-size:.72rem;text-transform:uppercase}
/* the theme pill already has its own «→»; next to the download icon it would be a second arrow */
.brochure-library .page-btn--primary.brochure-library__cta::after,.brochure-library__submit::after,.brochure-library__again::after{content:none}
.brochure-library .page-btn{min-height:48px;justify-content:center}
.brochure-library .page-btn:focus-visible,.brochure-library a:focus-visible,.brochure-library button:focus-visible{outline:2px solid var(--bl-orange);outline-offset:3px}
/* the hero pills hide while the flow is open — the theme's .page-cta-row{display:flex} beats the browser's [hidden] (X1) */
.brochure-library [data-bl-actions][hidden]{display:none}

/* the flow 1-2-3 (F6) */
.brochure-library__flow{margin-top:2rem;max-width:34rem;scroll-margin-top:var(--bl-header)}
.brochure-library__steps{list-style:none;margin:0 0 1.2rem;padding:0;display:flex;flex-wrap:wrap;gap:.25rem 1rem}
.brochure-library__stepitem{display:flex;align-items:center;gap:.5rem;min-height:44px;color:rgba(26,37,43,.5)}
.brochure-library__stepitem.is-current{color:var(--bl-ink)}
.brochure-library__stepnum{display:inline-flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;border-radius:999px;border:1px solid rgba(26,37,43,.3);font-size:.8rem}
.brochure-library__stepitem.is-current .brochure-library__stepnum{background:var(--bl-orange);border-color:var(--bl-orange);color:#fff}
.brochure-library__steplink{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
/* phones: one line — numbers only, the current step with its name; the other names stay for screen readers (X1) */
@media (max-width:599px){
  .brochure-library__steps{flex-wrap:nowrap}
  .brochure-library__steplink{min-width:44px;justify-content:center}
  .brochure-library__stepitem:not(.is-current) .brochure-library__steplabel{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
}
.brochure-library__langpick{margin:0;padding:0;border:0;min-width:0}
.brochure-library__legend{margin-bottom:.8rem;padding:0}
.brochure-library__langgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
@media (min-width:600px){.brochure-library__langgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.brochure-library__langbtn{min-height:52px;padding:.6rem .9rem;border:1px solid rgba(26,37,43,.18);border-radius:999px;background:#fff;color:var(--bl-ink);font:inherit;font-size:1rem;cursor:pointer;text-align:center}
.brochure-library__langbtn.is-current{border-color:var(--bl-orange);box-shadow:inset 0 0 0 1px var(--bl-orange)}
.brochure-library__langbtn:hover{border-color:var(--bl-ink)}
.brochure-library__chosen{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem .8rem;margin:0 0 .6rem}
/* S8: the remembered sender — line 1 name + e-mail, line 2 the two buttons (as the portal) */
.brochure-library__known{margin:0 0 .6rem}
.brochure-library__who{margin:0;overflow-wrap:anywhere}
.brochure-library__mail{color:rgba(26,37,43,.65)}
.brochure-library__knownacts{display:flex;flex-wrap:wrap;gap:0 1.2rem;margin:0}
.brochure-library__taphint{margin:0 0 .8rem;color:rgba(26,37,43,.75);overflow-wrap:anywhere}
.brochure-library__link{min-height:44px;padding:0;border:0;background:none;color:var(--bl-ink);font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.brochure-library__link--quiet{color:rgba(26,37,43,.6)}
.brochure-library__field{display:block;margin-top:1rem}
.brochure-library__fieldname{display:block;margin-bottom:.3rem;color:rgba(26,37,43,.75)}
/* 16 px: no zoom on focus in iOS Safari */
.brochure-library__input{display:block;box-sizing:border-box;width:100%;min-height:48px;padding:.7rem .9rem;border:1px solid rgba(26,37,43,.25);border-radius:12px;background:#fff;color:var(--bl-ink);font:inherit;font-size:16px}
textarea.brochure-library__input{resize:vertical;min-height:4.5rem}
/* focus = the contact form's ring (style-pages.css .contact-field): accent border + a soft 3px halo; the transparent outline stays for forced colours */
.brochure-library__input{transition:border-color .2s var(--bl-ease),box-shadow .2s var(--bl-ease)}
.brochure-library__input:focus{outline:2px solid transparent;border-color:var(--bl-orange);box-shadow:0 0 0 3px rgba(253,157,73,.22)}
.brochure-library__input[aria-invalid="true"]{border-color:#b3261e}
.brochure-library__fielderr{display:block;margin-top:.3rem;color:#b3261e;font-size:.9rem}
.brochure-library__count{display:block;text-align:end;font-size:.8rem;color:rgba(26,37,43,.55)}
.brochure-library__consent{display:flex;align-items:flex-start;gap:.7rem;margin-top:1rem;color:rgba(26,37,43,.8)}
.brochure-library__consent input{flex:none;width:22px;height:22px;margin-top:.15rem;accent-color:var(--bl-orange)}
.brochure-library__consent a{color:inherit;text-decoration:underline}
/* honeypot: 1 px, transparent, in place (a far-away offset made Arabic scroll sideways) */
.brochure-library__pot{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none;clip-path:inset(50%)}
.brochure-library__form{position:relative}
.brochure-library__error{margin:1rem 0 0;color:#b3261e}
.brochure-library__submitbar{margin-top:1rem;padding:.6rem 0}
/* S1/S7 (as the portal): no box behind the button. It sticks above the on-screen keyboard ONLY on touch and only while a text field
   has the focus (.is-typing, set by the script with a short grace so the tap on the button still lands); the fade is the page's own
   paper colour, so no edge shows. Keyboard closed ⇒ the button is simply the end of the form and never covers a field. */
@media (pointer:coarse){.brochure-library__form.is-typing .brochure-library__submitbar{position:sticky;bottom:0;z-index:2;background:linear-gradient(0deg,var(--bl-paper) 55%,rgba(246,243,238,0))}}
.brochure-library__submit{width:100%}
@media (min-width:600px){.brochure-library__submit{width:auto}}
.brochure-library__status{margin:.6rem 0 0;min-height:1.2em;color:rgba(26,37,43,.75);overflow-wrap:anywhere}
.brochure-library__status .page-btn{margin-top:.8rem}
/* the Cloudflare checkbox appears here, under the button, and scrolls below the sticky header (W1) */
.brochure-library__check{margin-top:.6rem;max-width:100%;scroll-margin-top:var(--bl-header)}
.brochure-library__check:empty{margin:0}
.brochure-library__back{margin-top:.4rem}
.brochure-library__done .brochure-library__donehead{margin:0}
.brochure-library__file{margin:.4rem 0 0;color:rgba(26,37,43,.7);overflow-wrap:anywhere}
.brochure-library__note{margin:.6rem 0 0;color:rgba(26,37,43,.65)}
.brochure-library__spinner{display:inline-block;width:.9em;height:.9em;margin-inline-end:.5em;vertical-align:-.1em;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%}
/* a running check on a theme button: dimmed + a small ring (it spins only without «reduced motion») */
.brochure-library .page-btn.is-checking{cursor:progress;opacity:.7}

/* the booklet — the rotated cover stays INSIDE its column at every width (F2(4)); smaller and after the flow on phones (F6) */
.brochure-library__booklet{display:flex;justify-content:center;min-width:0;padding:1rem clamp(.5rem,3vw,2rem);perspective:1600px}
.brochure-library__cover{position:relative;width:min(100%,380px);aspect-ratio:210/297;border-radius:4px 10px 10px 4px;overflow:hidden;background:var(--bl-ink);
  transform:rotate(-4deg);translate:0 var(--bl-py,0px);box-shadow:0 2px 3px rgba(26,37,43,.12),0 28px 60px -18px rgba(26,37,43,.45),-10px 0 0 -4px rgba(26,37,43,.08)}
@media (max-width:899px){.brochure-library__cover{width:min(55vw,240px)}}
[dir="rtl"] .brochure-library__cover{transform:rotate(4deg)}
.brochure-library__cover::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.18) 0,rgba(255,255,255,.06) 3%,transparent 9%);pointer-events:none}
.brochure-library__cover img{display:block;width:100%;height:100%;object-fit:cover}
.brochure-library__skeleton{position:absolute;inset:0;background:linear-gradient(110deg,#25323a 30%,#2f3e47 50%,#25323a 70%);background-size:220% 100%}
@media (prefers-reduced-motion:no-preference){
  .brochure-library__skeleton{animation:bl-shimmer 1.6s linear infinite}
  .brochure-library__cover{transition:transform .6s var(--bl-ease)}
  .brochure-library__booklet:hover .brochure-library__cover{transform:rotate(-2deg) translateY(-4px)}
  [dir="rtl"] .brochure-library__booklet:hover .brochure-library__cover{transform:rotate(2deg) translateY(-4px)}
  .brochure-library__cover.is-ready img{animation:bl-fade .5s ease-out}
  .brochure-library__spinner{animation:bl-spin .8s linear infinite}
}
@keyframes bl-shimmer{to{background-position:-120% 0}}
@keyframes bl-fade{from{opacity:0}to{opacity:1}}
@keyframes bl-spin{to{transform:rotate(360deg)}}
/* peek inside */
.brochure-library__peek{margin-top:clamp(4rem,8vw,6.5rem)}
.brochure-library__subtitle{margin:0 0 1.6rem}
.brochure-library__previews{display:grid;gap:clamp(1rem,2vw,1.6rem);grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.brochure-library__preview{margin:0}
.brochure-library__preview img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:6px;box-shadow:0 18px 40px -24px rgba(26,37,43,.5)}
.brochure-library__preview figcaption{margin-top:.7rem;color:rgba(26,37,43,.7)}
/* all languages — the whole tile starts the flow in its language (F5 b); «Read online» is a separate quiet link */
.brochure-library__langs{margin-top:clamp(4rem,8vw,6.5rem)}
.brochure-library__loading,.brochure-library__fallback{margin:0 0 1rem;color:rgba(26,37,43,.6)}
/* S5 (Remco 29.11.2026 20:09): no file name on the card; the language in its own script is the card's hero, one quiet meta
   line «PDF · 1.4 MB · 18 pages» (numbers isolated, so Arabic reads «3.1 MB»), the whole card downloads, «Read online» stays a
   small link. Columns for ANY count (16 now, 18 with tr/ru): brochure-library.js picks --bl-cols-md/--bl-cols-lg so the last
   row never holds one lone card; 2 on phones; every row as tall as the tallest (equal cards). */
.brochure-library__tiles{list-style:none;margin:0;padding:.6rem 0 0;display:grid;gap:.75rem;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}
@media (min-width:600px){.brochure-library__tiles{grid-template-columns:repeat(var(--bl-cols-md,4),minmax(0,1fr))}}
@media (min-width:1100px){.brochure-library__tiles{grid-template-columns:repeat(var(--bl-cols-lg,4),minmax(0,1fr))}}
@media (max-width:599px){.brochure-library__tile:last-child:nth-child(odd){grid-column:1/-1}}
.brochure-library__tile{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid rgba(26,37,43,.12);border-radius:16px;background:#fff;
  transition:border-color .25s var(--bl-ease),box-shadow .25s var(--bl-ease),transform .25s var(--bl-ease)}
.brochure-library__tile:hover,.brochure-library__tile:focus-within{border-color:rgba(253,157,73,.6);box-shadow:0 14px 30px -20px rgba(26,37,43,.45)}
.brochure-library__tile.is-yours{border-color:rgba(253,157,73,.55)}
/* «Your language»: a small chip on the card's top edge (absolute — every card keeps the same height) */
.brochure-library__tile-chip{position:absolute;top:0;inset-inline-start:1rem;translate:0 -50%;padding:.15rem .6rem;border:1px solid rgba(253,157,73,.55);border-radius:999px;background:#fff;color:#8a4410;font-size:.72rem;line-height:1.3;white-space:nowrap;pointer-events:none}
.brochure-library__tile-main{flex:1;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:.35rem .8rem;align-items:center;min-height:72px;padding:1.15rem 1.1rem .35rem;color:var(--bl-ink);text-decoration:none;border-radius:16px 16px 0 0}
.brochure-library__tile-name{grid-column:1;font-size:1.25rem;line-height:1.25;overflow-wrap:break-word;hyphens:auto}
.brochure-library__tile-meta bdi{white-space:nowrap}

/* one colour on every card: the meta carries the PAGE language (a lang="ja" card fell back to a thin CJK face — lighter grey) */
.brochure-library__tile-meta{grid-column:1;justify-self:start;min-height:1.2em;font-size:.8rem;font-weight:500;color:rgba(26,37,43,.62);overflow-wrap:anywhere}
.brochure-library:not(.is-loaded) .brochure-library__tile-meta{width:70%;border-radius:3px;background:rgba(26,37,43,.07)}
.brochure-library__tile-icon{grid-column:2;grid-row:1/3;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;background:rgba(253,157,73,.16);color:#8a4410;font-size:1.2rem;transition:background-color .25s var(--bl-ease),color .25s var(--bl-ease)}
.brochure-library__tile-main:hover .brochure-library__tile-icon,.brochure-library__tile-main:focus-visible .brochure-library__tile-icon{background:var(--bl-orange);color:#fff}
.brochure-library__tile-read{align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;padding:0 1.1rem .2rem;font-size:.8rem;color:rgba(26,37,43,.6);text-decoration:underline;text-decoration-color:rgba(26,37,43,.25);text-underline-offset:3px}
.brochure-library__tile-read:hover{color:var(--bl-ink);text-decoration-color:currentColor}
/* phones (two columns): the name gets the full width, the icon sits small in the top corner — the whole card is the link */
@media (max-width:599px){
  .brochure-library__tile-main{position:relative;grid-template-columns:minmax(0,1fr);padding:1rem 3rem .3rem .9rem;padding-inline:.9rem 3rem}
  .brochure-library__tile-icon{position:absolute;top:.7rem;inset-inline-end:.6rem;width:36px;height:36px;font-size:1rem}
  .brochure-library__tile-name{font-size:1.1rem}
  .brochure-library__tile-read{padding-inline:.9rem}
}
/* phones: the flow first, the booklet after it — the cover never pushes the steps below the fold (F6) */
@media (max-width:899px){
  .brochure-library__hero{gap:2rem}
  .brochure-library__booklet{order:2}
}

/* ---------- S3/S6 motion (Remco 29.11.2026 19:53 + 20:13) — the theme's curve, transform/opacity only, nothing without
   «no-preference»; every animation ends on transform:none (backwards fill: nothing persists, sticky/fixed stay intact) ---------- */
@keyframes bl-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes bl-pop{from{opacity:.4;transform:scale(.7)}to{opacity:1;transform:none}}
@keyframes bl-draw{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}
.brochure-library__checkmark{display:inline-block;width:1.2em;height:1.2em;margin-inline-end:.45em;vertical-align:-.25em;fill:none;stroke:var(--bl-orange);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24}
.brochure-library__langbtn.is-current::before{content:"\2713";margin-inline-end:.4em;color:#8a4410}
.brochure-library .page-btn .brochure-library__spinner{width:1em;height:1em;margin:0}
@media (prefers-reduced-motion:no-preference){
  /* (a) page flow-in on load: eyebrow → title → lines → buttons → cover, 0.42 s each, staggered to 0.6 s in all */
  .brochure-library__copy>.section-eyebrow,.brochure-library__headline,.brochure-library__lines,.brochure-library__actions,.brochure-library__new,.brochure-library__booklet{animation:bl-rise var(--bl-dur) var(--bl-ease) backwards}
  .brochure-library__headline{animation-delay:.05s}
  .brochure-library__lines{animation-delay:.1s}
  .brochure-library__actions{animation-delay:.15s}
  .brochure-library__booklet{animation-delay:.18s}
  /* sections further down reveal ONCE as they enter (brochure-library.js marks only what starts below the fold) */
  .brochure-library [data-bl-reveal]{transition:opacity .5s var(--bl-ease),transform .5s var(--bl-ease)}
  .brochure-library [data-bl-reveal="pending"]{opacity:0;transform:translateY(12px)}
  .brochure-library [data-bl-reveal] .brochure-library__tile{transition:opacity .4s var(--bl-ease),transform .4s var(--bl-ease),border-color .25s var(--bl-ease),box-shadow .25s var(--bl-ease)}
  .brochure-library [data-bl-reveal="pending"] .brochure-library__tile{opacity:0;transform:translateY(8px)}
  .brochure-library [data-bl-reveal="in"] .brochure-library__tile{transition-delay:calc(min(var(--i,0),15) * 30ms)}
  /* tiles: soft lift + the download icon nudges down on hover (pointer devices) */
  @media (hover:hover){
    .brochure-library__tile:hover{transform:translateY(-2px)}
    .brochure-library__tile-icon i{display:inline-block;transition:transform .3s var(--bl-ease)}
    .brochure-library__tile-main:hover .brochure-library__tile-icon i{transform:translateY(2px)}
  }
  /* (1) the flow: a step change rises in (0.24 s), the current number pops, a language button presses */
  .brochure-library__flow.is-stepping .brochure-library__stepbody{animation:bl-rise .24s var(--bl-ease) backwards}
  .brochure-library__flow.is-stepping .brochure-library__stepitem.is-current .brochure-library__stepnum{animation:bl-pop .26s var(--bl-ease) backwards}
  .brochure-library__langbtn{transition:transform .2s var(--bl-ease),border-color .2s var(--bl-ease)}
  .brochure-library__langbtn:active,.brochure-library .page-btn:active{transform:scale(.98)}
  /* (2) inline validation fades in — no shake */
  .brochure-library__fielderr,.brochure-library__error:not([hidden]){animation:bl-rise .24s var(--bl-ease) backwards}
  /* (3) success: the check mark draws itself once */
  .brochure-library__checkmark{animation:bl-draw .45s var(--bl-ease) .05s backwards}
}
