/* W5's adaptations (S07.7.3.1b; CR-050, AD-63): only what the StoryPage
   boards do not draw. story.css and story-members.css are the boards' ports
   and are never edited by hand. Values are the boards' own. */

/* The frame's landmark wraps the board's page without boxing it. */
#main {
  display: contents;
}

/* Inside the board's page, the site's own element rules give way to the
   board's (its @layer board, else the browser's), as on the board itself:
   the frame's stylesheets load for the header and footer around it. Each
   rule weighs what the site's does, so it wins by coming later and the
   board's classes still win over it. */
:where(.b-1i8w2ww),
:where(.b-1i8w2ww) *,
:where(.b-1i8w2ww) *::before,
:where(.b-1i8w2ww) *::after {
  box-sizing: revert-layer;
}
:where(.b-1i8w2ww) {
  font-family: serif;
  font-size: medium;
  font-weight: normal;
  line-height: normal;
  color: CanvasText;
  overflow-wrap: normal;
}
:where(.b-1i8w2ww) h1,
:where(.b-1i8w2ww) h2,
:where(.b-1i8w2ww) h3 {
  font-family: revert-layer;
  font-size: revert-layer;
  font-weight: revert-layer;
  margin-block: revert-layer;
}
:where(.b-1i8w2ww) a {
  color: revert-layer;
}

/* A member's alternative, shown in place of the visitor's once member.js
   marks the page (WEB-08, AD-28; StoryPageMember). */
[data-for-member] {
  display: none !important;
}
html[data-member] [data-for-member] {
  display: revert !important;
}
html[data-member] [data-for-visitor] {
  display: none !important;
}
html[data-member] .btn-gold[data-for-member],
html[data-member] .btn-line[data-for-member] {
  display: inline-flex !important;
}

/* Share: a real button in the board's place, set as the board's link. */
.b-0wkfiqs button {
  cursor: pointer;
}
.b-0wkfiqs .share-status:empty {
  display: none;
}

/* The book the story is a chapter of (COL-02; Peter, 24 Nov 2026), on the
   board's storyteller card under the reading invitation, in its type, its
   words stacked. */
.story-open-stories {
  text-align: center;
}
[data-story-book] {
  flex-direction: column;
  align-items: flex-start;
  margin-block-start: 56px;
}

/* Is this your story? (S10.4d.2c), shown only while the claim emails are
   on; and a members-only page's Stories open to everyone (02a W5, M). */
.story-claim,
.story-open-stories {
  margin: 20px 0 0;
  font-family: 'Ignite Geometric', 'URW Gothic', 'URW Gothic L', 'Century Gothic', system-ui, sans-serif;
  font-size: 15px;
}
.story-claim a,
.story-open-stories a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #985C06;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* From 1200 to 1439 px the 1440 composition scales as a whole (AD-63), as
   the home's does. Browsers without typed arithmetic take the nearest step
   below. */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  html {
    zoom: 0.8333;
  }
}
@media (min-width: 1280px) and (max-width: 1439.98px) {
  html {
    zoom: 0.8888;
  }
}
@media (min-width: 1360px) and (max-width: 1439.98px) {
  html {
    zoom: 0.9444;
  }
}
@supports (width: calc(100vw / 1440px * 1px)) {
  @media (min-width: 1200px) and (max-width: 1439.98px) {
    html {
      zoom: calc(100vw / 1440px);
    }
  }
}

/* Under 1200 px the board's composition reflows (X-02; 02a, Rules for the
   build), in its own values: one column, the photo at the column's width,
   the cards wrapping, every link and button at least 24 px. */
@media (max-width: 1199.98px) {
  .b-0s6zdsm {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 24px 24px 0;
  }
  .b-00p55bg {
    font-size: clamp(32px, 8vw, 60px);
    overflow-wrap: break-word;
  }
  .b-06hyxh0 {
    height: auto;
    aspect-ratio: 560 / 410;
  }
  .b-02kyu6o {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .b-0te4eih {
    width: calc(100% + 40px);
  }
  .b-0nxen87 {
    flex-wrap: wrap;
  }
  .b-0wkfiqs {
    margin-left: 0;
  }
  .b-1vk7v7b a,
  .b-1tdzy5m {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
  }
  .b-0f47ocd {
    padding: 0 24px;
  }
  .b-1fy7sbe {
    padding: 28px 22px;
  }
  .b-14uzd9l,
  .b-15qrkbk {
    padding: 0 24px;
  }
  .b-1v9zt5b {
    flex-wrap: wrap;
    gap: 12px 28px;
  }
  .b-16feqad {
    display: none;
  }
  .b-07kha8y {
    white-space: normal;
    letter-spacing: .12em;
    min-width: 0;
  }
  .b-1hi9s5a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
  }
  .b-0zjjupy {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .b-09vkn20 {
    flex-wrap: wrap;
  }
  .b-1ii28dn {
    height: auto;
    min-height: 46px;
    white-space: normal;
  }
  .b-114h5xm {
    padding: 36px 22px;
  }
  .b-160l46t {
    font-size: clamp(28px, 7vw, 40px);
  }
  .b-07c8pqh {
    flex-wrap: wrap;
    justify-content: center;
  }
  .b-06bmekv {
    height: auto;
    min-height: 46px;
    white-space: normal;
  }
}
