/* BHG Site Working — workshop notes, not the public archive */
:root {
  --bg: #f3efe6;
  --paper: #fffcf6;
  --ink: #1f1b16;
  --muted: #5c564c;
  --line: #d9d0c0;
  --accent: #6b4f1d;
  --stamp: #c45c26;
  --rail: #ebe4d6;
  --measure: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-underline-offset: 0.12em;
}

a:hover {
  color: var(--stamp);
}

.mast {
  background: var(--ink);
  color: #f6f1e8;
  padding: 1.25rem 1.5rem 1rem;
}

.mast a {
  color: #f0d9a8;
}

.mast__kicker {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mast__kicker a {
  color: inherit;
  text-decoration: none;
}

.mast__tag {
  margin: 0.2rem 0 0.8rem;
  color: #c4b8a4;
  font-size: 0.95rem;
}

.mast__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-weight: 600;
}

.mast__elsewhere {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: #a8a29e;
}

.mast__elsewhere + .mast__elsewhere {
  margin-top: 0.35rem;
}

.mast__elsewhere a {
  color: #e7d3a8;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16.5rem;
  gap: 2rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem;
  align-items: start;
}

.layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.inventory-page .layout--single {
  max-width: 96rem;
}

.inventory-page .paper {
  min-width: 0;
  overflow-x: auto;
}

.inventory-page .prose p,
.inventory-page .prose li {
  max-width: none;
}

.inventory-page .prose table {
  width: 100%;
  table-layout: fixed;
}

.inventory-page .prose th,
.inventory-page .prose td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .rail {
    order: -1;
  }
}

.paper {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.25rem 1.4rem 1.6rem;
}

.paper h1 {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
  line-height: 1.2;
}

.lede {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--stamp);
  padding: 1rem 1.15rem 1.1rem;
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.card h2 a {
  color: inherit;
  text-decoration: none;
}

.card h2 a:hover {
  color: var(--stamp);
  text-decoration: underline;
}

.when {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.card p {
  margin: 0;
}

.rail {
  background: var(--rail);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem 1.2rem;
}

.rail h2 {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail ol,
.rail ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail li + li {
  margin-top: 0.65rem;
}

.rail a {
  font-weight: 600;
  text-decoration: none;
}

.rail a:hover {
  text-decoration: underline;
}

.rail .when {
  display: block;
}

.prose h1 {
  margin-top: 0;
}

.prose h2 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.25rem;
}

.prose h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.05rem;
}

.prose h4 {
  margin: 1.1rem 0 0.35rem;
  font-size: 1rem;
}

.prose p,
.prose li {
  max-width: var(--measure);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  margin: 0.8rem 0 1.2rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.prose td a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose figure {
  margin: 1.2rem 0;
  max-width: min(100%, 42rem);
}

.prose figure img,
.prose p img {
  display: block;
  max-width: 100%;
  height: auto;
}

.prose figcaption {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: none;
}

.embed--youtube {
  max-width: min(100%, 42rem);
}

.embed--youtube .embed__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
}

.embed--youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.prose .fnref {
  font-size: 0.75em;
}

.prose .fn {
  font-size: 0.92rem;
  max-width: none;
}

.prose th {
  background: var(--rail);
}

.prose pre {
  overflow: auto;
  background: #1f1b16;
  color: #f6f1e8;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
}

.prose code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88em;
}

.prose pre code {
  font-size: 1em;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.foot {
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot p {
  max-width: 68rem;
  margin: 0 auto;
}

.transcript p {
  max-width: none;
  margin: 0.15rem 0;
}

.transcript p:has(strong:first-child) {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.board-page .layout--single {
  max-width: 96rem;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(13rem, 1fr));
  gap: 0.85rem;
  align-items: start;
  margin: 1.25rem 0 0;
}

.kanban__col {
  background: var(--rail);
  border: 1px solid var(--line);
  padding: 0.7rem 0.65rem 0.85rem;
  min-width: 0;
}

.kanban__col h2 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.kanban__col h2 span {
  font-variant-numeric: tabular-nums;
}

.ticket-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--stamp);
  padding: 0.65rem 0.7rem 0.75rem;
  margin-top: 0.55rem;
}

.ticket-card h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1rem;
  line-height: 1.3;
}

.ticket-card h3 a {
  color: inherit;
  text-decoration: none;
}

.ticket-card h3 a:hover {
  color: var(--stamp);
  text-decoration: underline;
}

.ticket-card p {
  margin: 0;
  font-size: 0.92rem;
}

.ticket-card__id {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticket-card__who {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.ticket-card__check {
  margin-top: 0.45rem;
}

.ticket-card__empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.4rem 0 0;
}

.pill {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill--ready {
  border-color: var(--stamp);
  color: var(--stamp);
}

.pill--in-progress {
  border-color: var(--accent);
  color: var(--accent);
}

.pill--blocked {
  border-color: var(--ink);
  color: var(--ink);
}

.ticket-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.65rem 1rem;
  margin: 0.85rem 0 1.4rem;
  padding: 0.8rem 0.9rem;
  background: var(--rail);
  border: 1px solid var(--line);
}

.ticket-meta div {
  margin: 0;
}

.ticket-meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticket-meta dd {
  margin: 0.15rem 0 0;
}

.prose li.check {
  list-style: none;
  margin-left: -1.2rem;
}

.prose li.check input {
  margin-right: 0.35rem;
}

.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.archive-note {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 0.65rem 0.95rem;
  background: var(--rail);
  margin: 0 0 1.25rem;
  max-width: var(--measure);
}

.child-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.child-list li {
  max-width: none;
}

.child-list a {
  display: block;
  padding: 0.35rem 0;
}

.place-figure {
  margin: 0 0 1.2rem;
  max-width: min(100%, 42rem);
}

.place-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.prose blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--line);
  background: var(--rail);
  color: var(--muted);
  max-width: var(--measure);
}

.imported-feature .page-title {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .kanban {
    grid-template-columns: 1fr;
  }
}

/* Booklets workshop catalogue: generated HTML, local previews only (BHG-026). */
.booklet-catalogue,.booklet-detail{max-width:60rem}
.booklet-index{list-style:none;margin:2rem 0;padding:0;display:grid;gap:.85rem}
.booklet-item{display:grid;grid-template-columns:2.6rem minmax(0,1fr);gap:1.1rem;
  border:1px solid var(--line);background:#fffdf9;padding:1.1rem;border-radius:5px}
.booklet-number{color:var(--muted);font-size:.78rem;font-weight:700;letter-spacing:.05em;padding-top:.4rem}
.booklet-item h2{font-size:1.25rem;line-height:1.3;margin:0 0 .25rem}
.booklet-item p{margin:.35rem 0 0}
.booklet-meta{color:var(--muted);font-size:.85rem}
.booklet-item p:not(.booklet-meta){font-size:.95rem}
.booklet-draft{border-left:3px solid var(--stamp);padding:.7rem 1rem;
  background:#f9efe1;font-size:.9rem;line-height:1.5}
.booklet-description{font:1.09rem/1.75 Georgia,serif;max-width:69ch}
.booklet-description p{margin:1rem 0}
.booklet-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem 1rem;
  margin:1.35rem 0;padding:1.2rem;background:var(--rail);border-radius:5px}
.booklet-facts div{min-width:0}
.booklet-facts dt{font-size:.75rem;letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
.booklet-facts dd{margin:.15rem 0 0;font-weight:600}
.booklet-formats{margin:2rem 0 1rem;border-top:1px solid var(--line);padding-top:1rem}
.booklet-formats li{margin:.65rem 0}
.booklet-muted,.booklet-small{color:var(--muted);font-size:.85rem}
.booklet-note{font-size:.9rem;background:#f5eee4;padding:.85rem 1rem}
@media(max-width:580px){.booklet-item{grid-template-columns:2rem minmax(0,1fr);padding:.8rem;gap:.5rem}
.booklet-facts{grid-template-columns:1fr 1fr;padding:.75rem}}
