/* Brand colours directory, the study, and the free colour and picture tools (reach B4a, Nov 2026). Follows DESIGN.md:
   flat, square containers, 6 px for what you press or type into, 44 px targets, nothing under 12 px, no Lime here. */

/* ---------- swatches and tables ---------- */
.bc-head .bc-strip { align-self: stretch; min-height: 180px; }
.bc-strip { display: flex; min-height: 14px; border: 1px solid var(--wn-line); }
.bc-strip i { flex: 1 1 0; min-width: 0; }
.bc-sw { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.bc-sw li { background: var(--wn-white); border: 1px solid var(--wn-line); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.bc-chip { min-height: 120px; display: flex; align-items: flex-end; padding: 12px; border-bottom: 1px solid var(--wn-line); }
.bc-chip span { font-size: 15px; }
.bc-info { padding: 16px; display: grid; gap: 10px; align-content: start; }
.bc-info h3 { margin: 0; font-size: 17px; line-height: 24px; }
.bc-info dl { margin: 0; display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 6px 12px; align-items: center; }
.bc-info dt { font: 500 12px/1.4 var(--wn-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--wn-slate); }
.bc-info dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.bc-info p { margin: 0; }
.bc-copy { min-height: 44px; padding: 0 12px; border: 1px solid var(--wn-line-strong); border-radius: var(--wn-r-touch, 6px); background: var(--wn-white); color: var(--wn-ink); font: 500 14px var(--wn-mono); cursor: pointer; }
.bc-copy:hover { border-color: var(--wn-ink); }
.bc-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--wn-ink); }
.bc-table table, .ct2-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bc-table th, .bc-table td, .ct2-table th, .ct2-table td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--wn-line-strong); vertical-align: middle; white-space: nowrap; }
.bc-table thead th, .ct2-table thead th { font: 500 12px/1.3 var(--wn-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--wn-slate); }
.bc-table tbody th { font-weight: 600; }
.bc-dot { display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border: 1px solid var(--wn-line); }
.bc-fonts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--wn-ink); }
.bc-fonts li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--wn-line-strong); }
.bc-fonts b { font-size: 22px; font-weight: 600; }
.bc-note p { max-width: 72ch; }
.bc-note > p:first-child { font-size: 17px; }

/* ---------- the hub ---------- */
.bc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.bc-jump a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--wn-line-strong); border-radius: var(--wn-r-touch, 6px); background: var(--wn-white); color: var(--wn-ink); text-decoration: none; font-size: 14px; }
.bc-jump a:hover { border-color: var(--wn-ink); }
.bc-cards { list-style: none; margin: 12px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bc-cards a { display: grid; gap: 6px; padding: 12px; min-height: 44px; background: var(--wn-white); border: 1px solid var(--wn-line); color: var(--wn-ink); text-decoration: none; }
.bc-cards a:hover { border-color: var(--wn-ink); }
.bc-cards .bc-strip { height: 28px; }
.bc-cards b { font-size: 16px; } .bc-cards .small { color: var(--wn-slate); overflow-wrap: anywhere; }
.bc-az { margin: 0; display: grid; grid-template-columns: 3em minmax(0, 1fr); border-top: 2px solid var(--wn-ink); }
.bc-az dt { font: 600 22px/44px var(--wn-font); padding: 8px 0; border-bottom: 1px solid var(--wn-line-strong); }
.bc-az dd { margin: 0; padding: 8px 0; display: flex; flex-wrap: wrap; gap: 0 18px; border-bottom: 1px solid var(--wn-line-strong); }
.bc-az dd a { display: inline-flex; align-items: center; min-height: 44px; color: var(--wn-ink); }
@media (max-width: 860px) { .bc-head .bc-strip { min-height: 72px; } }

/* ---------- form parts the tools share ---------- */
.rz input[type="number"], .ct2 input[type="text"], .kit input[type="text"], .kit-share input { font: 400 16px/1.5 var(--wn-font); min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--wn-line-strong); border-radius: var(--wn-r-touch, 6px); background: var(--wn-white); color: var(--wn-ink); width: 100%; min-width: 0; }
.rz select { border-radius: var(--wn-r-touch, 6px); min-height: 44px; }
.rz input[type="color"], .ct2 input[type="color"] { width: 56px; height: 44px; padding: 2px; border: 1px solid var(--wn-line-strong); border-radius: var(--wn-r-touch, 6px); background: var(--wn-white); cursor: pointer; flex: none; }
.rz input:focus-visible, .ct2 input:focus-visible, .kit input:focus-visible, .kit-share input:focus-visible, .rz select:focus-visible, .rz canvas:focus-visible { outline: 3px solid var(--wn-ink); outline-offset: 2px; }

/* ---------- the resizer: the form beside the result ---------- */
.rz { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; gap: 32px; }
.rz-form { display: grid; gap: 16px; min-width: 0; }
.rz .tool-drop { min-height: 140px; padding: 16px; }
.rz .tool-drop:focus-within { outline: 3px solid var(--wn-ink); outline-offset: 2px; }
.rz .tool-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rz-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .rz-two[hidden] { display: none; }
.rz-mode { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; } .rz-mode legend { font: 600 13px/18px var(--wn-font); padding: 0; margin-bottom: 4px; }
.rz-mode label { display: flex !important; align-items: center; gap: 10px; min-height: 44px; font-weight: 400 !important; font-size: 15px !important; cursor: pointer; }
.rz-mode input { width: 20px; height: 20px; margin: 0; accent-color: var(--wn-ink); }
.rz-out { display: grid; gap: 12px; min-width: 0; justify-items: start; }
.rz-stage { width: 100%; display: grid; place-items: center; background: var(--wn-paper); border: 1px solid var(--wn-line); padding: 12px; box-sizing: border-box; min-height: 200px; }
.rz-stage canvas { display: block; max-width: 100%; max-height: 64vh; width: auto; height: auto; touch-action: none; cursor: grab; }
.rz-stage canvas.dragging { cursor: grabbing; }
@media (max-width: 860px) { .rz { grid-template-columns: minmax(0, 1fr); } .rz-stage canvas { max-height: 56vh; } }

/* ---------- the contrast checker ---------- */
.ct2-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: end; }
.ct2-in { display: flex; gap: 8px; align-items: center; }
.ct2-out { display: grid; gap: 16px; }
.ct2-sample { padding: 24px; border: 1px solid var(--wn-line); }
.ct2-sample p { margin: 0; font-size: 16px; } .ct2-sample .ct2-big { font-size: 24px; line-height: 1.3; margin-bottom: 8px; }
.ct2-ratio { margin: 0; font-size: 17px; } .ct2-ratio .mono { font-size: 40px; font-weight: 500; margin-right: 8px; }
.ct2-table td.ok { color: var(--wn-moss, #3E6B5A); font-weight: 600; } .ct2-table td.no { color: #B42318; font-weight: 600; }
.ct2-table th, .ct2-table td { white-space: normal; }
@media (max-width: 600px) { .ct2-pick { grid-template-columns: minmax(0, 1fr); } .ct2-pick .btn { justify-self: start; } .ct2-ratio .mono { font-size: 32px; } }

/* ---------- brand kit from an address ---------- */
.kit { max-width: 640px; }
.kit .btn { justify-self: start; }
.kit-err { margin: 0; padding: 12px 14px; border: 1px solid #B42318; color: #B42318; background: var(--wn-white); }
.kit-share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 24px; max-width: 560px; }
.kit-share label { display: grid; gap: 6px; font: 600 13px/18px var(--wn-font); }
@media (max-width: 600px) { .kit-share { grid-template-columns: minmax(0, 1fr); } .kit-share .btn { justify-self: start; } }

/* ---------- an embedded tool (/embed/…) ---------- */
body.rt-embedded { padding: 12px; margin: 0; background: var(--wn-paper); }
.rt-embedded main { display: block; }
.rt-embedded .tool { padding: 16px; }
.rt-made { margin: 8px 0 0; font-size: 13px; color: var(--wn-slate); }
.rt-made a { color: var(--wn-ink); }
