/* GENERATED by store/tools/build_css.py from landing/broderbund.css — edit the landing file, not this one. */
/* ==========================================================================
   Broderbund storefront — brand layer
   Tokens first; every component reads from them so light, dark and the
   explicit theme stamps all resolve as one set. Ports to the PrestaShop
   theme as assets/css/broderbund.css, linked from head.tpl with a ?v= stamp.
   ========================================================================== */

:root {
  /* ground and paper */
  --ground: #eef1f6;          /* the desk the paper sits on */
  --paper: #f8f9fc;           /* page surface */
  --paper-sheet: #ffffff;     /* fan-fold banner sheet */
  --paper-edge: #e3e8f1;
  --surface: #ffffff;
  --surface-sunk: #f1f4f9;

  /* ink */
  --ink: #121a33;             /* ribbon navy-black */
  --ink-ribbon: #151d3a;
  --ink-soft: #3a4563;
  --muted: #5a6582;
  --rule: #d8deea;
  --rule-strong: #b7c1d6;

  /* brand */
  --accent: #005fad;          /* Broderbund blue: #005FAD / PMS 2728, Encore brand guidelines (2018) */
  --accent-ink: #ffffff;
  --accent-soft: #e3eaf7;
  --logo: #005fad;
  --accent-text: #005fad;
  --ribbon-red: #c42033;      /* used sparingly: sale, the one highlight */

  /* type */
  --font-display: "Proxima Nova", "Montserrat", "Helvetica Neue", Arial, sans-serif;   /* brand face; Montserrat is the guideline web alternative */
  --font-body: "Proxima Nova", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Proxima Nova", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.4vw, 3.8rem);

  --wrap: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.25rem);
  --radius: 4px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
}
:where(.bb-page) img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
:where(.bb-page) :is(h1, h2, h3, h4) {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
:where(.bb-page) p { margin: 0; }
.bb-wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.bb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bb-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.bb-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- buttons ---------- */
.bb-btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.8em 1.25em;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.bb-btn:hover { transform: translateY(-1px); text-decoration: none; }
.bb-btn--ghost { background: transparent; color: var(--accent-text); }
.bb-btn--small { padding: 0.55em 0.9em; font-size: 0.9rem; }

/* ---------- utility bar + header ---------- */
.bb-util {
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-ui);
  font-size: 0.82rem;
}
.bb-util .bb-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.45rem; }
.bb-util a { color: inherit; }
.bb-util ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }

.bb-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
.bb-header__top { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.9rem; }
.bb-logo { color: var(--logo); display: block; width: clamp(150px, 16vw, 196px); flex: none; }
.bb-logo svg { display: block; width: 100%; height: auto; }
.bb-nav { flex: 1; min-width: 0; }
.bb-nav ul { display: flex; gap: 0.2rem 1.35rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.bb-nav a {
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.bb-nav a:hover { border-bottom-color: var(--accent); }
.bb-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.bb-search {
  display: flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--surface); padding: 0.35rem 0.6rem;
  width: clamp(150px, 16vw, 230px);
  color: var(--muted);
}
.bb-search svg { width: 16px; height: 16px; flex: none; }
.bb-search input { border: 0; background: transparent; color: var(--ink); font: 0.92rem var(--font-ui); width: 100%; min-width: 0; }
.bb-search input::placeholder { color: var(--muted); }
.bb-search input:focus { outline: none; }
.bb-search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.bb-icon-btn {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border: 0; background: transparent; cursor: pointer;
  border-radius: var(--radius); color: var(--ink); text-decoration: none; position: relative;
}
.bb-icon-btn:hover { background: var(--surface-sunk); }
.bb-icon-btn svg { width: 22px; height: 22px; }
.bb-cart-count {
  position: absolute; top: 2px; right: 0;
  background: var(--ribbon-red); color: #fff;
  font: 700 0.68rem/1 var(--font-ui);
  padding: 0.2em 0.42em; border-radius: 99px;
}
.bb-burger { display: none !important; }

/* ---------- hero ---------- */
.bb-hero { background: var(--ground); padding-block: clamp(1.25rem, 3vw, 2.25rem) clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.bb-banner {
  display: block; width: 100%;
  height: clamp(150px, 20vw, 270px);
  border-radius: 1px;
  box-shadow: 0 1px 0 var(--paper-edge), 0 14px 30px -18px rgba(18, 26, 51, 0.45);
  background: var(--paper-sheet);
}
.bb-banner-caption {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 1rem;
  margin-top: 0.6rem; color: var(--muted); font-size: 0.78rem;
}
.bb-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: end;
  margin-top: clamp(1.75rem, 4vw, 3rem);
}
.bb-hero h1 { font-size: var(--step-4); font-weight: 800; max-width: 15ch; letter-spacing: -0.025em; }
.bb-hero__lede { margin-top: 1.1rem; max-width: 56ch; font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.bb-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.bb-hero__platforms { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 1.25rem 0 0; padding: 0; list-style: none; font: 600 0.88rem var(--font-ui); color: var(--muted); }
.bb-hero__platforms li { display: inline-flex; align-items: center; gap: 0.4rem; }
.bb-hero__platforms svg { width: 15px; height: 15px; }

.bb-launch {
  display: grid; grid-template-columns: 124px 1fr; gap: 1.1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none; color: inherit;
}
.bb-launch img { width: 124px; filter: drop-shadow(0 8px 12px rgba(18, 26, 51, 0.22)); }
.bb-launch h2 { font-size: var(--step-1); }
.bb-launch p { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.4rem; }
.bb-launch .bb-price { margin-top: 0.6rem; }
.bb-launch:hover h2 { color: var(--accent-text); }
.bb-new { display: inline-block; font: 700 0.7rem/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ribbon-red); margin-bottom: 0.35rem; }

/* ---------- prices ---------- */
.bb-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); }
.bb-price b { font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.bb-price s { color: var(--muted); margin-left: 0.4em; }
.bb-price .bb-sale { color: var(--ribbon-red); }
.bb-price small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.1rem; }

/* ---------- sections ---------- */
.bb-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.bb-section__head { display: grid; gap: 0.6rem; max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.bb-section__head h2 { font-size: var(--step-3); font-weight: 800; }
.bb-section__head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.bb-rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Print Shop 24 editions ---------- */
.bb-editions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.75rem); }
.bb-edition {
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 0.9rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
  position: relative;
}
.bb-edition--pick { border: 2px solid var(--accent); }
.bb-edition__flag {
  position: absolute; top: -0.8rem; left: 1.4rem;
  background: var(--accent); color: var(--accent-ink);
  font: 700 0.72rem/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.45rem 0.6rem; border-radius: 2px;
}
.bb-edition__art { display: grid; place-items: center; background: var(--surface-sunk); border-radius: 2px; padding: 1.25rem 0 1rem; }
.bb-edition__art img { width: 150px; filter: drop-shadow(0 10px 14px rgba(18, 26, 51, 0.2)); }
.bb-edition h3 { font-size: var(--step-2); font-weight: 800; }
.bb-edition h3 span { display: block; font: 600 0.78rem var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.bb-edition__for { color: var(--ink-soft); font-size: 0.98rem; }
.bb-edition ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; font-size: 0.95rem; align-content: start; }
.bb-edition li { display: grid; grid-template-columns: 1rem 1fr; gap: 0.4rem; align-items: baseline; }
.bb-edition li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); transform: translateY(-0.1rem); }
.bb-edition li.bb-inherit { color: var(--muted); }
.bb-edition li.bb-inherit::before { background: transparent; border: 1.5px solid var(--rule-strong); }
.bb-edition__buy { display: grid; gap: 0.8rem; border-top: 1px dashed var(--rule-strong); padding-top: 1rem; }
.bb-edition__buy .bb-btn { justify-content: center; }
.bb-editions-note { margin-top: 1.25rem; color: var(--muted); font-size: 0.9rem; max-width: 80ch; }

/* ---------- what you'll make ---------- */
.bb-make { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin: 0; padding: 0; }
.bb-make li { list-style: none; background: var(--surface); padding: 1.15rem 1.2rem 1.25rem; display: grid; gap: 0.3rem; align-content: start; }
.bb-make h3 { font-size: 1.08rem; font-weight: 700; }
.bb-make p { font-size: 0.93rem; color: var(--ink-soft); }
.bb-make .bb-mono { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.02em; }
.bb-make svg { width: 46px; height: 36px; color: var(--accent-text); margin-bottom: 0.4rem; }

/* ---------- product family ---------- */
.bb-family { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1rem, 2vw, 1.5rem); }
.bb-product { display: grid; grid-template-rows: auto 1fr auto; gap: 0.75rem; text-decoration: none; color: inherit; }
.bb-product__art { background: var(--surface-sunk); border-radius: var(--radius); display: grid; place-items: center; padding: 1.4rem 0 1.1rem; }
.bb-product__art img { width: 128px; filter: drop-shadow(0 10px 12px rgba(18, 26, 51, 0.2)); transition: transform 0.2s ease; }
.bb-product:hover .bb-product__art img { transform: translateY(-3px) rotate(-1deg); }
.bb-product__brand { font: 600 0.72rem var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bb-product h3 { font-size: 1.1rem; font-weight: 700; margin-top: 0.2rem; }
.bb-product p { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.35rem; }
.bb-product .bb-price b { font-size: 1.1rem; }
.bb-product:hover h3 { color: var(--accent-text); }
.bb-product__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.bb-platform { font: 600 0.72rem var(--font-ui); color: var(--muted); letter-spacing: 0.04em; }
.bb-family-more { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; font-family: var(--font-ui); font-size: 0.95rem; }

/* ---------- story / heritage ---------- */
.bb-story { background: var(--ground); }
.bb-story__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.bb-story__intro { position: sticky; top: 6.5rem; display: grid; gap: 1rem; }
.bb-story__intro h2 { font-size: var(--step-3); font-weight: 800; }
.bb-story__intro p { color: var(--ink-soft); }
.bb-name { font-family: var(--font-mono); font-size: 0.95em; color: var(--accent-text); white-space: nowrap; }
.bb-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; margin: 0.75rem 0 0; }
.bb-figures div { border-top: 2px solid var(--ink); padding-top: 0.55rem; }
.bb-figures dt { font: 800 var(--step-2)/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bb-figures dd { margin: 0.3rem 0 0; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; }

/* the timeline is a strip of tractor-feed paper: sprocket holes down one edge */
.bb-strip {
  --hole: 8px;
  position: relative;
  background:
    radial-gradient(circle, var(--ground) calc(var(--hole) / 2), transparent calc(var(--hole) / 2 + 0.6px)) 8px 0 / 24px 24px repeat-y,
    var(--paper-sheet);
  color: var(--ink-ribbon);
  border-radius: 1px;
  padding: 0.5rem 1.6rem 0.5rem 3.4rem;
  box-shadow: 0 14px 30px -20px rgba(18, 26, 51, 0.5);
}
.bb-strip::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 38px;
  border-left: 1px dashed #b7c1d6;
}
.bb-timeline { list-style: none; margin: 0; padding: 0; }
.bb-timeline li { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: 1rem; padding-block: 1.15rem; border-bottom: 1px dotted #c9d0de; }
.bb-timeline li:last-child { border-bottom: 0; }
.bb-timeline time { font: 500 1.02rem var(--font-mono); font-variant-numeric: tabular-nums; color: #005fad; padding-top: 0.1rem; }
.bb-timeline h3 { font-size: 1.12rem; font-weight: 700; color: #121a33; }
.bb-timeline p { font-size: 0.97rem; color: #3a4563; margin-top: 0.3rem; }
.bb-timeline li.bb-now time { color: #c42033; }
.bb-owners { margin-top: 1.25rem; font-size: 0.8rem; line-height: 1.55; color: var(--muted); max-width: 80ch; }

/* ---------- service ---------- */
.bb-service { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); }
.bb-service div { display: grid; gap: 0.35rem; align-content: start; }
.bb-service svg { width: 28px; height: 28px; color: var(--accent-text); margin-bottom: 0.3rem; }
.bb-service h3 { font-size: 1.05rem; font-weight: 700; }
.bb-service p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- newsletter ---------- */
.bb-news { background: var(--accent); color: var(--accent-ink); }
.bb-news .bb-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.bb-news h2 { font-size: var(--step-2); font-weight: 800; }
.bb-news p { opacity: 0.9; margin-top: 0.5rem; }
.bb-news form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.bb-news label { flex: 1 1 16rem; }
.bb-news input {
  width: 100%; padding: 0.85em 1em; border-radius: var(--radius);
  border: 2px solid transparent; background: var(--paper); color: var(--ink); font: 1rem var(--font-ui);
}
.bb-news input:focus { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.bb-news .bb-btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.bb-news__status { flex-basis: 100%; font-size: 0.88rem; min-height: 1.3em; font-family: var(--font-ui); }

/* ---------- footer ---------- */
.bb-footer { background: var(--ground); font-family: var(--font-ui); font-size: 0.9rem; color: var(--ink-soft); border-top: 1px solid var(--rule); }
.bb-footer .bb-wrap { padding-block: 3rem 2rem; }
.bb-footer__cols { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 2rem; }
.bb-footer h2 { font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 700; color: var(--ink); margin-bottom: 0.8rem; }
.bb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.bb-footer a { color: var(--ink-soft); text-decoration: none; }
.bb-footer a:hover { color: var(--accent-text); text-decoration: underline; }
.bb-footer .bb-logo { width: 170px; margin-bottom: 1rem; }
.bb-footer address { font-style: normal; line-height: 1.6; }
.bb-legal { border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.25rem; display: grid; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.bb-sisters { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

/* mobile menu panel */
.bb-header .bb-wrap { position: relative; }
@media (max-width: 960px) {
  .bb-nav.is-open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 0.5rem 0 1.1rem;
    box-shadow: 0 16px 24px -18px rgba(18, 26, 51, 0.4);
  }
  .bb-nav.is-open ul { flex-direction: column; gap: 0.25rem; }
  .bb-nav.is-open a { display: block; padding-block: 0.55rem; font-size: 1.05rem; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bb-family { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-make { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bb-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .bb-nav { display: none; }
  .bb-burger { display: inline-grid !important; }
  .bb-header__top { justify-content: space-between; }
  .bb-hero__grid, .bb-story__grid, .bb-news .bb-wrap { grid-template-columns: minmax(0, 1fr); }
  .bb-story__intro { position: static; }
  .bb-editions { grid-template-columns: minmax(0, 1fr); max-width: 540px; }
  .bb-service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .bb-search { display: none; }
  .bb-util .bb-util__extra { display: none; }
  .bb-launch { grid-template-columns: 88px 1fr; }
  .bb-launch img { width: 88px; }
  .bb-product__art img { width: 104px; }
  .bb-timeline li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .bb-strip { padding-left: 3rem; padding-right: 1rem; }
  .bb-service, .bb-make { grid-template-columns: minmax(0, 1fr); }
  .bb-figures dt { font-size: var(--step-1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Product-line pages. Each line page sets data-line on .bb-page; the tokens
   below come from the Encore brand guidelines (one page per sub-brand), so
   The Print Shop, PrintMaster, Calendar Creator and Mavis Beacon keep their
   own colour and typeface inside the Broderbund frame.
   ========================================================================== */
.bb-page {
  --line: var(--accent);
  --line-2: var(--accent);
  --line-ink: #ffffff;
  --line-soft: var(--accent-soft);
  --line-text: var(--accent-text);
  --line-font: var(--font-display);
  background: var(--paper);
  color: var(--ink);
}
.bb-page[data-line="printshop"]   { --line: #004a8f; --line-2: #fcaf17; --line-soft: #e5edf6; --line-text: #004a8f; --line-font: "Myriad Pro", "Ubuntu", "Helvetica Neue", Arial, sans-serif; }
.bb-page[data-line="printmaster"] { --line: #662d91; --line-2: #0061af; --line-soft: #efe8f5; --line-text: #662d91; --line-font: "ITC Bookman", "Merriweather", Georgia, serif; }
.bb-page[data-line="calendar"]    { --line: #005aaa; --line-2: #005aaa; --line-soft: #e4eef8; --line-text: #005aaa; --line-font: "Avenir Next", "Avenir", "Nunito", "Helvetica Neue", Arial, sans-serif; }
.bb-page[data-line="mavis"]       { --line: #d0161e; --line-2: #223f81; --line-soft: #fbe8e9; --line-text: #b3121a; --line-font: "Avenir Next", "Avenir", "Nunito", "Helvetica Neue", Arial, sans-serif; }
.bb-page[data-line="education"]   { --line: #1d5c9a; --line-2: #005fad; --line-soft: #e5edf6; --line-text: #1d5c9a; }
.bb-page[data-line="games"]       { --line: #0e416b; --line-2: #8dc63f; --line-soft: #e3ebf2; --line-text: #0e416b; }

/* line pages: headings in the sub-brand face, buttons in the sub-brand colour */
.bb-page:not([data-line="broderbund"]).imsi-designed h1,
.bb-page:not([data-line="broderbund"]).imsi-designed h2,
.bb-page:not([data-line="broderbund"]).imsi-designed h3 { font-family: var(--line-font); }
.bb-page:not([data-line="broderbund"]).imsi-designed .bb-btn { background: var(--line); border-color: var(--line); color: var(--line-ink); }
.bb-page:not([data-line="broderbund"]).imsi-designed .bb-btn--ghost { background: transparent; color: var(--line-text); }
.bb-page:not([data-line="broderbund"]).imsi-designed a:not(.bb-btn):not(.bb-product):not(.bb-brand) { color: var(--line-text); }
.bb-page:not([data-line="broderbund"]).imsi-designed .bb-eyebrow { color: var(--line-text); }
.bb-page[data-line="printmaster"].imsi-designed h1,
.bb-page[data-line="printmaster"].imsi-designed h2 { letter-spacing: -0.01em; font-weight: 900; }

/* two-row header: search and account on top, product lines below */
.bb-header__top { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.8rem; }
.bb-header__top .bb-search { flex: 1; max-width: 460px; margin-left: auto; width: auto; }
.bb-header .bb-nav { border-top: 1px solid var(--rule); }
.bb-header .bb-nav ul { display: flex; gap: 0.1rem 1.6rem; flex-wrap: wrap; list-style: none; margin-inline: auto; padding: 0; }
.bb-header .bb-nav a { display: inline-block; padding-block: 0.7rem 0.6rem; font-size: 0.93rem; }
.bb-header .bb-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--line-text); }
.bb-nav__story { margin-left: auto; }

/* ---------- line hero ---------- */
.ln-hero { background: var(--ground); padding-block: clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.ln-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ln-plate { display: inline-grid; place-items: center; background: #ffffff; border-radius: var(--radius); padding: 0.9rem 1.2rem; border: 1px solid var(--rule); }
.ln-plate img, .ln-plate svg { display: block; height: clamp(40px, 5vw, 58px); width: auto; }
.ln-hero h1 { font-size: var(--step-4); font-weight: 800; margin-top: 1.1rem; max-width: 18ch; letter-spacing: -0.02em; }
.ln-hero__lede { margin-top: 1rem; font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }
.ln-hero .bb-hero__actions { margin-top: 1.5rem; }
.ln-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; font: 600 0.9rem var(--font-ui); color: var(--ink-soft); }
.ln-facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.ln-facts svg { width: 16px; height: 16px; color: var(--line-text); }

/* fanned box art: the edition boxes as one object */
.ln-boxes { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 280px; }
.ln-boxes img { width: min(42%, 220px); filter: drop-shadow(0 18px 20px rgba(18, 26, 51, 0.28)); }
.ln-boxes img:nth-child(1) { transform: translateX(22%) rotate(-5deg) scale(0.88); z-index: 1; }
.ln-boxes img:nth-child(2) { z-index: 3; }
.ln-boxes img:nth-child(3) { transform: translateX(-22%) rotate(5deg) scale(0.88); z-index: 2; }
.ln-boxes--single img { width: min(62%, 280px); transform: none !important; }

/* ---------- brand strip (home) ---------- */
.bb-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.bb-brand {
  display: grid; grid-template-rows: 72px auto; place-items: center; gap: 0.6rem; padding: 1.4rem 1rem 1.1rem;
  background: #ffffff; text-decoration: none; color: #3a4563; font: 600 0.8rem var(--font-ui); text-align: center;
  transition: background-color 0.15s ease;
}
.bb-brand:hover { background: #f1f5fb; }
.bb-brand img, .bb-brand svg { max-width: 150px; max-height: 58px; width: auto; height: auto; }
.bb-brand .bb-brand__text { font: 800 1.15rem/1.1 "Nunito", var(--font-ui); color: #005aaa; letter-spacing: -0.01em; }
.bb-brand .bb-brand__text small { display: block; font: 700 0.62rem var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: #5a6582; margin-top: 0.2rem; }

/* ---------- chooser (two ways in) ---------- */
.ln-choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.ln-path {
  display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 1.25rem; align-items: start;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem;
  text-decoration: none; color: inherit;
}
.ln-path:hover { border-color: var(--line); }
.ln-path img { width: 116px; filter: drop-shadow(0 10px 12px rgba(18, 26, 51, 0.2)); }
.ln-path h3 { font-size: var(--step-2); font-weight: 800; }
.ln-path h3 span { display: block; font: 700 0.74rem var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--line-text); margin-bottom: 0.35rem; }
.ln-path p { color: var(--ink-soft); margin-top: 0.55rem; font-size: 0.97rem; }
.ln-path ul { margin: 0.8rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; font-size: 0.94rem; }
.ln-path li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.35rem; }
.ln-path li svg { width: 1rem; height: 1rem; color: var(--line-text); margin-top: 0.25rem; }
.ln-path .bb-price { margin-top: 0.9rem; }

/* ---------- reasons grid ---------- */
.ln-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.ln-reasons div { display: grid; gap: 0.45rem; align-content: start; border-top: 3px solid var(--line); padding-top: 1rem; }
.ln-reasons h3 { font-size: 1.12rem; font-weight: 700; }
.ln-reasons p { color: var(--ink-soft); font-size: 0.96rem; }
.ln-reasons .ln-big { font: 800 var(--step-3)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--line-text); letter-spacing: -0.02em; }

/* ---------- tabs + comparison tables ---------- */
.bb-tablist { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.bb-tablist [role="tab"] {
  font: 700 0.92rem var(--font-ui); padding: 0.6rem 1rem; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--rule-strong); background: var(--surface); color: var(--ink-soft);
}
.bb-tablist [role="tab"][aria-selected="true"] { background: var(--line); border-color: var(--line); color: var(--line-ink); }
.bb-table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.bb-table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 0.92rem; min-width: 560px; }
.bb-table caption { text-align: left; padding: 0.9rem 1rem 0.3rem; font-weight: 700; color: var(--ink); }
.bb-table th, .bb-table td { padding: 0.62rem 1rem; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
.bb-table thead th { position: sticky; top: 0; background: var(--surface-sunk); font-weight: 700; color: var(--ink); }
.bb-table thead th small { display: block; font: 500 0.8rem var(--font-mono); color: var(--muted); margin-top: 0.15rem; }
.bb-table tbody th { text-align: left; font-weight: 500; color: var(--ink-soft); }
.bb-table tr.bb-group th { background: var(--line-soft); color: var(--line-text); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.bb-table td { font-variant-numeric: tabular-nums; }
.bb-yes { display: inline-block; width: 1.1rem; height: 1.1rem; color: var(--line-text); }
.bb-no { color: var(--rule-strong); }
.bb-table-note { margin-top: 0.8rem; font-size: 0.84rem; color: var(--muted); max-width: 90ch; }

/* ---------- callout ---------- */
.bb-callout { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; background: var(--line-soft); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.bb-callout svg { width: 26px; height: 26px; color: var(--line-text); }
.bb-callout p { color: var(--ink-soft); }
.bb-callout strong { color: var(--ink); }

/* ---------- memories strip (The Print Shop) ---------- */
.ln-memories { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ln-files { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 0.86rem; }
.ln-files li {
  display: grid; grid-template-columns: 1.3rem minmax(0, 1fr) auto; gap: 0.7rem; align-items: center;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.6rem 0.85rem; color: var(--ink);
}
.ln-files svg { width: 1.2rem; height: 1.2rem; color: var(--line-text); }
.ln-files span:last-child { color: var(--muted); font-size: 0.78rem; }
.ln-files li.is-open { border-color: var(--line); box-shadow: 0 0 0 1px var(--line); }

/* ---------- typing sampler (Mavis Beacon) ---------- */
.mb-typing { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.3rem; display: grid; gap: 0.9rem; }
.mb-typing__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.mb-typing__head h2 { font-size: 1.15rem; font-weight: 800; }
.mb-target { font: 500 1.15rem/1.7 var(--font-mono); color: var(--muted); letter-spacing: 0.01em; margin: 0; }
.mb-target .ok { color: var(--ink); }
.mb-target .bad { color: #fff; background: var(--line); border-radius: 2px; }
.mb-target .next { box-shadow: inset 0 -2px 0 var(--line); color: var(--ink); }
.mb-typing textarea {
  width: 100%; min-height: 4.2rem; resize: vertical; padding: 0.7rem 0.85rem; border-radius: var(--radius);
  border: 1.5px solid var(--rule-strong); background: var(--paper); color: var(--ink); font: 1.02rem/1.5 var(--font-mono);
}
.mb-typing textarea:focus { outline: 3px solid var(--line); outline-offset: 1px; }
.mb-result { font: 500 0.95rem var(--font-ui); color: var(--ink-soft); min-height: 1.4em; }
.mb-result b { color: var(--line-text); font-size: 1.15rem; }
.mb-keys { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.mb-keys span {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 4px; font: 700 0.8rem var(--font-ui);
  background: var(--surface-sunk); color: var(--ink-soft); border: 1px solid var(--rule); border-bottom-width: 3px;
}
.mb-keys span.home { background: var(--line-soft); color: var(--line-text); border-color: var(--line); }

/* ---------- mini month (Calendar Creator) ---------- */
.cc-month { background: #ffffff; color: #121a33; border-radius: var(--radius); box-shadow: 0 18px 30px -18px rgba(18, 26, 51, 0.45); overflow: hidden; max-width: 440px; margin-inline: auto; width: 100%; }
.cc-month__photo { height: 130px; background: linear-gradient(135deg, #005aaa, #3f8fd6 55%, #fcaf17); display: grid; align-items: end; padding: 0.8rem 1rem; color: #fff; font: 800 1.6rem "Nunito", var(--font-ui); }
.cc-month__photo small { display: block; font: 600 0.8rem var(--font-ui); opacity: 0.9; }
.cc-month table { width: 100%; border-collapse: collapse; font: 600 0.85rem var(--font-ui); table-layout: fixed; }
.cc-month th { color: #5a6582; font-size: 0.7rem; letter-spacing: 0.06em; padding: 0.55rem 0 0.35rem; }
.cc-month td { height: 3rem; vertical-align: top; text-align: right; padding: 0.3rem 0.45rem; border-top: 1px solid #e3e8f1; font-variant-numeric: tabular-nums; }
.cc-month td.out { color: #b7c1d6; }
.cc-month td.today { background: #e4eef8; color: #005aaa; font-weight: 800; }
.cc-month td em { display: block; font: 600 0.62rem/1.2 var(--font-ui); color: #c42033; text-align: left; font-style: normal; margin-top: 0.15rem; }

/* ---------- product rows on line pages ---------- */
.ln-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1rem, 2vw, 1.5rem); }
.ln-products .bb-product__art { background: var(--line-soft); }
.bb-product__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; margin-top: 0.45rem; }
.bb-chip { font: 700 0.68rem var(--font-ui); letter-spacing: 0.05em; text-transform: uppercase; padding: 0.22rem 0.45rem; border-radius: 3px; background: var(--surface-sunk); color: var(--ink-soft); }
.bb-chip--ship { background: var(--line-soft); color: var(--line-text); }

/* ---------- split feature (image + text) ---------- */
.ln-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ln-split img { border-radius: var(--radius); box-shadow: 0 14px 30px -20px rgba(18, 26, 51, 0.5); }
.ln-split--flip > :first-child { order: 2; }
.ln-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.ln-list li { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.5rem; color: var(--ink-soft); }
.ln-list svg { width: 1.1rem; height: 1.1rem; color: var(--line-text); margin-top: 0.2rem; }

/* ---------- online vs desktop (Mavis Beacon) ---------- */
.mb-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.5rem); }
.mb-way { display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.7rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.3rem; }
.mb-way__tag { display: inline-flex; gap: 0.4rem; align-items: center; font: 700 0.74rem var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--line-text); }
.mb-way__tag svg { width: 16px; height: 16px; }
.mb-way h3 { font-size: 1.3rem; font-weight: 800; }
.mb-way p { color: var(--ink-soft); font-size: 0.95rem; }
.mb-way .bb-btn { justify-content: center; }

/* ---------- line page building blocks ---------- */
.ln-tint { background: var(--line-soft); }
.ln-h2 { font-size: var(--step-3); font-weight: 800; margin-top: 0.6rem; }
.ln-p { margin-top: 0.9rem; color: var(--ink-soft); max-width: 60ch; }
.ln-small { font-size: 0.86rem; color: var(--muted); }
.ln-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin: clamp(2rem, 4vw, 3rem) 0 0; }
.ln-shots figure { margin: 0; display: grid; gap: 0.55rem; }
.ln-shots img { border-radius: var(--radius); border: 1px solid var(--rule); background: #fff; }
.ln-shots figcaption { font: 600 0.86rem var(--font-ui); color: var(--ink-soft); }
.ln-reasons--req h3 { font-size: 1rem; }
.ln-reasons--req p { font-size: 0.9rem; }
.ln-path .bb-btn { margin-top: 0.9rem; }
@media (max-width: 760px) { .ln-shots { grid-template-columns: minmax(0, 1fr); } }

.cc-wordmark span { font: 900 clamp(1.5rem, 2.4vw, 2rem)/1 "Avenir Next", "Avenir", "Nunito", var(--font-ui); color: #005aaa; letter-spacing: -0.01em; }
.cc-month { margin: 0; }

.ln-choose--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ln-choose--3 .ln-path { grid-template-columns: minmax(0, 1fr); }
.ln-choose--3 .ln-path img { width: 110px; }
.ct-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-top: clamp(2rem, 4vw, 2.75rem); }
.ct-themes h3 { font-size: 1.05rem; font-weight: 700; }
.ct-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.ct-tags li { font: 600 0.84rem var(--font-ui); padding: 0.4rem 0.7rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink-soft); }
.ed-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.ed-four div { background: var(--line-soft); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.ed-four h3 { font-size: 1.1rem; font-weight: 800; color: var(--line-text); }
.ed-four p { font-size: 0.93rem; color: var(--ink-soft); margin-top: 0.35rem; }
.ed-box { width: 200px; margin-inline: auto; filter: drop-shadow(0 12px 16px rgba(18, 26, 51, 0.22)); box-shadow: none !important; }
.mb-seats { min-width: 0; }
@media (max-width: 960px) { .ln-choose--3, .ct-themes, .ed-four { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Mavis Beacon band on the home page ---------- */
.mb-band { --line: #d0161e; --line-soft: #fbe8e9; --line-text: #b3121a; --line-ink: #ffffff; background: var(--line-soft); }
.mb-band .bb-btn { background: var(--line); border-color: var(--line); color: var(--line-ink); }
.mb-band .bb-btn--ghost { background: transparent; color: var(--line-text); }
.mb-band__title { font-family: "Avenir Next", "Avenir", "Nunito", var(--font-display); font-size: var(--step-3); font-weight: 800; margin-top: 1.1rem; }
.mb-band__lede { margin-top: 0.8rem; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }
.mb-band__keys { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--rule); }
.mb-band__caption { margin-top: 0.8rem; color: var(--muted); font-size: 0.82rem; text-align: center; }

@media (max-width: 960px) {
  .ln-hero__grid, .ln-memories, .ln-split, .ln-choose { grid-template-columns: minmax(0, 1fr); }
  .ln-split--flip > :first-child { order: 0; }
  .ln-reasons, .mb-ways { grid-template-columns: minmax(0, 1fr); }
  .bb-header__top .bb-search { display: none; }
  .bb-header .bb-nav { border-top: 0; }
  .bb-nav__story { margin-left: 0; }
}
@media (max-width: 600px) {
  .ln-path { grid-template-columns: 80px minmax(0, 1fr); }
  .ln-path img { width: 80px; }
  .ln-boxes { min-height: 200px; }
}
