/* ============================================================================
   UUID Generator — tool layer over base.css
   base.css supplies reset, type, forms, buttons, chips, badges, panels, tables,
   header, footer, focus rings. This file adds the accent and only what is
   unique to this tool.

   Accent — lime-green, measured against base.css surfaces (WCAG relative
   luminance):
     dark  #91ef61  13.26:1 on --bg   12.23:1 on --surface   13.72:1 on --bg-sunk
     light #427728   5.16:1 on --bg    5.38:1 on --surface    4.73:1 on --bg-sunk
   Both clear the 4.5:1 text floor on all three surfaces in both themes.
   ========================================================================= */
:root { --accent: #91ef61; --accent-dim: rgba(145, 239, 97, 0.14); }
@media (prefers-color-scheme: light) {
  :root { --accent: #427728; --accent-dim: rgba(66, 119, 40, 0.10); }
}

.brand svg .mark-bg { fill: var(--accent); }
.brand svg .mark-fg { fill: none; stroke: var(--on-accent); }

/* ============================================================================
   The generator panel
   ========================================================================= */

.tool { margin-bottom: 1.5rem; }

.uuid-fields {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  margin-bottom: 1rem;
}

.uuid-fields select,
.uuid-fields input[type="number"] {
  background-color: var(--surface);
}

.note { margin: 0.75rem 0; }
.note-hidden-spacer { min-height: 1px; }

#clamp-note:not([hidden]) {
  color: var(--warn);
  border-color: var(--warn);
}

.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }

#uuid-output {
  min-height: 12rem;
  resize: vertical;
  background: var(--bg-sunk);
  line-height: 1.6;
  font-size: 0.875rem;
}

.output-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#count-readout {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

#copy-status {
  font-size: 0.8125rem;
  color: var(--ok);
  min-height: 1.4em;
}

/* ============================================================================
   Inspect-a-UUID mini panel
   ========================================================================= */

.inspect-tool { margin-bottom: 2.5rem; }
.inspect-tool h2 { margin-top: 0; }

#inspect-input { max-width: 32rem; }

#inspect-result {
  margin-top: 0.75rem;
  min-height: 1.4em;
}

/* ============================================================================
   Article furniture shared with other tools
   ========================================================================= */

.section { max-width: 74ch; }
.section table { max-width: none; }

.formula,
.callout {
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1.2em;
}
.formula {
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.7;
  white-space: pre;
}
.callout {
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9375rem;
  color: var(--text-dim);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }

.example {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
  margin: 0 0 1rem;
}
.example h3 { margin-top: 0; }
.example p:last-child { margin-bottom: 0; }

.pagelinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.pagelinks a {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
}
.pagelinks a:hover { border-color: var(--accent); }
.pagelinks strong { display: block; color: var(--accent); margin-bottom: 0.15rem; }
.pagelinks span   { display: block; color: var(--text-dim); font-size: 0.875rem; }

.tag-pass { color: var(--ok); font-weight: 600; }
.tag-fail { color: var(--err); font-weight: 600; }

.noscript {
  background: var(--err-bg);
  border: 1px solid var(--err);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--err);
  font-size: 0.9375rem;
}
