/* Westerbone Medieval Tools - tool 10: Coroner's Inquest Generator. Everything scoped under .wbtc */
.wbtc {
  --wbtc-bg: #fbf7ee;
  --wbtc-card: #fffdf8;
  --wbtc-ink: #2b2118;
  --wbtc-muted: #6b5d4f;
  --wbtc-line: #e3d8c4;
  --wbtc-rubric: #9b2c1f;
  --wbtc-rubric-soft: #f6e4dc;
  --wbtc-parch: #f4ead3;
  --wbtc-parch-line: #d9c7a1;
  --wbtc-focus: #b0632a;
  --wbtc-serif: 'Alegreya', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --wbtc-sc: 'Alegreya SC', 'Alegreya', Georgia, serif;
  container-type: inline-size;
  background: var(--wbtc-bg);
  color: var(--wbtc-ink);
  font-family: var(--wbtc-serif);
  font-size: 17px;
  line-height: 1.5;
  border: 1px solid var(--wbtc-line);
  border-radius: 10px;
  padding: 0 0 16px;
  margin: 1.5em 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
.wbtc.wbtc-fonts-no { --wbtc-serif: inherit; --wbtc-sc: inherit; }
.wbtc[data-theme="dark"] {
  --wbtc-bg: #1d1915; --wbtc-card: #241f1a; --wbtc-ink: #ece3d3; --wbtc-muted: #b2a48f; --wbtc-line: #3b332a;
  --wbtc-rubric: #e0846f; --wbtc-rubric-soft: #3a2621; --wbtc-parch: #2b251d; --wbtc-parch-line: #4a3f31; --wbtc-focus: #e0a05f;
}
.wbtc *, .wbtc *::before, .wbtc *::after { box-sizing: border-box; }

/* tabs */
.wbtc .wbtc-tabs { display: flex; gap: 2px; padding: 10px 12px 0; border-bottom: 1px solid var(--wbtc-line); overflow-x: auto; }
.wbtc .wbtc-tab {
  font: 600 16px/1.2 var(--wbtc-serif); color: var(--wbtc-muted); background: transparent; border: 1px solid transparent; border-bottom: 0;
  border-radius: 8px 8px 0 0; padding: 10px 14px; margin: 0 0 -1px; cursor: pointer; white-space: nowrap; text-transform: none; letter-spacing: 0; min-height: 44px; width: auto; box-shadow: none;
}
.wbtc .wbtc-tab[aria-selected="true"] { color: var(--wbtc-rubric); background: var(--wbtc-bg); border-color: var(--wbtc-line); }
.wbtc .wbtc-tab:hover { color: var(--wbtc-ink); }
.wbtc .wbtc-panel { padding: 16px 16px 0; }
.wbtc .wbtc-panel[hidden] { display: none; }
.wbtc :focus-visible { outline: 2px solid var(--wbtc-focus); outline-offset: 2px; }

/* controls */
.wbtc .wbtc-controls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.wbtc .wbtc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.wbtc .wbtc-field { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0; }
.wbtc .wbtc-label { font: 600 13px/1.2 var(--wbtc-serif); color: var(--wbtc-muted); letter-spacing: .02em; }
.wbtc input, .wbtc select {
  font: 16px/1.3 var(--wbtc-serif); color: var(--wbtc-ink); background: var(--wbtc-card); border: 1px solid var(--wbtc-line); border-radius: 6px;
  padding: 9px 10px; height: auto; min-height: 44px; width: 100%; max-width: 100%; margin: 0; box-shadow: none; appearance: auto; text-transform: none; letter-spacing: normal;
}
.wbtc .wbtc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wbtc .wbtc-btn {
  font: 600 15px/1.2 var(--wbtc-serif); color: var(--wbtc-ink); background: var(--wbtc-card); border: 1px solid var(--wbtc-line); border-radius: 6px;
  padding: 10px 14px; min-height: 44px; width: auto; cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; margin: 0;
}
.wbtc .wbtc-btn:hover { border-color: var(--wbtc-muted); }
.wbtc .wbtc-btn.wbtc-primary { background: var(--wbtc-rubric); border-color: var(--wbtc-rubric); color: #fff; }
.wbtc[data-theme="dark"] .wbtc-btn.wbtc-primary { color: #1d1915; }
.wbtc .wbtc-btn:disabled { opacity: .7; cursor: default; }

/* the inquest */
.wbtc .wbtc-head { border-bottom: 1px solid var(--wbtc-line); padding-bottom: 10px; margin-bottom: 6px; }
.wbtc .wbtc-kicker { font: 600 13px/1.3 var(--wbtc-sc); color: var(--wbtc-rubric); letter-spacing: .04em; margin: 0 0 2px; }
.wbtc .wbtc-title { font: 700 26px/1.2 var(--wbtc-serif); margin: 0 0 4px; color: var(--wbtc-ink); padding: 0; border: 0; }
.wbtc .wbtc-sum { margin: 0; color: var(--wbtc-muted); font-size: 16px; }
.wbtc p { margin: 0 0 8px; padding: 0; font-size: inherit; line-height: inherit; color: inherit; }
.wbtc .wbtc-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.wbtc .wbtc-step { margin: 0; padding: 14px 0 10px; border-bottom: 1px dashed var(--wbtc-line); list-style: none; }
.wbtc .wbtc-step::before, .wbtc .wbtc-step::marker { content: none; }
.wbtc .wbtc-step:last-child { border-bottom: 0; }
.wbtc .wbtc-step-t { display: flex; align-items: baseline; gap: 10px; font: 700 19px/1.25 var(--wbtc-serif); margin: 0 0 6px; color: var(--wbtc-ink); padding: 0; border: 0; }
.wbtc .wbtc-num { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--wbtc-rubric-soft); color: var(--wbtc-rubric); font: 700 14px/1 var(--wbtc-serif); transform: translateY(-1px); }
.wbtc .wbtc-step > p { padding-left: 0; }
.wbtc .wbtc-jurors { list-style: none; margin: 4px 0 8px 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 2px 18px; font-size: 16px; }
.wbtc .wbtc-jurors li { margin: 0; padding: 0; list-style: none; }
.wbtc .wbtc-jurors li::before { content: none; }
.wbtc .wbtc-home { color: var(--wbtc-muted); }
.wbtc .wbtc-rules { margin: 6px 0 4px 0; }
.wbtc .wbtc-rules-h { font: 600 13px/1.3 var(--wbtc-serif); color: var(--wbtc-muted); margin: 0 0 4px; }
.wbtc .wbtc-rule { border: 0; border-top: 1px solid var(--wbtc-line); background: transparent; border-radius: 0; margin: 0; padding: 0; }
.wbtc .wbtc-rule:first-of-type { border-top: 0; }
.wbtc .wbtc-rules { border: 1px solid var(--wbtc-line); border-radius: 6px; background: var(--wbtc-card); }
.wbtc .wbtc-rules .wbtc-rules-h { padding: 8px 12px 0; }
.wbtc .wbtc-rule summary { cursor: pointer; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; list-style: none; font-size: 16px; min-height: 40px; }
.wbtc .wbtc-rule summary::-webkit-details-marker { display: none; }
.wbtc .wbtc-rule summary::before { content: '+'; font-weight: 700; color: var(--wbtc-rubric); width: 12px; flex: none; }
.wbtc .wbtc-rule[open] summary::before { content: '\2013'; }
.wbtc .wbtc-rule-t { font-weight: 600; }
.wbtc .wbtc-years { color: var(--wbtc-muted); font-size: 14px; }
.wbtc .wbtc-rule > p { padding: 0 12px 0 34px; font-size: 16px; }
.wbtc .wbtc-rule > p:last-child { padding-bottom: 10px; margin: 0; }
.wbtc .wbtc-src { color: var(--wbtc-muted); font-size: 14px; }
.wbtc .wbtc-tag { display: inline-block; font: 600 12px/1.4 var(--wbtc-serif); border: 1px solid var(--wbtc-line); border-radius: 999px; padding: 0 8px; margin-left: 8px; color: var(--wbtc-muted); white-space: nowrap; }
.wbtc .wbtc-rough { color: var(--wbtc-rubric); border-color: currentColor; }
.wbtc .wbtc-off { opacity: .6; }
.wbtc .wbtc-off .wbtc-rule-t { text-decoration: line-through; text-decoration-thickness: 1px; }
.wbtc .wbtc-offtag { margin-left: 0; }

/* the roll */
.wbtc .wbtc-roll-wrap { margin: 18px 0 0; }
.wbtc .wbtc-roll-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wbtc .wbtc-roll-t { font: 700 19px/1.2 var(--wbtc-serif); margin: 0; padding: 0; border: 0; color: var(--wbtc-ink); }
.wbtc .wbtc-seg { display: inline-flex; border: 1px solid var(--wbtc-line); border-radius: 6px; overflow: hidden; }
.wbtc .wbtc-segb { font: 600 14px/1 var(--wbtc-serif); background: var(--wbtc-card); color: var(--wbtc-muted); border: 0; border-right: 1px solid var(--wbtc-line); padding: 10px 12px; min-height: 40px; width: auto; cursor: pointer; text-transform: none; letter-spacing: 0; margin: 0; border-radius: 0; box-shadow: none; }
.wbtc .wbtc-segb:last-child { border-right: 0; }
.wbtc .wbtc-segb[aria-pressed="true"] { background: var(--wbtc-rubric-soft); color: var(--wbtc-rubric); }
.wbtc .wbtc-roll {
  background: var(--wbtc-parch); border: 1px solid var(--wbtc-parch-line); border-radius: 4px; padding: 14px 14px 6px;
  box-shadow: inset 0 0 0 4px var(--wbtc-parch), inset 0 0 0 5px var(--wbtc-parch-line);
}
.wbtc .wbtc-margin { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 600 14px/1.3 var(--wbtc-serif); color: var(--wbtc-rubric); border-bottom: 1px solid var(--wbtc-parch-line); padding-bottom: 6px; margin-bottom: 10px; font-style: italic; }
.wbtc .wbtc-rrow { display: grid; grid-template-columns: 1fr; gap: 2px 20px; margin: 0 0 10px; }
.wbtc .wbtc-rrow p { margin: 0; }
.wbtc .wbtc-la { font-style: italic; font-size: 16px; }
.wbtc .wbtc-en { font-size: 16px; color: var(--wbtc-ink); }
.wbtc .wbtc-roll-both .wbtc-en { color: var(--wbtc-muted); }
.wbtc .wbtc-rhead { font-weight: 600; }
.wbtc .wbtc-fault p { border-left: 2px solid var(--wbtc-rubric); padding-left: 8px; }
.wbtc .wbtc-note { color: var(--wbtc-muted); font-size: 14px; margin-top: 10px; }
.wbtc .wbtc-cta { margin-top: 14px; padding: 10px 12px; border-left: 3px solid var(--wbtc-rubric); background: var(--wbtc-card); }
.wbtc .wbtc-cta a { color: var(--wbtc-rubric); text-decoration: underline; }

/* procedure and terms */
.wbtc .wbtc-proc .wbtc-rule { border: 1px solid var(--wbtc-line); border-radius: 6px; background: var(--wbtc-card); margin: 0 0 6px; }
.wbtc .wbtc-proc .wbtc-step > p { padding-left: 0; color: var(--wbtc-muted); }
.wbtc .wbtc-terms { margin: 0; padding: 0; }
.wbtc .wbtc-term { padding: 10px 0; border-bottom: 1px dashed var(--wbtc-line); }
.wbtc .wbtc-term dt { font: 700 17px/1.3 var(--wbtc-serif); margin: 0 0 2px; float: none; width: auto; clear: none; }
.wbtc .wbtc-latin { font-weight: 400; font-style: italic; color: var(--wbtc-muted); margin-left: 8px; }
.wbtc .wbtc-term dd { margin: 0; padding: 0; font-size: 16px; }

/* wider */
@container (min-width: 560px) {
  .wbtc .wbtc-fields { grid-template-columns: 110px 1fr 1fr 1fr; }
  .wbtc .wbtc-step > p, .wbtc .wbtc-step > .wbtc-rule { margin-left: 36px; }
  .wbtc .wbtc-jurors, .wbtc .wbtc-rules { margin-left: 36px; }
  .wbtc .wbtc-jurors { grid-template-columns: 1fr 1fr; }
  .wbtc .wbtc-panel { padding: 18px 22px 0; }
}
@container (min-width: 760px) {
  .wbtc .wbtc-controls { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .wbtc .wbtc-fields { flex: 1; }
  .wbtc .wbtc-roll-both .wbtc-rrow { grid-template-columns: 1fr 1fr; }
  .wbtc .wbtc-roll { padding: 20px 22px 10px; }
  .wbtc .wbtc-jurors { grid-template-columns: 1fr 1fr 1fr; }
}
@supports not (container-type: inline-size) {
  @media (min-width: 760px) { .wbtc .wbtc-fields { grid-template-columns: 110px 1fr 1fr 1fr; } .wbtc .wbtc-roll-both .wbtc-rrow { grid-template-columns: 1fr 1fr; } }
}

/* guard: undo the theme styles that most often break plugins */
.wbtc button, .wbtc input, .wbtc select { float: none; text-shadow: none; }
.wbtc ul, .wbtc ol { margin-top: 0; }
.wbtc li { background: none; }
.wbtc h3, .wbtc h4 { text-transform: none; letter-spacing: normal; }
.wbtc table { border: 0; }
.wbtc a { box-shadow: none; }
.wbtc details > summary { display: flex; }
@media print {
  .wbtc .wbtc-tabs, .wbtc .wbtc-controls, .wbtc .wbtc-seg { display: none; }
  .wbtc .wbtc-rule:not([open]) { display: none; }
  .wbtc { border: 0; }
}
