/* 4x4 Tyre Pressures. Colours and header follow psyphin.co.za and towing.psyphin.co.za. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/rajdhani-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/rajdhani-700-latin.woff2") format("woff2");
}

:root {
  --bg: #020203;
  --surface: #111418;
  --surface-2: #181c21;
  --border: #262c33;
  --text: #e6ebef;
  --text-muted: #9aa4ae;
  --accent: #3fb6ff;
  --accent-strong: #1e8fff;

  --pass: #4ade80;
  --warn: #fbbf24;
  --fail: #f87171;
  --info: #3fb6ff;
  --nodata: #7b8590;

  --law: #3fb6ff;
  --standard: #2dd4bf;
  --maker: #c084fc;
  --engineering: #fb923c;
  --calc: #9aa4ae;

  --construction: #fbbf24;
  --construction-ink: #1a1405;

  --radius: 14px;
  --max-width: 1100px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Rajdhani", "Segoe UI", system-ui, sans-serif;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 8px;
  z-index: 20;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

.muted {
  color: var(--text-muted);
}

/* ------------------------------------------------------------ under construction */
.construction {
  background: repeating-linear-gradient(-45deg, var(--construction) 0 18px, #f59e0b 18px 36px);
  color: var(--construction-ink);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.construction strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 4px;
}

/* ------------------------------------------------------------ header / footer */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(2, 2, 3, 0.92);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(6px);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(61, 155, 255, 0.45);
  border-radius: 999px;
  background: rgba(61, 155, 255, 0.08);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.back-link-arrow {
  color: var(--accent);
  font-size: 17px;
  transition: transform 0.15s ease;
}

.back-link-domain {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
}

.back-link:hover {
  background: rgba(61, 155, 255, 0.16);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(61, 155, 255, 0.25);
}

.back-link:hover .back-link-arrow {
  transform: translateX(-3px);
}

.back-link:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .back-link-domain {
    display: none;
  }

  .back-link {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .back-link-more {
    display: none;
  }

  .back-link {
    padding: 7px 12px 7px 10px;
    gap: 8px;
    font-size: 14px;
  }

  .site-header-inner,
  .header-end,
  .nav {
    gap: 12px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 350px) {
  .site-header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header-inner,
  .header-end,
  .nav {
    gap: 8px;
  }

  .back-link {
    padding: 6px 10px 6px 8px;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-link,
  .back-link-arrow {
    transition: none;
  }
}

.nav {
  display: flex;
  gap: 18px;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: block;
  flex: none;
  border-radius: 6px;
}

.brand img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 20px 0 32px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 4px 0;
}

/* ------------------------------------------------------------ intro */
.intro {
  padding: 28px 0 8px;
}

.intro h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
}

.disclaimer-link {
  float: right;
  margin: 6px 0 0 12px;
  font-size: 0.875rem;
}

.lede {
  max-width: 66ch;
  margin: 10px 0;
}

.honesty {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 760px) {
  .honesty {
    grid-template-columns: repeat(2, 1fr);
  }
}

.honesty li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.honesty strong {
  color: var(--text);
}

.hero-photo {
  margin: 16px 0 0;
}

.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 1;
  object-fit: cover;
}

figure {
  margin: 12px 0;
}

figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

figcaption .credit a {
  color: var(--text-muted);
}

/* ------------------------------------------------------------ layout */
.layout {
  display: grid;
  gap: 24px;
  margin-top: 20px;
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: minmax(300px, 380px) 1fr;
    align-items: start;
  }

  .inputs {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding-right: 4px;
  }
}

/* ------------------------------------------------------------ form */
.inputs fieldset {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  margin: 0 0 16px;
  padding: 14px 16px 10px;
  min-width: 0;
}

.inputs legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0 6px;
  color: var(--accent);
}

.inputs legend small {
  color: var(--text-muted);
  font-weight: 600;
}

.field {
  margin-bottom: 14px;
}

.field > label,
.field > .label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hint {
  margin: 4px 0 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

input[type="number"],
select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 44px;
}

input[type="number"]:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.with-unit {
  display: flex;
  align-items: stretch;
}

.with-unit input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  min-width: 0;
}

.with-unit > span,
.with-unit > select {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  width: auto;
}

.unit-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.unit-label {
  color: var(--text-muted);
}

.unit-switch label,
.choice-row label,
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  cursor: pointer;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.check {
  display: flex;
  margin: 4px 0;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.small-button {
  font: inherit;
  font-size: 0.9rem;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(61, 155, 255, 0.45);
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 36px;
  margin: 0 0 14px;
  cursor: pointer;
}

.small-button:hover {
  background: rgba(61, 155, 255, 0.12);
}

.inline-help summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* terrain picker */
.terrain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.terrain {
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.terrain img,
.terrain-noimg {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--border);
}

.terrain-name {
  padding: 6px 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.terrain[aria-checked="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.terrain[aria-checked="true"] .terrain-name {
  color: var(--accent);
}

.terrain:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ results */
.results {
  scroll-margin-top: 64px;
  min-width: 0;
}

.results > h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.card > h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.card h4 {
  font-size: 1.1rem;
  margin: 10px 0 6px;
}

.card p {
  margin: 6px 0;
}

.axle-block + .axle-block {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 4px;
}

.card-photo img {
  width: 100%;
  max-height: 180px;
  border-radius: 10px;
  object-fit: cover;
}

.lede-small {
  font-weight: 500;
}

.range-list {
  margin: 8px 0;
  padding-left: 20px;
}

.range-list li {
  margin: 4px 0;
}

.rule-list,
.safety-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: grid;
  gap: 10px;
}

.rule-list li,
.safety-list li {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.safety-list .read-more {
  margin: 4px 0 0;
}

.read-more {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.status--pass { color: var(--pass); }
.status--warn { color: var(--warn); }
.status--fail { color: var(--fail); }
.status--info { color: var(--info); }

.note {
  border-left: 3px solid var(--border);
  padding: 4px 0 4px 10px;
  font-size: 0.92rem;
}

.note--warn { border-color: var(--warn); }
.note--fail { border-color: var(--fail); }
.note--gap { border-color: var(--nodata); color: var(--text-muted); }

.big {
  font-size: 1.15rem;
  font-weight: 600;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 7px;
  border-radius: 6px;
  vertical-align: 1px;
  border: 1px solid currentColor;
}

.tag--law { color: var(--law); }
.tag--standard { color: var(--standard); }
.tag--maker { color: var(--maker); }
.tag--engineering { color: var(--engineering); }
.tag--calc { color: var(--calc); }
.tag--field { color: var(--warn); border-style: dashed; }

.disclaimer {
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.disclaimer h2 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 4px;
}

/* ------------------------------------------------------------ explainers */
.explainers {
  margin-top: 40px;
}

.explainers > h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.explainer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  margin-bottom: 10px;
}

.explainer > summary {
  cursor: pointer;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.explainer[open] {
  padding-bottom: 12px;
}

.explainer p {
  max-width: 72ch;
}

.inline-photo img {
  border-radius: 10px;
  max-height: 260px;
  width: auto;
}

/* ------------------------------------------------------------ diagrams */
.diagram {
  margin: 12px 0;
}

.diagram-svg {
  width: 100%;
  height: auto;
  max-width: 560px;
  display: block;
}

.diagram-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.d-text { fill: var(--text); font: 13px var(--font-body); }
.d-small { fill: var(--text-muted); font: 11px var(--font-body); }
.d-axis { fill: var(--text-muted); font: 11px var(--font-body); }
.d-strong { font-weight: 600; fill: var(--text); }
.d-fail-text { fill: var(--fail); }
.d-grid { stroke: var(--border); stroke-width: 1; }
.d-grid--minor { stroke-dasharray: 2 4; }
.d-line-fail { stroke: var(--fail); stroke-width: 1.5; stroke-dasharray: 6 4; }
.d-frame { fill: none; stroke: var(--border); }
.d-mark { stroke: var(--text); stroke-width: 2; }
.d-mark--floor { stroke: var(--warn); }
.d-plan { fill: var(--accent); }
.d-bracket { fill: none; stroke: var(--accent); stroke-width: 2; }
.z-road { fill: rgba(74, 222, 128, 0.35); }
.z-loadok { fill: rgba(63, 182, 255, 0.3); }
.z-belowload { fill: rgba(248, 113, 113, 0.4); }
.z-nodata { fill: rgba(123, 133, 144, 0.35); }

.d-patch { fill: var(--surface-2); stroke: var(--accent); stroke-width: 2; }
.d-tread { stroke: var(--border); stroke-width: 3; }

.d-tyre { fill: #2a2f36; stroke: var(--text-muted); stroke-width: 2; }
.d-ghost { fill: none; stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 4 4; }
.d-rim { fill: var(--surface-2); stroke: var(--text-muted); stroke-width: 2; }
.d-hub { fill: var(--text-muted); }
.d-heat { fill: rgba(248, 113, 113, 0.55); }
.d-ground { stroke: var(--text-muted); stroke-width: 2; }
.d-dim { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; }

.d-rimline { fill: none; stroke: var(--text-muted); stroke-width: 6; stroke-linejoin: round; }
.d-bead { fill: var(--accent); }
.d-sidewall { fill: none; stroke: #4b5563; stroke-width: 10; stroke-linecap: round; }
.d-arrow { stroke: var(--warn); stroke-width: 3; }
.d-arrowhead { fill: var(--warn); }

.d-gauge { fill: var(--surface-2); stroke: var(--text-muted); stroke-width: 2; }
.d-gauge-arc { fill: none; stroke: var(--border); stroke-width: 6; }
.d-needle { stroke-width: 3; stroke-linecap: round; }
.d-needle--cold { stroke: var(--accent); }
.d-needle--warm { stroke: var(--warn); }

.d-bar-pressure { fill: var(--accent); }
.d-bar-speed { fill: var(--engineering); }

.d-sidewall-arc { fill: none; stroke: #2a2f36; stroke-width: 70; }
.d-mark-text { fill: var(--text); font: 700 22px var(--font-display); letter-spacing: 0.02em; }
.d-leader { stroke: var(--text-muted); stroke-width: 1; }

/* ------------------------------------------------------------ sources page */
.source-groups {
  list-style: none;
  padding: 0;
}

.source-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  scroll-margin-top: 80px;
}

.source-item:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.source-item h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.source-item blockquote {
  margin: 8px 0;
  padding: 6px 12px;
  border-left: 3px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.source-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sources-page h2 {
  font-size: 1.5rem;
  margin: 28px 0 10px;
  scroll-margin-top: 80px;
}

.credit-list li,
.source-list li {
  margin: 6px 0;
  font-size: 0.9rem;
}

@media print {
  .construction,
  .site-header,
  .inputs,
  .explainers,
  .site-footer {
    display: none;
  }
}

.example-link {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

/* a halo in the card colour keeps diagram labels readable over lines */
.d-text,
.d-small,
.d-axis {
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 3px;
  stroke-linejoin: round;
}

/* pressure ladders: one per axle, side by side when there's room */
.ladders {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.ladders .diagram-svg {
  width: 100%;
  max-width: 300px;
  flex: 1 1 240px;
}

.legend {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-basis: 100%;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.swatch.z-road { background: rgba(74, 222, 128, 0.35); }
.swatch.z-loadok { background: rgba(63, 182, 255, 0.3); }
.swatch.z-belowload { background: rgba(248, 113, 113, 0.4); }
.swatch.z-nodata { background: rgba(123, 133, 144, 0.35); }
.swatch--plan { width: 0; height: 0; border-radius: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid var(--accent); }
.swatch--range { width: 6px; border: 2px solid var(--accent); border-left: 0; border-radius: 0; }
.swatch--bfg { height: 0; width: 18px; border-top: 2px dashed var(--fail); border-radius: 0; }

.install {
  display: block;
  margin-top: 8px;
}

.install-button {
  margin: 0;
}

.install-help {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

/* ------------------------------------------------------------ modes */
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 520px;
}

.mode-button {
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.15;
  min-height: 48px;
  padding: 6px 8px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.mode-button small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.mode-button:hover {
  color: var(--text);
}

.mode-button[aria-pressed="true"] {
  color: #0b0d10;
  background: var(--accent);
}

.mode-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.offline-line {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.offline-line strong {
  color: var(--text);
}

/* the simple answer */
.answer-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 8px 0 !important;
}

.answer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}

.answer-axle {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.answer-name {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.answer-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--accent);
}

.answer-steps {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.before-list {
  margin: 6px 0 10px;
  padding-left: 20px;
}

.before-list li {
  margin: 4px 0;
}

.answer-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: -4px !important;
}

.going-lower {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 4px;
}

.going-lower ul {
  list-style: none;
  padding: 0;
  margin: 6px 0;
  display: grid;
  gap: 8px;
}

.going-lower li {
  font-size: 0.92rem;
}

.field-note {
  border: 1px dashed var(--warn);
  border-radius: 10px;
  padding: 8px 10px;
}

.temp-table {
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 8px 0 4px;
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

.temp-table caption {
  text-align: left;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.temp-table th,
.temp-table td {
  border: 1px solid var(--border);
  padding: 4px 8px;
  white-space: nowrap;
  text-align: center;
}

.temp-table td.set {
  color: var(--accent);
  font-weight: 600;
}

.sources-link {
  font-size: 0.85rem;
  margin: 10px 0 0 !important;
}

.to-advanced {
  font-size: 0.92rem;
  color: var(--text-muted);
}
