/* bitcoinpenezenka.cz, the steel backup plate sealed with wax (proposal 053, D9 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 {
  --bp-wine: #5a1730;
  --bp-wine-dark: #3f0f21;
  --bp-ink: #1d1a1f;
  --bp-text: #2b272e;
  --bp-muted: #5f5863;
  --bp-steel: #eceef1;
  --bp-steel-2: #dde1e6;
  --bp-white: #ffffff;
  --bp-blush: #f3dfe4;
  --bp-rose: #f0c9d3;
  --bp-up: #1c6b3c;
  --bp-down: #a3231f;
  --bp-line: #b8bec7;
  --bp-display: 'Red Hat Display', 'Segoe UI', Arial, sans-serif;
  --bp-sans: 'Red Hat Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bp-mono: 'Red Hat Mono', ui-monospace, Menlo, Consolas, monospace;
}

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

/* The one shared partial with hard-coded colours, partials/data-attribution.twig on
   the home page (053 "Design identity"). */
.bp-body .text-gray-600 { color: var(--bp-muted); }
.bp-body .hover\:text-gray-900:hover { color: var(--bp-ink); }

/* Header and nav */
.bp-header {
  background: var(--bp-wine);
  color: var(--bp-white);
}
.bp-logo { color: var(--bp-white); text-decoration: none; }
.bp-logo-word {
  font-family: var(--bp-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.015em;
  color: var(--bp-white);
}
.bp-logo-word span + span { color: var(--bp-rose); }
.bp-navrow {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.bp-navrow::-webkit-scrollbar { display: none; }
.bp-nav {
  color: var(--bp-white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.bp-nav:hover, .bp-nav:focus-visible { color: var(--bp-white); text-decoration: underline; text-underline-offset: 3px; }

/* The price strip under the header */
.bp-kurz {
  background: var(--bp-steel-2);
  border-bottom: 1px solid var(--bp-line);
  font-size: 14px;
  color: var(--bp-text);
}
.bp-kurz .bp-note { font-size: 14px; }
.bp-kurz-up { color: var(--bp-up); }
.bp-kurz-down { color: var(--bp-down); }

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

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

/* Headings */
.bp-h1, .bp-h2, .bp-h3 {
  font-family: var(--bp-display);
  color: var(--bp-ink);
  letter-spacing: -0.015em;
}
.bp-h1 { font-weight: 800; line-height: 1.1; font-size: 2rem; }
.bp-h2 { font-weight: 700; line-height: 1.2; font-size: 1.5rem; }
.bp-h3 { font-weight: 700; line-height: 1.25; font-size: 1.15rem; }
@media (min-width: 768px) {
  .bp-h1 { font-size: 2.5rem; }
  .bp-h2 { font-size: 1.75rem; }
}

/* The blank backup card, the signature element (053 "Signature element") */
.bp-karta {
  background: var(--bp-white);
  border: 2px solid var(--bp-wine);
  border-radius: 4px;
  padding: 20px;
}
.bp-karta-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--bp-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bp-ink);
  margin-bottom: 14px;
}
.bp-karta-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .bp-karta-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bp-karta-slot {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  font-family: var(--bp-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--bp-muted);
  font-variant-numeric: tabular-nums;
}
.bp-karta-slot span {
  flex: 1;
  height: 1.6em;
  border-bottom: 1px dashed var(--bp-line);
}
.bp-karta .bp-note { margin-top: 14px; }

/* Cards, the rivets, the warning box, tags */
.bp-card {
  background: var(--bp-white);
  border: 1px solid var(--bp-line);
  border-radius: 4px;
  padding: 20px;
}
a.bp-card { display: block; color: var(--bp-text); text-decoration: none; }
a.bp-card:hover, a.bp-card:focus-visible { border-color: var(--bp-wine); }
.bp-nyty {
  background-color: var(--bp-white);
  background-image:
    radial-gradient(circle, var(--bp-line) 0 2px, transparent 2.5px),
    radial-gradient(circle, var(--bp-line) 0 2px, transparent 2.5px),
    radial-gradient(circle, var(--bp-line) 0 2px, transparent 2.5px),
    radial-gradient(circle, var(--bp-line) 0 2px, transparent 2.5px);
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: left 8px top 8px, right 8px top 8px, left 8px bottom 8px, right 8px bottom 8px;
  padding: 28px;
}
.bp-pozor {
  background: var(--bp-blush);
  border-left: 4px solid var(--bp-wine);
  border-radius: 4px;
  padding: 20px;
  color: var(--bp-text);
}
.bp-pozor .bp-note { color: var(--bp-muted); }
.bp-mono {
  font-family: var(--bp-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.bp-tag {
  display: inline-block;
  font-family: var(--bp-mono);
  font-weight: 500;
  font-size: 13px;
  border: 1px solid var(--bp-wine);
  background: var(--bp-white);
  color: var(--bp-ink);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Tables */
.bp-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bp-table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  background: var(--bp-white);
  font-variant-numeric: tabular-nums;
}
.bp-table--narrow { min-width: 30rem; }
.bp-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 8px;
  color: var(--bp-muted);
  font-size: 15px;
}
.bp-table thead th {
  background: var(--bp-steel-2);
  font-family: var(--bp-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--bp-ink);
}
.bp-table tbody th { text-align: left; font-weight: 600; color: var(--bp-ink); }
.bp-table th, .bp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bp-line);
  vertical-align: top;
}
.bp-table td.bp-num {
  white-space: nowrap;
  font-family: var(--bp-mono);
  font-weight: 500;
  text-align: right;
}
.bp-table td.bp-num .bp-note {
  display: block;
  white-space: normal;
  font-family: var(--bp-sans);
  font-weight: 400;
  text-align: right;
  font-size: 13px;
  max-width: 11rem;
  margin-left: auto;
}

/* Notes, links, the disclosure */
.bp-note { color: var(--bp-muted); font-size: 15px; }
.bp-label {
  font-family: var(--bp-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bp-link {
  color: var(--bp-wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bp-link:hover, .bp-link:focus-visible { color: var(--bp-wine-dark); }
.bp-placeny { color: var(--bp-muted); font-size: 14px; }
.bp-prose p + p { margin-top: 0.75rem; }
.bp-list { list-style: disc; padding-left: 1.25rem; }
.bp-list li + li { margin-top: 0.4rem; }
.bp-steps { list-style: decimal; padding-left: 1.5rem; }
.bp-steps li + li { margin-top: 0.6rem; }
.bp-dl dt {
  font-family: var(--bp-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bp-muted);
  margin-top: 10px;
}
.bp-dl dd { margin: 2px 0 0; }

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

/* A figure inside running text, a touch smaller so the mono does not shout */
p .bp-mono, li .bp-mono, td .bp-mono, dd .bp-mono { font-size: 0.92em; }

/* A date or a figure inside a table cell never breaks */
.bp-table td .bp-mono { white-space: nowrap; }
.bp-table thead th.bp-num { text-align: right; }
