/* The content-page template (hero, breadcrumb, body), shared by pages/page,
   contact_us and about_us. Moved out of the templates so the browser caches it and the design token guards read them. Values come from the
   tokens in style.css :root. */

/* ── DYNAMIC PAGE HERO ── */
.page-hero { position: relative; height: 380px; margin-top: var(--r2e-space-16); }
.page-hero > .hero-photo { object-position: center 35%; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--bs-secondary-rgb), 0.72) 0%, rgba(var(--bs-secondary-rgb), 0.58) 50%, rgba(var(--bs-secondary-rgb), 0.78) 100%); }
.page-hero-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; }

.page-breadcrumb { justify-content: center; margin-bottom: var(--r2e-space-6); }
.page-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration:none; font-size:var(--r2e-text-sm); }
.page-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.45); font-size:var(--r2e-text-sm); }
.page-breadcrumb .breadcrumb-item+.breadcrumb-item::before { color:rgba(255,255,255,0.35); }
/* ── DYNAMIC CONTENT AREA ── */
.page-content-wrapper { padding: var(--r2e-section-y) 0; background-color: #fff; }

/* ── INVOICE EXAMPLE (Partner Terms annex): reads like a real invoice, capped to a readable width ── */
.invoice-example { max-width: 640px; margin: var(--r2e-space-6) 0; padding: var(--r2e-space-6); border: 1px solid var(--bs-border-color); border-radius: var(--r2e-radius); color: var(--r2e-ink); font-size: var(--r2e-text-sm); line-height: var(--r2e-leading-snug); }
.invoice-example-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--r2e-space-4) var(--r2e-space-6); margin: 0 0 var(--r2e-space-6); }
.invoice-example-meta dt { color: var(--r2e-ink-muted); font-size: var(--r2e-text-xs); font-weight: 600; letter-spacing: var(--r2e-tracking-caps); text-transform: uppercase; }
.invoice-example-meta dd { margin: 0; overflow-wrap: anywhere; }
.invoice-example-table { width: 100%; margin: 0; border-collapse: collapse; }
.invoice-example-table th, .invoice-example-table td { padding: var(--r2e-space-2) 0; vertical-align: top; text-align: left; }
.invoice-example-table tbody tr + tr > * { border-top: 1px solid var(--bs-border-color); }
.invoice-example-table thead th { padding-top: 0; color: var(--r2e-ink-muted); font-size: var(--r2e-text-xs); font-weight: 600; letter-spacing: var(--r2e-tracking-caps); text-transform: uppercase; border-bottom: 1px solid var(--bs-gray-800); }
.invoice-example-table .amount { padding-left: var(--r2e-space-4); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.invoice-example-table .invoice-total > *, .invoice-example-table .invoice-balance > * { border-top: 2px solid var(--bs-gray-800); font-weight: 700; }
.invoice-example-table .invoice-tax > * { color: var(--r2e-ink-secondary); }
.invoice-example-table .invoice-paid strong { display: block; }
.invoice-example-table .invoice-paid small { display: block; margin-top: var(--r2e-space-1); color: var(--r2e-ink-secondary); font-size: var(--r2e-text-xs); line-height: var(--r2e-leading-snug); }
@media (max-width: 575.98px) { .invoice-example { padding: var(--r2e-space-4); } }
