/* The Logo and Brand Creator (App\Businesses\WorkKind::BRAND): its own fields in the tool's form
   (works/fields/brand_kit), a finished brand kit (works/kinds/brand_kit), its dashboard card
   (works/cards/brand_kit) and its page (marketing/tools/logo-and-brand-creator). Loaded after app.css
   and works.css, whose tokens and classes it uses. The logos themselves are SVG drawn by
   App\Businesses\Brand\LogoRenderer; here they're only placed and sized. */

/* The form's own fields: a style, and colors */
.bk-fields{display:flex;flex-wrap:wrap;gap:14px 24px;padding-top:14px;border-top:1px solid var(--line-soft)}
.bk-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;padding:0;border:0}
.bk-style{flex:1 1 100%}
.bk-colors{flex:1 1 260px}
.bk-style legend{float:left;width:100%;margin-bottom:6px;padding:0;font-size:13px;font-weight:600;color:var(--muted);letter-spacing:.02em}
.bk-optional{font-weight:500;color:var(--subtle)}
.bk-chips{display:flex;flex-wrap:wrap;gap:6px}
.prompt .bk-chip{position:relative;display:inline-flex;font-size:14px;font-weight:500;color:var(--ink);letter-spacing:0;cursor:pointer}
.bk-chip input{position:absolute;inset:0;margin:0;opacity:0;cursor:pointer}
.bk-chip span{display:inline-flex;align-items:center;min-height:38px;padding:0 13px;border:1px solid var(--line);border-radius:999px;background:var(--paper);transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.bk-chip:hover span{border-color:#CFC7B8}
.bk-chip input:checked+span{background:var(--ink);border-color:var(--ink);color:#fff}
.bk-chip input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.bk-input{width:100%;min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);font-size:15px}
.bk-input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.bk-input[aria-invalid="true"]{border-color:#C0392B}

/* A brand kit */
.bk{display:grid;gap:44px}
.bk-flash{margin:0;padding:14px 18px;border-radius:14px;background:var(--ok-soft);border:1px solid #C9DECD;color:var(--ok);font-weight:600}
.bk-note{margin:0;padding:14px 18px;border-radius:14px;background:var(--warn-soft);border:1px solid #EFDDB9;color:var(--warn-ink)}
.bk-note a{margin-left:4px;color:var(--accent-hover);font-weight:600}
.bk-section{display:grid;gap:18px;scroll-margin-top:24px}
.bk-head h2,.bk-learned h2{margin:0;font:400 28px/1.15 var(--display);letter-spacing:-.015em}
.bk-head p{margin:6px 0 0;max-width:640px;color:var(--muted)}
.bk-small{margin:0;color:var(--subtle);font-size:13.5px;line-height:1.45}

/* The logo ideas: each on light, on dark and as an icon */
.bk-concepts{display:grid;gap:20px;margin:0;padding:0;list-style:none}
.bk-concept{overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:22px;transition:border-color .2s ease,box-shadow .2s ease}
.bk-concept.is-chosen{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink),0 14px 34px rgba(26,26,23,.1)}
.bk-stages{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:1px;background:var(--line)}
.bk-stage{display:grid;place-items:center;margin:0;min-width:0;padding:28px}
.bk-stage svg{display:block;width:auto;height:auto;max-width:100%}
.bk-stage-light{grid-column:1/-1;min-height:230px;padding:40px 48px}
.bk-stage-light svg{max-width:min(100%,520px);max-height:150px}
.bk-stage-dark{min-height:150px}
.bk-stage-dark svg{max-width:min(100%,340px);max-height:96px}
.bk-stage-icon{min-height:150px;background:var(--surface)}
.bk-stage-icon svg{width:88px;height:88px}
.bk-concept-body{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:20px 22px 22px}
.bk-concept-text{display:grid;gap:6px;min-width:0}
.bk-concept-text h3{margin:0;font:500 21px/1.25 var(--display)}
.bk-concept-text p{margin:0}
.bk-concept-text>p:not(.bk-concept-n):not(.bk-small){color:var(--muted);line-height:1.55}
.bk-concept-n{display:flex;align-items:center;gap:8px;color:var(--subtle);font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.bk-badge{padding:2px 9px;border-radius:999px;background:var(--ink);color:#fff;font-size:11px;letter-spacing:.05em}
.bk-concept-body form,.bk-concept-body>.btn{flex:none}

/* Downloads of the chosen logo */
.bk-files{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0;padding:0;list-style:none}
.bk-file{display:grid;gap:10px;align-content:start;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.bk-file-art{display:grid;place-items:center;height:120px;padding:18px;border-radius:12px;border:1px solid var(--line-soft)}
.bk-file-art svg{display:block;width:auto;height:auto;max-width:100%;max-height:74px}
.bk-file-icon svg{width:74px;height:74px}
.bk-file b{font-size:15px}
.bk-file-links{display:flex;flex-wrap:wrap;gap:8px}

/* The palette */
.bk-swatches{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.bk-swatch{display:flex;flex-direction:column;gap:2px;min-width:0}
.bk-swatch-color{display:flex;align-items:flex-end;height:112px;margin-bottom:8px;padding:10px 12px;border:1px solid rgba(26,26,23,.08);border-radius:16px;font:600 13px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.02em;cursor:copy}
.bk-swatch b{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.bk-swatch small{color:var(--subtle);font-size:12.5px;line-height:1.4}

/* Type */
.bk-type{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bk-specimen{display:grid;align-content:start;gap:12px;padding:24px;border:1px solid var(--line);border-radius:18px}
.bk-specimen small{opacity:.7;font-size:12.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.bk-specimen p{margin:0}
.bk-specimen-heading{font-size:30px;line-height:1.15;text-wrap:balance}
.bk-specimen-body{font-size:17px;line-height:1.6}

/* Voice */
.bk-voice{display:grid;gap:16px}
.bk-tagline{margin:0;padding:28px;border-radius:20px}
.bk-tagline small{display:block;margin-bottom:10px;opacity:.8;font-size:12.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.bk-tagline blockquote{margin:0;font-size:clamp(24px,3.2vw,34px);line-height:1.15;text-wrap:balance}
.bk-words{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.bk-words li{padding:6px 14px;border-radius:999px;background:var(--chip);font-weight:600}
.bk-dos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bk-dos>div{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.bk-dos h3{margin:0 0 10px;font-size:15px}
.bk-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.bk-list li{position:relative;padding-left:26px;color:var(--muted);line-height:1.5}
.bk-list li::before{content:"";position:absolute;left:0;top:3px;width:17px;height:17px;border-radius:50%;background:var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6B3A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/10px no-repeat}
.bk-list-dont li::before{background:#F7E4DF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A93226' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/9px no-repeat}

/* What it learned */
.bk-learned{gap:12px}
.bk-learned h2{font-size:20px}
.bk-learned dl{display:flex;flex-wrap:wrap;gap:10px;margin:0}
.bk-learned dl>div{padding:10px 14px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.bk-learned dt{color:var(--subtle);font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.bk-learned dd{margin:2px 0 0}
.bk-website{padding-top:4px}

/* The dashboard card */
.bk-card-logo{display:grid;place-items:center;height:108px;margin:-6px -6px 8px;padding:16px;border-radius:12px;border:1px solid var(--line-soft)}
.bk-card-logo svg{display:block;width:auto;height:auto;max-width:100%;max-height:62px}
.bk-card-palette{display:flex;gap:4px}
.bk-card-palette i{flex:1;height:10px;border-radius:999px;border:1px solid rgba(26,26,23,.08)}
.bk-card .bk-card-palette{margin-bottom:4px}

/* The page's examples */
.bk-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0;padding:0;list-style:none}
.bk-example{overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:22px}
.bk-example-logo{display:grid;place-items:center;height:220px;padding:32px 40px}
.bk-example-logo svg{display:block;width:auto;height:auto;max-width:min(100%,440px);max-height:140px}
.bk-example-dark{display:grid;place-items:center;height:96px;padding:20px 32px}
.bk-example-dark svg{display:block;width:auto;height:auto;max-width:min(100%,300px);max-height:56px}
.bk-example-foot{display:grid;gap:8px;padding:16px 20px 18px}
.bk-example-foot p{margin:0}
.bk-example-foot p b{margin-right:6px}
.bk-example-foot small{color:var(--subtle);font-size:13px}

@media (max-width:900px){
  .bk-swatches{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:700px){
  .bk{gap:36px}
  .bk-stage-light{min-height:180px;padding:28px 22px}
  .bk-stage-light svg{max-height:120px}
  .bk-stage{padding:22px 16px}
  .bk-stage-dark,.bk-stage-icon{min-height:120px}
  .bk-stage-icon svg{width:72px;height:72px}
  .bk-concept-body{flex-direction:column;align-items:stretch}
  .bk-concept-body .btn{width:100%}
  .bk-files,.bk-type,.bk-dos,.bk-examples{grid-template-columns:1fr}
  .bk-swatches{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bk-example-logo{height:180px;padding:24px}
}
