/* /banners/templates, "Start with a design" (Dec 5). The grid is the design tool's own (bdt.css + bdt-gallery.js);
   this file only gives it the tool's colors and type on a normal site page, plus the small size step. */
.bdt-start {
  --ink: #0f172a; --body: #334155; --mute: #5b6779; --line: #e2e8f0; --line2: #cbd5e1; --bg: #f3f6fa; --blue: #107fb7; --blue-t: #e8f4fa;
  --orange: #ff5c00; --orange-h: #e65300; --warn: #b45309; --bad: #b91c1c;
  background: var(--bg); color: var(--body); font: 400 15px/1.45 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
.bdt-start *, .bdt-start *::before, .bdt-start *::after { box-sizing: border-box; }
.bdt-start [hidden] { display: none !important; }
.bdt-start button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bdt-start button:disabled { cursor: default; opacity: .4; }
.bdt-start h1 { font: 800 32px/1.2 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); margin: 0 0 6px; letter-spacing: -.01em; }
.bdt-start h2 { font: 700 18px/1.3 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); margin: 0 0 4px; }
.bdt-start p { margin: 0; }
.bdt-start :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.bdt-start .bdt-page { padding-top: 36px; padding-bottom: 56px; }
.bdt-start-how { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--mute); }
.bdt-start-how li { display: flex; align-items: center; gap: 8px; }
.bdt-start-how b { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line2); font-size: 12px; color: var(--ink); }
.bdt-start .bdt-chosen { margin: 18px 0 0; }
.bdt-start-grid { min-height: 360px; }
.bdt-start-grid .bdt-tpls { margin-top: 14px; }
.bdt-start-noscript { margin-top: 20px; color: var(--mute); }

/* the size step (and nothing else) opens over the page */
.bdt-start .bdt-modal { position: fixed; inset: 0; z-index: 2147483000; background: rgba(15, 23, 42, .5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.bdt-sz { background: var(--bg); border-radius: 16px; width: 100%; max-width: 780px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); }
.bdt-sz-head { flex: none; display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.bdt-sz-head .bdt-sz-t { flex: 1; min-width: 0; }
.bdt-sz-head p { font-size: 14px; color: var(--mute); }
.bdt-sz-pic { flex: none; width: min(120px, calc(min(28vh, 180px) * var(--bdt-ar, 2))); border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; background: #fff; }
.bdt-sz-pic svg { display: block; width: 100%; height: auto; }
.bdt-sz-x { flex: none; }
.bdt-sz-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 20px 18px; }
.bdt-sz-body .bdt-sizes { margin-top: 14px; }
.bdt-start .bdt-ib { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; border: 0; background: transparent; color: var(--ink); }
.bdt-start .bdt-ib:hover { background: #e9eef4; }
.bdt-start .bdt-custom input { width: 68px; text-align: center; border: 1px solid var(--line2); border-radius: 9px; padding: 9px 6px; font: 500 15px/1.35 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); background: #fff; }
.bdt-start .bdt-custom input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.bdt-sz-foot { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: #fff; border-top: 1px solid var(--line); }
.bdt-sz-foot .bdt-foot-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bdt-sz-foot .bdt-foot-t b { color: var(--ink); font-size: 16px; } .bdt-sz-foot .bdt-foot-t span { font-size: 13px; color: var(--mute); min-height: 18px; }

@media (max-width: 859px) {
  .bdt-start h1 { font-size: 26px; }
  .bdt-start .bdt-page { padding-top: 22px; }
  .bdt-start-how { font-size: 13px; gap: 6px 14px; }
  .bdt-start .bdt-modal { padding: 0; align-items: flex-end; }
  .bdt-sz { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; max-height: 92dvh; }
  .bdt-sz-head { padding: 14px 14px 12px; } .bdt-sz-pic { width: min(84px, calc(min(28vh, 140px) * var(--bdt-ar, 2))); }
  .bdt-sz-body { padding: 0 14px 14px; }
  .bdt-start .bdt-custom input { font-size: 16px; }
  .bdt-sz-foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .bdt-sz-foot .bdt-foot-t { flex-basis: 100%; } .bdt-sz-foot .bdt-btn-main { flex: 1; }
}

/* Dec 5 (coordinator): Blank reads as a choice, not a broken picture; phones see real designs on the first screen */
.bdt-start-grid .bdt-tpl[data-id="blank"] .bdt-tpl-pic { position: relative; border-style: dashed; border-color: #b8c4d3; background: #fbfcfe; }
.bdt-start-grid .bdt-tpl[data-id="blank"] .bdt-tpl-pic::after { content: "+"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 300 40px/1 "Plus Jakarta Sans", system-ui, sans-serif; color: #94a3b8; }
@media (max-width: 859px) {
  .bdt-start-grid .bdt-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .bdt-start-grid .bdt-tpl[data-id="blank"] .bdt-tpl-pic, .bdt-start-grid .bdt-tpl-up .bdt-tpl-pic { aspect-ratio: auto !important; height: 90px; }
  .bdt-start-grid .bdt-tpl[data-id="blank"] .bdt-tpl-pic svg { display: none; }
  .bdt-start-grid .bdt-tpl[data-id="blank"] .bdt-tpl-pic::after { content: "+ Start from scratch"; font: 600 14px/1.3 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); padding: 0 8px; text-align: center; }
  .bdt-start-grid .bdt-tpl[data-id="blank"] .bdt-tpl-meta, .bdt-start-grid .bdt-tpl-up .bdt-tpl-meta { display: none; }
  .bdt-start-grid .bdt-tpl-up .bdt-tpl-pic svg { width: 24px; height: 24px; }
  .bdt-start-grid .bdt-tpl-up .bdt-tpl-pic small { display: none; }
  .bdt-start-grid .bdt-tpl-up-l { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
  .bdt-start-grid .bdt-tpl-meta { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 6px; }
  .bdt-start-grid .bdt-tpl-meta b { font-size: 13px; max-width: 100%; }
  .bdt-start-grid .bdt-dots { margin: 0 0 0 -6px; }
  .bdt-start-grid .bdt-dot { width: 34px; height: 34px; border-width: 8px; }
}
