/* theme_11 — Terracotta Workshop Guide */
:root {
  --bg: #fbf7f4;
  --surface: #ffffff;
  --ink: #271c19;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --muted: #6b5b53;
  --line: #e7ddd4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3, .kicker, .standfirst, .receipt { font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 .4em; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; margin: 0 0 .8em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
p { margin: 0 0 1em; }
a { color: var(--accent); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.masthead {
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 1.5rem 2.5rem;
  background: var(--surface);
}
.masthead-inner { max-width: 880px; margin: 0 auto; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); font-family: inherit; }
.standfirst { font-size: 1.15rem; color: var(--muted); max-width: 46em; margin: 0; }
.disclosure-strip {
  max-width: 880px; margin: 1.5rem auto 0;
  font-size: .82rem; color: var(--muted);
  border: 1px dashed var(--accent); border-radius: 6px;
  padding: .6em .9em; background: var(--bg);
}
.disclosure-strip a { color: var(--accent); }

main { max-width: 880px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

/* --- wizard navigation --- */
.wizard-nav { margin-bottom: 1.5rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.tabs [role="tab"] {
  font: inherit; font-size: .88rem; font-weight: 600;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .5em 1em; cursor: pointer;
}
.tabs [role="tab"].active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.progress {
  height: 10px; border-radius: 999px;
  background: var(--line); overflow: hidden;
  border: 1px solid var(--line);
}
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 999px;
  transition: width .25s ease;
}
.progress-label { font-size: .82rem; color: var(--muted); margin: .5em 0 0; font-family: Georgia, serif; }

/* --- checklist panel --- */
.checklist-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.2rem 1.6rem;
  margin-bottom: 2rem;
}
.checklist { list-style: none; margin: 0 0 1rem; padding: 0; columns: 2; column-gap: 2rem; }
.checklist li { break-inside: avoid; margin-bottom: .4em; }
.checklist label { display: flex; gap: .6em; align-items: flex-start; font-size: .92rem; cursor: default; }
.checklist input { margin-top: .25em; accent-color: var(--accent); }
.checklist input:checked + span, .checklist label:has(input:checked) { color: var(--muted); }
.wizard-actions { display: flex; justify-content: space-between; gap: .6rem; }

/* --- panels & forms --- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin: 0 0 2rem;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin-bottom: 1rem; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .9rem; }
input, select {
  display: block; width: 100%; margin-top: .3em;
  font: inherit; font-size: .95rem; font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 6px; padding: .55em .7em;
}
input:focus, select:focus, button:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.note { font-size: .85rem; color: var(--muted); }

svg#spectrum { display: block; width: 100%; height: auto; margin: 1rem 0; }

table.data { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: .5em .6em; border-bottom: 1px solid var(--line); }
table.data th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.data td:first-child { color: var(--muted); }
table.data tr:last-child td { border-bottom: none; }
table.matrix td:nth-child(3) { font-family: ui-monospace, monospace; }
table.matrix .ok { color: #047857; font-weight: 600; }
table.matrix .warn { color: #b45309; font-weight: 600; }
table.matrix .fail { color: #b91c1c; font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
button {
  font: inherit; font-size: .9rem; font-weight: 600;
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px; padding: .6em 1.1em; cursor: pointer;
}
button:hover { background: var(--accent-dark); }
button.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
button.secondary:hover { background: var(--bg); }

pre.receipt {
  background: #271c19; color: #fbf7f4;
  border-radius: 8px; padding: 1rem;
  font-size: .78rem; overflow-x: auto; max-height: 320px;
  white-space: pre-wrap; word-break: break-all;
}

#licensing-list { columns: 2; column-gap: 2rem; }
#licensing-list li { break-inside: avoid; margin-bottom: .5em; }
#licensing-list strong { display: block; }
#licensing-list span { color: var(--muted); font-size: .9rem; }

.faq details { border-bottom: 1px solid var(--line); padding: .7em 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq details p { color: var(--muted); margin: .6em 0 .2em; }

.colophon {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem 3rem;
  text-align: center; color: var(--muted); font-size: .85rem;
}
.colophon nav { margin-bottom: 1em; }
.colophon nav a { margin: 0 .8em; }

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  #licensing-list, .checklist { columns: 1; }
  .masthead { padding: 2.5rem 1rem 2rem; }
  main { padding: 1.5rem 1rem 3rem; }
}
