/* =========================================================
   Logo maker, layered over styles.css
   ========================================================= */

.maker {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .maker { grid-template-columns: minmax(0, 1fr); } }

/* ---------- controls ---------- */

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 20px;
  position: sticky;
  top: 88px;
}
@media (max-width: 900px) { .panel { position: static; } }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }

.field > label,
.field > .flabel {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

/* segmented choices */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }

.seg button {
  font: inherit;
  font-size: 12.5px;
  padding: 7px 11px;
  background: var(--pill);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}
.seg button:hover:not(.is-on):not(:disabled) { color: var(--ink); }
.seg button.is-on {
  background: var(--color-brand-orange);
  border-color: var(--color-brand-orange);
  color: #fff;
}
.seg button:disabled { opacity: 0.32; cursor: not-allowed; }

/* colour grounds */
.grounds { display: flex; flex-wrap: wrap; gap: 7px; }
.grounds button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--rule-hard);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.grounds button.is-on {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--color-brand-orange);
}
.grounds button:disabled { cursor: not-allowed; opacity: 0.26; }
/* a struck-through swatch reads as withdrawn rather than merely dim */
.grounds button:disabled::after {
  content: "";
  position: absolute;
  left: -3px; right: -3px; top: 50%;
  height: 1px;
  background: var(--ink-3);
  transform: rotate(-45deg);
}
.grounds button[data-bg="transparent"] {
  background-image:
    linear-gradient(45deg, #ddd 25%, transparent 25% 75%, #ddd 75%),
    linear-gradient(45deg, #ddd 25%, transparent 25% 75%, #ddd 75%);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  background-color: #fff;
}

/* number + range */
.sizerow { display: flex; align-items: center; gap: 10px; }
.sizerow input[type="number"] {
  width: 84px;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid var(--rule-hard);
  border-radius: var(--r-sm);
  background: var(--page);
  color: var(--ink);
}
.sizerow input[type="range"] { flex: 1; min-width: 0; accent-color: var(--color-brand-orange); }
.sizerow .unit { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* checkboxes */
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; cursor: pointer; margin-bottom: 10px; }
.check:last-child { margin-bottom: 0; }
.check input { margin: 2px 0 0; accent-color: var(--color-brand-orange); flex: none; }
.check span { color: var(--ink-2); line-height: 1.4; }

/* ---------- preview ---------- */

.preview {
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--card);
}

.canvas {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 48px 32px;
  background-image:
    linear-gradient(45deg, #f0eeec 25%, transparent 25% 75%, #f0eeec 75%),
    linear-gradient(45deg, #f0eeec 25%, transparent 25% 75%, #f0eeec 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  background-color: #fff;
  overflow: auto;
}

/* Transparent is the one ground left open to light artwork, and the light
   checker would hide it, so the checker goes dark to match. */
.canvas--dark {
  background-image:
    linear-gradient(45deg, #26251f 25%, transparent 25% 75%, #26251f 75%),
    linear-gradient(45deg, #26251f 25%, transparent 25% 75%, #26251f 75%);
  background-color: #1a1918;
}

/* the ground the artwork actually sits on */
.mount { position: relative; display: block; }
.mount img { display: block; width: 100%; height: auto; }

/* half-H clear space guides */
.mount--guides::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--cs));
  border: 1px dashed var(--color-brand-orange);
  pointer-events: none;
}
.mount--guides::after {
  content: "";
  position: absolute;
  inset: 0;
  outline: 1px solid var(--color-brand-orange);
  outline-offset: -0.5px;
  pointer-events: none;
}
.mount--guides { margin: var(--cs); }

/* ---------- readout ---------- */

.readout {
  border-top: 1px solid var(--rule);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
}
.readout dl { margin: 0; display: flex; gap: 8px; align-items: baseline; }
.readout dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.readout dd { margin: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); }

.actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

.btn {
  font: inherit;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule-hard);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { color: var(--ink); border-color: var(--ink-3); }
.btn--primary {
  background: var(--color-brand-orange);
  border-color: var(--color-brand-orange);
  color: #fff;
}
.btn--primary:hover { color: #fff; filter: brightness(0.94); }
.btn.is-done { background: var(--color-brand-green); border-color: var(--color-brand-green); color: #fff; }

/* ---------- warnings ---------- */

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 20px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.note b { color: var(--ink); }
.note--warn { background: #fff6f0; }
.note[hidden] { display: none; }
.note i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-brand-orange);
  flex: none;
  margin-top: 1px;
}
