/* Final responsive refinements for the KPC standalone theme. */
:root{
  --kpc-wide:min(1420px,calc(100% - clamp(36px,8vw,152px)));
  --kpc-reading:min(770px,calc(100% - 40px));
}
.kpc-hero h1{font-size:clamp(4.2rem,7.4vw,7.7rem);overflow-wrap:normal}
.kpc-hero h1 em{margin-left:clamp(8px,2vw,40px)}
.kpc-hero-grid{grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr)}
.kpc-hero-art{min-width:0}
.kpc-hero-art-type{font-size:clamp(2.6rem,5vw,6rem)}
.kpc-post-card img{object-fit:cover}
.kpc-article-after .kpc-meta{color:#583043}
.kpc-content-wrap .wp-block-gallery{max-width:100%}
.kpc-content-wrap table{display:block;overflow-x:auto;max-width:100%;border-collapse:collapse}
.kpc-content-wrap th,.kpc-content-wrap td{padding:.6rem;border:1px solid #b9af9e}
@media(max-width:1050px){.kpc-hero h1{font-size:clamp(4rem,8vw,6.8rem)}}
@media(max-width:850px){.kpc-hero-grid{grid-template-columns:1fr}.kpc-hero h1{font-size:clamp(5rem,13vw,8rem)}.kpc-hero-art-type{font-size:clamp(4rem,9vw,6rem)}}
@media(max-width:640px){
 :root{--kpc-wide:calc(100% - 44px)}
 .kpc-hero h1{font-size:clamp(2.8rem,11vw,5rem);line-height:.82}
 .kpc-hero h1 span{white-space:nowrap}
 .kpc-hero h1 em{margin-left:0}
 .kpc-hero-art-type{font-size:clamp(3rem,11vw,5.3rem)}
 .kpc-hero-art{max-width:100%}
 .kpc-manifesto h2{overflow-wrap:break-word}
 .kpc-issue-cover{width:100%}
 .kpc-interior-hero h1{overflow-wrap:anywhere}
}

/* Migration-safe original KPC flipbook and unboxing media embeds. */
.kpc-entry .kpc-preserved-embed{display:block;width:100%;border:1px solid #a88a58;border-radius:7px;background:#f5f1e7;max-width:100%;}
.kpc-entry .kpc-preserved-embed--magazine{height:75vh;min-height:440px;max-height:850px;}
.kpc-entry .kpc-preserved-embed--video{height:auto;aspect-ratio:16/9;border:0;background:#111;}
@media(max-width:640px){.kpc-entry .kpc-preserved-embed--magazine{min-height:480px;height:70vh;}}

/* Official edition covers, with accessible full-cover links. */
.kpc-cover-overlay-link{position:absolute;inset:0;display:block;z-index:5;overflow:hidden;text-decoration:none;}
.kpc-cover-overlay-link img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease;}
.kpc-cover-overlay-link:hover img{transform:scale(1.025);}
.kpc-cover-overlay-link:focus-visible{outline:4px solid #f5d28d;outline-offset:-6px;}
@media(prefers-reduced-motion:reduce){.kpc-cover-overlay-link img{transition:none;}}

/* KPC heritage layout: preserve migrated editions' original palette, type and page width. */
.kpc-preserved-page{background:#070b14;color:#f8f9fa;min-height:60vh;overflow-x:clip}
.kpc-preserved-source{width:min(1160px,calc(100% - clamp(24px,4vw,58px)));margin-inline:auto;padding-block:clamp(18px,3vw,42px) 72px}
.kpc-preserved-source > *{max-width:100%}
.kpc-preserved-source img{max-width:100%;height:auto}
.kpc-preserved-source :is(iframe,video){max-width:100%}
.kpc-preserved-source .kpc-preserved-embed--magazine{min-height:440px;height:75vh;max-height:850px}
.kpc-preserved-source .kpc-preserved-embed--video{width:100%;height:auto;aspect-ratio:16/9}
.kpc-preserved-credit{display:flex;gap:14px 26px;flex-wrap:wrap;justify-content:space-between;margin-top:56px;padding:18px 0;border-top:1px solid #a78c63;border-bottom:1px solid #a78c63;color:#e7d4b3;font:600 .72rem/1.65 var(--kpc-sans);letter-spacing:.05em}
.kpc-preserved-comments{background:#f7f2e8;color:#182132;padding:clamp(16px,3vw,35px);margin-top:35px}
.kpc-preserved-comments :is(h2,p,label){color:#182132}
@media(max-width:640px){.kpc-preserved-source{width:calc(100% - 24px);padding-block:16px 45px}.kpc-preserved-credit{display:block}.kpc-preserved-credit span,.kpc-preserved-credit time{display:block;margin-block:5px}}

/* Typography safeguard: imported prose must not generate oversized initial letters.
   Poetry, verse and contributor credits must keep their natural first characters. */
.kpc-entry .has-drop-cap:not(:focus)::first-letter,
.kpc-entry-content .has-drop-cap:not(:focus)::first-letter,
.kpc-edition-body .has-drop-cap:not(:focus)::first-letter,
.kpc-i3-preface-copy .has-drop-cap:not(:focus)::first-letter,
.kpc-i3-highlight .has-drop-cap:not(:focus)::first-letter,
.kpc-i3-voice-copy .has-drop-cap:not(:focus)::first-letter {
  float:none!important;
  display:inline!important;
  font:inherit!important;
  line-height:inherit!important;
  margin:0!important;
  padding:0!important;
  color:inherit!important;
  text-transform:none!important;
}
.kpc-entry .has-drop-cap,
.kpc-entry-content .has-drop-cap,
.kpc-edition-body .has-drop-cap,
.kpc-i3-preface-copy .has-drop-cap {
  text-indent:0;
}
.kpc-entry .wp-block-verse::first-letter,
.kpc-edition-body .wp-block-verse::first-letter,
.kpc-entry pre::first-letter,
.kpc-edition-body pre::first-letter {
  float:none!important;
  font:inherit!important;
  color:inherit!important;
}


/* CookieAdmin: keep mobile footer links unobstructed, 2026-11-04 */
@media(max-width:640px){
  body.kpc-atelierscape .cookieadmin_reconsent_wrap button.cookieadmin_re_consent{
    left:auto;
    right:calc(14px + env(safe-area-inset-right,0px));
    bottom:calc(14px + env(safe-area-inset-bottom,0px));
    background-color:#582638;
    border:1px solid #d8bb84;
    box-shadow:0 4px 14px rgba(0,0,0,.38);
  }
}

/* Editorial homepage refinements. Issue covers display original artwork without
   artificial overlays. Reading-room cards preserve text inside original images. */
.kpc-issue-cover:before,.kpc-issue-cover:after{display:none}
.kpc-cover-overlay-link{inset:0;z-index:2}
.kpc-cover-overlay-link img{width:100%;height:100%;object-fit:contain;object-position:center;background:#111d30}
.kpc-issue-info h3 .kpc-issue-title-link{font:inherit;color:inherit;text-decoration:none}
.kpc-issue-info h3 .kpc-issue-title-link:hover,.kpc-issue-info h3 .kpc-issue-title-link:focus-visible{color:#61253b;text-decoration:underline}
.kpc-journal .kpc-post-art{aspect-ratio:1.36;background:linear-gradient(145deg,#17273e,#573148);display:flex;align-items:center;justify-content:center}
.kpc-journal .kpc-post-art img{width:100%;height:100%;object-fit:contain;object-position:center;transform:none!important}
.kpc-journal .kpc-post-card:hover .kpc-post-art img{transform:none!important}
.kpc-journal .kpc-post-card{min-width:0}
.kpc-journal .kpc-post-card h3{overflow-wrap:break-word}
.kpc-journal .kpc-post-card p{color:#e5e0d9}
.kpc-journal .kpc-post-grid{row-gap:50px}
.kpc-issue-info p,.kpc-section-heading p{color:#303b4c}
.kpc-header-search{font-size:1.6rem;line-height:1}
@media(max-width:850px){.kpc-site-header .kpc-nav-links{max-height:70vh;overflow-y:auto;overscroll-behavior:contain}}
@media(max-width:640px){
 .kpc-journal .kpc-post-art{aspect-ratio:1.42}
 .kpc-journal .kpc-post-grid{row-gap:36px}
 .kpc-cover-overlay-link img{object-fit:contain}
}

/* Magazines and poem-art require uncropped, accessible visual previews. */
.kpc-issue-cover .kpc-cover-overlay-link img{object-fit:contain;background:#162237}
.kpc-post-card .kpc-post-art{background:#142339}
.kpc-post-card .kpc-post-art img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.kpc-post-card .kpc-card-author{color:#f0d3a5;font-weight:700}
.kpc-post-card .kpc-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.kpc-issue-info .kpc-issue-title-link{color:#182335;text-decoration:none}
.kpc-issue-info .kpc-issue-title-link:hover{text-decoration:underline;color:#602a42}
@media(max-width:640px){.kpc-post-card .kpc-meta{font-size:.66rem}.kpc-post-card .kpc-post-art{aspect-ratio:1.4}}
