/* Shared paper, ink, and wayfinding. */
:root {
  --bb-paper: #fbf6e9;
  --bb-page: #fffdf6;
  --bb-ink: #2e2924;
  --bb-muted: #574d46;
  --bb-spruce: #21574d;
  --bb-berry: #70465e;
  --bb-lilac: #eae0f2;
  --bb-mint: #e4eee5;
  --bb-gold: #eee0bb;
  --bb-rule: #ccc0ad;
  --bb-focus: #73526c;
  --bb-gutter: clamp(1rem, 4vw, 3.5rem);
  --bb-spread: 74rem;
  --bb-shadow: 0 12px 28px -21px #4b352c82;
  --paper: var(--bb-paper);
  --light: var(--bb-page);
  --ink: var(--bb-ink);
  --dim: var(--bb-muted);
  --teal: var(--bb-spruce);
  --deep: #363040;
  --violet: var(--bb-berry);
}

body {
  background: var(--bb-paper);
  color: var(--bb-ink);
}

.wrap {
  width: min(calc(100% - var(--bb-gutter) * 2), var(--bb-spread));
}

a {
  text-decoration-thickness: .075em;
  text-underline-offset: .19em;
}

a:hover { color: var(--bb-berry); }

:focus-visible {
  outline: 3px solid var(--bb-focus);
  outline-offset: 3px;
}

::selection { color: #2e2924; background: #f3df9f; }

.btn,
.mast nav a,
.footer-in nav a,
.bean-footer > a:last-child {
  min-block-size: 44px;
}

.btn {
  border-radius: 7px;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.btn.solid {
  border-color: var(--bb-spruce);
  background: var(--bb-spruce);
  color: #fffdf5;
  box-shadow: 0 3px 0 #abc1a9;
}

.btn.solid:hover { background: #19493f; }

.mast {
  background: var(--bb-page);
  border-bottom: 1px solid var(--bb-rule);
  position: relative;
  z-index: 3;
}

.mast-in {
  min-height: 72px;
  gap: 12px 26px;
}

.mast .brand {
  flex-shrink: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.08rem);
  color: var(--bb-ink);
  letter-spacing: -.07em;
}

.mast .brand i,
.footer-logo i { color: var(--bb-berry); }

.mast nav {
  gap: clamp(.3rem, 2vw, 1.1rem);
  font-size: .94rem;
}

.mast nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: .4rem;
}

.mast nav a:is(.nav-section, [aria-current="page"]) {
  color: var(--bb-spruce);
  text-decoration: underline;
  text-decoration-thickness: .13em;
  text-underline-offset: .39em;
}

.mast nav .nav-tool {
  padding-inline: .85rem;
  border-radius: 5px;
  border: 1px solid #9fb8a5;
  background: var(--bb-mint);
  color: #24453b;
}

.mast nav .nav-tool:hover { background: #d8e8d9; }

footer {
  border-top: 3px double #9aac98;
  background: #e1e8dc;
  color: #313a32;
}

.footer-in,
.bean-footer {
  align-items: center;
  gap: .7rem 1.4rem;
  padding-block: clamp(1rem, 3vw, 1.9rem);
}

.footer-in .footer-logo,
.bean-footer .brand {
  color: #253a30;
  text-decoration: none;
  font-size: 1.72rem;
}

.footer-in p,
.bean-footer p {
  color: #4e574c;
  margin: 0;
  font-size: .94rem;
}

footer .footer-in nav {
  gap: 0 .9rem;
  font-size: .86rem;
}

footer a:not(.footer-logo, .brand) {
  color: #294f43;
  display: inline-flex;
  align-items: center;
}

footer a:hover { color: var(--bb-berry); }

/* Cover and the routes immediately below it. */
#home .story-cover {
  background:
    radial-gradient(ellipse at 20% 100%, #f1e5efaa, transparent 56%),
    linear-gradient(116deg, #f4ecda 5%, #f7efdf 49%, #e6eee2 100%);
  border-bottom-color: #c7cebc;
}

#home .story-cover::before {
  background-image: radial-gradient(ellipse, #796a5227 .55px, transparent .8px);
  background-size: 5px 5px;
  mask-image: linear-gradient(105deg, transparent 6%, #000);
}

#home .story-spread {
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  gap: clamp(1rem, 3vw, 3rem);
  min-height: clamp(25rem, 45vw, 36rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

#home .story-copy {
  padding: 0;
}

#home .story-pretitle {
  color: #635345;
  font-size: .9rem;
  font-weight: 760;
  margin-bottom: clamp(.72rem, 2vw, 1.12rem);
}

#home .story-pretitle span { color: var(--bb-berry); }

#home .story-copy h1 {
  font-size: clamp(4rem, 8.7vw, 7.95rem);
  letter-spacing: -.075em;
  line-height: .9;
  color: #2c352d;
}

#home .story-copy h1 em { color: #5e3a58; }

#home .story-copy .deck {
  color: #4d4338;
  max-width: 29ch;
  margin-top: clamp(1rem, 2.2vw, 1.5rem);
  line-height: 1.53;
  text-wrap: pretty;
}

#home .cover-actions {
  gap: .4rem 1rem;
  margin-top: 1.25rem;
  position: relative;
}

#home .cover-actions .quiet-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  color: #394b3c;
}

#home .cover-actions .quiet-link:hover { color: var(--bb-berry); }

#home .scrap-scene {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.27;
}

#home .scrap-scene::before {
  top: 5%;
  right: 3%;
  width: 94%;
  height: 89%;
  border-radius: 47% 47% 45% 49%;
  border-color: #9bb9a6;
  transform: rotate(-8deg);
  background:
    repeating-linear-gradient(113deg, transparent 0 1.6rem, #51765c16 1.6rem 1.67rem),
    #c7ddc9;
  box-shadow: inset 0 0 0 5px #e4eee1;
}

#home .scene-path {
  border-width: clamp(.75rem, 2.6vw, 1.9rem);
  border-bottom-color: #f1d695;
  border-right-color: #f1d695;
  opacity: .8;
}

#home .walk-snapshot {
  top: 1%;
  right: 9%;
  width: 76%;
  height: 92%;
  padding: clamp(.35rem, 1vw, .65rem) clamp(.35rem, 1vw, .65rem) 0;
  background: #fffdf3;
  border: 1px solid #af9d8c;
  border-radius: 43% 43% 7px 7px / 31% 31% 7px 7px;
  transform: rotate(3deg);
  box-shadow: 4px 5px 0 #c4aeb47a, 0 12px 24px #3a352233;
}

#home .walk-snapshot img {
  object-position: var(--photo-focus, 52% 62%);
  border-radius: 42% 42% 3px 3px / 30% 30% 3px 3px;
}

#home .walk-snapshot figcaption {
  padding-inline: .5rem;
  min-block-size: 33px;
  color: #534443;
  font-size: .81rem;
  font-weight: 710;
}

#home .bailey-rosette {
  left: 1%;
  top: 57%;
  width: clamp(5rem, 13vw, 10.6rem);
  transform: rotate(-9deg);
}

#home .bailey-rosette:hover {
  transform: rotate(-5deg) translateY(-3px);
}

#home .rosette-edge,
#home .bailey-rosette img {
  border-color: #75617a;
}

#home .rosette-ribbon {
  border-radius: 3px;
  padding: .28rem .48rem;
  background: #f2daa1;
  color: #4d3b3b;
  letter-spacing: .03em;
}

#home .scene-leash {
  border-bottom-color: #479485;
  border-left-color: #479485;
  top: 71%;
  left: 8%;
}

#home .scene-leash::after { border-color: #479485; }

#home .scene-glints i,
#home .paw-trail { color: #70465e; }

#home .scene-glints i:first-child { color: #fffaf2; }

#home .front-path {
  max-width: var(--bb-spread);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

#home .walk-map {
  max-width: none;
  margin-top: 1rem;
  padding: 0 0 .75rem;
  border-bottom: 1px solid var(--bb-rule);
  gap: .35rem;
}

#home .walk-map::before { content: none; }

#home .walk-map a {
  grid-template-rows: auto auto;
  align-content: center;
  color: #3c4d40;
  font-size: .87rem;
  padding: .3rem;
  min-height: 62px;
  border-radius: 6px;
}

#home .walk-map a:hover { background: #e9eddf; }

#home .map-dot {
  width: 42px;
  height: 42px;
  background-color: #e5eadd;
  border-color: #a1b29c;
  box-shadow: none;
}

#home .map-bailey { background-color: #f0e2bb; }
#home .map-leash { background-color: #dcece2; }
#home .map-home { background-color: #ebe2ef; }
#home .map-pencil { background-color: #f4e7cb; }

#home .walk-tip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem 1.35rem;
  margin-top: 1.2rem;
  padding: clamp(.9rem, 2vw, 1.3rem);
  border: 1px solid #b6c8b6;
  border-left: 5px solid var(--bb-spruce);
  border-radius: 5px;
  background: #e6eee4;
}

#home .walk-tip h2 {
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  color: #2e4d40;
}

#home .walk-tip .quiet-link {
  grid-column: auto;
  margin: 0;
  inline-size: auto;
  min-inline-size: 0;
  min-block-size: 44px;
  color: #315246;
}

#home .story-fork {
  margin-block: clamp(2rem, 5.5vw, 4.5rem);
}

#home .fork-intro {
  align-items: center;
  border-bottom: 1px solid var(--bb-rule);
  padding-bottom: .8rem;
  margin-bottom: 1rem;
}

#home .fork-intro h2 {
  color: #343e34;
  text-wrap: balance;
}

#home .path-signs {
  align-items: stretch;
  gap: clamp(.6rem, 1.8vw, 1rem);
}

#home .path-sign {
  --sign-wash: #f0e7ef;
  --sign-ink: #68405b;
  background: var(--sign-wash);
  color: #382f34;
  padding: clamp(.8rem, 1.8vw, 1.25rem);
  border: 1px solid #c9bcb3;
  border-top: 4px solid var(--sign-ink);
  border-radius: 5px 5px 11px 11px;
  min-height: clamp(7.25rem, 12.8vw, 9.65rem);
  justify-content: flex-start;
  gap: .5rem;
  box-shadow: var(--bb-shadow);
  transform: none;
}

#home .path-walk { --sign-wash: #e4eee3; --sign-ink: #386d57; }
#home .path-urgent { --sign-wash: #f4e4dd; --sign-ink: #8b493d; }

#home .path-sign:hover {
  background: var(--bb-page);
  box-shadow: 0 5px 12px #543c2e18;
}

#home .sign-place {
  color: var(--sign-ink);
  font-size: .85rem;
}

#home .path-sign strong {
  font-size: clamp(1.36rem, 2.6vw, 1.95rem);
  max-width: 20ch;
}

#home .story-fork > .quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* The same field-card story appears on individual guides and shelves. */
.bean-postcard {
  --paper: #eee8ef;
  --pencil: #583e55;
  --binding: #c3b1c4;
  grid-template-columns: minmax(0, 1.8fr) minmax(9rem, .85fr);
  gap: clamp(.75rem, 2.7vw, 2rem);
  padding: clamp(.65rem, 1.9vw, 1.25rem);
  background:
    radial-gradient(ellipse at top right, #ffffffa6, transparent 72%),
    repeating-linear-gradient(0deg, transparent 0 22px, #53454213 22px 23px),
    var(--paper);
  border: 1px solid var(--binding);
  border-radius: 7px 15px 7px 7px;
  box-shadow: var(--bb-shadow);
}

.bean-postcard--mint { --paper: #e5eee1; --pencil: #335a45; --binding: #aabfac; }
.bean-postcard--honey { --paper: #f5e9c8; --pencil: #694d29; --binding: #cabc95; }
.bean-postcard--guava { --paper: #f4e5e2; --pencil: #774a4c; --binding: #cdb5b0; }
.bean-postcard--plain { --paper: #efeae2; --pencil: #5c5045; --binding: #c8beb0; }

.bean-postcard--portrait {
  grid-template-columns: minmax(0, 1.2fr) minmax(9rem, .8fr);
  max-width: 48rem;
}

.bean-postcard-photo {
  padding: 5px;
  border: 1px solid #c7baa8;
  border-radius: 5px;
  background: var(--bb-page);
  box-shadow: 0 4px 9px #62432a24;
  transform: none;
}

.bean-postcard-photo::before {
  top: -6px;
  left: auto;
  right: 9%;
  width: clamp(2.4rem, 6vw, 4.6rem);
  height: .8rem;
  background: #e8d4a6cc;
  transform: rotate(5deg);
}

.bean-postcard-photo > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
}

.bean-postcard--portrait .bean-postcard-photo > img {
  aspect-ratio: 4 / 3;
}

.bean-postcard-note {
  padding: .3rem clamp(.25rem, 2vw, 1rem);
  color: var(--pencil);
  justify-items: start;
  text-align: start;
}

.bean-postcard .bean-postcard-prop {
  margin: 0 0 .25rem -.3rem;
  width: clamp(3.9rem, 9vw, 6.8rem);
  transform: rotate(-5deg);
}

.bean-postcard-caption {
  max-width: 22ch;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  line-height: 1.2;
  text-wrap: pretty;
}

.bean-postcard-credit {
  font-size: .82rem;
  color: var(--pencil);
  border-top: 1px solid var(--binding);
  padding-top: .35rem;
  margin-top: .45rem;
}

/* The guide entry reads like a titled page in a notebook. */
.bean-reading {
  padding-top: .75rem;
  padding-bottom: clamp(2.6rem, 5vw, 5rem);
}

.bean-breadcrumb ol,
.article-view .breadcrumb {
  margin-bottom: .9rem;
  color: #62594e;
  font-size: .86rem;
  line-height: 1.45;
}

.bean-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .5rem;
}

.bean-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #4c6251;
}

.bean-breadcrumb li + li::before { color: #77694c; }

.bean-article {
  --chapter-tint: #e2eee4;
  --chapter-edge: #588372;
  --chapter-ink: #32574b;
  max-width: var(--bb-spread);
}

.bean-article[data-tone="honey"] { --chapter-tint: #f3ebd5; --chapter-edge: #9c7546; --chapter-ink: #624827; }
.bean-article[data-tone="guava"] { --chapter-tint: #f2e6e3; --chapter-edge: #9f6460; --chapter-ink: #6d443c; }
.bean-article[data-tone="orchid"] { --chapter-tint: #eee7f2; --chapter-edge: #967397; --chapter-ink: #654363; }
.bean-article[data-tone="plain"] { --chapter-tint: #eee9de; --chapter-edge: #897b61; --chapter-ink: #594b34; }

.bean-article-head {
  padding: clamp(1.1rem, 3.6vw, 2.4rem);
  margin-bottom: clamp(.8rem, 2.5vw, 1.4rem);
  border: 1px solid var(--bb-rule);
  border-top: 5px solid var(--chapter-edge);
  border-radius: 4px 4px 11px 11px;
  background:
    radial-gradient(ellipse at 81% 0%, var(--chapter-tint), transparent 68%),
    var(--bb-page);
  box-shadow: var(--bb-shadow);
}

.bean-subject {
  display: inline-flex;
  align-items: center;
  padding: 0 .65rem;
  background: var(--chapter-tint);
  color: var(--chapter-ink);
  border: 1px solid var(--chapter-edge);
  border-radius: 4px;
  min-height: 36px;
  font-size: .86rem;
}

.bean-subject a {
  display: inline-flex;
  align-items: center;
  min-block-size: 42px;
  color: var(--chapter-ink);
}

.bean-article .bean-article-head h1 {
  max-width: 22ch;
  font-size: clamp(2.3rem, 6.35vw, 5.6rem);
  letter-spacing: -.061em;
  line-height: .98;
  text-wrap: balance;
  overflow-wrap: break-word;
  margin-block: .7rem .65rem;
}

.bean-byline {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: .35rem 0 .85rem;
  color: #5b5148;
  font-size: .88rem;
  font-weight: 650;
}

.bean-byline img {
  border: 1px solid #b4a597;
  border-radius: 50%;
  width: 1.75rem;
  height: 1.75rem;
}

.bean-answer {
  padding: .9rem clamp(.85rem, 3vw, 1.4rem);
  background: #eaf1e7;
  color: #2f4034;
  border: 1px solid #bbcebb;
  border-left: 5px solid #507d63;
  border-radius: 4px;
  font-size: clamp(1.04rem, 2vw, 1.2rem);
  line-height: 1.55;
  max-width: 66ch;
}

.bean-answer strong {
  color: #365d4b;
  font-size: .84rem;
  letter-spacing: .025em;
}

.bean-jumps {
  gap: .35rem .45rem;
  margin-top: .8rem;
  align-items: stretch;
  font-size: .87rem;
}

.bean-jumps a {
  min-block-size: 44px;
  padding: .35rem .58rem;
  border: 1px solid #cbb9a7;
  border-radius: 4px;
  background: #fffaf0;
  color: #4e4e41;
}

.bean-jumps a:hover {
  border-color: var(--chapter-edge);
  background: var(--chapter-tint);
  color: var(--chapter-ink);
}

.bean-reading :is(#choices, #field-story, #bean-card-heading, #bean-sources) {
  scroll-margin-top: 1.25rem;
}

@media (max-width: 800px) {
  #home .story-spread {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 0;
    gap: .6rem;
  }

  #home .story-copy h1 { font-size: clamp(3rem, 8.7vw, 5.4rem); }

  #home .path-signs { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  #home .walk-tip .quiet-link {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .mast-in {
    align-items: start;
    flex-direction: column;
    gap: .25rem;
    padding-block: .7rem .35rem;
  }

  .mast nav {
    width: 100%;
    justify-content: space-between;
    gap: .3rem;
    font-size: .85rem;
  }

  .mast nav a { padding-inline: .3rem; }
  .mast nav .nav-tool { padding-inline: .55rem; margin-left: 0; }

  #home .story-spread { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  #home .story-copy h1 { font-size: clamp(3.15rem, 12.8vw, 5.9rem); }
  #home .story-copy .deck { max-width: 35ch; margin-top: .9rem; }
  #home .scrap-scene { width: min(100%, 29rem); aspect-ratio: 1.16; }
  #home .cover-actions { margin-top: .8rem; }
  #home .walk-snapshot figcaption { font-size: .73rem; min-height: 28px; }
  #home .bailey-rosette { width: clamp(4.25rem, 19vw, 7.5rem); top: 62%; }

  #home .walk-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: .7rem;
  }

  #home .walk-map a { font-size: .78rem; min-height: 61px; }
  #home .map-dot { width: 34px; height: 34px; }
  #home .walk-tip { grid-template-columns: auto minmax(0, 1fr); gap: .35rem .7rem; }
  #home .path-signs { grid-template-columns: minmax(0, 1fr); }
  #home .path-sign { min-height: 74px; }

  .footer-in,
  .bean-footer { flex-wrap: wrap; }

  .bean-article-head {
    padding: .9rem;
    margin-bottom: 1rem;
  }

  .bean-jumps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bean-jumps a { justify-content: center; text-align: center; }

  .bean-postcard,
  .bean-postcard--portrait {
    grid-template-columns: minmax(0, 1fr);
    gap: .45rem;
  }

  .bean-postcard-note {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    align-items: center;
    grid-template-rows: auto auto;
    padding-inline: .1rem;
    gap: 0 .7rem;
  }

  .bean-postcard .bean-postcard-prop { grid-row: 1 / 3; width: 100%; margin: 0; }
  .bean-postcard-credit { border-top: 0; padding-top: 0; margin-top: .24rem; }
}

@media (max-width: 340px) {
  .mast nav { gap: .25rem; font-size: .875rem; }
  #home .walk-map a { padding-inline: .08rem; }
  .bean-jumps { grid-template-columns: minmax(0, 1fr); }
  .bean-jumps a { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .mast a, .btn, #home .bailey-rosette, #home .map-dot { transition: none; }
  #home .bailey-rosette:hover { transform: rotate(-9deg); }
}

@media print {
  .mast, footer, .bean-jumps, .walk-map { display: none; }
  .bean-article-head, .bean-answer { background: white; box-shadow: none; }
}

.mast .brand { gap: .46rem; }
.mast .brand .mast-bailey {
  border-radius: 50%;
  border: 1px solid #b4a38b;
  width: clamp(29px, 4vw, 38px);
  height: auto;
  padding: 2px;
}
.mast nav { flex-wrap: wrap; }
@media (max-width: 600px) {
  .mast nav a { flex-grow: 1; }
}

.footer-in .footer-logo { min-height: 44px; }
.footer-in nav a { text-underline-offset: .25em; }
@media (max-width: 600px) {
  footer .footer-in nav { justify-content: flex-start; }
}

/* Practical reading sequence, field worksheet and end matter. */
.bean-article-grid,
.bean-source,
.bean-related {
  --field-ink: #2e2924;
  --field-spruce: #21574d;
  --field-berry: #70465e;
  --field-muted: #675a4f;
  --field-edge: #cbbda6;
  --field-paper: #fbf6e9;
  --field-sheet: #fffcf4;
  --field-moss: #e9f0e6;
}

.bean-article-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
  margin-block-start: clamp(1.25rem, 3.5vw, 2.5rem);
  color: var(--field-ink);
}

.bean-article-grid > .bean-prose {
  min-inline-size: 0;
  padding: 0;
}

.bean-prose > :is(h2, p) {
  max-inline-size: 66ch;
}

.bean-prose > h2 {
  color: var(--field-ink);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  margin-block: 1.7em .45em;
}

.bean-prose > p,
.bean-prose > .guide-step > p {
  color: var(--field-ink);
  font-size: clamp(1rem, .97rem + .2vw, 1.085rem);
  line-height: 1.68;
}

.bean-prose > .guide-step {
  --step-accent: var(--field-spruce);
  position: relative;
  min-inline-size: 0;
  padding: .15rem .55rem 1.35rem clamp(1.15rem, 4vw, 1.8rem);
}

.bean-prose > .guide-step::before {
  position: absolute;
  inset-block-start: .68rem;
  inset-inline-start: .09rem;
  inline-size: .56rem;
  block-size: .56rem;
  border: 1px solid var(--step-accent);
  border-radius: 50%;
  background: var(--field-paper);
  content: "";
}

.bean-prose > .guide-step::after {
  position: absolute;
  inset-block: 1.45rem .24rem;
  inset-inline-start: .34rem;
  border-inline-start: 1px dashed var(--field-edge);
  content: "";
}

.bean-prose > .guide-step > h2 {
  margin: 0 0 .4rem;
  color: var(--step-accent);
  font-size: clamp(1.38rem, 2.3vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: pretty;
}

.bean-prose > .guide-step > p {
  max-inline-size: 62ch;
}

.bean-prose > .guide-step--prepare {
  --step-accent: #62503c;
}

.bean-prose > .guide-step--practice {
  margin-block: .1rem .95rem;
  padding-block: .95rem;
  padding-inline-end: max(.85rem, 2vw);
  border-block: 1px solid #b9cbb5;
  border-radius: 0 .85rem .85rem 0;
  background-color: var(--field-moss);
}

.bean-prose > .guide-step--practice::before {
  inset-block-start: 1.46rem;
  background-color: var(--field-spruce);
}

.bean-prose > .guide-step--practice::after {
  display: none;
}

.bean-prose > .guide-step--observe::before {
  border-radius: 2px;
  transform: rotate(45deg);
}

.bean-prose > .guide-step--adapt {
  --step-accent: var(--field-berry);
  padding-block-end: .5rem;
}

.bean-prose > .guide-step--adapt::before {
  border-radius: 2px;
  background-color: var(--field-berry);
}

.bean-prose > .guide-step--adapt::after {
  display: none;
}

.bean-prose > .bean-decisions {
  margin-block: clamp(1.45rem, 4vw, 2.4rem) 0;
  padding: clamp(1rem, 3vw, 1.55rem);
  border: 1px solid #a9bdac;
  border-block-start: 3px solid var(--field-spruce);
  border-radius: 0 0 1rem 1rem;
  background: var(--field-sheet);
}

.bean-prose > .bean-decisions h2 {
  margin: 0 0 .75rem;
  max-inline-size: 27ch;
  color: var(--field-spruce);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.bean-prose > .bean-decisions dl {
  margin: 0;
}

.bean-prose > .bean-decisions dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .35rem;
  padding: .8rem 0 .85rem;
  border-block-start: 1px solid #cbd5c6;
}

.bean-prose > .bean-decisions dl > div:last-child {
  padding-block-end: .15rem;
}

.bean-prose > .bean-decisions dt {
  align-self: start;
  color: var(--field-spruce);
  font-size: .95rem;
  font-weight: 740;
  line-height: 1.4;
}

.bean-prose > .bean-decisions dd {
  min-inline-size: 0;
  margin: 0;
  color: var(--field-ink);
  font-size: 1rem;
  line-height: 1.62;
}

.bean-article-grid > .bean-card {
  display: grid;
  gap: .85rem;
  min-inline-size: 0;
  margin: 0;
  padding: clamp(1rem, 2.7vw, 1.6rem);
  border: 1px solid var(--field-edge);
  border-inline-start: 4px double #ad7a8e;
  border-radius: .25rem .95rem .95rem .25rem;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(1.85rem - 1px),
    #70465e14 calc(1.85rem - 1px),
    #70465e14 1.85rem
  ), var(--field-sheet);
  box-shadow: 0 3px 0 #ddcfb7, 0 6px 0 -1px #eee2cb;
}

.bean-article-grid > .bean-card h2 {
  margin: 0;
  color: var(--field-berry);
  font-size: clamp(1.58rem, 2.65vw, 2rem);
  line-height: 1.14;
  letter-spacing: -.04em;
}

.bean-article-grid .bean-card-fields {
  gap: .85rem;
}

.bean-article-grid .bean-card label {
  gap: .35rem;
  color: var(--field-ink);
  font-size: .95rem;
  font-weight: 730;
  line-height: 1.36;
}

.bean-article-grid .bean-card input {
  min-block-size: 2.75rem;
  padding: .55rem .65rem;
  border: 1px solid #91836d;
  border-radius: .35rem;
  background: var(--field-sheet);
  color: var(--field-ink);
  font-size: 1rem;
  line-height: 1.35;
}

.bean-article-grid .bean-privacy {
  margin: 0;
  color: var(--field-muted);
  font-size: .85rem;
  line-height: 1.5;
}

.bean-article-grid .bean-print {
  justify-self: start;
  min-block-size: 2.75rem;
  border: 1px solid var(--field-spruce);
  border-radius: 999px;
  background: var(--field-spruce);
  color: var(--field-sheet);
  font-size: .91rem;
}

.bean-article-grid .bean-print:hover {
  border-color: var(--field-berry);
  background: var(--field-berry);
  color: var(--field-sheet);
}

.bean-article-grid .bean-card :is(input, button):focus-visible,
.bean-source a:focus-visible,
.bean-related a:focus-visible {
  outline: 3px solid var(--field-berry);
  outline-offset: 3px;
}

.bean-source,
.bean-related {
  margin-block-start: clamp(2rem, 6vw, 4rem);
  color: var(--field-ink);
}

.bean-source {
  padding: 1.15rem 0 0;
  border: 0;
  border-block-start: 1px solid var(--field-edge);
  border-radius: 0;
  background: transparent;
}

.bean-source h2,
.bean-related h2 {
  margin: 0 0 .65rem;
  color: var(--field-spruce);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -.04em;
}

.bean-source ul,
.bean-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bean-source li {
  max-inline-size: 65ch;
  border-block-end: 1px solid #e1d5bf;
}

.bean-source li:last-child {
  border: 0;
}

.bean-source a,
.bean-related a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  padding-block: .45rem;
  color: var(--field-spruce);
  font-size: .95rem;
  font-weight: 620;
  line-height: 1.45;
  text-decoration-thickness: .08em;
  text-underline-offset: .17em;
}

.bean-source a:hover,
.bean-related a:hover {
  color: var(--field-berry);
}

.bean-related {
  padding: clamp(1.15rem, 4vw, 1.8rem);
  border: 1px solid #a9bdac;
  border-radius: .9rem;
  background: var(--field-moss);
}

.bean-related ul {
  display: grid;
  gap: .05rem 1.65rem;
}

.bean-related li {
  min-inline-size: 0;
  border-block-start: 1px solid #bacab8;
}

.bean-related a {
  display: flex;
}

@media screen and (min-width: 41rem) {
  .bean-related ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 50rem) {
  .bean-article-grid {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 18.5rem);
    column-gap: clamp(1.65rem, 4vw, 3.5rem);
  }
}

@media screen and (min-width: 54rem) and (min-height: 44rem) {
  .bean-article-grid > .bean-card {
    position: sticky;
    inset-block-start: var(--bean-reader-sticky-offset, 1.25rem);
  }
}

@media screen and (min-width: 62rem) {
  .bean-prose > .bean-decisions dl > div {
    grid-template-columns: minmax(8.5rem, .7fr) minmax(0, 1.65fr);
    column-gap: 1.15rem;
  }
}

@media print {
  .bean-article-grid {
    display: block;
    margin-block-start: .75rem;
  }

  .bean-prose > .guide-step {
    padding: 0;
    margin: .65rem 0;
    break-inside: avoid;
  }

  .bean-prose > .guide-step::before,
  .bean-prose > .guide-step::after {
    display: none;
  }

  .bean-prose > .guide-step--practice {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .bean-prose > .bean-decisions,
  .bean-article-grid > .bean-card {
    position: static;
    margin-block-start: 1rem;
    padding: .75rem;
    border: 1px solid #777;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .bean-article-grid > .bean-card {
    break-inside: avoid;
  }

  .bean-article-grid .bean-card input {
    min-block-size: 1.8rem;
    border: 0;
    border-block-end: 1px solid #555;
    border-radius: 0;
    background: transparent;
  }

  .bean-source {
    margin-block-start: 1rem;
  }

  .bean-source a {
    min-block-size: 0;
    padding-block: .15rem;
  }
}

.bean-related li > a {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: .68rem;
  min-height: 54px;
}

.bean-related li > a img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* The chapter finder carries the same materials as the articles it opens. */
.bean-library .bean-intro {
  align-items: center;
  border: 1px solid #c9bdab;
  border-block-start: 5px solid var(--bb-spruce);
  border-radius: 4px 4px 12px 12px;
  padding: clamp(1rem, 4vw, 2.4rem);
  background:
    radial-gradient(ellipse at top right, #dfe9da 0, transparent 70%),
    var(--bb-page);
}

.bean-library .bean-intro h1 {
  color: #274e3e;
  text-wrap: balance;
}

.bean-library .bean-intro p {
  color: var(--bb-muted);
  line-height: 1.52;
}

.bean-search {
  margin-block: 1.3rem;
  max-width: 49rem;
  border: 1px solid #cbbcaa;
  border-radius: 7px;
  background: var(--bb-page);
  padding: clamp(.8rem, 2.4vw, 1.3rem);
}

.bean-search #bean-query {
  min-height: 44px;
  border-color: #a19582;
  background: #fffaf0;
}

.bean-search #bean-clear {
  background: #e9e5da;
  border-color: #b1ab98;
  color: #443c32;
}

.bean-search #bean-count { color: var(--bb-muted); }

.bean-library .bean-shelf-results {
  background: var(--bb-page);
  border-left: 4px solid #9bb5a2;
  border-radius: 0 6px 6px 0;
}

@media (max-width: 570px) {
  .bean-library .bean-intro img {
    width: 58px;
    height: auto;
  }

  .bean-library .bean-intro h1 {
    font-size: clamp(1.88rem, 7.8vw, 3.2rem);
  }
}

/* The long guides share one reading grid. Each kind of insert has its own paper and edge. */
.article-view {
  --reading-ink: #2e2924;
  --reading-dim: #5d5047;
  --reading-paper: #fbf6e9;
  --reading-card: #fffcf4;
  --reading-rule: #d8c9b0;
  --reading-accent: #21574d;
  --reading-wash: #e5efe4;
  --reading-edge: #9bb4a4;
  --reading-urgent: #883e32;
  color: var(--reading-ink);
  padding-block: clamp(1rem, 2.9vw, 2rem) clamp(2.6rem, 7vw, 6.3rem);
}

.article-view[data-theme="home"] {
  --reading-accent: #70465e;
  --reading-wash: #f2e7eb;
  --reading-edge: #cbb0bf;
}

.article-view[data-theme="urgent"] {
  --reading-accent: var(--reading-urgent);
  --reading-wash: #f9e7de;
  --reading-edge: #d9a99a;
}

.article-view .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-block-end: clamp(.7rem, 1.9vw, 1.25rem);
  color: var(--reading-dim);
}

.article-view .breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  font-weight: 650;
}

.article-view .breadcrumb span {
  padding-inline: .55rem;
  color: #897662;
}

.article-view[data-theme] .article-head {
  max-inline-size: 64rem;
  margin-block-end: clamp(1.45rem, 3.3vw, 2.65rem);
  border-block-start: .25rem solid var(--reading-accent);
  padding-block-start: clamp(.85rem, 2.6vw, 1.65rem);
}

.article-view[data-theme] .article-head > .kicker {
  width: fit-content;
  max-inline-size: 100%;
  gap: .22rem .7rem;
  border: 1px solid var(--reading-edge);
  border-radius: 3px 11px 3px 3px;
  padding: .3rem .58rem;
  background: var(--reading-wash);
  color: var(--reading-accent);
  font-size: .76rem;
  line-height: 1.38;
}

.article-view .article-head .legacy-label {
  color: var(--reading-dim);
  font-size: .79rem;
}

.article-view .article-head .legacy-label::before {
  display: none;
}

.article-view .article-head h1 {
  max-inline-size: 19ch;
  margin-block: .62rem .8rem;
  color: var(--reading-ink);
  font-size: clamp(2.22rem, 5.85vw, 5.15rem);
  line-height: .99;
  letter-spacing: -.062em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.article-view .guide-credit {
  gap: .48rem;
  margin-block: 0 1.08rem;
  color: var(--reading-dim);
  font-size: .87rem;
  font-weight: 650;
}

.article-view .guide-credit img {
  border: 1px solid var(--reading-edge);
  border-radius: 50%;
}

.article-view .article-head .answer {
  max-inline-size: min(100%, 51rem);
  margin: 0;
  padding: clamp(.85rem, 2.6vw, 1.32rem) clamp(.95rem, 3vw, 1.6rem);
  border: 1px solid var(--reading-edge);
  border-inline-start: .3rem solid var(--reading-accent);
  border-radius: 0 13px 13px 0;
  background: var(--reading-wash);
  color: var(--reading-ink);
  font-size: clamp(1.06rem, 1.8vw, 1.24rem);
  line-height: 1.53;
}

.article-view .article-head .answer.alert {
  border-color: var(--reading-edge);
  border-inline-start-color: var(--reading-urgent);
  background: var(--reading-wash);
}

.article-view .answer .answer-label,
.article-view .answer.alert .answer-label {
  margin-block-end: .28rem;
  color: var(--reading-accent);
  font-size: .79rem;
  letter-spacing: .075em;
  line-height: 1.4;
}

.article-view .article-actions {
  align-items: center;
  gap: .3rem clamp(.6rem, 2.3vw, 1.25rem);
  margin-block-start: .8rem;
}

.article-view .article-actions > a,
.article-view .article-actions > button {
  min-block-size: 2.75rem;
  max-inline-size: 100%;
  padding-block: .35rem;
  color: var(--reading-accent);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.3;
}

.article-view .article-actions > button {
  background: transparent;
  text-underline-offset: .24em;
}

.article-view[data-theme]:not([data-theme="urgent"]) .article-actions > a:first-child {
  padding-inline: 1rem;
  border: 1px solid var(--reading-accent);
  border-radius: 7px 12px 7px 7px;
  background: var(--reading-accent);
  color: var(--reading-card);
}

.article-view .article-actions > a:first-child:hover {
  text-decoration: underline;
}

.article-view :is(a, button, input, summary):focus-visible {
  outline: 3px solid var(--reading-accent);
  outline-offset: 3px;
}

.article-view .article-grid {
  grid-template-columns: minmax(11rem, 13rem) minmax(0, 46rem);
  max-inline-size: 70rem;
  gap: clamp(1.5rem, 4.8vw, 4.55rem);
}

.article-view .article-grid .toc {
  position: sticky;
  inset-block-start: 1.2rem;
  padding: .5rem .7rem .65rem;
  border: 1px solid var(--reading-rule);
  border-block-start: .2rem solid var(--reading-edge);
  border-radius: 3px 3px 12px 12px;
  background: var(--reading-card);
  box-shadow: 2px 3px 0 #6f53320c;
  font-size: .9rem;
}

.article-view .toc :is(summary, a) {
  min-block-size: 2.75rem;
  padding: .49rem .45rem;
  line-height: 1.32;
}

.article-view .toc summary {
  color: var(--reading-accent);
  font-weight: 790;
}

.article-view .toc details > div {
  padding-block-start: .25rem;
  border-block-start: 1px solid var(--reading-rule);
}

.article-view .toc a {
  display: flex;
  align-items: center;
  border-inline-start: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--reading-ink);
  text-decoration: none;
}

.article-view .toc a:hover {
  text-decoration: underline;
  text-underline-offset: .19em;
}

.article-view .toc a[aria-current="location"] {
  padding-inline-start: .45rem;
  border-inline-start-color: var(--reading-accent);
  background: var(--reading-wash);
  color: var(--reading-accent);
  font-weight: 760;
}

.article-view .prose {
  max-inline-size: 100%;
  color: var(--reading-ink);
  font-size: clamp(1.04rem, 1.55vw, 1.17rem);
  line-height: 1.72;
}

.article-view .prose > :is(p, ul, ol) {
  max-inline-size: 64ch;
}

.article-view .prose > :is(p, ol, ul) + :is(p, ol, ul) {
  margin-block-start: .95rem;
}

.article-view .prose > h2 {
  margin-block: clamp(2.22rem, 5vw, 3.5rem) .68rem;
  padding-block-end: .35rem;
  border-block-end: 0;
  font-size: clamp(1.83rem, 3.8vw, 2.72rem);
  line-height: 1.08;
  letter-spacing: -.052em;
  text-wrap: pretty;
}

.article-view .prose > h2::after {
  display: block;
  inline-size: 2.35rem;
  block-size: 2px;
  margin-block-start: .64rem;
  background: var(--reading-edge);
  content: "";
}

.article-view .prose > h2:first-child {
  margin-block-start: 0;
}

.article-view .prose :is(h2, section, aside, li)[id] {
  scroll-margin-block-start: 1.1rem;
}

.article-view .prose :is(p, li) a {
  color: var(--reading-accent);
  text-underline-offset: .24em;
  text-decoration-thickness: 1px;
}

.article-view .prose :is(p, li) a:hover {
  text-decoration-thickness: 2px;
}

.article-view .prose .example {
  margin-block: 1.45rem;
  padding: .9rem clamp(.85rem, 2.45vw, 1.45rem);
  border: 1px dashed #bf9dad;
  border-inline-start: 3px solid #70465e;
  border-radius: 3px 13px 13px 3px;
  background: #f6edf0;
}

.article-view .prose .example > strong {
  margin-block-end: .25rem;
  color: #70465e;
  letter-spacing: .03em;
  font-size: .86rem;
}

.article-view .bean-postcard {
  --paper: #f6edd9;
  --binding: #d1bea0;
  --pencil: #483c2c;
  max-inline-size: 52rem;
  margin-block: 1.25rem clamp(1.75rem, 4.2vw, 3.5rem);
}

.article-view[data-theme="urgent"] .bean-postcard {
  --paper: #f8f1e6;
  --binding: #dcc9b4;
  box-shadow: none;
}

.article-view .bean-postcard-credit {
  color: #5e5146;
  font-size: .83rem;
}

.article-view .article-fig {
  grid-template-columns: minmax(0, .98fr) minmax(0, 1fr);
  gap: clamp(.85rem, 3vw, 1.35rem);
  margin-block: 0 2rem;
  padding: clamp(.6rem, 1.8vw, 1rem);
  border: 1px solid var(--reading-rule);
  border-radius: 7px 15px 7px 7px;
  background: #f6edd9;
}

.article-view .article-fig img {
  aspect-ratio: 4 / 3;
  block-size: auto;
  max-block-size: none;
  border: 3px solid var(--reading-card);
  border-radius: 4px;
  box-shadow: 0 0 0 1px #b7a68b;
}

.article-view .article-fig figcaption {
  color: var(--reading-dim);
  font-size: .96rem;
}

.article-view .article-fig figcaption > b {
  margin-block-end: .4rem;
  color: var(--reading-accent);
}

.article-view .prose .figure {
  margin-block: 1.25rem 1.55rem;
  padding: clamp(.68rem, 2.4vw, 1.25rem);
  border: 1px solid var(--reading-edge);
  border-radius: 7px 15px 7px 7px;
  background: var(--reading-wash);
}

.article-view .figure figcaption {
  margin-block-start: .72rem;
  padding-block-start: .62rem;
  border-block-start: 1px solid var(--reading-edge);
  color: var(--reading-dim);
  font-size: .91rem;
  line-height: 1.48;
}

.article-view .figure .mini-sequence {
  gap: clamp(.45rem, 1.7vw, .85rem);
}

.article-view .prose .mini-sequence > div,
.article-view .prose .beds > div {
  min-inline-size: 0;
  padding: .74rem;
  border: 1px solid var(--reading-edge);
  border-radius: 5px;
  background: var(--reading-card);
  color: var(--reading-ink);
}

.article-view .mini-sequence :is(strong, b),
.article-view .beds b {
  color: var(--reading-accent);
  font-size: .94rem;
}

.article-view .mini-sequence > div > p {
  font-size: .88rem;
  line-height: 1.43;
}

.article-view .prose .observation > div:nth-child(2) {
  background: #f7efd8;
}

.article-view .prose .observation > div:nth-child(3) {
  background: #f5e5e3;
}

.article-view .rope {
  margin-block-end: .62rem;
  border-block-end: 1px dashed #b9c8ba;
}

.article-view .figure .hall {
  gap: .28rem;
  padding: .54rem;
  border: 1px solid #c6b78f;
  border-radius: 5px;
  background: repeating-linear-gradient(90deg, #e9ddc1 0 21px, #dfd0b1 21px 23px);
}

.article-view .hall span {
  min-block-size: 3.05rem;
  padding: .3rem;
  border: 1px solid #789889;
  border-radius: 4px;
  background: #e5efe4;
  color: #24463a;
  font-size: .86rem;
  font-weight: 680;
}

.article-view .beds div {
  font-size: .9rem;
}

.article-view .beds div:nth-child(1) span {
  background: #eddfe7;
  border-color: #70465e;
}

.article-view .beds div:nth-child(2) span {
  background: #dce9dc;
  border-color: #21574d;
}

.article-view .prose .figure.script {
  border-inline-start: .27rem solid var(--reading-urgent);
  background: #fff6ed;
}

.article-view .figure.script blockquote {
  margin: 0;
  padding: .08rem .1rem .1rem;
  color: var(--reading-ink);
  font: 400 clamp(1.12rem, 2.2vw, 1.38rem)/1.45 var(--serif, Georgia, serif);
  letter-spacing: -.02em;
}

.article-view .prose .action-card {
  margin-block: 1.45rem 1.75rem;
  padding: clamp(.85rem, 2.8vw, 1.4rem);
  border: 1px solid var(--reading-edge);
  border-block-start: .24rem solid var(--reading-accent);
  border-radius: 5px 5px 14px 14px;
  background: var(--reading-wash);
}

.article-view .prose .action-card.stuffing {
  border-block-start-color: var(--reading-urgent);
  background: #faebe2;
}

.article-view .action-card h3 {
  margin-block-end: .48rem;
  color: var(--reading-accent);
  font-size: clamp(1.43rem, 3vw, 1.85rem);
  line-height: 1.12;
}

.article-view .action-card fieldset {
  display: grid;
  gap: .4rem;
  margin-block: .85rem 0;
}

.article-view .action-card label {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: .62rem;
  align-items: start;
  margin: 0;
  padding: .62rem .68rem;
  min-block-size: 2.75rem;
  border: 1px solid var(--reading-edge);
  border-radius: 5px;
  background: var(--reading-card);
  color: var(--reading-ink);
  line-height: 1.45;
  font-size: .96rem;
  cursor: pointer;
}

.article-view .action-card input[type="checkbox"] {
  margin: .1rem 0 0;
  accent-color: var(--reading-accent);
}

.article-view .action-card label:has(input:checked) {
  border-color: var(--reading-accent);
  background: var(--reading-wash);
}

.article-view .action-card [data-check-status] {
  margin-block-start: .45rem;
  color: var(--reading-accent);
  font-weight: 680;
}

.article-view .prose table {
  inline-size: 100%;
  margin-block: 1.35rem;
  border: 1px solid var(--reading-rule);
  border-collapse: collapse;
  font-size: .94rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.article-view .prose :is(th, td) {
  padding: clamp(.35rem, 1.2vw, .75rem);
  border: 1px solid var(--reading-rule);
  text-align: start;
  vertical-align: top;
}

.article-view .prose th {
  background: var(--reading-wash);
  color: var(--reading-accent);
}

.article-view .prose tbody tr:nth-child(even) {
  background: var(--reading-card);
}

.article-view .prose caption {
  padding-block: 0 .5rem;
  text-align: start;
  color: var(--reading-dim);
}

.article-view .prose .reference-box {
  margin-block-start: clamp(2.3rem, 5vw, 3.5rem);
  padding: clamp(.85rem, 2.5vw, 1.45rem);
  border: 1px solid var(--reading-rule);
  border-block-start: .23rem solid var(--reading-accent);
  border-radius: 4px 4px 13px 13px;
  background: var(--reading-card);
}

.article-view .prose .reference-box h2 {
  margin-block: 0 .24rem;
  color: var(--reading-ink);
  line-height: 1.1;
}

.article-view .reference-box > .source-note {
  color: var(--reading-dim);
  font-size: .91rem;
}

.article-view .reference-box .sources {
  padding-block-start: .45rem;
  padding-inline-start: 1.4rem;
}

.article-view .sources > li {
  margin-block-start: 0;
  padding: .16rem 0;
  border-block-start: 1px solid var(--reading-rule);
}

.article-view .sources > li:first-child {
  border-block-start: 0;
}

.article-view .sources > li::marker {
  color: var(--reading-accent);
  font-weight: 700;
}

.article-view .sources > li:target {
  background: var(--reading-wash);
}

.article-view .sources > li > a {
  display: inline-flex;
  min-block-size: 2.75rem;
  align-items: center;
  line-height: 1.42;
}

.article-view .prose .related {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-block-start: 1.4rem;
  padding-block-start: 1rem;
  border-color: var(--reading-rule);
}

.article-view .related > a {
  justify-content: flex-start;
  padding: .61rem .75rem;
  border: 1px solid var(--reading-edge);
  border-inline-start: .2rem solid var(--reading-accent);
  border-radius: 3px 9px 9px 3px;
  background: var(--reading-wash);
  color: var(--reading-accent);
  line-height: 1.35;
  text-decoration: none;
}

.article-view .related > a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Photo stories and imagined scenes carry their own visible provenance on both templates. */
.story-note.story-note {
  --story-accent: #70465e;
  --story-edge: #c5a8b8;
  --story-paper: #f7edf0;
  --story-label-bg: #ebdae3;
  margin-block: clamp(1.35rem, 4vw, 2.35rem);
  padding: clamp(.85rem, 3vw, 1.48rem) clamp(1rem, 4vw, 1.82rem);
  border: 1px solid var(--story-edge);
  border-inline-start: 3px dashed var(--story-accent);
  border-radius: 3px 15px 15px 3px;
  background: var(--story-paper);
  color: #2e2924;
  scroll-margin-block-start: 1.1rem;
}

.story-note.story-note--photo {
  --story-accent: #21574d;
  --story-edge: #a6b9a4;
  --story-paper: #edf2e7;
  --story-label-bg: #dbe9da;
  border-inline-start-style: solid;
}

.story-note.story-note > .story-note-label {
  inline-size: fit-content;
  max-inline-size: 100%;
  margin: 0 0 .66rem;
  padding: .26rem .54rem;
  border: 1px solid var(--story-edge);
  border-radius: 4px 8px 4px 4px;
  background: var(--story-label-bg);
  color: var(--story-accent);
  line-height: 1.35;
  font-size: .85rem;
  font-weight: 740;
}

.story-note.story-note > h2 {
  max-inline-size: 29ch;
  margin: 0 0 .57rem;
  padding: 0;
  border: 0;
  color: var(--story-accent);
  font-size: clamp(1.56rem, 3.5vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -.046em;
  text-wrap: balance;
}

.story-note.story-note > p:not(.story-note-label) {
  max-inline-size: 61ch;
  margin: 0;
  font-size: clamp(1rem, 1.52vw, 1.12rem);
  line-height: 1.66;
}

.story-note.story-note > p + p:not(.story-note-label) {
  margin-block-start: .7rem;
}

@media (min-width: 781px) {
  .article-view .article-grid .toc {
    max-block-size: min(73vh, calc(100vh - 2.4rem));
    scrollbar-gutter: stable;
  }
}

@media (max-width: 780px) {
  .article-view .article-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
  }

  .article-view .article-grid .toc {
    display: block;
    position: static;
    max-block-size: none;
    overflow: visible;
  }

  .article-view .toc details > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
    gap: .22rem .52rem;
  }
}

@media (max-width: 520px) {
  .article-view .article-head h1 {
    max-inline-size: 100%;
    font-size: clamp(2.18rem, 9vw, 3.15rem);
    letter-spacing: -.056em;
  }

  .article-view .article-fig,
  .article-view .prose .related {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-view .article-fig img {
    aspect-ratio: 3 / 2;
  }

  .article-view .figure .hall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-view .figure :is(.mini-sequence, .beds) {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-view .mini-sequence .rope {
    max-inline-size: 7.5rem;
    margin-inline: auto;
  }
}

@media print {
  .article-view {
    color: #000;
    padding: 0;
  }

  .article-view[data-theme] .article-head,
  .article-view .prose .reference-box {
    border-color: #777;
  }

  .article-view .article-head h1 {
    color: #000;
    font-size: 32pt;
  }

  .article-view .article-grid {
    display: block;
  }

  .article-view :is(.breadcrumb, .toc, .article-actions, .related, .bean-postcard) {
    display: none !important;
  }

  .article-view .prose h2,
  .story-note.story-note > h2 {
    break-after: avoid;
  }

  .article-view :is(.article-fig, .figure, .action-card),
  .story-note.story-note {
    break-inside: avoid;
  }

  .article-view :is(.article-head .answer, .article-fig, .prose .reference-box, .prose .action-card, .prose .action-card.stuffing, .prose .figure, .prose .figure.script, .prose .example),
  .article-view .action-card label,
  .story-note.story-note,
  .story-note.story-note > .story-note-label {
    box-shadow: none;
    background: #fff;
    color: #000;
  }

  .article-view .sources > li > a,
  .article-view .action-card label {
    min-block-size: 0;
  }
}

/* The lead from Bailey's album also marks the first action and real photos. */
.bean-article .bean-jumps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .05rem .8rem;
  margin-top: .65rem;
}

.bean-article .bean-jumps a {
  justify-content: start;
  border: 0;
  background: transparent;
  color: #43594d;
  padding: .12rem 0;
  text-align: start;
  min-height: 44px;
}

.bean-article .bean-jumps .guide-first-action {
  justify-content: start;
  border-left: 4px solid #58b7c0;
  padding: .35rem .75rem;
  margin-right: .2rem;
  background: #22574b;
  color: #fffaf0;
  font-weight: 760;
  text-decoration: none;
}

.bean-article .bean-jumps .guide-first-action:hover,
.bean-article .bean-jumps .guide-first-action:focus-visible {
  color: #fffaf0;
  background: #173f37;
  text-decoration: underline;
}

.bean-article :is(#try-it, #when-to-change),
.article-view :is(.action-card, .prose h2)[tabindex="-1"] { scroll-margin-top: 1.3rem; }

.bean-article .guide-step:target,
.bean-article .guide-step:focus-visible,
.article-view .prose h2:target {
  outline: 2px solid #78b4b2;
  outline-offset: .2rem;
}

.bean-article .bean-prose > .guide-safety {
  margin: .25rem 0 1.35rem;
  padding: .8rem 1rem;
  border: 1px solid #c89384;
  border-left: 5px solid #944f41;
  background: #f8e8de;
  --step-accent: #7d4035;
}

.bean-article .bean-prose > .guide-safety::before,
.bean-article .bean-prose > .guide-safety::after { display: none; }

:is(.bean-reading, .article-view) .bean-postcard {
  --album-edge: #aaa293;
  max-width: 44rem;
  margin: clamp(1rem, 3vw, 1.85rem) 0 clamp(1.2rem, 3.4vw, 2.2rem);
  padding: .35rem .35rem 0;
  display: block;
  border: 1px solid var(--album-edge);
  border-radius: 0;
  background: #fffbef;
  box-shadow: none;
}

:is(.bean-reading, .article-view) .bean-postcard--original.bean-postcard--portrait {
  max-width: 30rem;
}

:is(.bean-reading, .article-view) .bean-postcard--illustration {
  --album-edge: #c8b3bf;
  background: #f5edef;
}

:is(.bean-reading, .article-view) .bean-postcard-photo {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

:is(.bean-reading, .article-view) .bean-postcard-photo::before { content: none; }

:is(.bean-reading, .article-view) .bean-postcard-photo img {
  aspect-ratio: 1.72;
  border-radius: 0;
}

:is(.bean-reading, .article-view) .bean-postcard--portrait .bean-postcard-photo img {
  aspect-ratio: 1.15;
}

:is(.bean-reading, .article-view) .bean-postcard-note {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  grid-template-rows: auto;
  gap: .45rem;
  align-items: center;
  text-align: start;
  padding: .33rem .13rem;
  min-height: 44px;
  color: #4f413a;
}

:is(.bean-reading, .article-view) .bean-postcard .bean-postcard-prop {
  width: 100%;
  grid-row: auto;
  margin: 0;
  transform: none;
}

:is(.bean-reading, .article-view) .bean-postcard-caption {
  max-width: none;
  font: 1rem / 1.35 "Bean Italic", Georgia, serif;
  overflow-wrap: anywhere;
}

:is(.bean-reading, .article-view) .bean-postcard-credit {
  margin: 0;
  padding: 0;
  border: 0;
  color: #5a4b43;
  font-size: .82rem;
  line-height: 1.25;
}

.article-view .urgent-immediate { margin: 0 0 1.25rem; }
.article-view .urgent-immediate .action-card { margin: 0; }

@media (max-width: 600px) {
  .bean-article .bean-jumps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: start;
    column-gap: .54rem;
  }

  .bean-article .bean-jumps .guide-first-action { grid-column: 1 / -1; }
  .bean-article .bean-jumps a { font-size: .86rem; }

  :is(.bean-reading, .article-view) .bean-postcard-note {
    grid-template-columns: 1.6rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 .45rem;
  }

  :is(.bean-reading, .article-view) .bean-postcard .bean-postcard-prop { grid-row: 1 / 3; }
  :is(.bean-reading, .article-view) .bean-postcard-credit { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .walk-map a:hover .map-dot { transform: none; }
}

@media print {
  .bean-article .bean-jumps { display: none; }
  .bean-article .bean-prose > .guide-safety { background: white; }
}

.bailey-view .album-heading {
  padding: .6rem 0 1.15rem;
  border: 0;
  border-bottom: 1px solid #bdb39f;
  background: none;
}
.bailey-view .album {
  background: #e8e5d7;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(.55rem, 3vw, 2rem);
  border-radius: 0;
}
.bailey-view .album figure,
.bailey-view .album figure:nth-child(2) { transform: none; min-width: 0; box-shadow: none; }
.bailey-view .album figure::before { content: none; }
.bailey-view .album-walk .album-open > img { height: auto; aspect-ratio: 1089 / 1280; }
.bean-family-album > p { margin: .35rem 0 1rem; color: #d4ddcd; }
@media (max-width: 400px) {
  .bailey-view .album { padding: .55rem; }
  .bailey-view .album figcaption strong { font-size: 1rem; }
}

#album-viewer { background: #fff9e9; border-radius: 6px; }
#album-viewer::backdrop { background: #172c24dc; }
#album-viewer-image { background: #e8e8d9; border-radius: 0; }
.viewer-close { min-width: 44px; min-height: 44px; }
.viewer-controls { flex-wrap: wrap; }
.viewer-controls output { font-variant-numeric: tabular-nums; }
.viewer-controls .btn { min-block-size: 44px; }

.bean-search-results {
  padding: clamp(.8rem, 3vw, 1.6rem);
  margin-block: 1rem 2rem;
  border-block: 1px solid #bbc9b9;
  background: #f5f7eb;
}
.bean-search-results h2 { color: var(--bb-spruce); margin-block-end: .65rem; }
.bean-search-results .bean-entries > li { border-radius: 2px; }
.bean-search-results .bean-entries a { min-height: 44px; }
.bean-all-guides { margin-block: 1rem 2.25rem; }
.bean-all-guides summary { padding: .75rem 0; cursor: pointer; font-weight: 780; }

.bean-reading .bean-shelves > section {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 2fr);
  padding: .9rem 0 1.15rem;
  border-top: 1px solid #cabda9;
  gap: .75rem 1.5rem;
}
.bean-reading .bean-shelves h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--bb-spruce);
  max-width: 15ch;
}
.bean-reading .bean-shelves ul { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bean-reading .bean-shelves li:nth-child(n) { padding: 0; background: #fffaf0; border-radius: 0; }
.bean-reading .bean-shelves li a {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-decoration: none;
  padding: .6rem .7rem;
  min-block-size: 44px;
}
.bean-reading .bean-shelves li a:is(:hover, :focus-visible) strong { text-decoration: underline; }
.bean-reading .bean-shelves li a span { color: #4d4e42; font-size: .89rem; }
.bean-reading .bean-shelf-first > strong { display: block; font-size: .86rem; color: var(--bb-spruce); }
.bean-reading .bean-shelf-first a { display: inline-flex; min-height: 44px; align-items: center; font: 1.26rem/1.25 var(--serif); }
.bean-reading .bean-shelf-first p { margin-block-start: .23rem; max-width: 62ch; }
@media (max-width: 650px) {
  .bean-reading .bean-shelves > section { grid-template-columns: minmax(0, 1fr); }
  .bean-reading .bean-shelves h2 { max-width: none; }
}
@media (max-width: 390px) {
  .bean-reading .bean-shelves ul { grid-template-columns: minmax(0, 1fr); }
}

.bean-article .bean-jumps a.guide-first-action { font-weight: 800; }
.bean-article .guide-step:is(:target, :focus-visible) {
  outline: 2px solid #2d665a;
  outline-offset: .24rem;
}
.bean-article .guide-step { scroll-margin-block-start: .85rem; }
.bean-article .bean-article-head h1 { overflow-wrap: break-word; text-wrap: pretty; }

.bean-prose > .guide-step:not(.guide-safety) {
  border-inline-start: 2px solid #58877b;
}
.bean-prose > .guide-step:not(.guide-safety)::before {
  inset-inline-start: -.35rem;
  background: var(--field-sheet);
}
.bean-prose > .guide-step:not(.guide-safety)::after { display: none; }
.bean-prose > .guide-step--practice:not(.guide-safety) {
  margin-block: 0;
  margin-inline-start: 0;
  border-block: 0;
}
.bean-prose > .guide-step--practice + .guide-step { padding-block-start: .95rem; }
.bean-prose > .guide-step--practice + .guide-step::before { inset-block-start: 1.55rem; }
.bean-related small {
  display: block;
  font: 750 .82rem/1.4 var(--sans);
  color: var(--bb-spruce);
}
.bean-source li a { display: flex; flex-direction: column; min-block-size: 44px; }
.bean-source li a span { color: var(--bb-muted); font-size: .91rem; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.bean-card > header p { color: #534c42; margin-block-start: .3rem; line-height: 1.45; }
.bean-article-grid > .bean-card { background-size: 100% 1.85rem; }
@media print {
  .bean-article-grid > .bean-card { break-inside: avoid; border: 1pt solid #635b50; box-shadow: none; }
  .bean-article-grid .bean-card input { border: 0; border-bottom: 1pt solid #635b50; border-radius: 0; }
  .bean-article-grid > .bean-card .bean-privacy { display: none; }
}

.article-view .toc a[aria-current="location"] {
  background: #e4eee5;
  color: #1d594d;
  text-decoration: underline;
  text-underline-offset: .18em;
  border-inline-start-color: #327369;
}

.bean-article-head > .guide-safety {
  margin-block-start: .8rem;
  padding: clamp(.75rem, 3vw, 1.1rem);
  border-inline-start: 4px solid #8a4439;
  background: #f9e7df;
  color: #62382f;
}
.bean-article-head > .guide-safety h2 { font: 700 clamp(1.22rem, 2.5vw, 1.72rem)/1.18 var(--serif); }
.bean-article-head > .guide-safety p { max-width: 65ch; margin-block-start: .35rem; }
.article-head .urgent-immediate { width: 100%; max-width: 66ch; margin-block: 1rem; }
.article-head .urgent-immediate .action-card h2 { margin: 0 0 .4rem; }
@media print { .bean-article-head > .guide-safety { background: #fff; } }

.walk-view .notebook-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
.walk-view .notebook-grid[hidden] { display: none; }
.walk-view .notebook-grid > * { min-inline-size: 0; }
.walk-view .walk-history li { padding: .68rem .8rem; overflow-wrap: anywhere; }
.walk-view .walk-history .next-note { background: #e6eee3; }
.walk-view .choices span { min-height: 44px; border-color: #735f83; gap: .42rem; }
.walk-view .choices span::before {
  content: "";
  inline-size: .75rem;
  block-size: .75rem;
  flex: 0 0 .75rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.walk-view .choices input:checked + span::before { background: currentColor; }
.walk-view .notebook-grid textarea { border-color: #735f83; font-size: 1rem; }
#walk-older summary { display: list-item; min-block-size: 44px; padding-block: .7rem; cursor: pointer; }
@media (forced-colors: active) {
  .walk-view .choices input:checked + span::before { background: CanvasText; forced-color-adjust: none; }
}
@media (max-width: 740px) {
  .walk-view .notebook-grid { grid-template-columns: minmax(0, 1fr); }
}

.record-section-button { min-height: 44px; }
#archive .collection-header h1 { color: var(--bb-spruce); }
#archive .archive-search { margin-block: 1rem; border-radius: 4px; }

.bean-reading .bean-entries a,
.bean-all-guides summary { min-height: 44px; }
.bean-source li a { align-items: flex-start; }

[data-owner-copy]:not(.archive-ready) [data-view]:not(#archive) { display: none; }

.bailey-view figure[id^="album-"] { scroll-margin-block-start: 1rem; }
.bailey-view figure[id^="album-"]:target { outline: 3px solid #6cbcb2; outline-offset: 4px; }

.mast .brand .mast-bailey { border-color: #a39379; background: #fbf4e6; }
footer .footer-in nav > a { padding-inline: .28rem; }
.footer-in nav > a:is(:hover, :focus-visible) { text-decoration-thickness: .13em; }

.bean-family-album {
  background: #26392e;
  color: #fff4d9;
  padding: clamp(.8rem, 3.8vw, 2.4rem);
  border: 1px solid #3b5141;
}
.bean-family-album .album-chapter { padding-block: 1rem; border-top: 1px solid #87977c; }
.bean-family-album .album-chapter h3 { margin: 0 0 .65rem; font: 1.3rem/1.25 var(--serif); }
.bean-family-album .album-chapter > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.5rem, 2vw, 1.25rem);
}
.bean-family-album .album-chapter figure { border-radius: 0; border: 0; box-shadow: none; background: #f9f1db; }
.bean-family-album .album-chapter img { border-radius: 0; }
.bean-family-album .album-chapter .album-open:focus-visible { outline-color: #38675a; }
.bean-family-album .album-chapter figcaption { color: #34382c; font-size: .91rem; }
@media (max-width: 740px) {
  .bean-family-album .album-chapter > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#album-viewer .viewer-close {
  position: sticky;
  display: block;
  z-index: 1;
  top: .35rem;
  margin: 0 0 .4rem auto;
}
#album-viewer-image { max-height: min(56vh, 580px); }

.bean-chapter-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .9rem;
  margin-block: 1rem;
  padding-block: .4rem;
  border-block: 1px solid #b8bfad;
}
.bean-chapter-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #285648;
  font-weight: 690;
}
.bean-shelves h2[id] { scroll-margin-block-start: 1rem; }
.bean-reading .bean-shelves li:nth-child(n) { border-inline-start: 3px solid #739080; }
.bean-reading .bean-shelves section:nth-child(2n) li { border-inline-start-color: #9d768b; }

.bean-search .guide-search-line { flex-wrap: wrap; }
.bean-search .guide-search-line input { flex: 1 1 9rem; font-size: 1rem; }
.bean-search .guide-search-line .btn.solid { background: #245a4d; color: white; border-color: #245a4d; }
.bean-search-examples { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .6rem; }
.bean-search-examples .btn { border-color: #778d78; color: #274a3c; }

.bean-reading .bean-shelf-first {
  --shelf-ink: #50796a;
  background: #edf0e5;
  border-inline-start: 5px solid var(--shelf-ink);
  padding: .85rem clamp(.8rem, 4vw, 1.65rem);
}
.bean-reading .bean-shelf-first[data-shelf-tone="orchid"] { --shelf-ink: #815d7e; background: #f0e6ed; }
.bean-reading .bean-shelf-first[data-shelf-tone="guava"] { --shelf-ink: #9b625d; background: #f5e8df; }
.bean-reading .bean-shelf-first[data-shelf-tone="honey"] { --shelf-ink: #8b7039; background: #f6edd7; }
.bean-shelf-list h2 { font-size: clamp(1.42rem, 3vw, 2rem); margin: 1.5rem 0 .6rem; color: #2b5a4b; }

.bean-jumps-details { grid-column: 1 / -1; }
.bean-jumps-details summary {
  min-height: 44px;
  padding: .65rem .42rem;
  color: #3a6557;
  font-weight: 735;
  cursor: pointer;
}
.bean-jumps-details > div { display: flex; flex-wrap: wrap; gap: .35rem; padding-block-end: .35rem; }
.bean-article .bean-jumps-details a { justify-content: flex-start; padding-inline: .65rem; }

.bean-decisions > dl > div { padding-inline-start: .25rem; }
.bean-decisions > dl > div > dt { padding-inline-start: .6rem; border-inline-start: 2px solid #8aa393; }
.bean-article-head .guide-safety { box-shadow: inset 0 0 0 1px #b74d451f; }
.article-view .action-card label:focus-within { outline: 2px solid #72556b; outline-offset: 2px; }

.bean-source-note { margin: 0 0 .8rem; color: var(--bb-muted); font-size: .94rem; }
@media print {
  .bean-prose > .guide-step:not(.guide-safety) { border: 0; background: white; color: black; padding-inline-start: 0; }
  .bean-prose > .guide-step::before { display: none; }
  .bean-prose > .guide-step > h2 { color: black; }
  .bean-article :is(h2, h3), .article-view :is(h2, h3) { break-after: avoid-page; }
  .bean-article p, .article-view p { orphans: 3; widows: 3; }
  .bean-article-grid .bean-card input { min-height: 1.6rem; }
  .bean-source li a[href^="https://"]::after,
  .article-view .sources li a[href^="https://"]::after {
    content: attr(href);
    color: #222;
    margin-inline-start: .35rem;
    font: .86em/1.35 var(--sans);
    overflow-wrap: anywhere;
  }
}

.article-view .prose .guide-photo-note {
  padding-inline-start: .85rem;
  border-inline-start: 2px solid #537e71;
}
.article-view .sources li[id]:target {
  background: #e5efe4;
  outline: 2px solid #5c8578;
  outline-offset: 2px;
  scroll-margin-block-start: 1rem;
}

.walk-quick {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.15rem;
  margin-block: .6rem;
}
.walk-quick[hidden] { display: none; }
.walk-quick a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; color: #345b4e; }
.walk-view .notebook-grid > form, .walk-view .walk-history {
  border-inline-start: 4px solid #8a7388;
  background:
    repeating-linear-gradient(0deg, transparent 0 calc(1.7rem - 1px), #a18b831e calc(1.7rem - 1px) 1.7rem),
    #fff9e9;
}
.walk-view .notebook-grid h2 { scroll-margin-block-start: 1rem; }
.walk-view > .bean-postcard { margin-block-start: 1.35rem; }

#archive .archive-search[hidden], #archive .archive-samples[hidden] { display: none; }
#archive .orphan-box summary, #archive-record #record-source summary {
  min-height: 44px;
  padding-block: .65rem;
}
#archive .orphan-box code { overflow-wrap: anywhere; }

.bailey-view .album figure[id^="album-"]:target { outline-color: #345144; }

.article-view figure[id$="--photo"]:target { outline: 2px solid #376d5a; outline-offset: 4px; scroll-margin-block-start: 1rem; }

/* Shared wayfinding and spacing for the guide, album, and notebook. */
.bailey-cover-promise {
  margin: -.55rem 0 .45rem;
  color: #34574b;
  max-width: 34ch;
  font-weight: 665;
}
.bailey-cover-copy h1 { line-height: .94; }
@media (min-width: 920px) {
  .bailey-cover .bailey-cover-layout { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(2rem, 6.25vw, 6rem); }
}
@media (max-width: 700px) {
  .bailey-cover-promise { margin-top: 0; font-size: .94rem; }
}

.bailey-guide-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .55rem;
  margin-block-end: .6rem;
  max-inline-size: 43rem;
}
.bailey-guide-shortcuts a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .75rem;
  border-inline-start: 3px solid #659487;
  background: #e6eee3;
  color: #294e43;
  font-weight: 735;
}
.bailey-guide-shortcuts a:is(:hover, :focus-visible) { background: #d9ebde; color: #213e34; }

.bailey-view .album-dated-title { margin-block: 1.35rem .6rem; color: #2c5143; font: clamp(1.52rem, 3vw, 2.2rem)/1.15 var(--serif); }
.bailey-view .album { margin-block-start: 0; }
.bailey-view .album-home .album-open { background: #e2e9d8; padding: clamp(.35rem, 3vw, 1.15rem); }
.bailey-view .album-home .album-open img { width: min(100%, 147px); margin: auto; border-radius: 50%; }
.bailey-camera-roll .bailey-cameo-link { border-radius: 50%; }

.bean-family-album .album-chapter-nav { display: flex; flex-wrap: wrap; gap: .15rem 1rem; margin-block-end: .65rem; }
.bean-family-album .album-chapter-nav a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 720; color: #e3f4d7; }
.bean-family-album .album-chapter-nav a:is(:hover, :focus-visible) { color: #fff4da; }
.bean-family-album :is(h2, h3):focus-visible { outline-color: #e9d9ad; }
.bean-family-album .album-chapter h3 { scroll-margin-block-start: .85rem; }
@media (min-width: 741px) {
  .bean-family-album .album-chapter[data-photo-count="3"] > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .bean-family-album .album-chapter[data-photo-count="3"] figure:first-child { grid-column: 1 / -1; }
  .bean-family-album .album-chapter[data-photo-count="3"] figure:first-child img { aspect-ratio: 1.35; object-position: center 57%; }
}

@media (max-height: 550px) {
  #album-viewer .viewer-page { padding-block: .42rem; }
  #album-viewer-image { height: clamp(6rem, calc(100dvh - 11.5rem), 580px); }
  #album-viewer .viewer-controls { margin-block-start: .35rem; }
}
#album-viewer .viewer-controls button { min-block-size: 44px; }
#album-viewer :is(.viewer-close, .viewer-controls button):focus-visible { outline-color: #315e52; }

.bailey-cover-photo, .bailey-camera-roll figure { position: relative; }
.bailey-cover-photo figcaption a::after, .bailey-camera-roll figure figcaption a::after {
  position: absolute;
  inset: 0;
  content: "";
}
.bailey-cover-photo figcaption a:focus-visible::after { outline: 3px solid #efd9a6; outline-offset: -4px; }
.bailey-camera-roll figure figcaption a:focus-visible::after { outline: 3px solid #3b7060; outline-offset: -4px; }
.bailey-camera-roll #home-dog-title:focus-visible { outline-color: #ffe0ab; }

@media print {
  .bailey-view .bean-family-album, .bailey-view .album {
    background: white;
    color: #222;
    border: 0;
    padding: 0;
  }
  .bailey-view .bean-family-album :is(h2, h3, p, figcaption) { color: #222; }
  .bailey-view .bean-family-album .album-chapter-nav { display: none; }
  .bailey-view :is(.album-chapter, .album) figure { break-inside: avoid; background: white; }
  .bailey-view .album-chapter h3 { break-after: avoid; }
  .bailey-view .bean-family-album .album-chapter > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bailey-view .bean-family-album .album-chapter figure:first-child { grid-column: auto; }
  .bailey-view .bean-family-album .album-chapter img { max-height: 2.3in; aspect-ratio: 4 / 5; }
}

.bean-breadcrumb ol, .article-view .breadcrumb { row-gap: .25rem; }
.bean-breadcrumb a, .article-view .breadcrumb a { text-underline-offset: .16em; }
.bean-breadcrumb [aria-current="page"] { font-weight: 760; color: #294f41; }

.bean-prose > .bean-decisions:first-child { margin-block-start: 0; }
.article-view[data-theme="urgent"] .article-actions > a { color: #533931; }

.bean-related .related-description { display: block; margin-block-start: .25rem; color: #4a564a; font: .91rem/1.48 var(--sans); }
.bean-related .bean-shelf-return { display: inline-flex; margin-block-start: .6rem; }
.article-view .related > h2 { grid-column: 1 / -1; margin: 0; }
.article-view .related > a { min-height: 44px; }

.worksheet-print-value, .worksheet-print-title { display: none; }
@media print {
  .bean-card.worksheet-print-ready .bean-card-fields input { display: none; }
  .bean-card.worksheet-print-ready .worksheet-print-value {
    display: block;
    min-block-size: 1.5rem;
    border-block-end: 1pt solid #535353;
    font-weight: 450;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .bean-card .worksheet-print-title { display: block; font-weight: 760; margin: .25rem 0; }
}

.bean-result-topic { display: block; font-size: .88rem; font-weight: 740; color: #486f62; }
.bean-search-results .bean-entries li { padding-block: .65rem; }
.bean-search-results .bean-entries p { max-inline-size: 62ch; }

.bean-reading .bean-shelves li a small { margin-top: .4rem; font-size: .85rem; font-weight: 740; color: #486b5f; }
.bean-reading .bean-shelf-first .bean-shelf-jump { font: 690 .94rem/1.4 var(--sans); margin-block-start: .25rem; }
.bean-shelf-list h2 { scroll-margin-block-start: 1rem; }

.mast .brand { min-block-size: 44px; }
.walk-count {
  color: #335e4d;
  font-weight: 750;
  margin-block-end: .3rem;
}
.walk-history #walk-next-heading { margin: 0 0 .34rem; font: 1.22rem/1.25 var(--serif); color: #295444; }
.walk-history #walk-next-heading:focus-visible { outline-color: #31685a; }

.archive-matched { margin-block: 1rem; padding: .65rem 1rem; border: 1px solid #b0beae; background: #edf0e5; }
.archive-matched summary { min-height: 44px; padding-block: .55rem; cursor: pointer; font-weight: 740; }
.archive-matched li { margin-block: .6rem; }
.archive-matched code { overflow-wrap: anywhere; }

.bean-article :is(#choices, #field-story, #bean-card-heading, #bean-sources):is(:target, :focus-visible),
.article-view :is(li[id*="--source-"], .toc[tabindex]):focus-visible {
  outline: 2px solid #336f5e;
  outline-offset: 4px;
  scroll-margin-block-start: .9rem;
}

.bailey-guide-shortcuts a {
  background: #f2eee0;
  border-inline-start-color: #857a60;
  min-block-size: 50px;
}
.bailey-guide-shortcuts a:is(:hover,:focus-visible) { background: #e9ede0; }

.album-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem clamp(.65rem, 3vw, 1.7rem);
  align-items: center;
  padding: .15rem 0 .35rem;
  border-block-end: 1px solid #c9bda8;
}
.album-page-nav a { min-block-size: 44px; display: inline-flex; align-items: center; color: #305b4b; font-weight: 740; }

.album-reading-link {
  display: inline-flex;
  min-block-size: 44px;
  align-items: center;
  margin-block-start: .5rem;
  color: #e6f2d8;
  font-weight: 720;
}
.album-reading-link:is(:hover, :focus-visible) { color: #fff4da; }
.album-reading-link:focus-visible { outline-color: #ebdfb7; }
@media print { .album-reading-link { display: none; } }

#album-viewer .album-original { display: inline-flex; min-height: 44px; align-items: center; color: #295d50; }
@media (max-height: 550px) {
  #album-viewer-image { height: clamp(5rem, calc(100dvh - 14rem), 560px); }
}

.bailey-story { border-inline-start: 3px solid #649182; padding-inline-start: clamp(.7rem, 2.5vw, 1.3rem); }
.bailey-story-guide { display: inline-flex; min-height: 44px; align-items: center; color: #2a5a49; font-weight: 720; }

.bailey-view .album-open { border-color: #acbba1; }
.bailey-view .album-open > span { background: #f9f0d8; color: #2f5847; border-color: #b1b79b; }
.bailey-view .album-open:is(:hover, :focus-visible) > span { background: #e1ecd7; color: #264c3e; }
.bean-family-album .album-chapter-nav a:focus-visible { outline-color: #e9d9ad; }
#album-viewer .viewer-controls .btn { border-color: #8faaa0; color: #2e594c; }

.bean-article .bean-decisions + .bean-postcard { margin-block-start: clamp(1rem, 4vw, 2.5rem); }

.bean-article .bean-jumps a[href="#choices"] { min-block-size: 44px; }
.article-view .prose h2:target { outline-color: #336f5e; }

.article-view .sources .citation-return {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  margin-inline-start: .65rem;
  color: #345f50;
  font-size: .91rem;
}
.article-view .sources .citation-return[hidden] { display: none; }
.article-view [data-guide-citation]:target { background: #d7e8db; outline: 2px solid #3c7162; }
@media print { .article-view .sources .citation-return { display: none; } }

.bean-search-results .bean-entries > li:focus-within {
  background: #edf5e9;
  border-color: #76a292;
}

.bean-reading .bean-shelf-entries > .bean-shelf-guide { display: block; padding: 0; }
.bean-reading .bean-shelf-entries > .bean-shelf-guide > a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: .7rem;
  padding: .65rem .75rem;
  min-height: 56px;
  text-decoration: none;
}
.bean-shelf-guide > a > div { min-inline-size: 0; }
.bean-shelf-guide > a h3 { margin: 0 0 .22rem; font: 1.14rem/1.33 var(--serif); color: #255446; }
.bean-shelf-guide > a:is(:hover, :focus-visible) h3 { text-decoration: underline; }
.bean-shelf-guide > a > img { max-inline-size: 100%; }

.bean-shelf-list + .bean-return { gap: .4rem 1.1rem; }
.bean-shelf-list + .bean-return a { display: inline-flex; align-items: center; min-height: 44px; }

.walk-paper { border: 1px solid #a4b3a0; padding: clamp(.8rem, 4vw, 1.4rem); background: #fbf8eb; }
.walk-paper dt { margin-block-start: .7rem; font-weight: 720; color: #2b5746; }
.walk-paper dd { min-height: 1.8rem; margin: 0; border-block-end: 1px solid #5e7467; }
@media print { .walk-paper { break-inside: avoid; background: white; } }

.walk-history #walk-status:not(:empty) { margin: .6rem 0 .35rem; color: #285946; font-weight: 720; }

.archive-ledgers { display: grid; gap: .65rem; margin-block: 1rem; }
.archive-ledgers > details { min-inline-size: 0; margin: 0; }
@media (min-width: 760px) { .archive-ledgers { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.archive-controls > label, .archive-controls select { min-inline-size: 0; max-inline-size: 100%; }
@media (max-width: 440px) { .archive-controls { grid-template-columns: minmax(0, 1fr); } }

.orphan-box [data-path-highlight] {
  padding: .45rem .55rem;
  background: #e4eedb;
  outline: 2px solid #4a7968;
}

.walk-entry-note { white-space: pre-wrap; overflow-wrap: anywhere; }

/* The leash geometry follows the painted strap at the edge of each crop. */
.moment-lead {
  --moment-ink: #372951;
  --moment-seam: 54.7%;
  --moment-feed-width: 4.7%;
  --moment-join: 72%;
  --moment-strap: clamp(.8rem, 1.6vw, 1.3rem);
  --moment-gap: clamp(.48rem, 1.35vw, 1rem);
  --moment-fabric: repeating-linear-gradient(115deg, #ffffff33 0 1px, transparent 1px 3px), linear-gradient(0deg, #207d79, #439f9b 54%, #8bcdc1);
  position: relative;
  isolation: isolate;
  color: var(--moment-ink);
  background:
    radial-gradient(ellipse at 83% 13%, #ffe2a9 0%, transparent 34%),
    radial-gradient(ellipse at 87% 85%, #d2eadb 0%, transparent 43%),
    radial-gradient(ellipse at 11% 92%, #ffd5da 0%, transparent 48%),
    linear-gradient(146deg, #dce5fb 0%, #e9dcfa 43%, #fce6d8 100%);
  border-block-end: 1px solid #c7b7d8;
}
.moment-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.moment-cloud {
  --cloud-tint: #f8ecf8;
  position: absolute;
  inset: 4.85rem auto auto 9%;
  width: clamp(8rem, 21vw, 22rem);
  height: clamp(1.7rem, 4vw, 4.2rem);
  border-radius: 999px;
  background: var(--cloud-tint);
  box-shadow: 0 .45rem .65rem #8b76a824;
  transform: rotate(-8deg);
}
.moment-cloud::before,
.moment-cloud::after {
  position: absolute;
  bottom: 28%;
  border-radius: 50%;
  background: var(--cloud-tint);
  content: "";
}
.moment-cloud::before { left: 17%; width: 36%; aspect-ratio: 1.17; }
.moment-cloud::after { right: 13%; width: 43%; aspect-ratio: 1.24; }
.moment-cloud--wisp {
  --cloud-tint: #efdef8;
  inset: 8% -4% auto auto;
  opacity: .94;
  transform: scale(.86) rotate(4deg);
}
.moment-spark {
  position: absolute;
  inset: 8% auto auto 43%;
  color: #a76f60;
  font-size: clamp(1.25rem, 2.6vw, 2.1rem);
  transform: rotate(13deg);
  text-shadow: 2.5rem 4.5rem 0 #fff1ae, -1.65rem -1.5rem 0 #bd89b8;
}

.moment-grid {
  width: min(calc(100% - var(--bb-gutter) * 2), 89rem);
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: center;
  column-gap: clamp(.5rem, 1.9vw, 2rem);
  row-gap: var(--moment-gap);
  padding-block: clamp(.7rem, 1.75vw, 1.7rem) clamp(1.4rem, 3vw, 2.5rem);
}
.moment-copy { position: relative; z-index: 1; min-width: 0; padding-block: 1rem; }
.moment-copy h1 {
  margin: 0;
  font: 760 clamp(3rem, 5.6vw, 6.65rem)/.94 var(--serif);
  letter-spacing: -.075em;
  color: var(--moment-ink);
}
.moment-copy h1 em { color: #744c86; font-style: normal; }
.moment-deck {
  max-width: 32ch;
  margin: .84rem 0 0;
  color: #504060;
  font-size: clamp(1rem, 1.48vw, 1.25rem);
  line-height: 1.4;
}
.moment-search {
  width: min(100%, 33rem);
  margin-block-start: .75rem;
  padding: .06rem clamp(.58rem, 2.2vw, .85rem) .65rem;
  border: 1px solid #baa2cf;
  border-radius: .85rem;
  background: #f5e9f9;
  scroll-margin-block-start: 1rem;
}
.moment-search-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 .55rem; }
.moment-search-head label { font-weight: 740; }
.moment-search-head a { display: inline-flex; align-items: center; min-height: 44px; color: #5b4370; font-size: .9rem; font-weight: 670; }
.moment-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.moment-search-row input {
  min-width: 0;
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid #967c9f;
  border-radius: 8px 0 0 8px;
  color: #173f34;
  background: #fff6ed;
  font: inherit;
}
.moment-search-row input::placeholder { color: #53665a; }
.moment-search-row input:focus-visible { outline-offset: -3px; }
.moment-search-row .btn.solid { border-radius: 0 8px 8px 0; margin: 0; background: #594276; color: #fff7fe; box-shadow: none; }
.moment-lead :focus-visible { outline-color: #614584; }
.moment-urgent { margin: .15rem 0 0; font-size: .86rem; line-height: 1.35; }
.moment-urgent a { display: inline-block; min-height: 44px; padding: .45rem 0; color: #663f32; }

.moment-photo { position: relative; min-width: 0; align-self: end; margin: 0; }
.moment-stage {
  position: relative;
  filter: drop-shadow(0 .6rem .66rem #5e4b7328);
}
.moment-photo picture { display: block; }
.moment-hop {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.moment-hop[hidden], .moment-hop-replay[hidden] { display: none; }
.moment-hop-replay {
  position: absolute;
  inset: 0 auto auto 0;
  min-height: 44px;
  padding: .35rem .72rem;
  border: 1px solid #b5a0c9;
  border-radius: 999px;
  background: #f4e9f8;
  color: #4a345e;
  font: 690 .79rem/1.2 var(--sans);
  cursor: pointer;
}
.moment-hop-replay[aria-disabled="true"] { cursor: default; }
.moment-hop-replay:is(:hover, :focus-visible) { background: #fff0e5; }
.moment-approaching .moment-photo figcaption::before { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .moment-hop, .moment-hop-replay { display: none; }
}
.moment-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 0;
}
.moment-photo figcaption {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 31px;
  padding: .3rem 0 .25rem calc(var(--moment-seam) + max(var(--moment-feed-width) / 2, var(--moment-strap) / 2) + .55rem);
  color: #4f3d64;
  font-size: .82rem;
  line-height: 1.2;
}
.moment-photo figcaption::before {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: var(--moment-seam);
  height: calc(100% + var(--moment-gap) + var(--moment-strap) / 2);
  width: max(var(--moment-feed-width), var(--moment-strap));
  transform: translateX(-50%);
  transform-origin: center top;
  background: repeating-linear-gradient(115deg, #ffffff20 0 1px, transparent 1px 3px), linear-gradient(#71bdb2, #36878b);
  clip-path: polygon(0 0, 100% 0, calc(50% + var(--moment-strap) / 2) 100%, calc(50% - var(--moment-strap) / 2) 100%);
  content: "";
  pointer-events: none;
}
.moment-route { position: relative; grid-column: 1 / -1; scroll-margin-block: 1rem; }
.moment-route::before {
  position: absolute;
  inset: 0 0 auto;
  height: var(--moment-strap);
  border-radius: 999px;
  background: var(--moment-fabric);
  box-shadow: inset 0 0 0 1px #15545c75, 0 2px 1px #184a3b28;
  content: "";
  pointer-events: none;
}
.moment-spool { display: none; }
.moment-route ol { position: relative; list-style: none; margin: 0; padding: 0 .5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.moment-route a { display: grid; justify-items: start; min-width: 0; min-height: 64px; color: var(--moment-ink); text-decoration: none; }
.moment-ring {
  display: block;
  position: relative;
  margin: calc(var(--moment-strap) * -.12) 0 -.36rem 1.1rem;
  inline-size: calc(var(--moment-strap) * 1.28);
  block-size: calc(var(--moment-strap) * 1.35);
  border-radius: 50%;
  border: max(2px, .18rem) solid #a47d45;
  box-shadow: inset 0 0 0 1px #f9df9f, 0 0 0 1px #604b2c35;
}
.moment-tag {
  --tag-paper: #f9dcea;
  width: 100%;
  min-height: 55px;
  padding: .63rem .72rem .48rem;
  background: var(--tag-paper);
  border: 1px solid #917da970;
  border-radius: 4px 19px 16px 6px;
  box-shadow: inset 0 -3px #7453950b, 1px 2px 0 #8b749f2a;
}
.moment-route li:nth-child(2) .moment-tag { --tag-paper: #ffe8b9; }
.moment-route li:nth-child(3) .moment-tag { --tag-paper: #d8eddb; }
.moment-route li:nth-child(4) .moment-tag { --tag-paper: #ead9f9; }
.moment-tag small { display: block; color: #514064; font-size: .84rem; line-height: 1.25; }
.moment-tag strong { display: block; margin: .13rem 0 0; font: 700 clamp(1.01rem, 1.55vw, 1.46rem)/1.12 var(--serif); }
.moment-route a:is(:hover, :focus-visible) .moment-tag { background: color-mix(in srgb, var(--tag-paper), #fff6f7 23%); border-color: #8972a6; }
.moment-route a:is(:hover, :focus-visible) strong { text-decoration: underline; }
.moment-return {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  min-height: 44px;
  margin: .6rem 0;
  color: #215c4d;
  font-weight: 700;
}
.moment-return::before {
  width: 1.9rem;
  height: .34rem;
  border-radius: 999px;
  background: repeating-linear-gradient(115deg, #ffffff33 0 1px, transparent 1px 3px), #318c9a;
  content: "";
}
.moment-return::after {
  position: absolute;
  inset-inline-start: 1.12rem;
  width: .78rem;
  height: .78rem;
  border: 2px solid #9b7540;
  border-radius: 100%;
  box-shadow: 0 0 0 1px #ffedd0;
  content: "";
}
@media (max-width: 740px) {
  .moment-lead {
    --moment-strap: clamp(.82rem, 4.05vw, 1.2rem);
    --moment-gap: .58rem;
    --moment-seam: 52.75%;
    --moment-feed-width: 5.3%;
  }
  .moment-grid { grid-template-columns: minmax(0, 1fr); gap: var(--moment-gap); padding-block: 1rem 1.2rem; }
  .moment-copy { padding-block: 0; }
  .moment-copy h1 { font-size: clamp(2.55rem, 12.1vw, 4.6rem); line-height: .94; }
  .moment-copy h1 br { display: none; }
  .moment-copy h1 em { display: block; }
  .moment-deck { margin-top: .48rem; line-height: 1.36; }
  .moment-search { margin-top: .65rem; }
  .moment-urgent { margin-top: .08rem; }
  .moment-photo { margin-block-start: -.45rem; }
  .moment-photo img { aspect-ratio: 4 / 3; }
  .moment-photo figcaption { min-height: 40px; }
  .moment-cloud { inset: 2.3rem -3.75rem auto auto; width: 11rem; opacity: .78; }
  .moment-cloud--wisp { inset: 24.5rem auto auto -3.75rem; width: 11rem; opacity: .6; }
  .moment-spark { inset: 7% .75rem auto auto; text-shadow: -1.5rem 3.5rem 0 #b287bd; }
  .moment-route { --moment-mobile-inset: .44rem; }
  .moment-route::before {
    inset: 0 auto var(--moment-strap) var(--moment-mobile-inset);
    width: var(--moment-strap);
    height: auto;
    transform-origin: top;
    background: repeating-linear-gradient(115deg, #ffffff20 0 1px, transparent 1px 3px), linear-gradient(90deg, #276d73, #72b0a7 77%, #3a898e);
  }
  .moment-route::after {
    position: absolute;
    top: 0;
    left: var(--moment-mobile-inset);
    width: calc(var(--moment-seam) - var(--moment-mobile-inset) + var(--moment-strap) / 2);
    height: var(--moment-strap);
    border-radius: 999px;
    transform-origin: right;
    background: var(--moment-fabric);
    content: "";
    pointer-events: none;
  }
  .moment-route ol { grid-template-columns: minmax(0, 1fr); gap: .32rem; padding: calc(var(--moment-strap) + .3rem) 0 0 var(--moment-mobile-inset); z-index: 1; }
  .moment-route a { grid-template-columns: var(--moment-strap) minmax(0, 1fr); align-items: center; min-height: 45px; }
  .moment-ring { margin: 0; transform: rotate(90deg); width: calc(var(--moment-strap) * 1.18); height: calc(var(--moment-strap) * 1.2); z-index: 1; }
  .moment-tag { min-height: 46px; padding: .34rem .7rem .39rem .78rem; }
  .moment-tag small { font-size: .78rem; }
  .moment-tag strong { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .moment-cloud { animation: moment-cloud-drift 4.2s ease-out both; }
  .moment-cloud--wisp { animation-direction: reverse; }
  @keyframes moment-cloud-drift { from { translate: -12px 2px; } to { translate: 0 0; } }
  .moment-unroll .moment-photo figcaption::before { animation: moment-feed .32s ease-out both; }
  .moment-unroll .moment-route::before { animation: moment-across .72s cubic-bezier(.2, .55, .4, 1) .23s both; }
  @keyframes moment-feed { from { transform: translateX(-50%) scaleY(0); } }
  @keyframes moment-across {
    from { clip-path: inset(0 calc(100% - var(--moment-join)) 0 var(--moment-join) round 999px); }
    to { clip-path: inset(0 0 0 0 round 999px); }
  }
  @media (max-width: 740px) {
    .moment-unroll .moment-route::after { animation: moment-elbow .29s ease-out .24s both; }
    .moment-unroll .moment-route::before { animation: moment-down .74s cubic-bezier(.19, .56, .42, 1) .52s both; }
    .moment-unroll .moment-spool {
      display: block;
      position: absolute;
      inset: 0 auto auto var(--moment-mobile-inset);
      width: var(--moment-strap);
      height: var(--moment-strap);
      border-radius: 50%;
      z-index: 1;
      pointer-events: none;
      background: radial-gradient(circle at 44% 42%, #305b53 6%, #5b9e8e 14% 27%, #285a57 32%, #87b7a7 42% 58%, #2b7473 67%);
      box-shadow: 0 2px 3px #214a4866;
      animation: moment-curl .74s cubic-bezier(.19, .56, .42, 1) .52s both;
    }
    @keyframes moment-elbow { from { transform: scaleX(0); } }
    @keyframes moment-down { from { transform: scaleY(0); } }
    @keyframes moment-curl {
      from { top: 0; opacity: 0; transform: rotate(0); }
      10%, 90% { opacity: 1; }
      to { top: calc(100% - var(--moment-strap) * 1.55); opacity: 0; transform: rotate(455deg); }
    }
  }
}
@media print {
  .moment-lead { background: white; }
  .moment-search, .moment-sky, .moment-photo figcaption::before, .moment-route::before, .moment-route::after, .moment-ring, .moment-spool, .moment-hop, .moment-hop-replay { display: none; }
}

/* A little of the same palette follows the reader into the guides. */
.mast {
  background: linear-gradient(100deg, #e4e8fa, #f3e3f5 54%, #f8e6e5);
  border-block-end-color: #c9b8d6;
}
.mast .brand { color: #3d2c53; }
.mast nav .nav-tool {
  color: #4e396b;
  background: #e7d8f7;
  border-color: #ab93c6;
}
.mast nav .nav-tool:hover { background: #dbcaef; }
footer {
  background: linear-gradient(114deg, #e8ddf8, #f4dce9 61%, #f8e2d8);
  border-block-start-color: #c1acd2;
}

@media screen {
  body.bean-library {
    background: linear-gradient(154deg, #eae4f8 0, #f1e8f5 20rem, #f8eee7 58rem);
  }
  .bean-library .bean-intro,
  .bean-article:not([data-tone="plain"]) .bean-article-head {
    border: 1px solid #c4aed0;
    border-radius: clamp(.9rem, 2.6vw, 1.8rem);
    background:
      radial-gradient(ellipse at 92% 5%, #ffe5c6 0, transparent 53%),
      radial-gradient(ellipse at 0% 100%, #e3d6f5 0, transparent 70%),
      linear-gradient(130deg, #ede2f7, #f7e0e9);
  }
  .bean-library .bean-intro h1,
  .bean-article:not([data-tone="plain"]) .bean-article-head h1 { color: #47345e; }
  .bean-article:not([data-tone="plain"]) .bean-subject { border-radius: 999px; }
  .bean-reading .bean-shelves li:nth-child(n) { background: #f5e8f7; border-radius: .7rem; }
  .bean-reading .bean-shelves section:nth-child(2n) li { background: #f8e5e2; }
  .bean-reading .field-frame { border-radius: .7rem; overflow: hidden; background: #f4e6f3; }
  .bean-reading .field-frame figcaption { border-color: #9b76b2; }
}

/* Keep the brass ring from the homepage’s lead as a waypoint through a guide. */
.bean-prose > .guide-step[data-step]:not(.guide-safety) {
  --rail: #5a8f87;
  margin-block: 0;
  padding: .8rem clamp(.55rem, 2.3vw, 1.35rem) .8rem clamp(2.7rem, 5vw, 3.45rem);
  border: 0;
  border-radius: 0;
  background: transparent;
}
.bean-prose > .guide-step[data-step]:not(.guide-safety)::before {
  z-index: 1;
  inset-block-start: .93rem;
  inset-inline-start: .26rem;
  inline-size: 1.6rem;
  block-size: 1.6rem;
  display: grid;
  place-items: center;
  border: 2px solid #9a7340;
  background: #fcf1d5;
  color: #493d32;
  font: 750 .83rem/1 var(--sans);
  content: attr(data-step);
}
.bean-prose > .guide-step[data-step]:not(.guide-safety)::after {
  display: block;
  inset-block: 0;
  inset-inline-start: 1.01rem;
  border-inline-start: 3px solid var(--rail);
}
.bean-prose > .guide-step[data-step="1"]:not(.guide-safety)::after { inset-block-start: 1.06rem; }
.bean-prose > .guide-step[data-step="3"]:not(.guide-safety)::after { inset-block-end: auto; block-size: 1.7rem; }
.bean-prose > .guide-step[data-step="2"]:not(.guide-safety) {
  border-radius: .72rem;
  background: linear-gradient(100deg, #e2efe6, #ecf2e6);
}
.bean-prose > .guide-step[data-step] > p { margin: 0; }
.bean-prose > .guide-step[data-step="3"] + .guide-step--adapt { margin-block-start: .65rem; }

.bean-article .bean-answer {
  max-inline-size: min(100%, 66ch);
  border-start-end-radius: .85rem;
  border-end-end-radius: .85rem;
}
.bean-article .bean-answer strong { display: block; margin-block-end: .27rem; }
.bean-article .bean-subject a { min-block-size: 44px; }
.bean-article .bean-byline a { text-underline-offset: .18em; }
.bean-article .bean-decisions {
  padding: clamp(.9rem, 2.9vw, 1.5rem);
  border-radius: .9rem;
  background: linear-gradient(140deg, #f5ebf8, #fbf1e5);
}
.bean-article .bean-decisions dl > div { gap: .18rem .75rem; }
.bean-article .bean-decisions dt { font-weight: 750; }
.bean-article .bean-card {
  border: 1px solid #baa9c5;
  border-block-start: 4px solid #876497;
  border-radius: .35rem .9rem .9rem .35rem;
  background: linear-gradient(148deg, #f5e9f6, #fff3e8);
}
.bean-article .bean-card input { min-block-size: 44px; }
.bean-article .bean-related {
  background: linear-gradient(148deg, #e9f2e9, #f4edf7);
  border-color: #aabbb1;
}
.bean-article .bean-related small { color: #3c665b; font-weight: 740; }
.bean-article .bean-related a { align-items: start; }
.bean-article .bean-source a { display: grid; align-content: center; gap: .2rem; }
.bean-article .bean-source a > span { font-weight: 430; }

.bean-library .bean-library-head {
  position: relative;
  padding-inline-end: clamp(1rem, 16vw, 13rem);
  overflow: hidden;
}
.bean-library-head > div { position: relative; z-index: 1; }
.bean-library-head::after {
  position: absolute;
  inset: -2.9rem -1.65rem auto auto;
  inline-size: clamp(6rem, 19vw, 13.5rem);
  aspect-ratio: 1;
  border: 1px solid #b4855a50;
  border-radius: 50%;
  background: #ffefd2;
  box-shadow: 0 0 0 .65rem #ffeacc62, 0 0 0 1.3rem #ffeed03f;
  content: "";
}
.bean-search:not([hidden]) { border-color: #baa8c8; border-radius: .85rem; background: #f6eaf7; }
.bean-search:target { scroll-margin-block-start: .8rem; }
.bean-search #bean-count:empty { margin: 0; }
.bean-reading .bean-shelf-first {
  border-radius: .5rem .95rem .95rem .5rem;
  padding: .85rem clamp(.9rem, 3vw, 1.45rem);
}
.bean-reading .bean-shelf-first .bean-shelf-jump { text-underline-offset: .18em; }
.bean-reading .bean-shelf-list > h2 { color: #403055; }
.bean-reading .bean-shelf-entries > .bean-shelf-guide > a {
  padding-block: .78rem;
  border-radius: .65rem;
}
.bean-reading .bean-shelf-entries > .bean-shelf-guide > a:hover { background: #f8edf4; }

.article-view[data-theme] .article-head {
  padding-inline-start: clamp(.04rem, 1vw, .6rem);
  border-block-start-width: 3px;
}
.article-view .prose > h2::after {
  inline-size: 3rem;
  block-size: .32rem;
  border: 1px solid var(--reading-edge);
  border-radius: 999px;
  background: var(--reading-wash);
}
.article-view[data-theme="urgent"] .prose > h2::after {
  block-size: 2px;
  border: 0;
  background: var(--reading-edge);
}
.article-view .prose .reference-box { border-radius: .55rem .55rem 1.1rem 1.1rem; }
.article-view .prose .related {
  margin-block-start: 1.6rem;
  border-block-start: 1px solid var(--reading-edge);
  padding-block-start: 1.1rem;
}
.article-view .prose .related > h2 { margin-block-end: .3rem; }

.walk-view .walk-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  max-inline-size: 100%;
  gap: .5rem clamp(.85rem, 5vw, 3.75rem);
  align-items: center;
  padding: clamp(.9rem, 3vw, 2.4rem);
  border: 1px solid #bda5cc;
  border-radius: clamp(1.25rem, 4vw, 2.5rem);
  background: radial-gradient(ellipse at 76% 64%, #ffe4bc, transparent 62%), linear-gradient(140deg, #e6ddf8, #f3dce9);
}
.walk-view .walk-intro h1 { margin-block: 0 .52rem; color: #47345e; }
.walk-view .walk-intro .deck { max-inline-size: 32ch; color: #514061; }
.walk-view .bailey-desk-art { min-inline-size: 0; margin: 0; text-align: center; }
.walk-view .bailey-desk-art img {
  display: block;
  inline-size: min(100%, 25rem);
  block-size: auto;
  margin-inline: auto;
}
.walk-view .bailey-desk-art figcaption { margin-block-start: .22rem; color: #514061; font-size: .75rem; }
.walk-view .link-band { background: #edf2e8; }
.walk-view .notebook-grid > form { border-color: #b5a2c4; background: #fcf4fb; }
.walk-view .notebook-grid .walk-history {
  border-color: #b7b19b;
  background: repeating-linear-gradient(transparent 0 2rem, #c9c1ab45 2rem calc(2rem + 1px)), #fcf2e3;
}
.walk-view .walk-history #walk-empty { max-inline-size: 37ch; }
.walk-view .notebook-grid legend { color: #493963; }
.walk-view .notebook-grid textarea { background: #fffbf6; }

.bailey-view .album-page-nav a { color: #523a6c; text-underline-offset: .18em; }
.bailey-view .album .album-home .album-open { background: radial-gradient(ellipse, #fff0cb, #ecdff4); }
.bailey-view .bailey-story {
  margin-block: clamp(.85rem, 4vw, 2.1rem);
  padding: clamp(.8rem, 3vw, 1.55rem);
  border-color: #67948a;
  border-radius: .34rem .9rem .9rem .34rem;
  background: linear-gradient(133deg, #f1e9f8, #f9ece4);
}
.bailey-view .bailey-story > p { max-inline-size: 64ch; }
.bailey-view .bean-family-album { border-radius: clamp(.75rem, 2vw, 1.7rem); }
.bailey-view .album-chapter figure { border-radius: .35rem; overflow: hidden; }
.bailey-view .album-chapter figcaption { line-height: 1.33; }

@media screen and (max-width: 700px) {
  .walk-view .walk-intro { grid-template-columns: minmax(0, 1fr); }
  .walk-view .bailey-desk-art img { inline-size: min(100%, 19rem); }
  .bean-library .bean-library-head { padding-inline-end: 1rem; }
}
@media print {
  .bean-prose > .guide-step[data-step]:not(.guide-safety) { padding-inline: 0; background: white; }
  .bean-prose > .guide-step[data-step]:not(.guide-safety)::before,
  .bean-prose > .guide-step[data-step]:not(.guide-safety)::after,
  .walk-view .bailey-desk-art { display: none; }
  .bean-article :is(.bean-card, .bean-related, .bean-decisions), .walk-view .walk-intro,
  .walk-view .notebook-grid > form, .walk-view .notebook-grid .walk-history,
  .bailey-view .bailey-story { background: white; }
}

.bb-field-figure {
  --bb-leaf: #24463a;
  --bb-muted: #4d6354;
  --bb-paper: #fffcf3;
  --bb-line: #afc6ae;
  color: var(--bb-leaf);
  background: var(--bb-paper);
  border: 1px solid var(--bb-line);
  border-radius: clamp(.9rem, 3vw, 1.55rem);
  box-shadow: 0 .32rem 0 #d9e4d5;
  padding: clamp(.72rem, 3.4vw, 1.4rem);
  margin: 1.45rem 0 1.75rem;
  overflow-wrap: anywhere;
}

.bb-field-figure .bb-field-caption {
  display: grid;
  gap: .14rem;
  margin: 0 0 .8rem;
  line-height: 1.4;
}

.bb-field-caption strong {
  font-size: clamp(1.14rem, 3.35vw, 1.5rem);
  color: var(--bb-leaf);
  font-family: var(--serif, Georgia, serif);
  line-height: 1.2;
}

.bb-field-caption span {
  font-size: .94rem;
  color: var(--bb-muted);
}

.bb-field-figure .bb-walk-stops,
.bb-field-figure .bb-traction-key {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.1rem), 1fr));
  gap: .56rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-field-figure .bb-walk-stops li,
.bb-field-figure .bb-traction-key li {
  min-inline-size: 0;
  margin: 0;
  border-radius: .7rem;
}

.bb-walk-stops li {
  overflow: hidden;
  background: #f6faee;
  border: 1px solid #cbdac7;
}

.bb-stop-note {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .38rem;
  padding: .62rem .56rem .7rem;
  font-size: .92rem;
  line-height: 1.36;
}

.bb-stop-note strong {
  align-self: center;
}

.bb-field-figure .bb-stop-note p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--bb-muted);
}

.bb-stop-number,
.bb-traction-pin,
.bb-traction-key li::before {
  display: grid;
  place-items: center;
  inline-size: 1.42rem;
  block-size: 1.42rem;
  color: #fffdf5;
  background: #315b47;
  border-radius: 50%;
  font-size: .83rem;
  font-weight: 750;
  line-height: 1;
}

.bb-stop-art {
  isolation: isolate;
  position: relative;
  min-block-size: 4.75rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 19% 18% at 15% 31%, #fff9ed 97%, transparent),
    radial-gradient(ellipse 20% 13% at 44% 29%, #fff9ed 97%, transparent),
    radial-gradient(ellipse 72% 70% at 15% 114%, #a2c7a6 98%, transparent),
    radial-gradient(ellipse 84% 56% at 93% 104%, #7ca98d 98%, transparent),
    #e0eae5;
  border-block-end: 1px solid #cbdac7;
}

.bb-stop-art::before,
.bb-stop-art::after,
.bb-stop-art span::before,
.bb-stop-art span::after {
  content: "";
  position: absolute;
}

.bb-stop-art::before {
  inset: 46% -12% -40%;
  background: #f7e6bd;
  clip-path: polygon(4% 46%, 37% 26%, 60% 29%, 85% 6%, 98% 12%, 65% 44%, 39% 45%, 2% 75%);
}

.bb-stop-art--gate::after {
  inline-size: 31%;
  block-size: 40%;
  inset: 44% auto auto 43%;
  border-inline: .18rem solid #765843;
  background:
    linear-gradient(#765843, #765843) 0 48% / 100% .16rem no-repeat,
    repeating-linear-gradient(90deg, #b68865 0 .14rem, transparent .14rem .46rem);
  border-radius: .3rem 0 0;
}

.bb-stop-art--gate span::before {
  inset: 22% auto auto 22%;
  inline-size: .95rem;
  block-size: .95rem;
  background: #f8cc79;
  border-radius: 50%;
}

.bb-stop-art--shade {
  background:
    radial-gradient(ellipse 17% 13% at 17% 24%, #fff9ed 97%, transparent),
    radial-gradient(ellipse 62% 45% at 92% 103%, #82a58d 97%, transparent),
    radial-gradient(ellipse 85% 70% at 24% 112%, #acc5a1 98%, transparent),
    #d9e8dd;
}

.bb-stop-art--shade::after {
  inset: 52% 27% auto auto;
  inline-size: .36rem;
  block-size: 32%;
  border-radius: .2rem;
  background: #72584a;
}

.bb-stop-art--shade span::before {
  z-index: 1;
  inset: 13% 12% auto auto;
  inline-size: 44%;
  block-size: 50%;
  border-radius: 61% 58% 47% 52%;
  background: #4b825e;
  box-shadow: -.68rem .36rem 0 -.18rem #64906e, .47rem .16rem 0 -.12rem #346947;
}

.bb-stop-art--sniff {
  background:
    radial-gradient(ellipse 19% 15% at 28% 26%, #fff9ed 97%, transparent),
    radial-gradient(ellipse 75% 61% at 88% 103%, #a0bb86 98%, transparent),
    radial-gradient(ellipse 78% 64% at 10% 99%, #b7cb96 98%, transparent),
    #e8ebd9;
}

.bb-stop-art--sniff::after {
  inset: 48% 13% auto auto;
  inline-size: 42%;
  block-size: 42%;
  background: #608752;
  clip-path: polygon(0 89%, 6% 37%, 19% 70%, 24% 12%, 39% 65%, 54% 29%, 69% 59%, 82% 19%, 91% 62%, 100% 48%, 100% 100%, 1% 100%);
}

.bb-stop-art--sniff span::before {
  z-index: 2;
  inset: 44% auto auto 52%;
  inline-size: .42rem;
  block-size: .42rem;
  border-radius: 50%;
  background: #e6ae74;
  box-shadow: .9rem .38rem 0 #edce91, 1.66rem .04rem 0 #e4ae76;
}

.bb-stop-art--home {
  background:
    radial-gradient(ellipse 22% 16% at 81% 26%, #fff8e9 97%, transparent),
    radial-gradient(ellipse 70% 50% at 92% 109%, #98b888 98%, transparent),
    radial-gradient(ellipse 75% 80% at 16% 108%, #aac8a1 98%, transparent),
    #f6e1d7;
}

.bb-stop-art--home span::before {
  inset: 43% auto auto 23%;
  inline-size: 34%;
  block-size: 33%;
  border: 1px solid #b98e78;
  border-radius: .14rem;
  background: linear-gradient(#956e63, #956e63) 54% 100% / 23% 51% no-repeat, #faf0d8;
}

.bb-stop-art--home span::after {
  inset: 25% auto auto 19%;
  inline-size: 44%;
  block-size: 24%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #aa7770;
}

.bb-traction-plan {
  isolation: isolate;
  position: relative;
  min-block-size: 8rem;
  aspect-ratio: 2.65 / 1;
  margin: 0 0 .7rem;
  overflow: hidden;
  border: 1px solid #c5d0b7;
  border-radius: .7rem;
  background:
    repeating-linear-gradient(0deg, #e6dcc4 0 1px, transparent 1px 1.1rem),
    linear-gradient(90deg, #eee4d2 0 64%, #f3ecd8 64%);
}

.bb-traction-plan > div,
.bb-traction-pin {
  position: absolute;
}

.bb-traction-plan > div {
  border: 1px solid #5e8b70;
}

.bb-traction-runner,
.bb-traction-mat {
  border-radius: .26rem;
  background: repeating-linear-gradient(135deg, #c6dfc2 0 .18rem, #d6e8cc .18rem .42rem);
}

.bb-traction-runner {
  inset: 60% 22% 11% 14%;
}

.bb-traction-mat {
  inset: 11% 9% 11% 62%;
}

.bb-traction-plan .bb-traction-bed {
  inset: 44% auto 10% 3.5%;
  inline-size: 19%;
  border-color: #a88d79;
  border-radius: .56rem;
  background: #e7c6b7;
  box-shadow: inset 0 0 0 .22rem #f6e0d0;
}

.bb-traction-plan .bb-traction-bowl {
  inset: 15% 13% auto auto;
  inline-size: 14%;
  block-size: 25%;
  border-radius: 50%;
  border-color: #496c71;
  background: #b4d2cc;
  box-shadow: inset 0 0 0 .22rem #e2f1ec;
}

.bb-traction-bed span,
.bb-traction-bowl span {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  color: #253d36;
  font-size: .84rem;
  font-weight: 800;
}

.bb-traction-pin {
  outline: 2px solid #fffcf3;
}

.bb-traction-pin--rise { inset: 63% auto auto 26%; }
.bb-traction-pin--turn { inset: 63% 23% auto auto; }
.bb-traction-pin--stand { inset: 43% 16.5% auto auto; }

.bb-field-figure .bb-traction-key {
  counter-reset: bb-traction;
}

.bb-traction-key li {
  counter-increment: bb-traction;
  position: relative;
  border: 1px solid #c6d8c1;
  background: #f4f7eb;
  padding: .62rem .55rem .65rem 2.18rem;
  color: var(--bb-muted);
  font-size: .9rem;
  line-height: 1.36;
}

.bb-traction-key li::before {
  content: counter(bb-traction);
  position: absolute;
  inset: .6rem auto auto .48rem;
  inline-size: 1.25rem;
  block-size: 1.25rem;
}

.bb-traction-key strong {
  display: block;
  color: var(--bb-leaf);
}

@media print {
  .bb-field-figure { box-shadow: none; break-inside: avoid; }
  .bb-stop-art, .bb-traction-plan { print-color-adjust: exact; }
}

.bb-field-card{margin-block:clamp(1.5rem,4vw,2.6rem);padding:clamp(.9rem,3vw,1.5rem);border:1px solid #abc2a8;border-radius:1rem;background:#eff6e9;color:#253e32}
.bb-field-card h2{margin-block:0 .6rem}
.bb-field-small{color:#3e5446;font-size:.95rem}
.bb-check-lanes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.65rem;margin-block:1rem}
.bb-check-lanes>div,.bb-menu-folds details,.bb-field-inputs label{padding:.65rem .75rem;border:1px solid #b6c8ae;background:#fcf9f1;border-radius:.55rem;min-width:0}
.bb-check-lanes dt{font-weight:760}.bb-check-lanes dd{margin:.3rem 0 0}
.bb-field-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.68rem;margin:1rem 0}
.bb-field-inputs label{display:grid;gap:.32rem;font-weight:650}
.bb-field-inputs input{padding:.35rem .5rem;width:100%;min-width:0;min-height:44px;border:1px solid #a4b29d;border-radius:.3rem;background:#fffdf8;font:inherit;color:#24382b}
.bb-menu-folds{display:grid;gap:.55rem;margin:1rem 0}.bb-menu-folds summary{padding:.35rem 0;cursor:pointer;font-weight:730;min-height:44px;line-height:1.35}.bb-menu-folds p{margin:.25rem 0 .3rem}
.bb-ramp-sketch{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.4rem;margin:1rem 0;padding:.65rem;background:linear-gradient(160deg,#e2ecd8,#d0e0cc);border:1px solid #9db79a;border-radius:.65rem}
.bb-ramp-sketch span{padding:.45rem .5rem;border-inline-start:2px solid #47775a;background:#fbf9ef;font-weight:680}
@media print{.bb-field-card{background:white;border-color:#777}.bb-field-inputs label{break-inside:avoid;background:white}.bb-field-inputs input{background:white;color:black;border:0;border-bottom:1px solid #555}}
