/* ==========================================================================
   Large Print Maker — v2 additions (2026-11-21)
   Category bar, example-sheet gallery, supplier strips, book shelf,
   big-print sudoku and bingo cards, plus their print rules.
   Loaded after site.css.
   ========================================================================== */

/* ---------- category bar ---------- */
.catbar {
  position: sticky; top: 74px; z-index: 70;
  background: rgba(247, 241, 228, .96);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
section[id], div[id="sheets"] { scroll-margin-top: 140px; }
.catbar__row {
  display: flex; align-items: center; gap: .4rem;
  padding: .55rem 0; overflow-x: auto; scrollbar-width: none;
}
.catbar__row::-webkit-scrollbar { display: none; }
.catbar__label {
  font-family: system-ui, sans-serif; font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
  margin-right: .4rem; white-space: nowrap;
}
.catbar__btn {
  flex: none; cursor: pointer; white-space: nowrap;
  font-family: system-ui, sans-serif; font-size: .82rem; font-weight: 600;
  background: var(--paper); color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: .4rem .8rem;
}
.catbar__btn:hover { background: #fff; color: var(--ink); }
.catbar__btn[aria-pressed="true"] {
  background: var(--teal); border-color: var(--teal); color: #fff;
}
.catbar__count {
  margin-left: auto; font-family: system-ui, sans-serif; font-size: .76rem;
  color: var(--ink-faint); white-space: nowrap; padding-left: .6rem;
}
@media (max-width: 860px) { .catbar { top: 66px; } .catbar__label { display: none; } }

/* ---------- example gallery ---------- */
.gallery {
  display: grid; gap: 1.05rem;
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
}
.gallery[data-filtered="true"] .sheet-card[data-hide="true"] { display: none; }

.sheet-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.sheet-card:hover {
  transform: translateY(-2px); border-color: var(--line-strong);
  box-shadow: 0 4px 8px rgba(18,35,61,.06), 0 20px 34px -26px rgba(18,35,61,.6);
}
.sheet-card__thumb {
  position: relative; padding: .8rem .8rem 0;
  background: linear-gradient(160deg, #efe6d4 0%, #e7dcc6 100%);
  border-bottom: 1px solid var(--line);
}
.sheet-card__thumb svg {
  width: 100%; height: auto; display: block;
  border-radius: 3px; background: #fff;
  box-shadow: 0 2px 4px rgba(18,35,61,.1), 0 10px 20px -14px rgba(18,35,61,.7);
}
.sheet-card__badge {
  position: absolute; top: .55rem; right: .55rem;
  font-family: system-ui, sans-serif; font-size: .64rem; font-weight: 700;
  letter-spacing: .04em; color: #fff; background: var(--teal);
  padding: .24rem .5rem; border-radius: 100px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.sheet-card__body {
  padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1;
}
.sheet-card__title {
  font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.25;
}
.sheet-card__meta {
  font-family: system-ui, sans-serif; font-size: .74rem; color: var(--ink-faint);
}
.sheet-card__cta {
  margin-top: auto; padding-top: .55rem;
  font-family: system-ui, sans-serif; font-size: .82rem; font-weight: 700;
  color: var(--teal-dark); text-decoration: none;
  display: inline-flex; align-items: center; gap: .3rem;
}
.sheet-card__cta:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.sheet-card__cta svg { width: 15px; height: 15px; }

/* ---------- supplier strip (Amazon Associates slot) ---------- */
.strip {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .9rem 1rem 1rem;
  margin: 1.2rem 0;
}
.strip--quiet { background: #fbf7ee; }
.strip__head {
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
  margin-bottom: .65rem;
}
.strip__title {
  font-family: system-ui, sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--teal);
  margin: 0;
}
.strip__sub { font-family: system-ui, sans-serif; font-size: .76rem; color: var(--ink-faint); margin: 0; }
.strip__items {
  display: grid; gap: .55rem;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}
.strip__item {
  display: flex; gap: .55rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 11px;
  background: #fff; padding: .5rem .55rem;
}
.strip__icon {
  flex: none; width: 32px; height: 32px; border-radius: 8px;
  background: var(--teal-tint); color: var(--teal-dark);
  display: grid; place-items: center;
}
.strip__icon svg { width: 18px; height: 18px; }
.strip__text { min-width: 0; }
.strip__name {
  font-family: system-ui, sans-serif; font-size: .84rem; font-weight: 700;
  color: var(--ink); margin: 0 0 .1rem; line-height: 1.25;
}
.strip__why {
  font-family: system-ui, sans-serif; font-size: .74rem; color: var(--ink-soft);
  margin: 0; line-height: 1.4;
}
.strip__cta {
  display: inline-block; margin-top: .25rem;
  font-family: system-ui, sans-serif; font-size: .72rem; font-weight: 700;
  color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px;
}
.strip__cta--soon { color: var(--ink-faint); text-decoration: none; font-weight: 600; }
.strip__note {
  font-family: system-ui, sans-serif; font-size: .72rem; color: var(--ink-faint);
  margin: .6rem 0 0; display: flex; gap: .35rem; align-items: flex-start;
}
.strip__note svg { width: 14px; height: 14px; flex: none; margin-top: .12rem; }

/* ---------- book shelf (own KDP / Gumroad / Etsy products) ---------- */
.shelf {
  background: linear-gradient(150deg, #0d5c51 0%, #0a4a43 60%, #093f39 100%);
  border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.9rem);
  color: #eaf5f1; margin: 1.6rem 0;
  box-shadow: var(--shadow);
}
.shelf__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .6rem 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.shelf__title { color: #fff; font-size: 1.3rem; margin: 0; }
.shelf__sub { font-family: system-ui, sans-serif; font-size: .84rem; color: #bfdcd4; margin: 0; }
.shelf__items {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}
.book {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: .7rem; display: flex; flex-direction: column; gap: .45rem;
  text-decoration: none; color: #eaf5f1;
}
.book:hover { background: rgba(255,255,255,.13); color: #fff; }
.book__cover {
  border-radius: 5px; background: #fdfaf2; color: #12233d;
  padding: .55rem .5rem; min-height: 92px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 6px 14px -8px rgba(0,0,0,.6);
}
.book__cover--cream { background: #f7ecd8; }
.book__cover--sage { background: #e6efe6; }
.book__cover--blue { background: #e5ebf3; }
.book__kicker {
  font-family: system-ui, sans-serif; font-size: .52rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #4a5b70;
}
.book__name { font-size: .84rem; font-weight: 700; line-height: 1.2; margin: .2rem 0 0; }
.book__rule { height: 2px; background: #12233d; opacity: .8; margin: .3rem 0; }
.book__meta { font-family: system-ui, sans-serif; font-size: .62rem; color: #4a5b70; }
.book__title { font-family: system-ui, sans-serif; font-size: .84rem; font-weight: 700; margin: 0; line-height: 1.25; }
.book__price { font-family: system-ui, sans-serif; font-size: .78rem; color: #cfe6df; margin: 0; }
.book__price b { color: #fff; }
.book__cta { font-family: system-ui, sans-serif; font-size: .75rem; font-weight: 700; color: #fff; margin-top: auto; text-decoration: underline; text-underline-offset: 3px; }
.shelf__note { font-family: system-ui, sans-serif; font-size: .74rem; color: #a9cdc4; margin: .9rem 0 0; }

/* ---------- big-print sudoku ---------- */
.sd-grid {
  display: grid; margin: .08in auto .12in;
  border: 3px solid #111; width: 100%; max-width: 5.35in; background: #fff;
}
.sd-grid--n4 { max-width: 3.9in; }
.sd-grid--n6 { max-width: 4.6in; }
.sd-grid--n9 { max-width: 5.35in; }
.sd-cell {
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  font-family: "DejaVu Sans", Verdana, Geneva, sans-serif;
  font-weight: 700; color: #111; line-height: 1;
  border-right: 1px solid #9a9a9a; border-bottom: 1px solid #9a9a9a;
  background: #fff;
}
.sd-cell--edge-r { border-right: 3px solid #111; }
.sd-cell--edge-b { border-bottom: 3px solid #111; }
.sd-cell--blank { color: #111; }
.sd-grid--n9 .sd-cell { font-size: 26pt; }
.sd-grid--n6 .sd-cell { font-size: 34pt; }
.sd-grid--n4 .sd-cell { font-size: 46pt; }
.sd-grid--n4 .sd-cell--given { color: #0d5c51; }
.sheet--solution .sd-cell { color: #0d5c51; }
.sheet--solution .sd-cell--given { color: #111; }
.sd-note {
  font-family: system-ui, sans-serif; font-size: 9pt; color: #444;
  background: #f6f3ea; border-left: 3px solid #0d5c51; padding: 6pt 8pt; margin-top: .08in;
}
.sd-blocknote { font-family: system-ui, sans-serif; font-size: 9.5pt; color: #555; text-align: center; margin: .04in 0 0; }

/* ---------- big-print bingo cards ---------- */
.bg-card { max-width: 7.6in; }
.bg-titlebar {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10pt; flex-wrap: wrap;
  border-bottom: 2.5px solid #111; padding-bottom: .07in; margin-bottom: .1in;
}
.bg-titlebar h1 { font-size: 20pt; margin: 0; line-height: 1.1; }
.bg-titlebar span { font-family: system-ui, sans-serif; font-size: 10pt; color: #444; letter-spacing: .08em; text-transform: uppercase; }
.bg-head { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4pt; margin-bottom: 5pt; }
.bg-head span {
  text-align: center; font-family: "DejaVu Sans", Verdana, sans-serif;
  font-size: 30pt; font-weight: 700; color: #fff; background: #0d5c51;
  border-radius: 5px; padding: 2pt 0; line-height: 1.1; letter-spacing: .04em;
}
.bg-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: minmax(.95in, auto);
  border: 3px solid #111; background: #fff; gap: 0;
}
.bg-cell {
  background: #fff; display: grid; place-items: center; text-align: center;
  padding: 3pt; min-height: .95in; min-width: 0; overflow: hidden;
  border: 1px solid #555;
  font-family: "DejaVu Sans", Verdana, sans-serif; font-weight: 700; color: #111;
  line-height: 1.05; word-break: break-word; hyphens: none;
}
.bg-cell--free { background: #e4f0ec; color: #0a4a43; font-size: 13pt !important; letter-spacing: .06em; }
@media print { .bg-cell--free { border: 2px dashed #111; background: #fff !important; color: #111 !important; } }
.bg-cell[data-len="s"] { font-size: 24pt; }
.bg-cell[data-len="m"] { font-size: 20pt; }
.bg-cell[data-len="l"] { font-size: 18pt; }
.bg-cell[data-len="xl"] { font-size: 15pt; }
.bg-call { columns: 2; column-gap: .3in; list-style: none; margin: .1in 0 0; padding: 0; }
.bg-call li {
  font-family: system-ui, sans-serif; font-size: 15pt; line-height: 1.55;
  border-bottom: 1px dotted #bbb; break-inside: avoid;
}
.bg-call--numbers { columns: 5; }
.bg-call--numbers li { font-size: 14pt; }

/* ---------- related tools ---------- */
.related {
  display: grid; gap: .7rem; margin-top: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.related a {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: 11px; padding: .7rem .8rem; text-decoration: none; color: var(--ink);
  font-size: .92rem;
}
.related a:hover { border-color: var(--teal); background: #fff; }
.related a span {
  display: block; font-family: system-ui, sans-serif; font-size: .72rem;
  color: var(--ink-faint); margin-top: .15rem;
}

/* ---------- section header variant ---------- */
.section__head--center { max-width: 46rem; margin: 0 auto 1.8rem; text-align: center; }
.section__head--center p { margin-inline: auto; }

/* ---------- print rules for the v2 sheets ---------- */
@media print {
  .catbar, .strip, .shelf, .related, .gallery, .sheet-card { display: none !important; }

  .sd-grid { max-width: 6.3in; }
  .sd-grid--n4 { max-width: 4.6in; }
  .sd-grid--n6 { max-width: 5.4in; }
  .sd-grid--n9 .sd-cell { font-size: 30pt; }
  .sd-grid--n6 .sd-cell { font-size: 38pt; }
  .sd-grid--n4 .sd-cell { font-size: 52pt; }

  .sheet--bingo { page-break-after: always; break-after: page; }
  .sheet--bingo:last-of-type { page-break-after: auto; break-after: auto; }
  .bg-head span {
    background: #fff !important; color: #111 !important;
    border: 2px solid #111; font-size: 28pt; padding: 3pt 0;
  }
  .bg-grid { grid-auto-rows: 1.45in; }
  .bg-cell { min-height: 0; }
  .bg-cell[data-len="s"] { font-size: 30pt; }
  .bg-cell[data-len="m"] { font-size: 24pt; }
  .bg-cell[data-len="l"] { font-size: 20pt; }
  .bg-cell[data-len="xl"] { font-size: 17pt; }
  .sheet--calllist { page-break-before: always; break-before: page; }
  .bg-titlebar h1 { font-size: 22pt; }
}

/* ---------- small screens: keep the preview inside the phone ---------- */
@media screen and (max-width: 680px) {
  .sheet { padding: .38in .3in; }
  .ws-cell { font-size: 13pt; }
  .ws-words__list { font-size: 12pt; }
  .sd-grid--n9 .sd-cell { font-size: 17pt; }
  .sd-grid--n6 .sd-cell { font-size: 22pt; }
  .sd-grid--n4 .sd-cell { font-size: 30pt; }
  .bg-head span { font-size: 17pt; }
  .bg-cell { min-height: 0; padding: 1.35rem .1rem; }
  .bg-cell[data-len="s"] { font-size: 15pt; }
  .bg-cell[data-len="m"] { font-size: 12.5pt; }
  .bg-cell[data-len="l"] { font-size: 11pt; }
  .bg-cell[data-len="xl"] { font-size: 9.5pt; }
  .bg-titlebar h1 { font-size: 15pt; }
  .bg-call { columns: 2; }
  .bg-call--numbers { columns: 3; }
  .bg-call li { font-size: 12pt; }
  .made-for-line { display: none; }
}

/* ---------- nav fitting on mid-size screens ---------- */
@media (max-width: 1040px) and (min-width: 861px) {
  .nav a { padding: .5rem .45rem; font-size: .88rem; }
  .brand { font-size: 1.02rem; }
  .brand__mark { width: 38px; height: 38px; }
}
