/* Vexil — Flag Designer. Copyright © 2026 S.C. FRATIC S.R.L. All rights reserved. Proprietary — no copying, redistribution or reuse without written permission. */
/* Written by scripts/build-flag-pages.js. Edit the script, not this file. */
:root {
  --bg: #EDEFF2; --panel: #FBFBFC; --ink: #20262C; --muted: #67717C;
  --line: #D8DCE1; --accent: #9A7B1F; --accent-ink: #FFFFFF;
  --display: "Avenir Next Condensed", "HelveticaNeue-CondensedBold", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #13171C; --panel: #1B2127; --ink: #E8EBEE; --muted: #98A3AE; --line: #2D353E; --accent: #D2A73F; --accent-ink: #171204; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--body); }
header { padding: 10px 18px; background: var(--panel); border-bottom: 1px solid var(--line); }
header a { color: inherit; text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
header svg { align-self: center; }
header .name { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
header .tag { font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
main { max-width: 720px; margin: 0 auto; padding: 28px 24px 56px; }
h1 { font-family: var(--display); font-size: 30px; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; }
h2 { font-size: 17px; margin: 30px 0 8px; }
p, li { margin: 0 0 10px; }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: 13px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.lede { margin-bottom: 18px; }
.note { color: var(--muted); font-size: 13px; }
.flag { display: block; width: 100%; max-width: 480px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.btn { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 600; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.colors, .grid { list-style: none; padding: 0; margin: 0; }
.colors li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.swatch { width: 22px; height: 22px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.rgb, .use { color: var(--muted); font-size: 13px; }
.layers { padding-left: 22px; }
.layers li { margin-bottom: 4px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.grid li { margin: 0; }
.grid a { display: flex; flex-direction: column; height: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.grid a:hover { border-color: var(--accent); color: var(--accent); }
/* Flags differ in ratio: each sits in the middle of its card, the name on the bottom line. */
.grid img { display: block; width: 100%; height: auto; margin: auto 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.grid span { padding-top: 6px; }
footer { color: var(--muted); font-size: 12.5px; text-align: center; padding: 0 24px 32px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
footer a { color: var(--muted); }
.bar { display: none; }
@media (max-width: 734px) {
  /* The action stays in reach at the bottom edge; nothing is fixed at the top (CONVENTIONS §10). */
  .bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
  .bar .btn { display: block; text-align: center; }
  body.has-bar footer { padding-bottom: 96px; }
  main { padding: 22px 16px 48px; }
  h1 { font-size: 26px; }
}
