/* Paid full report: the sheet, the on-screen report view and the print layout of the
   report (#print-report.rf). Colors follow the tool pages' tokens. */

.rf-block { margin: 16px 0 0; }
.rf-block + .card { margin-top: 16px; } /* keeps the gap when the block is hidden */
[data-paid][hidden] { display: none !important; }

/* ---- locked driver rows (in the drivers list) and the one link under them */
.dc-drivers li.dc-locked { display: block; background: var(--surface-raised, #fff); color: var(--text-secondary, #52514e); }
.dc-locked-vis { display: block; }
.dc-locked b { font-weight: 600; }
.dc-lock-ic {
  display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px;
  background: currentColor; opacity: 0.7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='7' rx='2'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 015 0v2' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='7' rx='2'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 015 0v2' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.dc-blur { filter: blur(5px); user-select: none; pointer-events: none; }
.dc-drivers li.dc-unlock-item { display: block; padding: 0; border: 0; background: none; }
.dc-unlock {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 12px;
  border-radius: 10px; background: #eef8f7; color: #0f2f3a; font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.dc-unlock:hover { background: #e3f3f1; }
.dc-arr { font-size: 1.1rem; }

/* ---- the deep-teal Full report card */
@media (max-width: 560px) {
  .dc-drivers li.dc-locked { padding: 6px 10px; }
  .dc-unlock { min-height: 40px; padding: 7px 12px; }
  .rf-card { padding: 14px; }
  .rf-card h2 { font-size: 1.15rem; }
  .rf-card-sub { margin-bottom: 8px; font-size: 0.9rem; }
  .rf-checks { gap: 4px; margin-bottom: 10px; }
  .rf-checks li { font-size: 0.88rem; line-height: 1.3; }
  .rf-card .rf-cta { min-height: 46px; padding: 10px; }
  .rf-card-foot { margin-top: 6px; }
}
.rf-card {
  background: #0f2f3a; color: #fff; border: 1px solid #0f2f3a; border-radius: 14px; padding: 18px;
}
.rf-card h2 { margin: 0 0 4px; font-size: 1.25rem; color: #fff; }
.rf-card h2:focus { outline: none; }
.rf-card h2:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }
.rf-card-sub { margin: 0 0 12px; color: #cfe7e4; font-size: 0.95rem; }
.rf-checks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.rf-checks li { display: flex; gap: 10px; font-size: 0.92rem; line-height: 1.35; }
.rf-checks li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: #5fd0c4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f2f3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.rf-card .rf-cta {
  display: block; width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: #5fd0c4; color: #0f2f3a;
  font-weight: 700; font-size: 1.05rem; padding: 12px; text-align: center; cursor: pointer;
}
.rf-card .rf-cta:hover { background: #74d9ce; }
.rf-card-bal { margin: 8px 0 0; text-align: center; font-size: 0.9rem; color: #cfe7e4; }
.rf-card-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 0.9rem; color: #cfe7e4; }
.rf-card .rf-card-sample { background: none; border: 0; padding: 4px 0; min-height: 32px; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; }
.rf-card button:focus-visible, .dc-unlock:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.dc-unlock:focus-visible { outline-color: #0f2f3a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rf-card { border-color: #5fd0c4; }
  :root:not([data-theme="light"]) .dc-unlock { background: rgba(95, 208, 196, 0.14); color: #5fd0c4; }
  :root:not([data-theme="light"]) .dc-unlock:hover { background: rgba(95, 208, 196, 0.22); }
  :root:not([data-theme="light"]) .dc-unlock:focus-visible { outline-color: #5fd0c4; }
}
:root[data-theme="dark"] .rf-card { border-color: #5fd0c4; }
:root[data-theme="dark"] .dc-unlock { background: rgba(95, 208, 196, 0.14); color: #5fd0c4; }
:root[data-theme="dark"] .dc-unlock:focus-visible { outline-color: #5fd0c4; }

/* ---- the "Full report" sheet (a modal) */
html.rf-lock, html.rf-lock body { overflow: hidden; }
.rf-back {
  position: fixed; inset: 0; z-index: 1000; background: rgba(11, 11, 11, 0.5);
  display: flex; align-items: flex-end; justify-content: center;
}
.rf-sheet {
  background: var(--surface, #fcfcfb); color: var(--text-primary, #0b0b0b); width: 100%; max-width: 480px; max-height: 92vh; overflow: auto;
  border-radius: 16px 16px 0 0; padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
}
@media (min-width: 560px) {
  .rf-back { align-items: center; }
  .rf-sheet { border-radius: 16px; }
}
.rf-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rf-sheet h2 { margin: 0; font-size: 1.15rem; }
.rf-x { font-size: 1.5rem; line-height: 1; padding: 2px 10px; min-height: 40px; min-width: 40px; }
.rf-lead { margin: 8px 0 12px; font-size: 0.95rem; }
.rf-fine-s { margin: 10px 0 0; font-size: 0.8rem; color: var(--text-secondary, #52514e); }
.rf-link { background: none; border: 0; padding: 4px 0; margin: 0 0 12px; color: var(--accent-text, #0f6b66); text-decoration: underline; font: inherit; cursor: pointer; min-height: 40px; }
.rf-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rf-offer, .rf-primary {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 10px;
  border-radius: 12px; border: 1px solid #0f2f3a; background: #0f2f3a; color: #fff; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; cursor: pointer;
}
.rf-primary { width: 100%; font-size: 1rem; }
.rf-code { margin-top: 14px; font-size: 0.9rem; }
.rf-code summary { cursor: pointer; min-height: 32px; color: var(--text-secondary, #52514e); }
.rf-fallback:empty { display: none; }
.rf-fb { margin: 0 0 8px; font-size: 0.85rem; }
.rf-fb summary { cursor: pointer; min-height: 32px; color: var(--text-secondary, #52514e); }
.rf-fb-link { display: block; margin: 4px 0 8px; }
.rf-fb-text { display: block; width: 100%; box-sizing: border-box; font: 0.75rem/1.3 ui-monospace, monospace; margin: 0 0 8px; }
.rf-sheet .rf-msg { min-height: 1.2em; }

/* ---- the report on screen: a full-screen view with the toolbar on top */
#print-report.rf-open {
  display: block; position: fixed; inset: 0; z-index: 900; overflow: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface, #fff); color: var(--text-primary, #111); padding: 0 16px 40px;
}
#print-report.rf-open > * { max-width: 920px; margin-left: auto; margin-right: auto; }

.rf-bar {
  position: sticky; top: 0; z-index: 2; background: var(--surface, #fcfcfb); border-bottom: 1px solid var(--border, rgba(11, 11, 11, 0.1));
  margin: 0 -16px 12px; padding: 10px 16px; max-width: none !important;
}
#print-report.rf-open > .rf-bar { margin: 0 -16px 12px; max-width: none; }
.rf-bar-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.rf-bar-row label { font-size: 0.85rem; color: var(--text-secondary, #52514e); }
.rf-bar .rf-primary { width: auto; font-size: 0.9rem; }
.rf-bar .rf-close { margin-left: auto; }
.rf-bar button { min-height: 40px; }
.rf-bar input[type="text"] { min-width: 0; flex: 1 1 160px; }
.rf-bar .rf-msg { margin: 0; }
.rf-sample-bar .rf-full-only { display: none; }
#print-report.rf-open h1 { font-size: 1.5rem; margin: 8px 0 4px; }
#print-report.rf-open h2 { font-size: 1.1rem; margin: 22px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border, #ddd); }
#print-report.rf-open .rf-sub, #print-report.rf-open .rf-fine { color: var(--text-secondary, #666); font-size: 0.85rem; }
#print-report.rf.rf-open .rf-banner { display: block; margin: 8px 0; padding: 8px 10px; border: 1px dashed #C0392B; color: #C0392B; font-weight: 700; font-size: 0.85rem; }
#print-report.rf-open .rf-hero { background: #0f2f3a; color: #fff; border-radius: 12px; padding: 16px; margin: 12px auto; }
#print-report.rf-open .rf-hero .cap { font-size: 0.8rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.05em; }
#print-report.rf-open .rf-hero .big { font-size: 1.6rem; font-weight: 700; margin: 4px 0; }
#print-report.rf-open .rf-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
#print-report.rf-open .rf-kv { width: 100%; font-size: 0.9rem; border-collapse: collapse; }
#print-report.rf-open .rf-kv td { border-bottom: 1px solid var(--border, #eee); padding: 5px 0; }
#print-report.rf-open .rf-kv td:last-child { text-align: right; font-weight: 600; }
.rf-scroll { overflow-x: auto; margin: 8px auto; }
#print-report.rf-open .rf-table { border-collapse: collapse; font-size: 0.82rem; min-width: 100%; }
#print-report.rf-open .rf-table th { background: #0f2f3a; color: #fff; text-align: left; padding: 6px; font-weight: 600; white-space: nowrap; }
#print-report.rf-open .rf-table td { padding: 6px; border-bottom: 1px solid var(--border, #ddd); vertical-align: top; }
#print-report.rf-open .rf-num th, #print-report.rf-open .rf-num td { text-align: right; font-variant-numeric: tabular-nums; }
#print-report.rf-open .rf-num th:first-child, #print-report.rf-open .rf-num td:first-child { text-align: left; }
#print-report.rf-open ul { padding-left: 20px; font-size: 0.85rem; word-break: break-word; }
.rf-foot { margin-top: 20px; font-size: 0.8rem; color: var(--text-secondary, #666); }
.rf-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }
.rf-row label { font-size: 0.85rem; color: var(--text-secondary, #52514e); }
.rf-row input[type="text"] { min-width: 0; flex: 1 1 160px; }
.rf-loaded { list-style: none; margin: 8px 0 0; padding: 0; font-size: 0.85rem; }
.rf-loaded li { margin: 4px 0; }
.rf-msg { margin: 8px 0 0; font-size: 0.85rem; color: var(--warning-text, #7a5200); min-height: 1.2em; }

#print-report.rf .rf-banner { display: none; }

@media print {
  html.rf-lock, html.rf-lock body { overflow: visible; }
  .rf-back, .rf-bar { display: none !important; }
  #print-report.rf-open { position: static; overflow: visible; padding: 0; background: #fff; }
  #print-report.rf-open > * { max-width: none; }
  .rf-scroll { overflow: visible; }
  #print-report.rf-open h1 { font-size: 22pt; }
  #print-report.rf { font-size: 9.5pt; color: #111; }
  #print-report.rf h1 { font-size: 22pt; margin: 0 0 2mm; letter-spacing: -0.4pt; }
  #print-report.rf h2 {
    font-size: 12.5pt; margin: 6mm 0 2mm; padding-bottom: 1mm; border-bottom: 0.6pt solid #bbb; break-after: avoid;
  }
  .rf-sub { color: #666; font-size: 9pt; margin: 0 0 4mm; }
  .rf-fine { font-size: 8pt; color: #666; }
  #print-report.rf .rf-banner {
    display: block; margin: 0 0 4mm; padding: 2mm 3mm; border: 1pt dashed #C0392B; color: #C0392B;
    font-weight: 700; font-size: 9pt; letter-spacing: .3pt;
  }
  .rf-hero {
    background: #0f2f3a; color: #fff; border-radius: 2mm; padding: 5mm; margin: 3mm 0;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .rf-hero .cap { font-size: 9pt; opacity: .8; text-transform: uppercase; letter-spacing: .6pt; }
  .rf-hero .big { font-size: 28pt; font-weight: 700; line-height: 1; margin: 1.5mm 0; }
  .rf-hero .note { font-size: 10pt; opacity: .9; }
  .rf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; }
  .rf-kv { width: 100%; font-size: 8.5pt; border-collapse: collapse; }
  .rf-kv td { border-bottom: 0.4pt solid #eee; padding: 1mm 0; }
  .rf-kv td:last-child { text-align: right; font-weight: 600; }
  .rf-table { width: 100%; table-layout: auto; border-collapse: collapse; font-size: 8pt; margin: 2mm 0 3mm; }
  .rf-table th {
    background: #0f2f3a; color: #fff; text-align: left; padding: 1.3mm 1.2mm; font-weight: 600;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .rf-table td { padding: 1.2mm; border-bottom: 0.4pt solid #ddd; vertical-align: top; }
  .rf-table tr { break-inside: avoid; }
  .rf-keep { break-inside: avoid; }
  .rf-num th, .rf-num td { text-align: right; font-variant-numeric: tabular-nums; }
  .rf-num th:first-child, .rf-num td:first-child { text-align: left; }
  #print-report.rf ul { margin: 1.5mm 0 3mm; padding-left: 5mm; font-size: 8pt; word-break: break-all; }
  #print-report.rf li { margin-bottom: 1mm; }
  .rf-pb { break-before: page; }
  .rf-foot { margin-top: 6mm; padding-top: 2mm; border-top: 0.6pt solid #ccc; font-size: 8pt; color: #666; }
}
.rf-soon-pill { display: block; width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px dashed #5fd0c4; border-radius: 10px; color: #5fd0c4; font-weight: 700; text-align: center; cursor: default; user-select: none; }
.rf-soon .rf-card-foot { justify-content: center; }
