/* Book pages in the "Modulo" design: the application form, the stamped cover,
   edition cards and the sticky buy bar. Replaces book-page-v1.css. 18.10.2026 */
.bk-wrap{width:calc(100% - 32px);max-width:1280px;margin:0 auto}
.bk-formbar{border-bottom:1px solid var(--line,#8E9AA4)}
.bk-formbar .bk-wrap{display:flex;justify-content:space-between;gap:6px 16px;flex-wrap:wrap;padding:9px 0;color:var(--muted,#4A5259);font-size:14px}

/* Hero: title, form, stamped cover */
.bk-hero{padding:44px 0 72px}
.bk-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);grid-template-areas:"head side" "form side";column-gap:clamp(40px,6vw,88px);align-items:start}
.bk-head{grid-area:head}
.bk-side{grid-area:side;position:relative;width:min(100%,400px);justify-self:center;margin-top:28px}
.bk-formcol{grid-area:form;min-width:0}
.bk-title{margin:0;font-size:clamp(44px,7vw,108px);font-weight:800;letter-spacing:-0.045em;line-height:.92;text-wrap:balance}
.bk-hook{max-width:580px;margin:22px 0 0;font-size:clamp(19px,2vw,24px);font-weight:500;line-height:1.35}
.bk-form{margin-top:34px;border:2px solid var(--ink,#16191C);background:var(--white,#fff)}
.bk-field{display:grid;grid-template-columns:52px minmax(0,1fr);border-bottom:1px solid var(--line,#8E9AA4)}
.bk-num{padding:15px 0 0 16px;color:var(--muted,#4A5259);font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.bk-fieldbody{display:flex;flex-direction:column;gap:7px;min-width:0;padding:12px 18px 15px 0}
.bk-flabel{color:var(--muted,#4A5259);font-size:14px;line-height:1.35}
.bk-fvalue{font-size:19px;font-weight:600;line-height:1.3}
.bk-fvalue--quote{font-size:17px;font-weight:400;font-style:italic;line-height:1.45}
.bk-fvalue--plain{font-size:16px;font-weight:500;line-height:1.5}
.bk-chips{display:flex;flex-wrap:wrap;gap:8px}
.bk-chip{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 14px 0 10px;border:1.5px solid var(--ink,#16191C);border-radius:0;background:var(--white,#fff);color:var(--ink,#16191C);font:600 16px/1.2 var(--font);cursor:pointer}
.bk-chip::before{content:"";flex:none;width:20px;height:20px;border:2px solid var(--ink,#16191C);background:#fff center/13px 13px no-repeat}
.bk-chip[aria-pressed="true"]{background:var(--tint,#E3ECE6)}
.bk-chip[aria-pressed="true"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='%23D52B1E' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E")}
.bk-chip:hover{background:var(--tint,#E3ECE6)}
.bk-select{width:100%;max-width:460px;min-height:48px;padding:0 12px;border:1.5px solid var(--ink,#16191C);border-radius:0;background:#fff;color:var(--ink,#16191C);font:500 17px var(--font)}
.bk-formfoot{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap;padding:18px 18px 8px 52px;background:var(--tint,#E3ECE6)}
.bk-formfoot .button{margin:0;min-height:54px;padding:0 28px;font-size:18px}
.bk-sample{color:var(--ink,#16191C);font-size:16px;font-weight:600;text-underline-offset:4px}
.bk-form .bk-status{margin:0;padding:6px 18px 16px 52px;background:var(--tint,#E3ECE6);color:var(--muted,#4A5259);font-size:14px;line-height:1.45;min-height:1.45em}
.bk-facts{max-width:640px;margin:14px 0 0;color:var(--muted,#4A5259);font-size:15px;line-height:1.55}
.bk-facts a{color:var(--ink,#16191C);text-underline-offset:3px}

.bk-cover{position:relative;margin:0}
.bk-cover img{display:block;width:100%;height:auto;aspect-ratio:709/1024;object-fit:cover;transform:rotate(1.6deg);box-shadow:0 2px 0 var(--line-soft,#C9CFD4),0 28px 50px -18px rgba(22,25,28,.45)}
.bk-clip{position:absolute;left:14%;top:-38px;z-index:2;width:46px;height:124px;pointer-events:none}
.bk-stamp{position:absolute;right:-18px;bottom:64px;z-index:3;padding:10px 16px 8px;border:5px double var(--stamp,#C8261B);color:var(--stamp,#C8261B);background:rgba(246,247,244,.6);text-align:center;transform:rotate(-12deg);animation:bkStamp .45s .8s cubic-bezier(.2,.7,.2,1) both;pointer-events:none}
.bk-stamp b{display:block;font-size:clamp(24px,2.8vw,36px);font-weight:900;letter-spacing:.06em;line-height:1;white-space:nowrap}
.bk-stamp small{display:block;margin-top:6px;font-size:12px;font-weight:700;letter-spacing:.08em;white-space:nowrap}
.bk-stamp--long b{font-size:clamp(18px,1.9vw,25px)}
.bk-stamp--long small{font-size:11px}
@keyframes bkStamp{0%{opacity:0;transform:rotate(-12deg) scale(1.7)}55%{opacity:1;transform:rotate(-12deg) scale(.95)}100%{opacity:1;transform:rotate(-12deg) scale(1)}}
.bk-excerpts{margin-top:30px;text-align:center}
.bk-excerpts:empty{display:none}
.bk-excerpts button{margin:0}

/* Video */
.bk-video{margin:56px auto 0;text-align:center}
.bk-video video{display:block;width:min(100%,300px);height:auto;aspect-ratio:9/16;margin:0 auto;border:1.5px solid var(--ink,#16191C);background:#16191C}
.bk-video p{max-width:440px;margin:10px auto 0;color:var(--muted,#4A5259);font-size:14px;line-height:1.5}

/* About */
.bk-about{padding:clamp(48px,7vw,88px) 0;border-top:1px solid var(--line,#8E9AA4);background:var(--white,#fff)}
.bk-narrow{max-width:760px}

/* Buy section: the edition register */
.bk-buy-section{padding:clamp(64px,8vw,104px) 0;background:var(--white,#fff);border-top:2px solid var(--ink,#16191C)}
.bk-eyebrow{margin:0 0 12px;color:var(--muted,#4A5259);font-size:15px;font-weight:600}
.bk-h2{margin:0 0 16px;font-size:clamp(32px,4.4vw,56px);font-weight:800;letter-spacing:-0.035em;line-height:1.02}
.bk-note{max-width:720px;margin:0;color:var(--ink,#16191C);font-size:17px;line-height:1.6}
.bk-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:0;margin-top:36px;align-items:stretch;border-top:1.5px solid var(--ink,#16191C);border-left:1.5px solid var(--ink,#16191C)}
.bk-card{padding:24px;border-right:1.5px solid var(--ink,#16191C);border-bottom:1.5px solid var(--ink,#16191C);background:var(--white,#fff)}
.bk-card--wide{grid-column:1/-1;background:var(--paper,#F6F7F4)}
.bk-card h3{margin:0 0 12px;font-size:24px;font-weight:800;letter-spacing:-0.02em;line-height:1.15}
.bk-card p{margin:0 0 16px;color:var(--ink,#16191C);font-size:15.5px;line-height:1.55}
.bk-card .button{width:100%;margin:0}
.bk-card .bk-buy{max-width:480px}
.bk-buy .bk-label{display:block;margin:0 0 8px;color:var(--muted,#4A5259);font-size:14px}
.bk-buy .bk-chips{margin-bottom:16px}
.bk-buy .bk-select{margin-bottom:14px}
.bk-buy .bk-status{margin:8px 0 0;color:var(--muted,#4A5259);font-size:14px;line-height:1.45;min-height:1.45em}
.bk-account{margin:10px 0 0!important;color:var(--muted,#4A5259)!important;font-size:13px!important}
.bk-card .bk-sample{display:inline-block;margin-top:12px}
.bk-stores{margin-top:18px;padding-top:14px;border-top:1px solid var(--line,#8E9AA4);font-size:14px;line-height:1.6}
.bk-stores summary{font-weight:700;cursor:pointer}
.bk-stores h4{margin:14px 0 6px;color:var(--muted,#4A5259);font-size:13px;font-weight:700}
.bk-stores ul{margin:0;padding-left:18px;columns:2;column-gap:28px}
.bk-stores li{margin-bottom:6px;break-inside:avoid}
.bk-stores a{color:var(--red-ink,#B3241A);text-underline-offset:3px}

/* Sticky buy bar (English page, phones) */
.bk-bar{position:fixed;right:0;bottom:0;left:0;z-index:60;display:flex;align-items:center;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--night,#16191C);color:#fff;border-top:2px solid var(--red,#D52B1E)}
.bk-bar[hidden]{display:none}
.bk-bar-thumb{flex:0 0 30px;height:45px;background:#ded8cc center/cover no-repeat}
.bk-bar-text{flex:1;min-width:0;font:700 14px/1.25 var(--font)}
.bk-bar-text small{display:block;color:#C9CFD4;font-weight:500}
.bk-bar .button{min-height:44px;margin:0;padding:0 20px}

@media(min-width:900px){
  .bk-wrap{width:calc(100% - 96px)}
  .bk-bar{display:none!important}
  /* The edition register: the buyable edition on the left, the other editions stacked on the right */
  .bk-cards{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
  .bk-card{grid-column:2}
  .bk-card--wide{grid-column:1;grid-row:1/span 3}
}
/* Tablets keep the desktop arrangement (form on the left, cover on the right), a little smaller */
@media(max-width:900px){
  .bk-hero-grid{column-gap:32px}
  .bk-side{margin-top:12px}
  .bk-clip{top:-30px;width:38px;height:102px}
  .bk-stamp{right:-10px;bottom:44px;padding:8px 12px 6px;border-width:4px}
  .bk-stamp b{font-size:22px}
  .bk-stamp small{font-size:10px}
  .bk-stamp--long b{font-size:16px}
  .bk-stamp--long small{font-size:9px}
}
@media(max-width:600px){
  .bk-hero{padding:16px 0 48px}
  .bk-formbar .bk-wrap{padding:7px 0}
  .bk-formbar .bk-wrap span:nth-child(2){display:none}
  .bk-title{font-size:44px}
  .bk-hook{margin-top:10px;font-size:18px}
  .bk-hero-grid{grid-template-columns:104px minmax(0,1fr);grid-template-areas:"head head" "side form";column-gap:12px}
  .bk-side{width:104px;margin-top:16px;justify-self:start}
  .bk-clip{display:none}
  /* The stamp stays inside the cover column so it never covers the form */
  .bk-stamp{right:auto;left:-6px;bottom:-12px;padding:4px 6px 3px;border-width:3px}
  .bk-stamp b{font-size:12px;letter-spacing:.03em}
  .bk-stamp small{font-size:6px;letter-spacing:.03em;margin-top:2px}
  .bk-stamp--long{left:-8px}
  .bk-stamp--long b{font-size:9px;letter-spacing:.02em}
  .bk-stamp--long small{font-size:5px}
  .bk-excerpts{display:none}
  .bk-form{margin-top:16px}
  .bk-field--extra{display:none}
  .bk-field{grid-template-columns:28px minmax(0,1fr)}
  .bk-num{padding:10px 0 0 9px;font-size:13px}
  .bk-fieldbody{padding:8px 10px 10px 0;gap:5px}
  .bk-fvalue--plain{font-size:15px;line-height:1.45}
  .bk-flabel{font-size:13px}
  .bk-chips{gap:6px}
  .bk-chip{min-height:38px;padding:0 9px 0 7px;gap:7px;font-size:15px}
  /* In the hero form the formats become a plain list of tick boxes, as on a paper form */
  .bk-form .bk-chips{flex-direction:column;align-items:stretch;gap:0}
  .bk-form .bk-chip{min-height:34px;padding:0;border:0;background:transparent}
  .bk-form .bk-chip:hover,.bk-form .bk-chip[aria-pressed="true"]{background:transparent}
  .bk-form .bk-chip[aria-pressed="true"]{font-weight:800}
  .bk-hint{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .bk-chip::before{width:17px;height:17px}
  .bk-select{min-height:44px;padding:0 6px;font-size:14px}
  .bk-formfoot{flex-direction:column;align-items:stretch;gap:4px;padding:10px 10px 4px}
  .bk-formfoot .button{min-height:52px;padding:0 12px;font-size:17px}
  .bk-formfoot .bk-sample{display:flex;align-items:center;justify-content:center;min-height:40px;font-size:15px}
  .bk-form .bk-status{padding:2px 10px 12px;font-size:13px}
  .bk-facts{font-size:14px}
  .bk-video{margin-top:40px}
}
@media(max-width:400px){.bk-title{font-size:40px}}
.lm-dark .bk-form,.lm-dark .bk-card{background:#26292d!important}
.lm-dark .bk-form .bk-field,.lm-dark .bk-card div{background-color:transparent!important}
.lm-dark .bk-formfoot,.lm-dark .bk-form .bk-status{background:#2b3530!important}
.lm-dark .bk-chip{border-color:#8d877d;background:#26292d!important;color:#f0e9dc!important}
.lm-dark .bk-chip[aria-pressed="true"]{background:#2b3530!important}
@media(max-width:600px){.lm-dark .bk-form .bk-chip,.lm-dark .bk-form .bk-chip[aria-pressed="true"]{background:transparent!important}}
.lm-dark .bk-select{border-color:#8d877d;background:#26292d;color:#f0e9dc}
.lm-dark .bk-stamp{background:rgba(32,34,37,.6)}
@media(prefers-reduced-motion:reduce){.bk-stamp{animation:none}}
