/* CrispSign Flag Builder — layout stylesheet.
 *
 * Header + drawer + account cluster come from styles.css + site-chrome.css
 * + builder-v2.css (all loaded before this file). We only layer product-
 * specific layout on top and reuse the site design tokens. Mirrors
 * yard-sign.css class-for-class (ys- → bf-) per BUILDER-RUNBOOK.md, with
 * a wider rail (460px vs 380px) because the shape/size/hardware cards
 * need more horizontal room for product photos.
 */

/* ═══════════════════════ SHELL LAYOUT ═══════════════════════ */
/* builder-v2.css sets .v2-shell to fixed inset 0 flex-column when
   body[data-v2-shell] is set. Don't redefine here. */

/* Product identity strip */
.bf-context {
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid rgba(10,18,38,0.08);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
.bf-context-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E81820;
}
.bf-context-sep { color: rgba(10,18,38,0.20); font-weight: 700; }
.bf-context-note { font-size: 13px; color: #5C6273; font-weight: 500; }

/* ═══════════════════════ MAIN SPLIT ═══════════════════════ */
.bf-main {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.bf-preview {
  flex: 1 1 auto;
  min-width: 0;
  min-height: calc(100vh - 200px);
  position: relative;
  background: #11151F;
  overflow: hidden;
}
.bf-preview-inner {
  position: absolute;
  inset: 0;
}
.bf-preview-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* cover — the 3:2 strip-mall backdrop fills the preview pane; JS
     positions the flag composite in canvas percent-space to match. */
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

/* Live flag SVG composite — positioned absolutely over the backdrop,
   viewBox matches the backdrop's native pixel aspect (1536x1024, 3:2) so
   the coordinate math in JS (percent-of-canvas) lines up 1:1. */
.bf-flag-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bf-art-placeholder {
  position: absolute;
  left: 4%;
  bottom: 6%;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 14px 18px;
  font-size: 12px;
  line-height: 1.4;
  font-family: 'Inter', system-ui, sans-serif;
  background: rgba(10,18,38,0.55);
  border-radius: 10px;
  pointer-events: auto;
  max-width: 200px;
}
.bf-art-placeholder[hidden] { display: none !important; }
.bf-art-placeholder-icon {
  font-size: 26px;
  font-weight: 700;
  color: #E81820;
  margin-bottom: 6px;
  line-height: 1;
}
.bf-art-placeholder-cta {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}
.bf-art-placeholder-cta:hover { color: #E81820; }

/* AI Concept Help variant of the canvas placeholder chip — swapped in by
   JS when state.designPath === 'ai_concept' (Level 1). Same position/shape
   as the default upload placeholder, red-badge tinted to match the design
   path toggle's "Free with purchase" eyebrow. */
.bf-art-placeholder.bf-art-placeholder--ai-concept {
  background: rgba(232,24,32,0.55);
}
.bf-art-placeholder--ai-concept .bf-art-placeholder-icon { color: #fff; }
.bf-art-placeholder-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #fff;
  color: #E81820;
  border-radius: 5px;
  padding: 2px 6px;
  margin-top: 6px;
}

/* Fit mode toggle — Fit / Fill / Stretch controls on the Art step */
.bf-fit-mode {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #E4E8EF;
}
.bf-fit-mode[hidden] { display: none; }
.bf-fit-mode-label {
  font-size: 12px;
  font-weight: 700;
  color: #4B5768;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.bf-fit-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.bf-fit-tab {
  border: 1.5px solid #DDE3EC;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  transition: border-color .15s, background .15s;
  font-family: inherit;
}
.bf-fit-tab:hover { border-color: #E81820; }
.bf-fit-tab.is-active {
  border-color: #E81820;
  background: #FEF3F3;
}
.bf-fit-tab-name {
  font-weight: 700;
  font-size: 13px;
  color: #0A1226;
}
.bf-fit-tab-desc {
  font-size: 11px;
  color: #6E7887;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .bf-fit-mode-tabs { grid-template-columns: 1fr; }
}

/* Chip */
.bf-preview-chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(10,18,38,0.86);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 5;
  max-width: 480px;
  font-family: 'Inter', system-ui, sans-serif;
}
.bf-chip-eyebrow {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 3px;
  font-weight: 600;
}
.bf-chip-line { font-size: 13px; font-weight: 500; }

/* ═══════════════════════ RAIL ═══════════════════════ */
/* Brief: bump from yard-sign's 380px to 460px — flag builder cards need
   more horizontal room (product photos + longer copy) so all step
   content is visible without cutting off the last card behind the
   sticky footer. */
.bf-rail {
  flex: 0 0 460px;
  background: #fff;
  border-left: 1px solid rgba(10,18,38,0.08);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.bf-rail-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 22px 12px;
  font-family: 'Inter', system-ui, sans-serif;
}

.bf-stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  gap: 4px;
  justify-content: space-between;
}
.bf-stepper li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
  color: #5C6273;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bf-stepper li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(10,18,38,0.15);
  background: #fff;
  color: #5C6273;
  font-size: 11px;
  font-weight: 700;
}
.bf-stepper li.is-done span {
  background: #E81820;
  border-color: #E81820;
  color: #fff;
  font-size: 0;
}
.bf-stepper li.is-done span::after { content: "✓"; font-size: 12px; }
.bf-stepper li.is-active span {
  background: #0A1226;
  border-color: #0A1226;
  color: #fff;
}
.bf-stepper li.is-active { color: #0A1226; }

.bf-q-step {
  font-size: 10px;
  color: #E81820;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 0 0 4px;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
.bf-q-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #0A1226;
  margin: 0 0 6px;
  line-height: 1.15;
}
.bf-q-hint {
  font-size: 13px;
  color: #5C6273;
  margin: 0 0 18px;
  line-height: 1.5;
}

/* ── Subsection heading — used within Step 2 to separate Size from the
   merged-in Art Upload block. Smaller than .bf-q-title, with a divider
   above it for visual separation. ── */
.bf-q-subtitle {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #0A1226;
  margin: 22px 0 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(10,18,38,0.10);
  line-height: 1.2;
}

/* ── Shape cards — COMPACT: small 60x60 thumb + name + one-line desc,
   stacked vertically but short enough that all 3 fit on screen above
   the sticky footer without a login gate blocking any of them. ── */
.bf-shape-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bf-shape-card {
  border: 1px solid rgba(10,18,38,0.10);
  background: #FAF7F2;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.bf-shape-card:hover { border-color: #E81820; }
.bf-shape-card.is-active {
  border-color: #E81820;
  background: rgba(232,24,32,0.06);
}
.bf-shape-photo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  flex-shrink: 0;
}
.bf-shape-copy { min-width: 0; }
.bf-shape-name { font-weight: 700; font-size: 13px; color: #0A1226; margin-bottom: 2px; }
.bf-shape-desc { font-size: 11px; color: #5C6273; line-height: 1.3; }

/* ── Size grid — 2×2, NO photos: label + dimensions + price only ── */
.bf-size-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.bf-size-tile {
  border: 1px solid rgba(10,18,38,0.10);
  background: #FAF7F2;
  border-radius: 8px;
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  transition: border-color .15s, background .15s;
  text-align: center;
}
.bf-size-tile:hover { border-color: #E81820; }
.bf-size-tile.is-active {
  border-color: #E81820;
  background: rgba(232,24,32,0.06);
}
.bf-size-label {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #0A1226;
}
.bf-size-height { font-size: 11px; color: #5C6273; font-weight: 600; }
.bf-size-graphic { font-size: 10px; color: #7A8595; }
.bf-size-price {
  font-size: 13px;
  font-weight: 700;
  color: #E81820;
  margin-top: 2px;
}

/* ── Sided grid — 2 side-by-side ── */
.bf-sided-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bf-sided-card {
  border: 1px solid rgba(10,18,38,0.10);
  background: #FAF7F2;
  border-radius: 10px;
  padding: 14px 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.bf-sided-card:hover { border-color: #E81820; }
.bf-sided-card.is-active {
  border-color: #E81820;
  background: rgba(232,24,32,0.06);
}
.bf-sided-name { font-weight: 700; font-size: 14px; color: #0A1226; }
.bf-sided-sub { font-size: 11px; color: #E81820; font-weight: 600; margin-top: 1px; }
.bf-sided-desc { font-size: 12px; color: #5C6273; margin-top: 6px; line-height: 1.4; }
.bf-sided-price { font-size: 13px; font-weight: 700; color: #0A1226; margin-top: 8px; }

/* ── Design path toggle (Step 2 — "How do you want to design your flag?")
   Mirrors the cabinet builder's .cab-design-card pattern / .bf-sided-card
   visual language: a 2-card grid, side by side on wide viewports, stacked
   on narrow ones. The AI Concept card carries a red "Free with purchase"
   eyebrow badge so it reads as the standout option. ── */
.bf-design-path-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.bf-design-path-card {
  border: 1px solid rgba(10,18,38,0.10);
  background: #FAF7F2;
  border-radius: 10px;
  padding: 14px 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.bf-design-path-card:hover { border-color: #E81820; }
.bf-design-path-card.is-active {
  border-color: #E81820;
  background: rgba(232,24,32,0.06);
}
.bf-design-path-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #5C6273;
  margin-bottom: 4px;
}
.bf-design-path-eyebrow--red { color: #E81820; }
.bf-design-path-name { font-weight: 700; font-size: 14px; color: #0A1226; }
.bf-design-path-desc { font-size: 12px; color: #5C6273; margin-top: 6px; line-height: 1.4; }

@media (max-width: 640px) {
  .bf-design-path-toggle { grid-template-columns: 1fr; }
}

/* Upload zone dimmed (not hidden) while AI Concept Help is selected —
   customer can still see what the upload flow looks like but it reads as
   inactive, and the "Not needed" note takes over as the primary message. */
.bf-art-upload[data-design-path="ai_concept"] {
  opacity: 0.45;
  pointer-events: none;
}
.bf-art-upload-note {
  font-size: 12px;
  font-weight: 600;
  color: #E81820;
  margin: 0 0 10px;
}
.bf-art-upload-note[hidden] { display: none; }

/* ── Login gate (Review step ONLY — pricing is gated, not the questions) ── */
.bf-art-gate {
  border: 1px solid rgba(232,24,32,0.30);
  background: rgba(232,24,32,0.05);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  margin-top: 16px;
}
.bf-gate-text {
  color: #0A1226;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.bf-gate-cta {
  display: inline-block;
  background: #E81820;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s;
}
.bf-gate-cta:hover { background: #C21418; }

/* ── Upload dropzone ── */
.bf-upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px dashed rgba(10,18,38,0.20);
  border-radius: 12px;
  background: #FAF7F2;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.bf-upload-drop:hover {
  border-color: #E81820;
  background: rgba(232,24,32,0.05);
}
.bf-upload-drop.is-dragging {
  border-color: #E81820;
  background: rgba(232,24,32,0.10);
}
.bf-upload-icon { font-size: 30px; color: #E81820; font-weight: 700; line-height: 1; }
.bf-upload-text { font-weight: 600; font-size: 14px; color: #0A1226; }
.bf-upload-sub { font-size: 11px; color: #5C6273; }
.bf-upload-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(34,197,94,0.10);
  color: #22C55E;
  font-size: 12px;
  font-weight: 500;
}
.bf-upload-fine {
  font-size: 11px;
  color: #5C6273;
  margin-top: 12px;
  line-height: 1.4;
  font-style: italic;
}
.bf-upload-fine a { color: #E81820; font-weight: 600; font-style: normal; }
.bf-upload-fine a:hover { color: #C21418; }

/* ── Accessories grid — photo-forward to match B2Sign's presentation ── */
.bf-accessory-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bf-accessory-card {
  border: 1px solid rgba(10,18,38,0.10);
  background: #FAF7F2;
  border-radius: 10px;
  padding: 12px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
}
.bf-accessory-photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(10,18,38,0.08);
}
.bf-accessory-name { font-weight: 600; font-size: 13px; color: #0A1226; }
.bf-accessory-price { font-size: 12px; color: #5C6273; margin-top: 2px; }
.bf-accessory-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bf-accessory-stepper button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(10,18,38,0.15);
  background: #fff;
  color: #0A1226;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
}
.bf-accessory-stepper button:hover { border-color: #E81820; color: #E81820; }
.bf-accessory-stepper-qty {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: #0A1226;
}

/* ── Quantity row (Review step) ── */
.bf-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #0A1226;
}
.bf-qty-row input {
  border: 1px solid rgba(10,18,38,0.15);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  width: 90px;
  text-align: center;
  color: #0A1226;
  background: #fff;
}
.bf-qty-row input:focus { outline: 2px solid #E81820; outline-offset: -1px; }

/* ── Review ── */
.bf-review-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 8px;
  column-gap: 12px;
  font-size: 13px;
}
.bf-review-list dt { color: #5C6273; }
.bf-review-list dd { margin: 0; color: #0A1226; font-weight: 500; text-align: right; }

/* ═══════════════════════ RAIL FOOTER ═══════════════════════ */
.bf-rail-foot {
  flex-shrink: 0;
  border-top: 1px solid rgba(10,18,38,0.08);
  padding: 14px 22px;
  background: #fff;
  font-family: 'Inter', system-ui, sans-serif;
}
.bf-total { margin-bottom: 12px; }
.bf-total-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5C6273;
  font-weight: 600;
}
.bf-total-value {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #E81820;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 3px 0 2px;
}
.bf-total-note {
  font-size: 11px;
  color: #22C55E;
  font-weight: 500;
}

/* Locked price block (shown when logged out AND on Review step) */
.bf-locked {
  margin-bottom: 12px;
}
.bf-locked-urgency {
  font-size: 12px;
  color: #0A1226;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.4;
  display: flex;
  align-items: baseline;
  gap: 6px;
  animation: bfLockedPulse 2.4s ease-in-out infinite;
}
.bf-locked-star {
  color: #E81820;
  font-size: 14px;
  animation: bfStarSpin 3.6s ease-in-out infinite;
}
@keyframes bfLockedPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.72; } }
@keyframes bfStarSpin { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(18deg); } }
@media (prefers-reduced-motion: reduce) {
  .bf-locked-urgency, .bf-locked-star { animation: none; }
}
.bf-locked-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #E81820;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s;
  box-sizing: border-box;
}
.bf-locked-cta:hover { background: #C21418; }

.bf-navrow { display: flex; gap: 8px; }
.bf-btn-primary,
.bf-btn-ghost {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  border: none;
}
.bf-btn-primary { background: #E81820; color: #fff; }
.bf-btn-primary:hover:not(:disabled) { background: #C21418; }
.bf-btn-primary:disabled {
  background: rgba(10,18,38,0.20);
  color: rgba(10,18,38,0.50);
  cursor: not-allowed;
}
.bf-btn-ghost {
  background: transparent;
  color: #0A1226;
  border: 1px solid rgba(10,18,38,0.15);
}
.bf-btn-ghost:hover:not(:disabled) { border-color: #0A1226; }
.bf-btn-ghost:disabled { color: rgba(10,18,38,0.30); cursor: not-allowed; }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 900px) {
  .bf-main { flex-direction: column; }
  .bf-preview { min-height: 50vh; }
  .bf-rail {
    flex: 1 1 auto;
    border-left: none;
    border-top: 1px solid rgba(10,18,38,0.08);
  }
  .bf-size-grid { grid-template-columns: repeat(2, 1fr); }
  .bf-sided-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   TEMPLATES PAGE (beacon-flag-templates.html) — print-shop-appropriate,
   plain content column. Scoped under .bft- prefix so nothing here
   collides with the builder's own rail/canvas classes above.
   ═══════════════════════════════════════════════════════════════════ */
.bft-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}
.bft-intro { margin-bottom: 40px; }
.bft-title {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #0A1226;
  margin: 0 0 12px;
}
.bft-sub {
  font-size: 15px;
  line-height: 1.6;
  color: #4A5063;
  max-width: 640px;
  margin: 0;
}
.bft-sub a { color: #E81820; font-weight: 600; text-decoration: none; }
.bft-sub a:hover { text-decoration: underline; }

.bft-shape-section {
  border-top: 1px solid rgba(10,18,38,0.08);
  padding: 32px 0;
}
.bft-shape-section:first-of-type { border-top: none; }
.bft-shape-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.bft-shape-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(10,18,38,0.10);
  flex: 0 0 auto;
}
.bft-shape-title {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0A1226;
  margin: 0 0 4px;
}
.bft-shape-desc {
  font-size: 13px;
  color: #5C6273;
  margin: 0;
}

.bft-template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.bft-template-card {
  display: block;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(10,18,38,0.12);
  background: #FAFBFC;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .1s;
}
.bft-template-card:hover {
  border-color: #E81820;
  background: #FFF;
  transform: translateY(-1px);
}
.bft-template-size {
  font-size: 14px;
  font-weight: 700;
  color: #0A1226;
  margin-bottom: 4px;
}
.bft-template-dims {
  font-size: 12px;
  color: #5C6273;
  margin-bottom: 12px;
}
.bft-template-dl {
  font-size: 13px;
  font-weight: 600;
  color: #E81820;
}

.bft-footnote {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(10,18,38,0.08);
  font-size: 13px;
  line-height: 1.6;
  color: #5C6273;
  max-width: 640px;
}
.bft-footnote a { color: #E81820; font-weight: 600; text-decoration: none; }
.bft-footnote a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .bft-template-grid { grid-template-columns: repeat(2, 1fr); }
  .bft-title { font-size: 26px; }
}
@media (max-width: 560px) {
  .bft-template-grid { grid-template-columns: 1fr; }
  .bft-shape-head { flex-wrap: wrap; }
}
