/* zlatnictvipraha.cz, a jeweller's tray in Czech garnet (proposal 066, D10 and "Design
   identity"). Hand-written, not part of the Tailwind build. Every colour this domain
   prints lives here as a custom property. Tailwind utilities in the templates carry
   spacing, grid and type scale only. Unlayered, so it beats Tailwind's utility layer.
   The gold is a 2 px line, the cartouche rim and the logo stone, never text or a ground. */

:root {
  --zl-garnet: #5f1233;
  --zl-garnet-dark: #420c24;
  --zl-ink: #2a171b;
  --zl-text: #36272b;
  --zl-muted: #6d5b5f;
  --zl-ivory: #f8f3ea;
  --zl-ivory-2: #eee5d6;
  --zl-white: #ffffff;
  --zl-blush: #f3e1e0;
  --zl-line: #d9cdbb;
  --zl-gold: #d8aa2c;
  --zl-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --zl-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --zl-mono: 'DM Mono', ui-monospace, Menlo, Consolas, monospace;
}

.zl-body {
  background: var(--zl-ivory);
  color: var(--zl-text);
  font-family: var(--zl-sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* The four inherited directory partials (areas, breadcrumbs, pagination) keep their
   Tailwind colours, recoloured here (066 D12). */
.zl-body .text-gray-600, .zl-body .text-gray-500, .zl-body .text-gray-400 { color: var(--zl-muted); }
.zl-body .hover\:text-blue-700:hover { color: var(--zl-garnet-dark); }
.zl-body .bg-white { background: var(--zl-white); }
.zl-body .border-gray-200 { border-color: var(--zl-line); }
.zl-body .hover\:border-blue-400:hover { border-color: var(--zl-garnet); }
.zl-body .text-gray-900, .zl-body .text-gray-700 { color: var(--zl-ink); }
.zl-body h1.text-3xl { font-family: var(--zl-serif); }
.zl-body .text-xl.font-semibold { font-family: var(--zl-serif); color: var(--zl-ink); font-weight: 700; }

/* Header and nav */
.zl-header {
  background: var(--zl-garnet);
  color: var(--zl-white);
}
.zl-logo { color: var(--zl-white); text-decoration: none; }
.zl-logo-word {
  font-family: var(--zl-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  color: var(--zl-white);
}
.zl-logo-word span + span { opacity: 0.75; }
/* The nav wraps onto a second row on a phone, so every link is visible without
   scrolling the header sideways. */
.zl-navrow { white-space: normal; }
.zl-nav {
  color: var(--zl-white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.zl-nav:hover, .zl-nav:focus-visible { color: var(--zl-white); text-decoration: underline; text-underline-offset: 3px; }

/* The gold line under the header and above the footer, the companion of the cartouche */
.zl-rule {
  height: 2px;
  background: var(--zl-gold);
}

/* Buttons */
.zl-btn {
  display: inline-block;
  background: var(--zl-garnet);
  color: var(--zl-white);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  line-height: 1.3;
}
.zl-btn:hover, .zl-btn:focus-visible { background: var(--zl-garnet-dark); color: var(--zl-white); }

/* Hero */
.zl-hero { background: var(--zl-ivory-2); }
.zl-kicker {
  font-family: var(--zl-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zl-garnet);
}

/* Headings */
.zl-h1, .zl-h2, .zl-h3 {
  font-family: var(--zl-serif);
  color: var(--zl-ink);
  letter-spacing: 0;
}
.zl-h1 { font-weight: 700; line-height: 1.05; font-size: 2.25rem; }
.zl-h2 { font-weight: 700; line-height: 1.15; font-size: 30px; }
.zl-h3 { font-weight: 600; line-height: 1.2; font-size: 24px; }
@media (min-width: 768px) {
  .zl-h1 { font-size: 3.75rem; }
}

/* The cartouche, a value card cut to the outline the decree gives the 585 mark,
   "protáhlý nepravidelný šestiúhelník" (vyhláška č. 363/2003 Sb. § 1 odst. 5). Two
   nested elements, because clip-path cuts a border: the gold outer is the 2 px rim. */
.zl-punc {
  background: var(--zl-gold);
  clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%);
  padding: 2px;
  min-width: 0;
}
.zl-punc-in {
  background: var(--zl-garnet);
  clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%);
  color: var(--zl-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10%;
  gap: 2px;
}
.zl-punc-fineness { font-family: var(--zl-mono); font-weight: 500; font-size: 28px; line-height: 1.1; }
.zl-punc-label {
  font-family: var(--zl-mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}
.zl-punc-value {
  font-family: var(--zl-mono);
  font-weight: 500;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .zl-punc-value { font-size: 18px; }
  .zl-punc-label { font-size: 10px; letter-spacing: 0.04em; }
}

/* Cards, boxes, tags */
.zl-card {
  background: var(--zl-white);
  border: 1px solid var(--zl-line);
  border-radius: 2px;
  padding: 20px;
}
a.zl-card { display: block; color: var(--zl-text); text-decoration: none; }
a.zl-card:hover, a.zl-card:focus-visible { border-color: var(--zl-garnet); }
.zl-box {
  background: var(--zl-blush);
  border-left: 4px solid var(--zl-garnet);
  border-radius: 2px;
  padding: 20px;
  color: var(--zl-text);
}
.zl-box .zl-note { color: var(--zl-muted); }
.zl-mono {
  font-family: var(--zl-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.zl-tag {
  display: inline-block;
  font-family: var(--zl-mono);
  font-weight: 500;
  font-size: 13px;
  border: 1px solid var(--zl-garnet);
  background: var(--zl-white);
  color: var(--zl-ink);
  padding: 2px 8px;
  border-radius: 2px;
}

/* Tables */
.zl-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.zl-table {
  width: 100%;
  min-width: 20rem;
  border-collapse: collapse;
  background: var(--zl-white);
  font-variant-numeric: tabular-nums;
}
.zl-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 8px;
  color: var(--zl-muted);
  font-size: 15px;
}
.zl-table th {
  background: var(--zl-ivory-2);
  font-family: var(--zl-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--zl-ink);
}
.zl-table th, .zl-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--zl-line);
  vertical-align: top;
}
.zl-table td.zl-num {
  white-space: nowrap;
  font-family: var(--zl-mono);
  font-weight: 500;
  text-align: right;
}

/* Notes and links on paper */
.zl-note { color: var(--zl-muted); font-size: 15px; }
.zl-label {
  font-family: var(--zl-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.zl-link {
  color: var(--zl-garnet);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.zl-link:hover, .zl-link:focus-visible { color: var(--zl-garnet-dark); }
.zl-prose p + p { margin-top: 0.75rem; }
.zl-list { list-style: disc; padding-left: 1.25rem; }
.zl-list li + li { margin-top: 0.4rem; }
.zl-list.zl-ol { list-style: decimal; }

/* Footer */
.zl-footer {
  background: var(--zl-ink);
  color: rgba(248, 243, 234, 0.85);
}
.zl-footer .zl-label { color: var(--zl-ivory); }
.zl-footer a:not(.zl-btn) { color: var(--zl-ivory); text-decoration: underline; text-underline-offset: 3px; }
.zl-footer a:not(.zl-btn):hover, .zl-footer a:not(.zl-btn):focus-visible { color: var(--zl-blush); }

/* A paragraph number inside running text, a touch smaller so the mono does not shout */
p .zl-mono, li .zl-mono, td .zl-mono { font-size: 0.9em; }

/* The gold chart on the value guide (066 Part 3), the nine variables pricechart.js
   reads. A line view draws neither up nor down, they are set so no default green or red
   can appear. */
.zl-body .data-chart[data-pricechart] {
  --pc-line: var(--zl-garnet);
  --pc-grid: var(--zl-line);
  --pc-text: var(--zl-muted);
  --pc-cross: var(--zl-ink);
  --pc-cross-bg: var(--zl-ink);
  --pc-last-bg: var(--zl-blush);
  --pc-last-text: var(--zl-ink);
  --pc-up: var(--zl-garnet);
  --pc-down: var(--zl-ink);
}
