/* =====================================================================
   Maxcura v6.6, 2026-11-23. Working copy for review, loaded after v65.css
   (and library65.css on the library page). Everything here is scoped to
   body.v66, so removing the class or this file returns the v6.5 look.
   Motion follows one rule: 160 ms for hovers, 240 ms for rows, 680 ms for
   the page turn, ease-out cubic-bezier(.22,1,.36,1), nothing under
   prefers-reduced-motion.
   ===================================================================== */

/* body text follows the reader's own text-size setting (v65.css fixed it at 17px);
   at the default setting this is still 17px */
body.v66{font-size:1.0625rem}

/* ---------- 1. first screen: one lead, the text column gets room ---------- */
@media(min-width:900px){
  .v66 .hero6-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
.v66 .hero6 h1{font-size:clamp(2.15rem,4.3vw,3.4rem);line-height:1.04;max-width:14ch}
/* from 1100 px the heading is two lines, one per promise */
@media(min-width:1100px){
  .v66 .hero6-grid{grid-template-columns:minmax(0,1.14fr) minmax(0,1fr)}
  .v66 .hero6 h1{max-width:none;font-size:clamp(2.5rem,3.3vw,3rem)}
}
.v66 .hero6 .hero4-lead{color:var(--ink);max-width:40ch;margin-bottom:28px}
.v66 .hero6-eyebrow{letter-spacing:.1em}
@media(min-width:900px){.v66 .hero6-text{padding-top:clamp(8px,2vw,28px)}}

/* ---------- 2. two ways in: no list that the next section repeats ---------- */
.v66 .way4 > p{margin-bottom:22px}
.v66 .way4-count{margin:auto 0 0;padding-top:12px;border-top:1px solid rgba(23,38,43,.2);font-size:.9375rem;font-weight:600;color:var(--ink)}
.v66 .way4-go{margin-top:12px}
.v66 .way4{transition:border-color .16s cubic-bezier(.22,1,.36,1),background-color .16s cubic-bezier(.22,1,.36,1)}
.v66 .way4-a:hover{background:#D3E2E2}
.v66 .way4-b:hover{background:#E4D6BD}
.v66 .way4:active{transform:translateY(1px)}

/* ---------- 3. services: rows no longer jump sideways when they open ---------- */
.v66 .zone-office{--hover:#EEF4F3}
.v66 .zone-private{--hover:#F6EFE3}
.v66.rows-mode .sum4,
.v66.rows-mode .item4[open] .sum4{padding:20px 12px 20px 14px}
.v66 .item4 .body4,
.v66 .item4[open] .body4{padding-left:14px;padding-right:12px}
.v66.rows-mode .sum4{transition:background-color .16s cubic-bezier(.22,1,.36,1)}
.v66 .item4:not([open]) .sum4:hover{background:var(--hover,#EEF4F3)}
.v66 .item4:not([open]) .sum4:hover .state4{background:none;color:var(--accent-text)}
.v66 .sum4:hover .state4,.v66 .sum4:focus-visible .state4{box-shadow:inset 0 0 0 1px var(--accent)}
.v66 .sum4:focus-visible{outline:3px solid var(--ink);outline-offset:-3px;box-shadow:inset 0 0 0 6px rgba(150,115,31,.3)}
.v66.rows-mode .row-ico{width:28px;height:28px}
@media(max-width:620px){
  .v66.rows-mode .sum4,
  .v66.rows-mode .item4[open] .sum4{padding:18px 10px 18px 10px}
  .v66 .item4 .body4,.v66 .item4[open] .body4{padding-left:10px;padding-right:10px}
}
@media(prefers-reduced-motion:reduce){.v66.rows-mode .sum4,.v66 .way4{transition:none}}
/* the one-line summary lines up with the service name on every width */
.v66.rows-mode .sum4 .gist4{padding-left:0}
/* the quiet second action lines up with the text above it */
.v66 .btn4.btn-quiet{padding-left:0;padding-right:0}
.v66 .card5{justify-self:center}

/* the boundary reads as a closing note, not as a boxed alert */
.v66 .serv-bounds{background:none;border-left:0;border-top:1px solid var(--gold);padding:18px 0 0}
.v66 .serv-bounds p{color:var(--ink);opacity:.86}

.v66 .serv-foot{border-top:0;padding-top:0;margin-top:22px}
.v66 .serv-foot .link4{display:inline;min-height:0;margin:0;padding:6px 0;white-space:nowrap}

/* ---------- 5. contact: the explanation comes before the button ---------- */
.v66 .form6 .form6-note{margin:2px 0 16px}
.v66 .f6-row select optgroup{font-weight:700}

/* ---------- library: one number, in three places ----------
   Three columns appear only once the two arrows between them fit too;
   between 900 and 999 px the columns stack, as on a phone. */
@media(min-width:900px) and (max-width:999px){
  .v66 .lk-grid{grid-template-columns:minmax(0,1fr)}
}

/* ---------- library: the four steps on a phone ----------
   v6.5 drew each number as a full-width dark bar under 900 px. The number
   is a square again, the same as on a computer. */
@media(max-width:899px){
  .v66 .pr6 li .n{display:grid;place-items:center;width:44px;height:44px;font-size:1.25rem;margin-bottom:12px}
}

/* ---------- library: the printed catalogue ----------
   Two small arrows sit on the book itself, in the bottom corners next to the
   page numbers, where no text is. Each is 32 px to look at and 44 px to touch.
   The spread count is not shown; it is kept for screen readers (#pt-state,
   the group label and the arrow names). A version with the arrows under the
   book and the count between them is in the audit folder (alt/alt-arrows-below.css). */
.js .v66 .pt-stage{position:relative}
.js .v66 .pt-nav{position:absolute;left:0;right:0;bottom:0;z-index:8;display:flex;justify-content:space-between;align-items:flex-end;
  padding:0 22px 24px;pointer-events:none}
.js .v66 .pt-page{padding-bottom:6px}
.js .v66 .pt-folio{min-height:40px;display:flex;align-items:center;justify-content:center;padding-top:0}
.v66 .pt-arrow{position:relative;top:auto;left:auto;right:auto;transform:none;width:32px;height:32px;padding:0;
  display:inline-flex;align-items:center;justify-content:center;pointer-events:auto;
  background:#FFFDF8;border:1px solid #6E5236;color:#6E3029;cursor:pointer;
  transition:background-color .16s cubic-bezier(.22,1,.36,1),color .16s cubic-bezier(.22,1,.36,1),border-color .16s cubic-bezier(.22,1,.36,1)}
.v66 .pt-arrow::after{content:"";position:absolute;inset:-6px} /* 44 px to touch */
.v66 .pt-arrow svg{width:16px;height:16px}
.v66 .pt-arrow:hover{background:#7B3630;border-color:#7B3630;color:var(--paper)}
.v66 .pt-arrow:active{transform:translateY(1px)}
.v66 .pt-arrow:disabled{opacity:.4;cursor:default;pointer-events:none}
@media(prefers-reduced-motion:reduce){.v66 .pt-arrow{transition:none}}

/* the leaf: Motion's ease-in-out; hinged in the middle of the gap between the
   pages (set by library.js), so it comes down exactly on the page it covers */
.v66 .pt-leaf.fwd,.v66 .pt-leaf.bwd{animation-duration:.68s;animation-timing-function:cubic-bezier(.65,0,.35,1)}
.v66 .pt-under{position:absolute;z-index:5;pointer-events:none;margin:0;box-sizing:border-box}
/* pages one above the other (narrow screens): the leaf turns round the horizontal
   seam between them, like the sheet of a pad, instead of sliding */
.v66 .pt-spread{grid-auto-rows:1fr}
@keyframes leafStkF{from{transform:rotateX(0)}to{transform:rotateX(180deg)}}
@keyframes leafStkB{from{transform:rotateX(0)}to{transform:rotateX(-180deg)}}
.v66 .pt-leaf.stk.fwd{animation-name:leafStkF}
.v66 .pt-leaf.stk.bwd{animation-name:leafStkB}
.v66 .pt-leaf.stk .pt-leaf-face.back{transform:rotateX(180deg)}
/* a little light on the leaf: it darkens as it stands up, and the shadow
   comes and goes so nothing pops at the first or last frame */
@keyframes leafShade{0%{box-shadow:0 0 0 rgba(74,55,36,0)}45%{box-shadow:0 10px 30px rgba(74,55,36,.26)}100%{box-shadow:0 0 0 rgba(74,55,36,0)}}
@keyframes leafDarkF{0%{opacity:0}50%{opacity:.3}100%{opacity:.3}}
@keyframes leafDarkB{0%{opacity:.3}50%{opacity:.3}100%{opacity:0}}
.v66 .pt-leaf-face{animation:leafShade .68s linear both;box-shadow:none}
.v66 .pt-leaf-face::after{content:"";position:absolute;inset:0;background:#4A3724;opacity:0;pointer-events:none}
.v66 .pt-leaf-face.front::after{animation:leafDarkF .68s linear both}
.v66 .pt-leaf-face.back::after{animation:leafDarkB .68s linear both}
@media(prefers-reduced-motion:reduce){.v66 .pt-leaf,.v66 .pt-under{display:none}}

/* ---------- large text: the shelf-number caption may wrap instead of pushing the page wide ---------- */
.v66 .lk-col figcaption{flex-wrap:wrap}
.v66 .lk-no{white-space:normal}
.v66 .way4-count{max-width:none}

/* ---------- library: the printed catalogue on a phone ----------
   Two pages side by side, like an open book, down to 320 px. The query is in
   em, which follows the reader's text-size setting: with text enlarged to about
   twice the default the pages are too narrow to read side by side, so the
   one-above-the-other layout (and its horizontal-hinge turn) stays. */
@media(max-width:620px) and (min-width:19em){
  .v66 .pt-stage{margin-inline:-12px}
  .v66 .pt-spread{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:7px}
  .v66 .pt-page{min-width:0;min-height:0;padding:14px 9px 6px;overflow-wrap:break-word;hyphens:auto}
  .v66 .pt-run{font-size:.625rem;letter-spacing:.05em;line-height:1.3;margin:0 0 10px}
  .v66 .pt-sec{font-size:.9375rem;line-height:1.2;margin:0 0 10px;padding-bottom:8px}
  .v66 .pt-entries{gap:9px}
  .v66 .pt-entries li{font-size:.8125rem;line-height:1.3;padding-left:14px}
  .v66 .pt-entries li::before{font-size:.625rem}
  .js .v66 .pt-nav{padding:0 13px 16px}
  .v66 .pt-folio{font-size:.75rem}
}

/* wider phones and small tablets: the pages are broad enough for the usual sizes */
@media(min-width:30em) and (max-width:620px){
  .v66 .pt-page{padding:18px 14px 6px}
  .v66 .pt-run{font-size:.6875rem}
  .v66 .pt-sec{font-size:1.0625rem}
  .v66 .pt-entries li{font-size:.9375rem;padding-left:18px}
  .v66 .pt-entries li::before{font-size:.6875rem}
}

/* ---------- library: reading a spread larger (phones only) ---------- */
.pt-zoomrow{display:none;margin:0}
@media(max-width:620px){.js .v66 .pt-zoomrow{display:block}}
.v66 .pt-zoom-open{appearance:none;font:inherit;font-weight:700;font-size:.9375rem;min-height:44px;padding:0 16px;
  background:var(--paper);color:#6E3029;border:1px solid #6E5236;cursor:pointer}
.v66 .pt-zoom-open:hover{background:#7B3630;border-color:#7B3630;color:var(--paper)}
.v66 .pt-zoom-open:focus-visible,.v66 .pz-btn:focus-visible,.pz-pages:focus-visible{outline:3px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 6px rgba(150,115,31,.3)}
dialog.pt-zoom{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;
  background:#F3ECDC;color:var(--ink);overflow:hidden}
dialog.pt-zoom[open]{display:flex;flex-direction:column}
dialog.pt-zoom::backdrop{background:rgba(23,38,43,.6)}
html:has(dialog.pt-zoom[open]){overflow:hidden}
.pz-head,.pz-foot{flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:10px 14px;background:#F3ECDC}
.pz-head{justify-content:space-between;border-bottom:1px solid rgba(110,82,54,.3)}
.pz-foot{border-top:1px solid rgba(110,82,54,.3);flex-wrap:wrap;gap:8px 10px}
.pz-title{margin:0;font-size:1rem;line-height:1.25}
.pz-hint{margin:0;flex:1 0 100%;order:-1;text-align:center;font-size:.8125rem;line-height:1.25;color:var(--muted)}
.pz-foot .pz-btn{flex:1 1 0;min-width:0;padding:0 8px}
.pz-btn{appearance:none;font:inherit;font-weight:700;font-size:.9375rem;min-height:44px;min-width:44px;padding:0 14px;
  background:#FFFDF8;color:#6E3029;border:1px solid #6E5236;cursor:pointer;flex:0 0 auto}
.pz-btn:hover{background:#7B3630;border-color:#7B3630;color:var(--paper)}
.pz-btn:disabled{opacity:.4;cursor:default;pointer-events:none}
.pz-pages{flex:1 1 auto;min-height:0;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;
  background:#6E5236;gap:3px;padding:0 7px}
.pz-page{flex:0 0 100%;scroll-snap-align:center;overflow-y:auto;box-sizing:border-box;padding:22px 20px 18px;min-height:0}
.pz-page .pt-entries li{font-size:1.0625rem;padding-left:24px}
.pz-page .pt-entries li::before{font-size:.8125rem}
.pz-page .pt-sec{font-size:1.25rem}
.pz-page .pt-run{font-size:.6875rem}
.pz-page .pt-folio{min-height:0;padding-top:12px;display:block}
