/* site.css — shared design for Safety ID Pro pages (homepage, sign pages, category pages, articles).
   The catalogue (app.js) and the tools carry their own styles. */
:root {
  --ink: #0D1117; --navy: #2B3544; --navy-deep: #222A36; --slate: #3B4754; --muted: #5E6978;
  --line: #DFE3EA; --line-soft: #ECEFF3; --ground: #F4F5F7; --paper: #FFFFFF; --surface: #F9FAFB;
  --blue: #2563EB; --blue-hover: #1D4FD7; --blue-wash: #EAF1FE;
  --sig-green: #1F7A52; --sig-red: #CF3A3A; --sig-blue: #2D6CB3; --sig-amber: #E8A23A;
  --on-navy-soft: rgba(255,255,255,.68); --on-navy-line: rgba(255,255,255,.16);
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 8px;
  --wrap: 1400px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.code { font-family: var(--mono); font-size: .86em; font-weight: 600; letter-spacing: .01em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }

.eyebrow { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 7px; font-weight: 700; font-size: 14px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-wash); }
.btn-ghost-dark { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost-dark:hover { border-color: #fff; }
.btn-line { background: var(--paper); color: var(--slate); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.crumbs { font-size: 13px; color: var(--muted); padding-block: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Sign family marks: the ISO 3864 shape of each family. */
.mark { width: 14px; height: 14px; flex: none; display: inline-block; background: var(--slate); border-radius: 2px; }
.mark.emergency { background: var(--sig-green); border-radius: 2px; }
.mark.fire { background: var(--sig-red); border-radius: 2px; }
.mark.mandatory { background: var(--sig-blue); border-radius: 50%; }
.mark.prohibition { background: transparent; border: 3px solid var(--sig-red); border-radius: 50%; position: relative; }
.mark.prohibition::after { content: ""; position: absolute; inset: 50% -1px auto; height: 3px; background: var(--sig-red); transform: translateY(-50%) rotate(-45deg); }
.mark.warning { background: transparent; border-radius: 0; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--sig-amber); }
.mark.fire_control { background: var(--sig-red); border-radius: 2px; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--sig-red); }
.mark.common { background: var(--navy); border-radius: 2px; }

.sign-img { background: #fff; display: grid; place-items: center; }
.sign-img img { width: 100%; height: 100%; object-fit: contain; }

.section { padding-block: 64px; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; margin-top: 6px; }
.section-head p { color: var(--muted); max-width: 58ch; margin-top: 6px; }
.more { font-weight: 700; font-size: 14px; color: var(--blue); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* Sign tiles (category pages, related signs) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tile { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; text-decoration: none; transition: border-color .15s, box-shadow .15s; align-content: start; }
.tile:hover { border-color: var(--line); box-shadow: 0 6px 16px rgba(13,17,23,.06); }
.tile .sign-img { aspect-ratio: 1; padding: 8px; }
.tile-code { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.tile h3 { font-family: var(--body); font-size: 14px; font-weight: 700; line-height: 1.35; }

.fam-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fam-pill { display: inline-flex; align-items: center; gap: 9px; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--slate); text-decoration: none; }
.fam-pill:hover { border-color: var(--slate); }
.fam-pill.on { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.fam-pill .n { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fam-pill .mark { width: 12px; height: 12px; }
.fam-pill .mark.warning { border-left-width: 7px; border-right-width: 7px; border-bottom-width: 12px; }
/* Phones: one row of families that scrolls sideways, instead of six wrapped rows. */
@media (max-width: 640px) {
  .fam-bar { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .fam-bar::-webkit-scrollbar { display: none; }
  .fam-pill { flex: none; }
}

.cta-band { background: var(--navy); color: #fff; border-radius: var(--r); padding: 32px 36px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { font-size: 24px; font-weight: 800; }
.cta-band p { color: var(--on-navy-soft); margin-top: 4px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.qty button { border: 0; background: transparent; width: 34px; height: 40px; cursor: pointer; font-weight: 700; color: var(--slate); }
.qty input { width: 48px; border: 0; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
