/* =========================================================================
   The Planters' Guild — hub shelf (the "ledger" hub treatment)
   Loads AFTER a hub's own stylesheet (substrate-library.css etc.) and
   overrides three things: a slimmer hero, a one-line promise strip, and a
   row-based shelf in place of the 4:3 card grid.

   Why (2026-09-15): at phone width every hub card stacked a full-width
   photograph, kicker, title, three-line teaser and tags — ~700 px each, so
   thirteen entries was twelve screens. On desktop the 3-up grid ran five
   rows with an orphan. The shelf row keeps thumbnail, level, title and a
   two-line teaser; two abreast on desktop, one on phones.

   Adoption: load this sheet in the hub layout, give the hero
   `pillar-hero--slim`, give the promise section `pillar-promise--slim`, and
   render entries as `.shelf > a.shelf-row`. Mockups and measurements:
   D:\Claude\_review\hub-mobile-mockups-2026-09-16.html and
   hub-desktop-mockups-2026-09-16.html.
   ========================================================================= */

/* Some hub stylesheets define --side-pad (substrate-library.css,
   field-manual.css); pillar-hub.css does not. Same value, declared here so the
   rules below never fall back to zero padding. */
:root { --side-pad: clamp(20px, 5vw, 56px); }

/* --- Slim hero ------------------------------------------------------------- */
.pillar-hero--slim {
  padding: 56px var(--side-pad) 44px;
}
.pillar-hero--slim .pillar-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px 56px;
  align-items: end;
}
.pillar-hero--slim .breadcrumb { grid-column: 1 / -1; margin-bottom: 8px; }
.pillar-hero--slim .kicker { margin-bottom: 12px; }
.pillar-hero--slim h1 {
  font-size: clamp(40px, 4.6vw, 56px);
  margin-bottom: 0;
}
.pillar-hero--slim p.lede {
  font-size: 18px;
  margin: 0;
  max-width: none;
}

/* --- One-line promise strip ------------------------------------------------ */
.pillar-promise--slim { padding: 22px var(--side-pad); }
.pillar-promise--slim .pillar-promise__inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 40px;
}
.pillar-promise--slim .promise-card {
  border-left: 2px solid var(--terracotta);
  padding-left: 16px;
}
.pillar-promise--slim .promise-card h3 {
  display: inline;
  font-size: 15px;
  margin: 0 6px 0 0;
}
.pillar-promise--slim .promise-card p {
  display: inline;
  font-size: 14px;
  line-height: 1.5;
}
/* After the p rule on purpose: the label is also a <p>. */
.pillar-promise--slim .promise-card p.promise-card__label { display: block; margin-bottom: 4px; }

/* --- The shelf --------------------------------------------------------------- */
.entries--shelf { padding: 48px var(--side-pad) 72px; }
.entries--shelf .entries__head { margin-bottom: 8px; }
.shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  border-top: 1px solid var(--color-rule);
}
.shelf-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-rule);
  text-decoration: none;
  color: var(--walnut);
}
.shelf-row:hover { text-decoration: none; }
.shelf-row:hover h3 { color: var(--forest-pine); }
.shelf-row__visual {
  width: 112px;
  aspect-ratio: 1 / 1;
  background: var(--kraft);
  overflow: hidden;
}
.shelf-row__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.shelf-row__level {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--forest-pine);
  margin-bottom: 4px;
}
.shelf-row h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px; line-height: 1.2;
  color: var(--walnut);
  margin: 0;
  transition: color 0.15s;
}
.shelf-row__teaser {
  font-size: 14.5px; line-height: 1.45;
  color: var(--aged-ink);
  margin: 5px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Pillar-hub (specimen tray) extras ------------------------------------- */
/* pillar-hub.njk carries a stats row in the hero and a live/upcoming state per
   entry; these sit on top of the base rules above. */
.pillar-hero--slim .ph-stats { grid-column: 1 / -1; margin-top: 8px; gap: 40px; }
@media (max-width: 640px) { .pillar-hero--slim .ph-stats { gap: 24px 28px; } }
.pillar-hero--slim .ph-stats span strong { font-size: 22px; }
.tray-section--shelf { padding: 40px var(--side-pad) 56px; }
.tray-section--shelf + .tray-section--shelf { padding-top: 0; }
.tray-section--shelf .tray-controls { margin-bottom: 0; border-bottom: 0; padding-bottom: 12px; }
.shelf-row__latin {
  font-style: italic;
  font-size: 13px;
  color: var(--aged-ink);
  margin: 2px 0 0;
}
.shelf-row--upcoming { cursor: default; }
.shelf-row--upcoming .shelf-row__visual { opacity: 0.55; filter: grayscale(0.35); }
.shelf-row--upcoming h3 { color: var(--aged-ink); }
.shelf-row__level--live { color: var(--terracotta); }
.shelf-row__level--finale { color: var(--walnut); }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .pillar-hero--slim .pillar-hero__inner { grid-template-columns: 1fr; gap: 12px; }
  .pillar-hero--slim h1 { font-size: clamp(36px, 8vw, 44px); }
  .pillar-promise--slim .pillar-promise__inner { grid-template-columns: 1fr; gap: 12px; }
  .shelf { grid-template-columns: 1fr; column-gap: 0; }
}
@media (max-width: 640px) {
  .pillar-hero--slim { padding: 28px var(--side-pad) 24px; }
  .pillar-hero--slim .breadcrumb { margin-bottom: 4px; }
  .pillar-hero--slim p.lede { font-size: 16px; }
  /* The lede's second and third sentences are wrapped in .lede__more in the
     hub template; on a phone the first sentence is the lede. */
  .lede__more { display: none; }
  .pillar-promise--slim { padding: 16px var(--side-pad); }
  .pillar-promise--slim .promise-card h3 { font-size: 14px; }
  .pillar-promise--slim .promise-card p { font-size: 13.5px; }
  .entries--shelf { padding: 28px var(--side-pad) 40px; }
  .shelf-row { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
  .shelf-row__visual { width: 84px; }
  .shelf-row h3 { font-size: 16.5px; }
  .shelf-row__teaser { font-size: 13.5px; }
}
