.family-shelf {
  width: min(100% - 2 * var(--hp-site-gutter), 1120px);
  margin: clamp(28px, 6vw, 72px) auto;
}
.family-shelf h1 { font-size: clamp(48px, 7vw, 88px); line-height: 1; margin-bottom: 28px; }
.family-shelf h2 { font-size: clamp(27px, 4vw, 40px); line-height: 1.1; }
.family-shelf h3 { font-size: 26px; }
.family-shelf h4 { font-size: 21px; margin-bottom: 12px; }
.family-section { padding-block: 24px; border-top: 1px solid var(--color-line); }
.family-section > h2 { margin-bottom: 12px; }
.family-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 12px; }
.family-row > :first-child:not(img), .family-row > div { flex: 1 1 180px; }
.family-row + .family-row:not(.family-section), .family-child + .family-child { border-top: 1px solid var(--color-line); }
.family-shelf a:not(.btn), .family-back { text-decoration: underline; text-underline-offset: .2em; }
.family-row time { color: var(--color-ink-soft); font-size: .9rem; }
.family-cover { width: 50px; height: auto; }
.family-child { padding-block: 16px; }
.family-book { padding-block: 12px; }
.family-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.family-pages img { display: block; width: 100%; height: auto; box-shadow: var(--hp-sheet-shadow); }
.family-back { display: inline-block; margin-bottom: 16px; }
.family-detail :is(.rounded-2xl, .rounded-xl, .rounded-lg) { border-radius: 2px; }
.family-detail :is(.shadow, .shadow-sm, .shadow-md, .shadow-lg) { box-shadow: none; }
.family-detail :is(.bg-surface-soft, .bg-surface-hover) { background: transparent; }
.family-detail.collection-family {
  --font-display: Newsreader, Georgia, serif;
  background: #fbf8f1;
}
.family-detail.collection-family :is(h1, h2, h3) { font-weight: 400; }
.family-detail.collection-family :is(.tlw-component, .commerce-main section) {
  border-radius: 0;
  box-shadow: none;
}
.family-detail.collection-family :is(.tlw-button, .btn-primary, .commerce-button, .commerce-main button) {
  border-radius: 2px;
  font-family: var(--hp-font-body);
}
.family-detail.collection-family .commerce-main .secondary {
  background: transparent;
  color: #1f1b16;
  border: 1px solid #1f1b16;
}
.family-shelf :is(h1, h2, h3, h4) { font-weight: 400; }

.family-order { min-width: 0; border-top: 1px solid var(--hp-line, #ded7cb); padding-block: 20px; }
.family-order-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.family-order-summary time { display: block; color: #6e665c; font-size: .9rem; }
.family-order-covers { display: flex; align-items: end; gap: 8px; max-width: 100%; }
.family-order-covers img { display: block; width: clamp(36px, 12vw, 80px); height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: white; box-shadow: var(--hp-sheet-shadow); }
.family-shelf .family-pages { --hp-sheet-u: clamp(88px, 12vw, 146px); display: flex; gap: 14px; overflow-x: auto; padding: 5px 5px 12px; }

/* The Monday drop, for a subscriber: this week's books first, then the rhythm. */
.monday-manage { --ink: #1f1b16; --soft: #6e665c; --line: #1f1b1633; }
.monday-crumb { color: var(--soft); font-size: .9rem; margin: 0 0 6px; }
.monday-crumb a { color: inherit; }
.monday-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.monday-head h1, .imprint .monday-head h1.hp-utility-title { margin: 0; }
.monday-head p { color: var(--soft); font-size: .95rem; margin: 0 0 10px; }
.monday-week { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; padding-block: clamp(36px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.monday-week--waiting { grid-template-columns: minmax(0, 1fr); }
.monday-week h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 6px 0 12px; }
.monday-when { font-family: Newsreader, Georgia, serif; font-style: italic; color: var(--soft); margin: 0; }
.monday-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
.family-shelf .monday-actions .commerce-button { text-decoration: none; }
.monday-week-art { display: block; min-width: 0; max-width: 100%; container-type: inline-size; color: inherit; text-decoration: none !important; }
.monday-bundle { --hp-sheet-u: clamp(64px, 31cqw, 100px); position: relative; display: flex; align-items: flex-end; max-width: 100%; }
.monday-bundle-big { --hp-sheet-u: clamp(88px, 31cqw, 152px); }
.monday-cover { position: relative; z-index: 5; display: block; flex: none; object-fit: cover; background: white; box-shadow: 0 6px 18px #1f1b1638; }
.monday-cover-empty { border: 1px dashed #1f1b1655; background: #f4efe4; box-shadow: none; }
.monday-sheet { margin-left: calc(var(--hp-sheet-u) * -0.62); transform-origin: bottom left; }
.monday-sheet:nth-of-type(1) { z-index: 4; transform: rotate(3deg); margin-left: calc(var(--hp-sheet-u) * -0.52); }
.monday-sheet:nth-of-type(2) { z-index: 3; transform: rotate(6deg); }
.monday-sheet:nth-of-type(3) { z-index: 2; transform: rotate(9deg); }
.monday-sheet:nth-of-type(4) { z-index: 1; transform: rotate(12deg); }
.monday-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.monday-next h2 { font-size: 26px; margin: 0; }
.monday-next > p { margin: 0; color: var(--soft); grid-column: 1; }
.monday-next > :is(details, form, button, p:has(a)) { grid-column: 1 / -1; margin-top: 12px; }
/* The one next step is a button of its own size, not a bar across the page. */
.monday-next > button[data-sub-action] { justify-self: start; }
.monday-interests summary { cursor: pointer; list-style: none; font-weight: 400; }
.monday-interests summary::-webkit-details-marker { display: none; }
.monday-interests summary span { margin-left: 10px; text-decoration: underline; text-underline-offset: .2em; }
.monday-interests form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; margin-top: 14px; }
.monday-interests .monday-child-field { flex-basis: 100%; border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.monday-interests .monday-child-field legend { font-size: .9rem; color: var(--soft); margin-bottom: 8px; padding: 0; }
.monday-interests .hpd-child-grid-wrap { --hpd-child-max-width: 420px; }
.monday-interests label:not(.hpd-child-tile) { flex-basis: 100%; font-size: .9rem; color: var(--soft); }
.monday-interests input:not([type="radio"]):not([type="hidden"]) { flex: 1 1 260px; min-height: 46px; padding: 8px 12px; border: 1px solid #1f1b1666; border-radius: 2px; background: white; font: inherit; }
.monday-interests button:disabled,
.collection-family .commerce-main .monday-interests button:disabled,
.collection-family .commerce-main .monday-interests button:disabled:hover { background: #e2dfd8; color: #514c44; border-color: #e2dfd8; cursor: not-allowed; }
.monday-interests [role=status]:empty { display: none; }
.monday-earlier { padding-block: clamp(32px, 5vw, 56px) 8px; }
.monday-earlier h2 { margin-bottom: 24px; }
.monday-earlier ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 36px 28px; list-style: none; margin: 0; padding: 0; }
.monday-earlier li a { display: block; min-width: 0; container-type: inline-size; color: inherit; text-decoration: none !important; }
.monday-earlier li b { display: block; margin-top: 14px; font: 400 19px/1.25 Newsreader, Georgia, serif; }
.monday-earlier li span { color: var(--soft); font-size: .9rem; }
.monday-stop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 32px; margin-top: clamp(32px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); }
.monday-stop h2 { font-size: 24px; margin: 0; }
.monday-stop p { margin: 0 0 8px; color: var(--soft); }
.family-detail.collection-family .commerce-main .monday-text-button, .monday-text-button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
@media (max-width: 720px) {
  .monday-week, .monday-stop { grid-template-columns: minmax(0, 1fr); }
  .monday-earlier ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
}

/* My shelf (owner, 26 Nov 2026): books first. One quiet line of rooms, the
   child's name as the only heading, a problem once under its child, and the
   order history closed at the bottom. */
.family-shelf.shelf-v2 { margin-top: clamp(18px, 2.5vw, 28px); }
.shelf-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.family-shelf .shelf-bar h1 { margin: 0; font: 400 20px/1.2 Newsreader, Georgia, serif; color: #6e665c; }
.shelf-bar nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .95rem; }
.family-shelf .shelf-bar a { color: #5e554a; }
.shelf-child { padding-top: clamp(22px, 3.5vw, 40px); }
.shelf-child + .shelf-child { padding-top: clamp(40px, 6vw, 72px); }
.family-shelf .shelf-child h2 { margin: 0 0 4px; font-size: clamp(30px, 3.6vw, 42px) !important; }
.shelf-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 10px 0 0; color: #5e554a; }
.shelf-note b { color: #1f1b16; font-weight: 600; }
.family-shelf .shelf-note .btn { text-decoration: none; }
.shelf-set + .shelf-note { border-top: 1px solid var(--color-line); padding-top: 12px; }
.shelf-set { padding-top: 18px; }
.shelf-set-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.shelf-set-head h3 { margin: 0; font-size: 22px !important; }
.shelf-set-head h3 span { color: #6e665c; font: 400 .95rem/1 "Source Sans 3", system-ui, sans-serif; margin-left: 4px; }
.family-shelf .shelf-set-head a { font-size: .95rem; }
.shelf-set .family-book h4 { font: italic 400 17px Newsreader, Georgia, serif; margin: 8px 0 6px; }
.shelf-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(52%, 560px)); align-items: center; gap: clamp(24px, 5vw, 64px); padding: clamp(28px, 5vw, 56px) 0; }
.shelf-empty > div { display: grid; justify-items: start; gap: 18px; }
.shelf-empty p { margin: 0; font: 400 clamp(26px, 3vw, 34px)/1.2 Newsreader, Georgia, serif; }
.shelf-coming { max-width: 560px; margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 720px) { .shelf-empty { grid-template-columns: minmax(0, 1fr); } }
.family-shelf .shelf-empty .btn { text-decoration: none; }
.shelf-orders { margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--color-line); }
.shelf-orders ul { list-style: none; margin: 0 0 12px; padding: 0; }
.shelf-orders li { display: grid; grid-template-columns: 4.5rem minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 9px 0; border-top: 1px solid var(--color-line); font-size: .95rem; }
.shelf-orders li.is-closed { color: #6e665c; }
.shelf-orders time, .shelf-orders-state { color: #6e665c; font-size: .9rem; }
.shelf-orders b { font: 400 18px/1.25 Newsreader, Georgia, serif; color: #1f1b16; margin-right: 4px; }
.shelf-orders li > a { justify-self: end; white-space: nowrap; }
@media (max-width: 720px) {
  .shelf-bar nav { column-gap: 16px; row-gap: 0; }
  .shelf-bar nav a, .shelf-note > a, .shelf-orders :is(summary, li > a) { min-height: 40px; align-content: center; }
  .shelf-orders li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; }
  .shelf-orders time { display: none; }
  .shelf-orders-state { grid-column: 1; grid-row: 2; }
  .shelf-orders li > a { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* Calm paper-coloured placeholder while lazy page thumbnails wait to load.
   Every slot in a lazy row starts as paper with a hairline (the first,
   natively lazy cover too), so a slot still loading reads as "loading", never
   as a missing white box. The loaded page covers it. */
:is([data-lazy-row], [data-lazy-grid]) .hp-sheet {
  background: #f4efe4;
  box-shadow: inset 0 0 0 1px rgba(31, 27, 22, .14), var(--hp-sheet-shadow);
}
.hp-sheet:has(> img[data-lazy-src]),
.hp-sheet:has(> img.hp-lazy-loading) {
  background: #f4efe4;
}
.hp-sheet > img[data-lazy-src],
.hp-sheet > img.hp-lazy-loading {
  opacity: 0;
}
.hp-sheet > img.hp-lazy-loaded {
  opacity: 1;
  transition: opacity .18s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .hp-sheet > img.hp-lazy-loaded { transition: none; }
}

/* Signed-in Monday drop (fine QA 25 Nov): this week's cover and sheets are
   sized from their own column, so the fan never reaches the title or the
   Print button beside it (it did at 1440 and 1024). */
.monday-week-art { container-type: inline-size; min-width: 0; }
.monday-week-art .monday-bundle-big { --hp-sheet-u: min(184px, 28.5cqi); padding-right: 0; }

/* Signed-in utility pages (My shelf and friends, titled by .hp-utility-title):
   nothing outranks the modest page title. Child and section headings are a
   clear second level (owner, 25 Nov 2026). */
.family-shelf:has(.hp-utility-title) h2 { font-size: clamp(24px, 2.2vw, 30px) !important; }
