/* smenarnypraha.cz, the banknote look (proposal 050, D8 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. */

:root {
  --sp-brown: #6e3418;
  --sp-brown-dark: #4f2410;
  --sp-ink: #2a1b12;
  --sp-text: #33251c;
  --sp-muted: #6a5a4e;
  --sp-paper: #eef3ec;
  --sp-paper-2: #dfe8dd;
  --sp-white: #ffffff;
  --sp-mint: #cfe3d3;
  --sp-line: #b9c6b7;
  --sp-brass: #a9782a;
  --sp-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sp-sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sp-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

.sp-body {
  background: var(--sp-paper);
  color: var(--sp-text);
  font-family: var(--sp-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 (050 D9). */
.sp-body .text-gray-600, .sp-body .text-gray-500, .sp-body .text-gray-400 { color: var(--sp-muted); }
.sp-body .hover\:text-blue-700:hover { color: var(--sp-brown-dark); }
.sp-body .bg-white { background: var(--sp-white); }
.sp-body .border-gray-200 { border-color: var(--sp-line); }
.sp-body .hover\:border-blue-400:hover { border-color: var(--sp-brown); }
.sp-body .text-xl.font-semibold { font-family: var(--sp-serif); color: var(--sp-ink); font-weight: 700; }

/* Header and nav */
.sp-header {
  background: var(--sp-brown);
  color: var(--sp-white);
}
.sp-logo { color: var(--sp-white); text-decoration: none; }
.sp-logo-word {
  font-family: var(--sp-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  color: var(--sp-white);
}
.sp-logo-word span + span { opacity: 0.75; }
.sp-navrow {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sp-navrow::-webkit-scrollbar { display: none; }
.sp-nav {
  color: var(--sp-white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.sp-nav:hover, .sp-nav:focus-visible { color: var(--sp-white); text-decoration: underline; text-underline-offset: 3px; }

/* The microprint strip of a note, under the header and on top of the footer only */
.sp-hatch {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--sp-brown) 0 1px, transparent 1px 4px);
}

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

/* Hero */
.sp-hero { background: var(--sp-paper-2); }
.sp-kicker {
  font-family: var(--sp-mono);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sp-brown);
}

/* Headings */
.sp-h1, .sp-h2, .sp-h3 {
  font-family: var(--sp-serif);
  color: var(--sp-ink);
  letter-spacing: -0.01em;
}
.sp-h1 { font-weight: 700; line-height: 1.1; font-size: 2rem; }
.sp-h2 { font-weight: 700; line-height: 1.2; font-size: 1.5rem; }
.sp-h3 { font-weight: 600; line-height: 1.25; font-size: 1.15rem; }
@media (min-width: 768px) {
  .sp-h1 { font-size: 2.5rem; }
  .sp-h2 { font-size: 1.75rem; }
}
.sp-hero .sp-h1 { font-size: 1.875rem; }
@media (min-width: 768px) {
  .sp-hero .sp-h1 { font-size: 3rem; }
}

/* The rate board, the domain's own kurzovní lístek (050 "Signature element") */
.sp-listek {
  background: var(--sp-white);
  border: 2px solid var(--sp-brown);
  outline: 1px solid var(--sp-brown);
  outline-offset: -6px;
  border-radius: 3px;
  padding: 8px;
}
.sp-listek table { width: 100%; border-collapse: collapse; }
.sp-listek-head th, .sp-listek-head td {
  background: var(--sp-mint);
  color: var(--sp-ink);
  font-family: var(--sp-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  text-align: left;
}
.sp-listek-head td { text-align: right; text-transform: none; letter-spacing: 0; }
.sp-listek-row th, .sp-listek-row td {
  border-bottom: 1px solid var(--sp-line);
  padding: 8px 10px;
  vertical-align: baseline;
  text-align: left;
  font-weight: 400;
}
.sp-listek-row th { font-family: var(--sp-mono); font-weight: 500; color: var(--sp-ink); white-space: nowrap; }
.sp-listek-row th .sp-note { display: block; font-family: var(--sp-sans); font-weight: 400; white-space: normal; }
.sp-listek-rate {
  text-align: right !important;
  font-family: var(--sp-mono);
  font-weight: 500;
  font-size: 20px;
  color: var(--sp-ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sp-listek-rate small { font-size: 14px; }
.sp-listek-foot { padding: 10px 10px 6px; }

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

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

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

/* Footer */
.sp-footer {
  background: var(--sp-ink);
  color: rgba(238, 243, 236, 0.85);
}
.sp-footer .sp-label { color: var(--sp-paper); }
.sp-footer a:not(.sp-btn) { color: var(--sp-paper); text-decoration: underline; text-underline-offset: 3px; }
.sp-footer a:not(.sp-btn):hover, .sp-footer a:not(.sp-btn):focus-visible { color: var(--sp-mint); }

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