/* Pocket Treasures First Edition — the magazine's one design.
   Owner direction (Nov 4 2026): rebuild properly, no tricks. This file
   replaces the stacked flow / kiosk / pager stylesheets. There are no
   mode selectors here because there are no modes: the track below is
   the magazine's structure, and every screen — phone, desktop, or the
   app's web view — renders this same design.

   The design itself is the owner's: forget the geometric shape of a
   magazine; every page is a full-screen panel in the art direction of
   the archival Saturday Evening Post — folio rules, enormous display
   headlines, drop caps, dense justified columns, painted openers, and
   the story's own plates carried inside the read. A tribute: patterns,
   never copies. The approved cover and the contents artwork are
   presented whole and are never cropped, stretched, or redrawn. */

/* --- The track: a row of pages. The browser's own horizontal scroll,
       snapped page to page, is the page turn. --- */
html body { background: #e7dcc2; }
.pt-track {
  display: flex;
  flex-direction: row;
  height: 100vh;
  height: 100svh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.pt-track::-webkit-scrollbar { display: none; }

/* Every page fills the screen. A long page scrolls inside itself. */
.pt-track > section.sheet,
.pt-track > article.feature {
  flex: 0 0 100%;
  width: auto;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 54px max(22px, calc((100vw - 1240px) / 2)) 64px;
  box-shadow: none;
  scroll-snap-align: start;
  overflow-y: auto;
  /* A page never scrolls sideways itself. Without this, overflow-y:auto
     makes every page its own sideways scroller and a swipe gets eaten
     by the page instead of turning it — the track must own the turn. */
  overflow-x: hidden;
  /* Vertical chaining is contained (a story's end is the story's end),
     but horizontal gestures must chain freely to the track — containing
     them here would swallow the page turn itself. */
  overscroll-behavior-y: contain;
  overscroll-behavior-x: auto;
  display: flex;
  flex-direction: column;
}

/* Front matter, ads, and the back cover sit centred on their screen,
   the way a printed plate sits on its page. */
.pt-track > section.prelim,
.pt-track > section.ad-interior,
.pt-track > section.end,
.pt-track > section.collector-resources {
  justify-content: center;
}

/* The house ads and back cover carry the approved CoinHunter brand plate
   as its letterhead. */
.pt-track > section.ad-interior .ad-brand,
.pt-track > section.prelim .ad-brand,
.pt-track > section.end .ad-brand {
  display: block;
  width: min(240px, 62%);
  height: auto;
  margin: 0 auto 20px;
}

/* --- The cover. On wider screens the approved cover stands whole on
       its page: publication strip above, the painting between, the
       cover band below. Nothing cropped, nothing filled in. --- */
.pt-track > section.cover { padding-top: 30px; padding-bottom: 34px; }
.pt-track .cover-art {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}
.pt-track .cover-art img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- The three-piece cover (owner direction, Nov 4 2026): on a tall
       phone screen the header band slides to the top, the footer band
       to the bottom, and the illustration expands between them to fill
       the page. Portrait screens only; wider screens keep the whole
       cover above. --- */
.pt-cover-bands { display: none; }
@media (max-aspect-ratio: 1/1) {
  .pt-track > section.cover { padding: 0; overflow: hidden; }
  .pt-track .cover .publication,
  .pt-track .cover .cover-art,
  .pt-track .cover .coverband { display: none; }
  .pt-cover-bands {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
  }
  .pt-band--head img,
  .pt-band--foot img { width: 100%; height: auto; display: block; }
  .pt-band--scene { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .pt-band--scene img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 42%;
  }
  /* The instruction floats on the painting, just above the footer
     band, so the footer's own teasers stay fully readable. */
  .pt-track .cover .pt-swipe-hint { bottom: calc(9.34vw + 12px); }
}
/* The opening instruction, in the cover's own red. */
.pt-swipe-hint {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  white-space: nowrap;
  background: #812b2b;
  color: #f8f0da;
  font: 700 13px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 12px 20px 11px;
  box-shadow: 0 0 0 2px #f3e7ca, 0 0 0 4px #812b2b, 0 8px 22px rgba(30, 20, 10, .35);
}

/* --- Contents and house-ad proof sheets: the artwork centred on its
       screen at honest size, never stretched. --- */
.pt-track > section.proofsheet {
  align-items: center;
  justify-content: center;
}
.pt-contents-wrap {
  position: relative;
  line-height: 0;
  width: min(100%, 700px, calc((100svh - 180px) * 0.7727));
  margin-inline: auto;
}
.pt-contents-wrap > img { width: 100%; height: auto; display: block; }
.pt-track > section.proofsheet img { max-height: calc(100svh - 170px); object-fit: contain; }

/* Interactive contents: artwork untouched, targets live above it. */
.pt-hit {
  position: absolute; display: block; padding: 0; margin: 0;
  background: transparent; border: 0; border-radius: 6px; cursor: pointer;
}
.pt-hit:hover { background: #d5b27c2e; }
.pt-hit:focus-visible { outline: 3px solid #8d3c2e; outline-offset: -3px; background: #d5b27c38; }
.pt-contents-hint {
  text-align: center; font: italic 15.5px/1.4 Georgia, serif;
  color: #564936; margin: 14px 0 0;
}

/* Contents sheet fills its page: tight frame so the artwork reads
   at maximum honest size. Never cropped or stretched; the hit
   targets scale with the wrap. House-ad proofsheet untouched. */
.pt-track > section.proofsheet.contents { padding: 20px 8px 24px; }
.pt-track > section.proofsheet.contents .toc-note { margin-top: 12px; }
.pt-track > section.proofsheet.contents .pt-contents-hint { margin-top: 10px; }

/* --- Story furniture, Post fashion. --- */
.pt-track .storyhead h2 {
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .004em;
  margin: 8px 0 14px;
}
.pt-track .story-number { font-size: clamp(44px, 5vw, 64px); }
.pt-track .byline { font-size: 15.5px; }

/* The painted opener, framed like a plate. */
.pt-opener { margin: 4px 0 30px; }
.pt-opener img {
  width: 100%; height: auto; display: block;
  border: 1px solid #9a7152;
  outline: 3px double #875b38; outline-offset: 5px;
}
.pt-opener figcaption {
  font: italic 700 15px/1.5 Georgia, "Times New Roman", serif;
  text-align: center; color: #3c2b25;
  max-width: 760px; margin: 14px auto 0;
}

/* Dense, justified, columned — density is the aesthetic. */
.pt-track .prose {
  font-size: 17.5px;
  line-height: 1.64;
  text-align: justify;
}
@media (min-width: 1080px) {
  .pt-track .prose { column-count: 3; column-gap: 34px; }
}
@media (min-width: 700px) and (max-width: 1079px) {
  .pt-track .prose { column-count: 2; column-gap: 30px; }
}
@media (max-width: 699px) {
  .pt-track .prose { column-count: 1; text-align: left; }
}
/* The drop cap, big as a thumbnail. */
.pt-track .prose > p:first-of-type::first-letter {
  font-size: 3.55em;
  font-weight: 700;
  float: left;
  line-height: .8;
  padding: 7px 12px 0 0;
  color: #812b2b;
}
/* The printer's end mark: a small oxblood square closes every story. */
.pt-track .prose > p:last-of-type::after {
  content: " \25AA";
  color: #812b2b;
  font-size: .72em;
}
/* Subheads as ruled, centred breaks — the Post's italic furniture. */
.pt-track .prose h2,
.pt-track .prose h3 {
  text-align: center;
  font-style: italic;
  border-top: 3px double #9a4e34;
  border-bottom: 1px solid #b5a286;
  padding: 12px 0 9px;
  margin: 30px 0 16px;
}
/* Vintage paragraph rhythm: continuation paragraphs indent. */
.pt-track .prose > p + p { text-indent: 1.35em; }
.pt-track .prose > blockquote + p,
.pt-track .prose > figure + p,
.pt-track .prose > h2 + p,
.pt-track .prose > h3 + p { text-indent: 0; }

/* --- In-body treatments (owner adjustment two): the read is not a
       painting followed by a wall of text. --- */
/* The story's own plates, moved into the prose. */
.pt-inbody-art {
  break-inside: avoid;
  margin: 8px 0 20px;
}
.pt-inbody-art img {
  width: 100%;
  height: auto;
  max-height: 330px;
  object-fit: contain;
  background: #efe3c2;
  border: 1px solid #9a7152;
  outline: 3px double #875b38;
  outline-offset: 4px;
  padding: 8px;
}
.pt-inbody-art figcaption {
  font: italic 700 12.5px/1.45 Georgia, "Times New Roman", serif;
  text-align: center;
  color: #3c2b25;
  margin-top: 10px;
}
.pt-inbody-art--wide { column-span: all; }

/* The pull quote: the story's own line, set as a plate. */
.pt-pullquote {
  column-span: all;
  break-inside: avoid;
  font: italic 700 clamp(21px, 2.6vw, 29px)/1.35 Georgia, "Times New Roman", serif;
  text-align: center;
  color: #812b2b;
  border-top: 4px double #9a4e34;
  border-bottom: 4px double #9a4e34;
  padding: 20px 26px;
  margin: 10px 0 26px;
}

/* --- Affiliate placements (Command Center register hook): period
       furniture, plainly labeled, disclosure adjacent. A placement
       exists in the page only when the register's gates pass;
       otherwise it is absent entirely — never a placeholder. --- */
.pt-placement {
  column-span: all;
  margin: 26px auto 6px;
  max-width: 560px;
  border: 1px solid #152437;
  outline: 3px double #152437;
  outline-offset: 3px;
  background: #f8f0da;
  padding: 16px 18px 12px;
  text-align: center;
}
.pt-placement-eyebrow {
  font: 700 10.5px/1.3 Georgia, "Times New Roman", serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #812b2b;
  margin: 0 0 8px;
}
.pt-placement-item { font: 700 21px/1.25 Georgia, "Times New Roman", serif; margin: 0 0 6px; }
.pt-placement-item a {
  color: #152437;
  text-decoration: underline;
  text-decoration-color: #812b2b;
  text-underline-offset: 3px;
}
.pt-placement-note { font: italic 400 14.5px/1.5 Georgia, "Times New Roman", serif; margin: 0 0 8px; }
.pt-placement-disclosure { font: 400 11px/1.45 Georgia, "Times New Roman", serif; color: #5a4632; margin: 0; }

/* Letters to the Editor: a quiet magazine-to-Facebook invitation.
   No clickable link is exposed until the verified public Page is configured. */
[data-pt-facebook-container][hidden] { display: none !important; }
.pt-reader-letters {
  margin: 24px auto 0;
  padding: 18px 22px;
  max-width: 570px;
  border-top: 3px double #812b2b;
  border-bottom: 3px double #812b2b;
  text-align: center;
  background: #f8f0da;
}
.pt-reader-letters h3 {
  font: italic 400 31px/1.15 Georgia, "Times New Roman", serif;
  color: #152437;
  margin: 18px 0 12px;
}
.pt-reader-letters p { font: 16px/1.55 Georgia, "Times New Roman", serif; }
.pt-reader-letters a,
.pt-facebook-invite a {
  color: #812b2b;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.pt-facebook-invite { margin: 22px auto; max-width: 500px; }

/* Print: the whole edition on paper, page by page, no screen furniture. */
@media print {
  .pt-swipe-hint, .pt-contents-hint, .pt-hit { display: none !important; }
  .pt-cover-bands { display: none !important; }
  .pt-track .cover .publication,
  .pt-track .cover .coverband { display: block !important; }
  .pt-track .cover .cover-art { display: flex !important; }
  .pt-track {
    display: block;
    height: auto;
    overflow: visible;
  }
  .pt-track > section.sheet,
  .pt-track > article.feature {
    height: auto;
    overflow: visible;
    box-shadow: none;
    break-before: page;
  }
}
