/* Reading surfaces share one mobile gutter; inputs, offers and dialogue retain their frames. */
@media (max-width:767px) {
 body[data-site-shell] { --reading-gutter:16px; --site-gutter:var(--reading-gutter); }
 body[data-site-shell] > main { min-width:0; padding-inline:max(var(--reading-gutter),env(safe-area-inset-left,0px)) max(var(--reading-gutter),env(safe-area-inset-right,0px)); box-shadow:none; }
 body[data-site-shell] :is(.help-main > .help-card,.today-content,.journal-heading,.journal-tools,.journal-capabilities,.journal-card,.journal-month,#together-history) { padding-inline:0; border-inline:0; border-radius:0; box-shadow:none; background:transparent; }
 body[data-site-shell] :is(#premium-document,#offer-sample) :is(.premium-chapter,.premium-month,.premium-scene,.traditional-reader,.traditional-chapter > header,.toon-book-title) { padding-inline:0; border-inline:0; box-shadow:none; min-width:0; }
 body[data-site-shell] .toon-book-title > h1 { flex-basis:100%; min-width:0; overflow-wrap:anywhere; }
 body[data-site-shell] :is(#premium-document,#offer-sample,#annual-entry-result-body,#sample) :is(.toon-chapter,.toon-heading,.toon-copy) { padding-inline:0; border-inline:0; border-radius:0; box-shadow:none; background:transparent; }
 /* skin.css marks these reader preferences important; override only the mobile frame. */
 body[data-site-shell] :is(#premium-document,#offer-sample,#annual-entry-result-body,#sample) .toon-copy,
 body[data-site-shell] #annual-entry-result { padding-inline:0 !important; border-inline:0 !important; background:transparent !important; }
 body[data-site-shell] #offer-sample .traditional-reader,
 body[data-site-shell] #document-chapters .traditional-reader { padding-inline:0; border:0; border-radius:0; box-shadow:none; }
 body[data-site-shell] :is(#annual-sheet,#theme-sheet,#couple-sheet,#traditional-entry) .couple-sheet-panel { padding-inline:max(16px,env(safe-area-inset-left,0px)) max(16px,env(safe-area-inset-right,0px)); }
 body[data-site-shell] :is(#annual-sheet,#theme-sheet,#couple-sheet,#traditional-entry) .couple-sheet-card { padding-inline:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
 body[data-site-shell] :is(#annual-entry-result,#theme-sheet-result,#couple-sheet-result) { padding-inline:0; border-inline:0; min-width:0; }
 body[data-site-shell] :is(#annual-entry-result-body,#theme-sheet-result,#couple-sheet-result) article { padding-inline:0; border-inline:0; box-shadow:none; }
 body[data-site-shell] .shop-webtoon-card .shop-card-body { padding-inline:14px; }
 body[data-site-shell] :is(.couple-buybox,.order-price-card,.purchase-notice) { min-width:0; overflow-wrap:anywhere; }
 body[data-site-shell] :is(.premium-chapter,.traditional-body,.toon-book,#annual-entry-result-body) p { overflow-wrap:anywhere; word-break:normal; }
}

/* Match the feed's outer gutter without changing card-specific interior spacing. */
@media(max-width:767px){
 body[data-site-shell] :is(.shop-annual-detail,.shop-money-detail,.shop-traditional-detail){padding-inline:0;min-width:0;}
 body[data-site-shell] :is(.shop-annual-detail,.shop-money-detail,.shop-traditional-detail) .shop-sample article,
 body[data-site-shell] :is(.shop-annual-detail,.shop-money-detail,.shop-traditional-detail) .sample-scene-card {padding-inline:0;border-inline:0;margin-inline:0;}
 body[data-site-shell] :is(.shop-annual-detail,.shop-money-detail,.shop-traditional-detail) .sample-scene-card .scene-prose {padding-inline:0;}
 body[data-site-shell] #premium-document {padding-inline:0;margin-inline:0;min-width:0;}
 body[data-site-shell] #premium-document :is(.toon-book,.toon-chapter,.toon-copy,.scene-prose) {padding-inline:0;margin-inline:0;border-inline:0;}
}


/* Annual reference: preserve illustrations, inset prose once, pace each scene. */
@media(max-width:767px){
 body[data-site-shell] :is(#premium-document,#offer-sample,#annual-entry-result-body,#sample) .toon-book{
  --reader-prose-inset:8px;--reader-paragraph-gap:28px;--reader-image-gap:24px;--reader-scene-gap:44px;
 }
 body[data-site-shell] :is(#premium-document,#offer-sample,#annual-entry-result-body,#sample) .toon-book :is(.toon-copy,.toon-heading,.toon-next){
  padding-inline:var(--reader-prose-inset)!important;box-sizing:border-box;
 }
 body[data-site-shell] :is(#premium-document,#offer-sample,#annual-entry-result-body,#sample) .toon-book .toon-copy{
  padding-block:var(--reader-image-gap)!important;margin-block:0!important;
 }
 body[data-site-shell] :is(#premium-document,#offer-sample,#annual-entry-result-body,#sample) .toon-book .toon-copy p{
  margin-block:0 var(--reader-paragraph-gap)!important;
 }
 body[data-site-shell] :is(#premium-document,#offer-sample,#annual-entry-result-body,#sample) .toon-book .toon-copy p:last-child{margin-bottom:0!important}
 body[data-site-shell] :is(#premium-document,#offer-sample,#annual-entry-result-body,#sample) .toon-book .toon-copy :is(.toon-copy,.toon-heading,.toon-next){padding-inline:0!important}
 body[data-site-shell] :is(#premium-document,#offer-sample,#annual-entry-result-body,#sample) .toon-book .toon-scene{margin-block:20px 0}
 body[data-site-shell] :is(#premium-document,#offer-sample,#annual-entry-result-body,#sample) .toon-book .toon-chapter{padding-block:24px var(--reader-scene-gap)}
 body[data-site-shell] :is(#premium-document,#offer-sample,#annual-entry-result-body,#sample) .toon-book .toon-heading{margin-block:0 24px}
 body[data-site-shell] :is(#premium-document,#offer-sample,#annual-entry-result-body,#sample) .toon-book .toon-copy :is(h2,h3){margin-bottom:16px}
}

/* The page owns the first and last spacing; navigation compensation lives in the footer. */
body[data-site-shell]>main{padding-block-start:32px;min-height:0}
body[data-site-shell]>main>:first-child{margin-block-start:0}
body[data-site-shell] .site-footer{padding-bottom:0}
body[data-site-shell] .site-footer-inner{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
body[data-site-shell]>main.account-main{padding-block-start:32px}
@media(max-width:767px){
 body[data-site-shell]>main,body[data-site-shell]>main.account-main{padding-block-start:24px}
 body[data-site-shell].daily-messengers #today-journal{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
 body[data-site-shell] .sample-scene-card .scene-prose{padding:24px 12px}
 body[data-site-shell] .sample-scene-card .scene-paragraphs p{margin-bottom:28px}
 body[data-site-shell] :is(#premium-document,#offer-sample,#annual-entry-result-body,#sample) .toon-copy{border:0!important;box-shadow:none;border-radius:0}
 body[data-site-shell] :is(.traditional-body,.traditional-chapter>header){padding-inline:8px}
 body[data-site-shell] .traditional-body p{margin-block:0 28px}
 body[data-site-shell] .traditional-chapter{margin-bottom:44px}
}

@media(max-width:767px){body[data-site-shell] #today-journal>:first-child{margin-top:0}}
/* Plain explanatory prose does not stack a second framed card inside a reader. */
@media(max-width:767px){
 body[data-site-shell] .traditional-reader :is(.traditional-strength,.traditional-structure,.structure-relation,.traditional-section){border:0;border-radius:0;box-shadow:none;background:transparent;padding-inline:8px}
 body[data-site-shell] .traditional-reader .traditional-section .traditional-section{padding-inline:0}
 body[data-site-shell].season-reader .plain-evidence article{border:0;box-shadow:none}
}

/* The page is the outer surface on both desktop and mobile; retain information cards. */
body[data-site-shell] .shop-traditional-detail .traditional-sample-viewer{padding-inline:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body[data-site-shell] .shop-traditional-detail .traditional-sample-viewer > .traditional-reader,
body[data-site-shell] #document-chapters > .traditional-reader,
body[data-site-shell] #offer-sample > .traditional-reader{padding-inline:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body[data-site-shell] .traditional-reader .traditional-structure{padding-inline:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body[data-site-shell] .traditional-reader .traditional-hero-copy :is(h1,h2){color:#fff}
body[data-site-shell] .site-footer a.footer-brand{color:var(--skin-ink)}
body[data-site-shell] #couple-sheet .couple-sheet-panel > p:has(button[data-couple-close]){background:var(--skin-surface)}

/* Only the shop sample supplies this tighter gutter; paid and legacy readers keep theirs. */
@media (max-width:767px) {
 body[data-site-shell] .shop-sample .traditional-reader .traditional-chapter > header,
 body[data-site-shell] .shop-sample .traditional-reader .traditional-chapter > .traditional-section:not(.traditional-strength):not(.traditional-stage) { padding-inline:4px; }
}
