/* RNJ Performance — shared finishing layer for the storefront.
   Loaded after each page's own <style>, so it only refines: type, spacing, focus states, header and footer.
   It never hides or moves anything a page script depends on. Checked at 390 / 820 / 1180 / 1440 px. */

:root {
  --rnj-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --rnj-ring: 0 0 0 3px rgba(255, 255, 255, .22);
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body, button, input, select, textarea, .rnj-site-header, .ltc-footer {
  font-family: var(--rnj-font) !important;
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'ss01' on, 'cv11' on; }
h1, h2, h3 { letter-spacing: -.022em; }
h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }
p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--rnj-ring); }
* { scrollbar-color: rgba(255, 255, 255, .22) transparent; }
img { image-rendering: auto; }
a, button { -webkit-tap-highlight-color: transparent; }
button, [role="button"], a { transition-property: color, background-color, border-color, box-shadow, opacity, transform; transition-duration: .18s; }

/* ---------------------------------------------------------------- header */
/* (No backdrop-filter here: it would trap the fixed phone menu inside the header box.) */
.rnj-site-header { background: radial-gradient(900px 500px at 20% -20%, rgba(255, 255, 255, .05), transparent 60%), #0a0a0b !important; }
.rnj-site-header__top { min-height: 84px !important; padding-top: 10px !important; padding-bottom: 8px !important; }
.rnj-site-header__logo img { max-width: 200px !important; max-height: 64px !important; }
.rnj-site-header__search { border-radius: 999px !important; }
.rnj-site-header__search input { height: 50px !important; padding-left: 22px !important; font-size: 15.5px !important; }
.rnj-site-header__search-btn { height: 50px !important; width: 54px !important; min-width: 54px !important; }
.rnj-site-header__icon-link { width: 46px !important; height: 46px !important; }
.rnj-site-header__nav-inner { display: flex !important; justify-content: center; gap: 4px clamp(18px, 3.4vw, 54px) !important; min-height: 48px !important; }
.rnj-site-header__nav-link { min-height: 48px !important; font-size: 15px !important; font-weight: 600 !important; letter-spacing: .01em; color: rgba(255, 255, 255, .74) !important; padding: 0 4px !important; }
.rnj-site-header__nav-link:hover, .rnj-site-header__nav-link[aria-current] { color: #fff !important; }
.rnj-site-header__nav-label::after { left: 0 !important; right: 0 !important; height: 2px !important; bottom: 0 !important; }
.rnj-site-header__nav-link[aria-current] .rnj-site-header__nav-label::after { opacity: 1; transform: scaleX(1); }
@media (max-width: 1100px) {
  .rnj-site-header__nav-inner { flex-wrap: wrap; gap: 0 clamp(14px, 3vw, 34px) !important; padding-top: 2px !important; padding-bottom: 2px !important; }
  .rnj-site-header__nav-link { min-height: 44px !important; }
}
@media (max-width: 680px) {
  .rnj-site-header__top { min-height: 68px !important; padding-top: 10px !important; padding-bottom: 10px !important; gap: 8px !important; }
  .rnj-site-header__logo img { max-width: 118px !important; max-height: 46px !important; }
  .rnj-site-header__search input { height: 44px !important; padding-left: 14px !important; font-size: 16px !important; }
  .rnj-site-header__search-btn { height: 44px !important; width: 44px !important; min-width: 44px !important; }
  .rnj-site-header__icon-link, .rnj-site-header__mobile-toggle { width: 44px !important; height: 44px !important; }
}

/* ---------------------------------------------------------------- footer */
.ltc-footer { background: linear-gradient(180deg, #0b0b0c, #070708) !important; }
.ltc-footer .wrap { padding-top: 44px !important; padding-bottom: 28px !important; }
.ltc-footer a { transition: color .18s; }
.ltc-footer .name { font-size: 17px !important; font-weight: 800 !important; letter-spacing: -.01em !important; }

/* ---------------------------------------------------------------- shared touches */
.rnj-site-header__logo { min-height: 44px; }
/* Info pages: one column below 1180px must be allowed to shrink (long email addresses pushed it past the screen). */
@media (max-width: 1180px) { .two-col, .three-col, .status-grid { grid-template-columns: minmax(0, 1fr) !important; } }
.section-card, .cta-card, .form-card, .info-card { min-width: 0; overflow-wrap: break-word; }
/* Comfortable tap targets for the small text buttons and links. */
.toggle-password { min-height: 36px; }
.auth-links a, .helper-links a { display: inline-flex; align-items: center; min-height: 40px; }
#clearCartBtn, .action-link { min-height: 40px; }
.contact-value { min-width: 0; overflow-wrap: anywhere; }
.contact-value a { display: inline-block; padding: 8px 0; margin: -8px 0; }
@media (max-width: 640px) { .contact-row { flex-direction: column; gap: 2px !important; } }
.breadcrumb a, .breadcrumbs a, nav[aria-label="Breadcrumb"] a { text-underline-offset: 3px; }
table { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Footer pages built from frontend/js/store-policies.js (scripts/build-rnj-policies.js): fact rows, questions and
   answers, the warning box and the date. Phone, iPad and desktop. */
.policy-updated { margin-top: 10px; font-size: .86rem; color: var(--muted2, rgba(255,255,255,.48)); }
.policy-dl { display: grid; gap: 0; margin: 4px 0 6px; border-top: 1px solid var(--border, rgba(255,255,255,.09)); }
.policy-dl > div { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 6px 20px; padding: 13px 0; border-bottom: 1px solid var(--border, rgba(255,255,255,.09)); }
.policy-dl dt { font-weight: 700; color: var(--text, #fff); }
.policy-dl dd { margin: 0; color: var(--muted, rgba(255,255,255,.72)); overflow-wrap: anywhere; }
.policy-faq { display: grid; gap: 8px; margin: 4px 0; }
.policy-faq details { border: 1px solid var(--border, rgba(255,255,255,.09)); border-radius: 12px; background: rgba(255,255,255,.02); }
.policy-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; font-weight: 700; color: var(--text, #fff); }
.policy-faq summary::-webkit-details-marker { display: none; }
.policy-faq summary::after { content: '+'; font-size: 1.25rem; line-height: 1; color: var(--muted, rgba(255,255,255,.72)); flex: none; }
.policy-faq details[open] summary::after { content: '\2212'; }
.policy-faq details p { margin: 0; padding: 0 16px 14px; }
.policy-callout { border: 1px solid rgba(255, 211, 106, .45); background: rgba(255, 211, 106, .07); border-radius: 12px; padding: 14px 16px; }
.policy-callout strong { display: block; margin-bottom: 6px; color: var(--gold, #ffd36a); letter-spacing: .04em; }
.section-body ol li, .section-body ul li { margin: 6px 0; }
.section-body a { color: var(--text, #fff); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .policy-dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
