/* W3's adaptations (S07.7.3.2b; CR-050, AD-63): only what the Stories
   boards do not draw. stories.css is the boards' port and is never edited
   by hand. Values are the boards' own. */

/* The frame's landmark wraps the boards' 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;
}

/* The search: the boards draw a field; a real input lies over it, the
   boards' words showing until something is typed. */
.stories-search {
  display: contents;
}
.stories-search .sfield {
  position: relative;
}
.stories-search input {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  box-sizing: border-box;
  padding-inline: 50px 52px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  font: inherit;
  color: transparent;
  caret-color: #171310;
  appearance: none;
}
.stories-search input:focus {
  outline: none;
  color: #171310;
}
.stories-search .sfield:focus-within {
  outline: 3px solid #985C06;
  outline-offset: 3px;
}
.stories-search .sfield:has(input:focus) .b-1a3g00t,
.stories-search .sfield:has(input:focus) .b-0r3puog,
.stories-search .sfield:has(input:not(:placeholder-shown)) .b-1a3g00t {
  visibility: hidden;
}
.stories-search .b-041cbji {
  position: relative;
  z-index: 1;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* The Expression tiles are a form's buttons, laid out as the boards' row. */
.stories-filter {
  display: contents;
}
.stories-filter button {
  cursor: pointer;
}

/* A made-up card's sample badge keeps its own width in the card's column
   (Web 3 and 8). */
.b-0frwntz .sample-badge {
  align-self: flex-start;
}

/* The topic finder opens as a disclosure, its list under the boards'
   field. */
.stories-topic-finder > summary {
  list-style: none;
  cursor: pointer;
}
.stories-topic-finder > summary::-webkit-details-marker {
  display: none;
}
.stories-topic-finder ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.stories-topic-finder a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: 'Ignite Geometric', 'URW Gothic', 'URW Gothic L', 'Century Gothic', system-ui, sans-serif;
  font-size: 17px;
  color: #985C06;
}

/* 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 boards' composition reflows (X-02; 02a, Rules for the
   build), in their own values: one column, the search at the column's
   width, the tiles and cards wrapping, every link at least 24 px. */
@media (max-width: 1199.98px) {
  .b-1x4igd1,
  .b-0vwftxo {
    padding: 24px 24px 0;
  }
  .b-1ab1o5u {
    flex-direction: column;
    align-items: stretch;
  }
  .b-0k2de5u,
  .b-1xbguz6 {
    width: 100%;
    max-width: 520px;
  }
  .b-15jgjdn,
  .b-03oofst {
    font-size: clamp(30px, 8vw, 54px);
    overflow-wrap: break-word;
  }
  .b-1bbj9ta {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .b-0b7b30u {
    padding: 22px 24px 56px;
  }
  .b-1owgox8 {
    flex-wrap: wrap;
    gap: 10px;
  }
  .b-0b5zkqo {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .b-0xmzab7 {
    flex-direction: column;
  }
  .b-1ez3svo {
    padding: 28px 22px;
  }
  .b-1mveezb {
    width: 100%;
    aspect-ratio: 460 / 260;
  }
  .b-0upcx2q {
    flex-wrap: wrap;
  }
  .b-09mu4il {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 24px 56px;
  }
  .b-0ufexp6 {
    padding: 28px 22px;
  }
  .b-1u1n8z2 {
    font-size: clamp(26px, 7vw, 36px);
    overflow-wrap: break-word;
  }
  .b-096f5sa {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .b-1eft6ic,
  .b-089murh,
  .b-1l2d5g1,
  .b-0c7nosv {
    height: auto;
    min-height: 44px;
    white-space: normal;
  }
}
