/* GOA build planner -- visual language carried over from the in-game browsers
   (_skilltree_browser.dm gold, _srank_browser.dm cyan, item codex parchment). */

:root {
  --bg:        #0b0704;
  --panel:     rgba(8, 3, 0, 0.97);
  --panel-2:   rgba(14, 6, 0, 0.99);
  --slot:      rgba(18, 8, 0, 0.75);
  --edge:      rgba(218, 165, 32, 0.25);
  --edge-soft: rgba(100, 50, 0, 0.35);
  --gold:      #ffd700;
  --gold-dim:  #daa520;
  --gold-mut:  #a07840;
  --cyan:      #7fdfff;
  --cyan-dim:  #5fb8d8;
  --green:     #50e050;
  --red:       #d0524a;
  --orange:    #e07030;
  --ink:       #e8c870;
  --mut:       #8a7350;
  --body: Arial, "Segoe UI", system-ui, sans-serif;
  --disp: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --r: 10px;
}

* , *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
}
body {
  background-image:
    radial-gradient(circle at 12% -8%, rgba(230,178,94,.07), transparent 46%),
    radial-gradient(circle at 92% 4%, rgba(127,223,255,.05), transparent 42%);
  background-attachment: fixed;
}

a { color: var(--gold-dim); }
button { font-family: var(--body); cursor: pointer; }
h1,h2,h3 { margin: 0; font-weight: bold; }

.tnum { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }
.mut  { color: var(--mut); }
.small{ font-size: 11px; }

/* ---------------------------------------------------------------- layout */

#app { display: flex; min-height: 100vh; }

.sidebar {
  width: 168px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: var(--panel); border-right: 1px solid var(--edge);
  display: flex; flex-direction: column; padding: 10px 0; gap: 2px;
}
.sidebar-brand {
  font-family: var(--disp);
  font-size: 15px; font-weight: bold; color: var(--gold);
  letter-spacing: 1px; text-align: center; padding: 8px 8px 12px;
  border-bottom: 1px solid rgba(218,165,32,0.15); margin-bottom: 8px;
}
.sidebar-brand small { display:block; font-size:9px; color:var(--mut); letter-spacing:2px; font-family:var(--body); }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; }
.nav-btn {
  width: 100%; padding: 10px 9px; border-radius: 6px; font-size: 13px;
  text-align: left; display: flex; align-items: center; gap: 8px;
  background: rgba(30,14,0,0.6); border: 1px solid var(--edge-soft);
  color: var(--gold-mut); transition: all .15s;
}
.nav-btn:hover { background: rgba(60,28,0,0.85); border-color: var(--edge); color: var(--gold); }
.nav-btn.active { background: rgba(218,165,32,0.15); border-color: rgba(218,165,32,0.5); color: var(--gold); font-weight: bold; }
.nav-btn.srank { color: var(--cyan-dim); }
.nav-btn.srank:hover { color: var(--cyan); border-color: rgba(127,223,255,0.4); }
.nav-btn.srank.active { background: rgba(127,223,255,0.12); border-color: rgba(127,223,255,0.5); color: var(--cyan); }
.sidebar-spacer { flex: 1; }
.sidebar-foot { padding: 8px 12px; font-size: 10px; color: var(--mut); line-height: 1.5; }

main { flex: 1; min-width: 0; padding: 14px 18px 40px; }

.view { display: none; }
.view.active { display: block; }

/* ---------------------------------------------------------------- panels */

.panel {
  background: var(--panel); border: 1px solid var(--edge);
  border-radius: var(--r); overflow: hidden; margin-bottom: 14px;
}
.panel-header {
  background: var(--panel-2); border-bottom: 1px solid rgba(218,165,32,0.15);
  padding: 9px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.panel-title {
  font-size: 11px; font-weight: bold; color: var(--gold);
  letter-spacing: 3px; text-transform: uppercase;
  text-shadow: 0 0 8px rgba(218,165,32,0.45);
}
.panel-body { padding: 12px 14px; }

.chip {
  font-size: 12px; padding: 4px 12px; border-radius: 10px;
  background: rgba(218,165,32,0.13); border: 1px solid rgba(218,165,32,0.45);
  color: var(--gold); font-weight: bold; letter-spacing: .5px; white-space: nowrap;
}
.chip.cyan { background: rgba(127,223,255,0.12); border-color: rgba(127,223,255,0.5); color: var(--cyan); }
.chip.bad  { background: rgba(190,60,40,0.15); border-color: rgba(200,70,50,0.55); color: #ff9b86; }
.chip.ghost{ background: transparent; border-color: var(--edge-soft); color: var(--mut); font-weight: normal; }

.btn {
  padding: 7px 16px; border-radius: 5px; font-size: 13px; font-weight: bold;
  background: rgba(218,165,32,0.18); border: 1px solid rgba(218,165,32,0.55);
  color: var(--gold); transition: filter .15s;
}
.btn:hover { filter: brightness(1.25); }
.btn.cyan { background: rgba(127,223,255,0.14); border-color: rgba(127,223,255,0.55); color: var(--cyan); }
.btn.ghost{ background: rgba(30,14,0,0.6); border-color: var(--edge-soft); color: var(--gold-mut); font-weight: normal; }
.btn.danger{ background: rgba(80,20,20,0.5); border-color: rgba(150,40,40,0.5); color: #cc6060; }
.btn:disabled { opacity: .38; cursor: not-allowed; filter: none; }
.btn.sm { padding: 4px 10px; font-size: 11px; }

input, select, textarea {
  background: rgba(10,5,0,0.85); border: 1px solid var(--edge-soft);
  color: var(--ink); border-radius: 5px; padding: 6px 9px;
  font-family: var(--body); font-size: 13px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(218,165,32,0.6); }
input[type=range] { padding: 0; accent-color: var(--gold-dim); }

/* ---------------------------------------------------------------- icons */

/* Pixel art only ever renders at a whole-number ratio of the 64px atlas cell
   (or the clean 1/2, which recovers the original 32px art exactly). The inline
   style sets the real width/height; these are the fallbacks for a missing
   atlas. A fractional box would stretch the drawn cell straight back out. */
.ico {
  width: 64px; height: 64px; flex-shrink: 0;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;          /* Firefox */
  border-radius: 7px; background-color: rgba(6,3,0,0.7);
  border: 1px solid var(--edge-soft);
}
.ico.sm { width: 32px; height: 32px; }
.ico.lg { width: 128px; height: 128px; }
/* never let a flex/grid parent squeeze the art out of shape */
.ico { min-width: 0; }
.card .ico, .pass .ico, .bcard .ico { flex: 0 0 auto; }

/* ---------------------------------------------------------------- build bar */

.buildbar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.stat {
  background: var(--slot); border: 1px solid var(--edge-soft);
  border-radius: 8px; padding: 9px 11px;
}
.stat-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.stat-name { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-mut); }
.stat-val  { font-size: 20px; font-weight: bold; color: var(--gold); }
.stat-row  { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.stat-row input[type=range] { flex: 1; min-width: 0; }
.stat-row input[type=number] { width: 62px; }
.stat-sub  { font-size: 10px; color: var(--mut); margin-top: 3px; }
.stat.capped .stat-val { color: var(--orange); }

.pools { display: flex; gap: 10px; flex-wrap: wrap; }
.pool {
  flex: 1 1 150px; background: var(--slot); border: 1px solid var(--edge-soft);
  border-radius: 8px; padding: 8px 11px;
}
.pool-name { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mut); }
.pool-val  { font-size: 17px; font-weight: bold; color: var(--ink); }
.pool-val.stam { color: #7fe08a; }
.pool-val.chak { color: #7fbfff; }
.pool-val.wnd  { color: #ff9b86; }

/* ---------------------------------------------------------------- trees & cards */

.group-header { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; cursor: pointer; user-select: none; }
.group-header:hover .group-title { text-shadow: 0 0 12px rgba(218,165,32,0.7); }
.group-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(218,165,32,0.45)); }
.group-line.r { background: linear-gradient(90deg, rgba(218,165,32,0.45), transparent); }
.group-title { font-size: 11px; font-weight: bold; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; white-space: nowrap; }
.group-count { font-size: 10px; color: rgba(218,165,32,0.6); background: rgba(218,165,32,0.08);
  border: 1px solid rgba(218,165,32,0.2); border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
.group-caret { color: var(--gold-mut); font-size: 10px; width: 10px; }

.cardgrid { display: flex; flex-wrap: wrap; gap: 9px; }

.card {
  /* 64px icon + 2*7px padding + 2*1px border = 80px minimum. Anything
     narrower clips the art rather than scaling it, which is worse. */
  width: 88px; border-radius: 10px; padding: 7px 7px 6px; position: relative;
  border: 1px solid var(--edge-soft); background: var(--slot);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); z-index: 5; box-shadow: 0 4px 16px rgba(0,0,0,.6); border-color: var(--gold-dim); }
.card-name { font-size: 9px; color: var(--gold-mut); line-height: 1.25; word-break: break-word; }
.card-cost { font-size: 9px; color: var(--mut); }
.card.picked { border-color: rgba(60,180,60,0.7); background: rgba(6,20,6,0.9); box-shadow: 0 0 14px rgba(50,200,50,0.18); }
.card.picked .card-name { color: #70d070; }
.card.picked::after { content: '✓'; position: absolute; top: 3px; right: 5px; font-size: 9px; color: var(--green); }
.card.locked { opacity: .4; }
.card.retired { opacity: .35; filter: grayscale(.8); }
.card.srank { border-color: rgba(127,223,255,0.35); }
.card.srank .card-name { color: var(--cyan-dim); }
.card.srank.picked { border-color: rgba(60,180,60,0.7); }

/* ---------------------------------------------------------------- browser */

.searchbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.searchbar input[type=search] { flex: 1; min-width: 200px; font-size: 14px; padding: 8px 12px; }

.filters { display: flex; gap: 5px; flex-wrap: wrap; }
.filter {
  font-size: 11px; padding: 3px 10px; border-radius: 4px;
  background: rgba(30,14,0,0.8); border: 1px solid var(--edge-soft); color: var(--gold-mut);
}
.filter:hover { filter: brightness(1.3); }
.filter.on { background: rgba(218,165,32,0.2); border-color: rgba(218,165,32,0.5); color: var(--gold); font-weight: bold; }

.skillrow {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px;
  border-bottom: 1px solid rgba(100,50,0,0.18); cursor: pointer;
}
.skillrow:hover { background: rgba(218,165,32,0.05); }
.skillrow.open { background: rgba(218,165,32,0.07); }
.skillrow-main { flex: 1; min-width: 0; }
.skillrow-name { font-size: 14px; font-weight: bold; color: var(--ink); }
.skillrow-name .hl { color: var(--gold); text-decoration: underline; }
.skillrow-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.tag {
  font-size: 10px; padding: 1px 7px; border-radius: 9px;
  background: rgba(218,165,32,0.08); border: 1px solid rgba(218,165,32,0.22); color: var(--gold-mut);
  white-space: nowrap;
}
.tag.st  { background: rgba(200,60,40,0.1); border-color: rgba(220,90,60,0.3); color: #ff9b86; }
.tag.dmg { background: rgba(60,180,60,0.1); border-color: rgba(80,200,80,0.3); color: #8fe08f; }
.tag.el  { border-color: rgba(127,223,255,0.3); color: var(--cyan-dim); background: rgba(127,223,255,0.07); }

.detail { padding: 4px 14px 18px 14px; border-bottom: 1px solid rgba(100,50,0,0.25); background: rgba(4,2,0,0.45); }
.detail h4 { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin: 14px 0 7px; }
.detail ul { margin: 0; padding-left: 18px; line-height: 1.65; }
.detail li { margin-bottom: 3px; }
.detail .blurb { color: var(--mut); line-height: 1.7; font-style: italic; }

.mathbox {
  background: rgba(0,0,0,0.4); border: 1px solid rgba(127,223,255,0.18);
  border-radius: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.7;
}
.mathstep { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; padding: 3px 0; align-items: baseline; }
.mathstep + .mathstep { border-top: 1px dashed rgba(127,223,255,0.1); }
.mathstep .lbl { color: var(--cyan-dim); font-size: 11px; }
.mathstep .expr { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--mut); word-break: break-all; }
.mathstep .res { font-weight: bold; color: var(--cyan); text-align: right; font-variant-numeric: tabular-nums; }
.mathtotal { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(127,223,255,0.3);
  display: flex; justify-content: space-between; font-size: 15px; font-weight: bold; color: var(--gold); }
.unresolved { color: var(--orange); font-size: 11px; line-height: 1.6; }
.unresolved code { background: rgba(0,0,0,.4); padding: 1px 5px; border-radius: 3px; word-break: break-all; }

/* ---------------------------------------------------------------- passives */

.passgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.pass {
  display: flex; gap: 9px; align-items: center; padding: 7px 10px;
  background: var(--slot); border: 1px solid var(--edge-soft); border-radius: 7px;
}
.pass.on { border-color: rgba(218,165,32,0.5); background: rgba(40,26,0,0.7); }
.pass-main { flex: 1; min-width: 0; }
.pass-name { font-size: 12px; color: var(--ink); }
.pass.on .pass-name { color: var(--gold); font-weight: bold; }
.pass-rank { font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stepper { display: flex; align-items: center; gap: 3px; }
.stepper button {
  width: 21px; height: 21px; border-radius: 4px; font-size: 13px; line-height: 1;
  background: rgba(30,14,0,0.8); border: 1px solid var(--edge-soft); color: var(--gold-mut);
}
.stepper button:hover:not(:disabled) { border-color: var(--gold-dim); color: var(--gold); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }

/* ---------------------------------------------------------------- community */

.buildlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.bcard { background: var(--slot); border: 1px solid var(--edge-soft); border-radius: 9px; padding: 11px 13px; }
.bcard:hover { border-color: var(--edge); }
.bcard-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.bcard-name { font-family: var(--disp); font-size: 15px; color: var(--gold); font-weight: 600; }
.bcard-meta { font-size: 11px; color: var(--mut); margin-top: 2px; }
.bcard-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0; }
.bcard-foot { display: flex; gap: 6px; align-items: center; margin-top: 9px; }
.votes { display: flex; align-items: center; gap: 3px; }
.vote {
  width: 24px; height: 24px; border-radius: 4px; font-size: 12px; line-height: 1;
  background: rgba(30,14,0,0.8); border: 1px solid var(--edge-soft); color: var(--gold-mut);
}
.vote:hover { border-color: var(--gold-dim); color: var(--gold); }
.vote.on.up   { background: rgba(60,180,60,0.25); border-color: rgba(80,200,80,0.6); color: #8fe08f; }
.vote.on.down { background: rgba(180,60,40,0.25); border-color: rgba(200,80,60,0.6); color: #ff9b86; }
.score { min-width: 26px; text-align: center; font-weight: bold; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- summary */

.sheet { max-width: 1000px; margin: 0 auto; }
.sheet-head { text-align: center; padding: 18px 0 14px; border-bottom: 2px solid var(--edge); margin-bottom: 16px; }
.sheet-title { font-family: var(--disp); font-size: 30px; color: var(--gold); line-height: 1.1; }
.sheet-sub { font-size: 12px; color: var(--mut); margin-top: 6px; letter-spacing: 1px; }
.sheet-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.sheet-list { display: flex; flex-direction: column; gap: 3px; }
.sheet-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12px;
  padding: 3px 0; border-bottom: 1px dotted rgba(100,50,0,0.3); }
.sheet-line b { color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- misc */

.banner {
  padding: 9px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 12px;
  background: rgba(190,60,40,0.12); border: 1px solid rgba(200,80,60,0.4); color: #ff9b86;
}
.banner.info { background: rgba(127,223,255,0.08); border-color: rgba(127,223,255,0.3); color: var(--cyan-dim); }
.banner.ok   { background: rgba(60,180,60,0.1); border-color: rgba(80,200,80,0.35); color: #8fe08f; }

.empty { padding: 40px 20px; text-align: center; color: var(--mut); font-size: 13px; }

#tip {
  position: fixed; z-index: 5000; display: none; pointer-events: none;
  background: rgba(8,3,0,0.98); border: 1px solid rgba(218,165,32,0.45);
  border-radius: 6px; padding: 9px 11px; font-size: 12px; color: var(--ink);
  max-width: 330px; line-height: 1.6; box-shadow: 0 6px 22px rgba(0,0,0,.7);
}
#tip .t-name { color: var(--gold); font-weight: bold; margin-bottom: 4px; }
#tip ul { margin: 5px 0 0; padding-left: 16px; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: rgba(20,12,4,0.35); }
::-webkit-scrollbar-thumb { background: rgba(190,150,70,0.5); border-radius: 6px; border: 1px solid rgba(60,40,15,0.5); }
::-webkit-scrollbar-thumb:hover { background: rgba(220,175,85,0.75); }

@media (max-width: 860px) {
  #app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar-brand { border: none; margin: 0; padding: 6px 12px; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .nav-btn { width: auto; }
  .sidebar-foot, .sidebar-spacer { display: none; }
  .sheet-cols { grid-template-columns: 1fr; }
}

@media print {
  .sidebar, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .panel { border-color: #999; background: #fff; }
  .sheet-title, .sheet-line b { color: #000; }
}

/* ---------------------------------------------------------------- skill clip */

.modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72);
  z-index: 7999; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: rgba(10,4,0,0.99); border: 1px solid rgba(218,165,32,0.45);
  border-radius: 12px; padding: 16px 18px; max-width: 860px; width: 100%;
  max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.8);
}
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.modal-title { font-family: var(--disp); font-size: 19px; color: var(--gold); flex: 1; }
.modal-x {
  width: 28px; height: 28px; border-radius: 5px; font-size: 15px; line-height: 1;
  background: rgba(80,20,20,0.5); border: 1px solid rgba(150,40,40,0.5); color: #cc6060;
}
.modal-x:hover { background: rgba(180,30,30,0.8); color: #fff; }
.clip-stage {
  background: #000; border: 1px solid var(--edge-soft); border-radius: 8px;
  min-height: 220px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.clip-stage video, .clip-stage img { max-width: 100%; max-height: 60vh; display: block; }
.clip-empty { padding: 34px 20px; text-align: center; color: var(--mut); font-size: 13px; line-height: 1.7; }
.drop {
  margin-top: 12px; border: 1px dashed rgba(218,165,32,0.4); border-radius: 9px;
  padding: 16px; text-align: center; color: var(--mut); font-size: 12px; line-height: 1.7;
}
.drop.over { border-color: var(--gold); background: rgba(218,165,32,0.08); color: var(--ink); }
.bar { height: 6px; background: rgba(0,0,0,.5); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--gold-dim); transition: width .15s; }
.clip-btn { margin-left: auto; }

/* ---------------------------------------------------------------- mobile tips

   A cursor-following tooltip is meaningless on a touch screen -- there is no
   hover, and a 330px floating box does not fit a phone anyway. Below 860px the
   same content docks to the bottom of the viewport as a sheet that can scroll
   and be dismissed, rather than being clipped off-screen.                     */

@media (max-width: 860px) {
  #tip {
    position: fixed !important;
    left: 0 !important; right: 0 !important;
    top: auto !important; bottom: 0 !important;
    max-width: none; width: auto;
    max-height: 45vh; overflow-y: auto;
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--edge);
    border-bottom: none;
    padding: 14px 16px 18px;
    font-size: 13px; line-height: 1.7;
    box-shadow: 0 -8px 30px rgba(0,0,0,.75);
    pointer-events: auto;          /* so it can be scrolled and dismissed */
    animation: tipUp .16s ease-out;
  }
  @keyframes tipUp { from { transform: translateY(100%); } to { transform: none; } }

  #tip::after {
    content: "tap anywhere to close";
    display: block; margin-top: 10px;
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--mut); text-align: center;
  }
  #tip .t-name { font-size: 15px; }

  /* the grab handle, so it reads as a sheet rather than a stuck overlay */
  #tip::before {
    content: ""; display: block; width: 38px; height: 4px;
    margin: -4px auto 10px; border-radius: 2px;
    background: rgba(218,165,32,.45);
  }
}

/* ------------------------------------------------------------- tutorial
   Reading layout, not app chrome: a measure cap so prose does not run the
   full width of a desktop monitor, and tables that stay legible on a phone. */

.tut { max-width: 900px; }

.tut p {
  margin: 0 0 10px;
  line-height: 1.62;
  color: var(--ink);
}
.tut p:last-child { margin-bottom: 0; }

.tut code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
  color: var(--gold-dim);
  background: rgba(218, 165, 32, 0.08);
  border: 1px solid var(--edge-soft);
  border-radius: 4px;
  padding: 1px 5px;
}

.tut-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 12px;
  font-size: 14px;
}
.tut-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-mut);
  font-weight: bold;
  padding: 0 12px 6px 0;
  border-bottom: 1px solid var(--edge);
}
.tut-table td {
  padding: 7px 12px 7px 0;
  border-bottom: 1px solid var(--edge-soft);
  color: var(--ink);
  vertical-align: top;
}
.tut-table tr:last-child td { border-bottom: 0; }
.tut-table td.k { color: var(--gold); font-weight: bold; white-space: nowrap; }
.tut-table .mut { color: var(--mut); font-weight: normal; font-size: 0.85em; }

/* the "this is the bit that catches people out" callout */
.tut .warn-note {
  border-left: 3px solid var(--gold-dim);
  background: rgba(218, 165, 32, 0.06);
  padding: 9px 12px;
  border-radius: 0 6px 6px 0;
  margin: 12px 0 0;
}

@media (max-width: 860px) {
  .tut-table { font-size: 13px; }
  .tut-table td.k { white-space: normal; }
  /* a 3-column table cannot hold its shape on a phone -- stack the last column */
  .tut-table th:last-child, .tut-table td:last-child { padding-right: 0; }
}
