/* =========================================================
   R9 — design tokens
   Palette and table conventions matched to the reference site
   (template.css: link #4f7ba4 / hover #0B2A4C / rule #b9cadb /
   zebra #eaeaea / body ink #2c2c2c, Arial-based, compact sizes).
   ========================================================= */
:root {
  --red: #e2201f;
  --red-dark: #b81616;
  --charcoal: #3a3a3a;
  --ink: #2c2c2c;
  --muted: #666666;
  --muted-2: #8a8a8a;

  --link: #4f7ba4;
  --link-hover: #0b2a4c;
  --rule: #b9cadb;
  --border: #d6d6d6;
  --border-soft: #e4e4e4;
  --zebra: #eaeaea;
  --head-bg: #e6ecf1;
  --table-head-bg: #f4f4f4;
  --peach: #fce7da;
  --peach-border: #f3d3c0;
  --green-bar: #dceec9;
  --green-bar-border: #c1dba3;
  --paper: #ffffff;

  --up: #c0392b;
  --down: #1e7a44;
  --flat: #8a8a8a;
  /* Price-movement colors, kept separate from --up/--down above (those
     are also reused for the pass/fail pill styles further down and
     happen to hold the opposite colors) so a price going up is always
     shown in green and a price going down is always shown in red. */
  --price-up: #1e7a44;
  --price-down: #c0392b;

  --font-body: Arial, Helvetica, "Segoe UI", sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }

/* =========================================================
   Top tagline bar (above the header/navbar)
   ========================================================= */
.top-tagline-bar {
  background: white;
  border-bottom: 1px solid var(--border-soft);
}
.top-tagline-bar .container {
  padding-top: 6px;
  padding-bottom: 6px;
}
.top-tagline {
  margin: 0;
  font-weight: 700;
  color: var(--red);
  font-size: 12.5px;
  line-height: 1.35;
  text-align: center;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  background: var(--paper);
  border-bottom: 4px solid var(--rule);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-weight: 700;
  font-size: 20px;
  color: var(--charcoal);
}
.brand__name span { color: var(--red); }
.brand__tagline { font-size: 10.5px; color: var(--muted-2); }

.main-nav { display: flex; align-items: center; }
.main-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--link-hover);
  padding: 6px 11px;
  border-right: 1px solid var(--border-soft);
}
.main-nav a:last-child { border-right: none; }
.main-nav a:hover { color: var(--red); text-decoration: none; }
.main-nav a.is-active { color: var(--red); font-weight: 700; }
.main-nav a.is-disabled { color: var(--muted-2); cursor: default; }
.main-nav a.is-disabled:hover { color: var(--muted-2); }

.nav-divider { width: 1px; height: 16px; background: var(--border); margin: 0 4px; }
.nav-greeting { font-size: 13px; color: var(--charcoal); padding: 6px 10px; white-space: nowrap; }
.nav-logout-form { display: inline-flex; border-right: none; }
.nav-link-btn {
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--link-hover);
  background: none; border: 0; padding: 6px 11px; cursor: pointer;
}
.nav-link-btn:hover { color: var(--red); }
.nav-register-btn {
  background: var(--red); color: #fff !important; border-radius: var(--radius-sm);
  padding: 7px 14px !important; margin-left: 4px; font-weight: 700 !important;
  border-right: none !important;
}
.nav-register-btn:hover { background: var(--red-dark); color: #fff !important; text-decoration: none !important; }
.nav-register-btn[data-active="1"] { background: var(--red-dark); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--head-bg);
  color: var(--link-hover);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--rule); border-color: var(--rule); }

/* =========================================================
   Disclaimer bars
   ========================================================= */
.disclaimer-bar {
  background: var(--peach);
  border-bottom: 1px solid var(--peach-border);
  padding: 8px 0;
}
.disclaimer-bar p {
  margin: 0; font-size: 11.5px; color: #6b4a34; line-height: 1.5; text-align: left;
}
.disclaimer-bar.is-footer {
  background: var(--green-bar);
  border-top: 1px solid var(--green-bar-border);
  border-bottom: 0;
}
.disclaimer-bar.is-footer p { color: #33481f; }

/* =========================================================
   Page toolbar
   ========================================================= */
.page-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 18px 0 14px;
}
.page-toolbar h1 {
  font-size: 17px; margin: 0; color: var(--link-hover);
  font-weight: 700;
}
.page-toolbar .as-of { font-size: 12px; color: var(--muted); font-weight: 400; }
.page-toolbar .as-of b { color: var(--ink); }
.badge-stale {
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  color: #92640a; background: #fef3d8; border: 1px solid #f6dfa0;
  padding: 2px 7px; border-radius: 3px; margin-left: 6px;
}

.filter-box {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 10px; background: var(--paper);
  min-width: 220px;
}
.filter-box svg { color: var(--muted-2); flex-shrink: 0; }
.filter-box input {
  border: 0; outline: 0; background: transparent; font-size: 13px;
  font-family: var(--font-body); flex: 1; color: var(--ink);
}
.filter-box input::placeholder { color: var(--muted-2); }

/* =========================================================
   Main layout: table + sidebar
   ========================================================= */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  padding-bottom: 40px;
  align-items: start;
}

/* =========================================================
   Price table — plain, KKBang-style: grey header, thin
   borders, light zebra, no pills/badges. Kept as a real
   <table> at every breakpoint; wrapped in a horizontally
   scrolling strip so it never collapses into stacked cards.
   ========================================================= */
.table-scroll {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.price-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.price-table th, .price-table td {
  border: 1px solid var(--border-soft);
  padding: 7px 12px;
  font-size: 12.5px;
  white-space: nowrap;
}
.price-table thead th {
  background: var(--table-head-bg);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}
.price-table thead tr.sub-row th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: 700;
}
.price-table thead th.num, .price-table thead th.center { text-align: center; }

.price-table td.product {
  font-weight: 700; color: var(--ink);
  vertical-align: middle;
  position: sticky; left: 0;
  background: inherit;
  box-shadow: 1px 0 0 var(--border-soft);
}
.price-table td.port { color: var(--charcoal); }
.price-table td.num { text-align: right; }
.price-table td.price { font-weight: 700; }
.price-table td.location { color: var(--charcoal); }

.price-table tbody tr.row-even { background: var(--peach); }
.price-table tbody tr.row-odd { background: var(--paper); }
.price-table tbody tr:hover { background: #f2f6fa; }
.price-table tbody tr:hover td.product { background: #f2f6fa; }

.price-table td.price-gate { text-align: center; }
.price-table td.price-gate a {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--link-hover); padding: 4px 12px;
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--paper);
}
.price-table td.price-gate a:hover { color: var(--red); border-color: var(--red); text-decoration: none; }

.price-table th.center { text-align: center; }
.price-table td.view-details-cell { text-align: center; }
.view-details-link {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  color: var(--link-hover); padding: 4px 12px;
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--head-bg);
}
.view-details-link:hover { color: var(--paper); background: var(--link-hover); border-color: var(--link-hover); text-decoration: none; }
.view-details-link.is-locked { color: var(--muted); background: var(--paper); }
.view-details-link.is-locked:hover { color: var(--red); border-color: var(--red); background: var(--paper); }

.change-up { color: var(--price-up); font-weight: 700; white-space: nowrap; }
.change-down { color: var(--price-down); font-weight: 700; white-space: nowrap; }
.change-nc { color: var(--flat); }

.muted-cell { color: var(--muted-2); }

.no-results {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.no-results.is-visible { display: block; }
.no-results strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }

/* =========================================================
   Sidebar — plain bordered info boxes (Address / Subscribe),
   matching the reference site's right column treatment.
   ========================================================= */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.info-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--paper);
}
.info-box h3 {
  margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--link-hover);
  padding-bottom: 6px; border-bottom: 2px solid var(--rule);
}
.info-box p { margin: 0; font-size: 12.5px; line-height: 1.9; color: var(--ink); text-align: left; }
.info-box p a { color: var(--ink); }
.info-box p a:hover { color: var(--red); }

.subscribe-box .field { margin-bottom: 10px; }
.subscribe-box label {
  display: block; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 3px;
}
.subscribe-box input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 8px; font-size: 12.5px; font-family: var(--font-body);
  color: var(--ink);
}
.subscribe-box button {
  margin-top: 4px;
  background: #e9e9e9; color: var(--ink); border: 1px solid var(--border);
  font-weight: 700; font-size: 12.5px;
  padding: 7px 16px; border-radius: var(--radius-sm);
  cursor: pointer;
}
.subscribe-box button:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* =========================================================
   Mobile ticker — fixed-height, auto-scrolling price list.
   Hidden on desktop/tablet; shown in place of the plain table
   below the mobile breakpoint so every column stays visible
   without any horizontal scrolling.
   ========================================================= */
.mobile-ticker {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mobile-ticker__head, .mobile-ticker__row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.62fr 0.62fr 0.95fr;
  gap: 4px;
  align-items: center;
}
.mobile-ticker__head {
  background: var(--table-head-bg);
  color: var(--ink);
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
}
.mobile-ticker__head .num { text-align: right; }
.mobile-ticker__viewport {
  height: 340px;
  overflow: hidden;
  position: relative;
  background: var(--paper);
}
.mobile-ticker__viewport::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.95));
  pointer-events: none;
}
.mobile-ticker__track {
  animation: mobile-ticker-scroll 90s linear infinite;
}
.mobile-ticker__track.is-paused { animation-play-state: paused; }
@keyframes mobile-ticker-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.mobile-ticker__row {
  padding: 6px 10px;
  font-size: 11px;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-ticker__row:nth-child(even) { background: var(--peach); }
.mobile-ticker__row .num { text-align: right; white-space: nowrap; }
.mt-product { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-location { color: var(--charcoal); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-price { font-weight: 700; }
.mt-week, .mt-month { color: var(--muted); }
.mt-price-gate { grid-column: span 3; text-align: center; }
.mt-price-gate a { font-size: 11.5px; font-weight: 700; }

.mobile-ticker--with-details .mobile-ticker__head,
.mobile-ticker--with-details .mobile-ticker__row {
  /* Spent/Distilled tickers: product, today's price, location, details —
     the 7-day/month-back columns were dropped from these two pages, so
     this is 4 columns rather than the 6 used when they were present. */
  grid-template-columns: 1.5fr 0.85fr 1.05fr 0.7fr;
}
.mobile-ticker--with-details .mt-price-gate { grid-column: span 1; }
.mt-details { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .mobile-ticker__track { animation: none; }
}

/* =========================================================
   Empty state
   ========================================================= */
.empty-state { padding: 70px 0; text-align: center; }
.empty-state h2 { font-size: 19px; color: var(--link-hover); }
.empty-state p { color: var(--muted); max-width: 420px; margin: 10px auto 0; }
.empty-state a { font-weight: 700; }

/* =========================================================
   Solvent detail card (View Details page)
   ========================================================= */
.detail-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; margin: 22px 0 4px; }
.detail-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--paper); margin: 14px 0 40px; overflow: hidden;
}
.detail-card__head {
  background: var(--head-bg); padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px;
}
.detail-card__head h1 { margin: 0; font-size: 20px; color: var(--link-hover); }
.detail-card__head .as-of { font-size: 12px; color: var(--muted); }
.detail-card__body { display: flex; gap: 26px; padding: 22px; flex-wrap: wrap; }
.detail-card__photo { flex: 0 0 220px; }
.detail-card__photo img {
  width: 220px; height: 220px; object-fit: cover;
  border: 1px solid var(--border-soft); border-radius: var(--radius-md);
}
.detail-card__photo .no-photo {
  width: 220px; height: 220px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border); border-radius: var(--radius-md);
  color: var(--muted-2); font-size: 12px; text-align: center; padding: 10px;
}
.detail-grid {
  flex: 1 1 320px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px 18px;
}
.detail-item dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted-2); margin: 0 0 3px; }
.detail-item dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.detail-item dd .pill {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .02em;
}
.pill--pass { background: var(--green-bar); color: var(--down); border: 1px solid var(--green-bar-border); }
.pill--fail { background: var(--peach); color: var(--up); border: 1px solid var(--peach-border); }
.pill--yes { background: var(--green-bar); color: var(--down); border: 1px solid var(--green-bar-border); }
.pill--no { background: var(--table-head-bg); color: var(--muted); border: 1px solid var(--border-soft); }
.detail-card__foot { padding: 14px 22px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--muted); }

/* =========================================================
   Form feedback messages (contact page etc.)
   ========================================================= */
.form-message {
  margin: 0 0 10px; padding: 8px 10px; font-size: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--green-bar-border); background: var(--green-bar); color: #23532f;
}
.form-message--error { background: var(--peach); border-color: var(--peach-border); color: #8a2c11; }
.form-message--info { background: var(--head-bg); border-color: var(--rule); color: var(--link-hover); }
.field-optional { font-weight: 400; color: var(--muted); text-transform: none; }
.field-errors { list-style: none; margin: 4px 0 0; padding: 0; color: var(--red); font-size: 11.5px; }

/* =========================================================
   Site-wide flash messages (shown below the navbar)
   ========================================================= */
.site-messages {
  background: var(--paper);
  border-bottom: 1px solid var(--border-soft);
}
.site-messages .container {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid var(--green-bar-border);
  background: var(--green-bar);
  color: #23532f;
}
.site-message--error {
  background: var(--peach);
  border-color: var(--peach-border);
  color: #8a2c11;
}
.site-message__text { flex: 1 1 auto; }
.site-message__close {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.6;
}
.site-message__close:hover { opacity: 1; }

/* =========================================================
   Contact page
   ========================================================= */
.page-heading {
  padding: 26px 0 4px;
}
.page-heading h1 { font-size: 22px; color: var(--link-hover); margin: 0 0 6px; }
.page-heading p { color: var(--muted); font-size: 13px; margin: 0; max-width: 640px; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  padding: 22px 0 48px;
  align-items: start;
}

.contact-form-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 22px;
}
.contact-form-box h2 { margin: 0 0 16px; font-size: 16px; color: var(--link-hover); }
.contact-form .field { margin-bottom: 14px; }
.contact-form label {
  display: block; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 4px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 10px; font-size: 13px; font-family: var(--font-body); color: var(--ink);
  resize: vertical;
}
.contact-form button {
  margin-top: 4px;
  background: var(--red); color: #fff; border: 1px solid var(--red);
  font-weight: 700; font-size: 13px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  cursor: pointer;
}
.contact-form button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.contact-form input:disabled,
.contact-form textarea:disabled { background: var(--table-head-bg); color: var(--muted-2); cursor: not-allowed; }
.contact-form button:disabled,
.contact-form button:disabled:hover { background: var(--muted-2); border-color: var(--muted-2); cursor: not-allowed; }

.contact-sidebar { display: flex; flex-direction: column; gap: 16px; }
.contact-sidebar .info-box p { line-height: 2.1; }
.contact-sidebar .info-box p a { font-weight: 600; }

.contact-map {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
}
.contact-map h3 {
  margin: 0; font-size: 15px; font-weight: 700; color: var(--link-hover);
  padding: 14px 16px 10px; border-bottom: 2px solid var(--rule);
}
.contact-map iframe { display: block; width: 100%; height: 260px; border: 0; }
.contact-map__link {
  display: block; text-align: center; font-size: 11.5px; font-weight: 700;
  padding: 8px; border-top: 1px solid var(--border-soft); color: var(--link);
}
.contact-map__link:hover { color: var(--red); }

@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* =========================================================
   Auth pages (login / register / verify OTP)
   ========================================================= */
.auth-layout {
  display: flex; justify-content: center;
  padding: 40px 0 60px;
}
.auth-box {
  width: 100%; max-width: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 26px 26px 22px;
}
.auth-box h1 { margin: 0 0 4px; font-size: 20px; color: var(--link-hover); }
.auth-box .auth-subtitle { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.auth-form .field { margin-bottom: 14px; }
.auth-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-form label {
  display: block; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 4px;
}
.auth-form input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 10px; font-size: 13px; font-family: var(--font-body); color: var(--ink);
}
.auth-form input:focus { outline: 2px solid var(--rule); outline-offset: 0; border-color: var(--link); }
.auth-form button[type="submit"] {
  width: 100%; margin-top: 6px;
  background: var(--red); color: #fff; border: 1px solid var(--red);
  font-weight: 700; font-size: 13.5px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  cursor: pointer;
}
.auth-form button[type="submit"]:hover { background: var(--red-dark); border-color: var(--red-dark); }
.auth-links { margin-top: 16px; text-align: center; font-size: 12.5px; color: var(--muted); }
.auth-links a { font-weight: 700; }

.otp-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.otp-hint strong { color: var(--ink); }
.otp-resend { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted); }
.otp-resend button {
  font: inherit; font-size: 12px; font-weight: 700; color: var(--link);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.otp-resend button:hover { color: var(--red); }
.otp-resend button:disabled { color: var(--muted-2); cursor: default; }

/* =========================================================
   Sidebar ad slots (Google AdSense)
   ========================================================= */
/* max-width (not just width) + overflow:hidden matter here: AdSense's
   "auto"/full-width-responsive ad units size their inner iframe with an
   inline style that can briefly (or, for some ad creatives, permanently)
   be wider than this box — without a hard max-width that overflow is
   what pushes the whole page sideways on narrow/mobile viewports. The
   `overflow-x: hidden` on html/body above is a second safety net in
   case any ad iframe ever escapes this box's bounds regardless. */
.ad-slot { display: block; width: 100%; max-width: 100%; min-height: 150px; overflow: hidden; }
.ad-slot--placeholder {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border); border-radius: var(--radius-md);
  background: #fafafa; color: var(--muted-2);
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
}

/* =========================================================
   About page
   ---------------------------------------------------------
   Signature: the page borrows the vocabulary of a chemical
   spec sheet / drum label — numbered sections, monospace
   reference codes, a hazard-stripe rule and corner-bracket
   "inspection tag" marks — instead of generic icon cards.
   Condensed display face for headings/labels, Arial for
   body copy, monospace for codes. Colors are the site's
   existing tokens only; no new hues introduced.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&display=swap');

.about-page {
  --about-display: 'Oswald', Arial Narrow, "Helvetica Neue Condensed", sans-serif;
  --about-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --about-text: 14.5px;
  --about-h1: 34px;
  --about-h2: 21px;
  --about-h3: 15.5px;
  --about-label: 11px;
}

/* corner-bracket "inspection tag" mark, reused on the plate,
   the plaque and the CTA panel as the page's recurring device */
.spec-plate, .spec-plaque, .about-cta {
  position: relative;
}
.spec-plate::before, .spec-plate::after,
.spec-plaque::before, .spec-plaque::after,
.about-cta::before, .about-cta::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--red);
  border-style: solid;
  opacity: .8;
}
.spec-plate::before, .spec-plaque::before, .about-cta::before {
  top: -1px; left: -1px; border-width: 2px 0 0 2px;
}
.spec-plate::after, .spec-plaque::after, .about-cta::after {
  bottom: -1px; right: -1px; border-width: 0 2px 2px 0;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding: 34px 0 26px;
}
.about-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--about-mono); font-size: var(--about-label);
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.about-hero__eyebrow::before {
  content: ""; width: 8px; height: 8px; background: var(--red); flex-shrink: 0;
}
.about-hero__title {
  font-family: var(--about-display); font-weight: 600;
  font-size: var(--about-h1); line-height: 1.2; letter-spacing: -.01em;
  color: var(--link-hover); margin: 0 0 16px; max-width: 620px;
}
.about-hero__lede {
  font-size: var(--about-text); line-height: 1.8; color: var(--charcoal);
  margin: 0; max-width: 560px;
}

.spec-plate {
  border: 1px solid var(--rule); background: var(--head-bg);
  padding: 18px 20px 6px;
}
.spec-plate__title {
  display: block; font-family: var(--about-mono); font-size: 10px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.spec-plate__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; padding: 11px 0; border-top: 1px solid var(--rule);
}
.spec-plate__key {
  font-family: var(--about-display); font-weight: 600; font-size: 13.5px;
  color: var(--link-hover); white-space: nowrap;
}
.spec-plate__val {
  font-size: 11.5px; color: var(--muted); text-align: right; line-height: 1.4;
}

/* one bold, single-use flourish: a hazard-tape rule marking
   the end of the hero, echoing the amber/black tape used on
   drums and industrial floors — rendered in the site's own
   red instead of introducing a new color. */
.hazard-divider {
  height: 7px; margin: 0 0 6px;
  background: repeating-linear-gradient(
    -45deg, var(--red), var(--red) 10px, var(--paper) 10px, var(--paper) 20px
  );
  border-top: 1px solid var(--red-dark); border-bottom: 1px solid var(--red-dark);
  opacity: .9;
}

/* ---------------------------------------------------------
   Numbered sections
   --------------------------------------------------------- */
.about-section { padding: 40px 0 0; }
.about-section__head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft);
}
.about-section__head--tight { margin-bottom: 14px; }
.about-section__num {
  font-family: var(--about-mono); font-size: 12px; font-weight: 700;
  color: var(--red); border: 1px solid var(--peach-border); background: var(--peach);
  padding: 2px 7px; line-height: 1.5; flex-shrink: 0;
}
.about-section__title {
  font-family: var(--about-display); font-weight: 600;
  font-size: var(--about-h2); color: var(--link-hover); margin: 0;
  letter-spacing: -.005em;
}
.about-section__intro {
  font-size: var(--about-text); line-height: 1.75; color: var(--charcoal);
  margin: 0 0 16px; max-width: 720px;
}
.about-section__body--prose {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.about-section__body--prose p {
  font-size: var(--about-text); line-height: 1.8; color: var(--charcoal); margin: 0;
}

/* product / application reference table — reuses the same
   plain, thin-bordered table language as the price tables
   elsewhere on the site, rather than inventing a new pattern */
.spec-table { width: 100%; min-width: 480px; border-collapse: collapse; }
.spec-table th, .spec-table td {
  border: 1px solid var(--border-soft); padding: 9px 14px; font-size: 13px;
}
.spec-table thead th {
  background: var(--table-head-bg); color: var(--ink); font-weight: 700; text-align: left;
}
.spec-table__code {
  font-family: var(--about-mono); font-size: 12px; color: var(--muted);
  white-space: nowrap; width: 90px;
}
.spec-table tbody tr:nth-child(even) { background: var(--zebra); }
.spec-table tbody tr:hover { background: #f2f6fa; }
.about-footnote { margin: 14px 0 0; font-size: 12px; font-style: italic; color: var(--muted); }

/* ---------------------------------------------------------
   Row list ("how we operate") — a spec-sheet row rather than
   a grid of shadowed icon cards
   --------------------------------------------------------- */
.about-rows { border-top: 1px solid var(--border-soft); }
.about-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--border-soft);
}
.about-row__code {
  font-family: var(--about-mono); font-size: 22px; font-weight: 700;
  color: var(--rule); line-height: 1;
}
.about-row__kicker {
  display: block; font-family: var(--about-mono); font-size: 10.5px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 6px;
}
.about-row__text h3 {
  font-family: var(--about-display); font-weight: 600; font-size: var(--about-h3);
  color: var(--ink); margin: 0 0 6px;
}
.about-row__text p {
  font-size: var(--about-text); line-height: 1.75; color: var(--charcoal); margin: 0; max-width: 640px;
}

/* ---------------------------------------------------------
   Quadrant grid ("why choose r9") — one bordered panel split
   into four by internal hairlines, like a divided spec box,
   instead of four separate floating cards
   --------------------------------------------------------- */
.quad-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
}
.quad-grid__cell {
  padding: 22px 24px; border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.quad-grid__cell:nth-child(2n) { border-right: 0; }
.quad-grid__cell:nth-last-child(-n+2) { border-bottom: 0; }
.quad-grid__tag {
  display: inline-block; font-family: var(--about-mono); font-size: 10.5px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--link-hover); background: var(--head-bg); padding: 3px 9px; margin-bottom: 10px;
}
.quad-grid__cell h3 {
  font-family: var(--about-display); font-weight: 600; font-size: var(--about-h3);
  color: var(--ink); margin: 0 0 6px;
}
.quad-grid__cell p {
  font-size: var(--about-text); line-height: 1.75; color: var(--charcoal); margin: 0;
}

/* ---------------------------------------------------------
   Commitment split + plaque
   --------------------------------------------------------- */
.about-split {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start;
}
.about-split__text p {
  font-size: var(--about-text); line-height: 1.8; color: var(--charcoal); margin: 0 0 14px;
}
.about-split__text p:last-child { margin-bottom: 0; }

.spec-plaque {
  border: 1px solid var(--green-bar-border); background: var(--green-bar);
  padding: 22px 24px; margin-top: 6px;
}
.spec-plaque h3 {
  font-family: var(--about-display); font-weight: 600; font-size: var(--about-h3);
  color: #23532f; margin: 0 0 10px;
}
.spec-plaque p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #2a4a2f; }

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */
.about-cta {
  margin: 46px 0 52px; display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; border: 1px solid var(--rule); background: var(--head-bg);
  padding: 26px 30px;
}
.about-cta h2 {
  font-family: var(--about-display); font-weight: 600; font-size: var(--about-h2);
  color: var(--link-hover); margin: 0 0 4px;
}
.about-cta p { margin: 0; font-size: var(--about-text); color: var(--charcoal); }
.about-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.about-cta__btn {
  display: inline-block; font-weight: 700; font-size: 13.5px; padding: 11px 20px;
  background: var(--red); color: #fff; border: 1px solid var(--red);
  transition: background .15s ease, border-color .15s ease;
}
.about-cta__btn:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; }
.about-cta__btn--ghost { background: transparent; color: var(--link-hover); border-color: var(--rule); }
.about-cta__btn--ghost:hover { background: var(--paper); color: var(--red); border-color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .about-cta__btn { transition: none; }
}

@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-section__body--prose { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .quad-grid { grid-template-columns: 1fr; }
  .quad-grid__cell { border-right: 0 !important; }
  .quad-grid__cell:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .about-row { grid-template-columns: 1fr; }
  .about-row__code { font-size: 15px; }
}


/* =========================================================
   Unsubscribe page
   ========================================================= */
.unsub-box {
  max-width: 480px; margin: 50px auto 70px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--paper); padding: 34px 30px;
}
.unsub-box h1 { font-size: 19px; color: var(--link-hover); margin: 0 0 10px; }
.unsub-box p { font-size: 13px; line-height: 1.7; color: var(--charcoal); margin: 0 0 18px; }
.unsub-box form { margin: 0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--paper); border-top: 4px solid var(--rule); }
.site-footer .container { padding: 20px; }
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .brand__mark { width: 22px; height: 22px; }
.footer-brand span { font-weight: 700; color: var(--charcoal); font-size: 12.5px; }
.footer-links { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--red); }
.footer-copy { font-size: 11.5px; color: var(--muted-2); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .page-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .top-tagline { font-size: 11px; }
  .header-row { gap: 12px; justify-content: space-between; width: 100%; }
  .nav-toggle { display: inline-flex; }

  /* Nav collapses into a toggleable dropdown panel instead of wrapping. */
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px -8px rgba(0,0,0,0.15);
    flex-direction: column;
    padding: 4px 0;
    z-index: 50;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 20px;
    font-size: 14.5px;
  }
  .main-nav a:last-child { border-bottom: none; }
  .site-header .container { position: relative; }

  .page-toolbar { flex-direction: column; align-items: flex-start; }
  .filter-box { width: 100%; }

  /* Desktop table is replaced by the fixed-height mobile ticker. */
  .table-scroll { display: none; }
  .mobile-ticker { display: block; }

  .footer-row { flex-direction: column; align-items: flex-start; }

  .detail-card__body { flex-direction: column; }
  .detail-card__photo, .detail-card__photo img, .detail-card__photo .no-photo { width: 100%; }
}

/* =========================================================
   Spent & Distilled Solvents Ticker Column Variation
   ========================================================= */
.mobile-ticker--two-prices .mobile-ticker__head,
.mobile-ticker--two-prices .mobile-ticker__row {
  grid-template-columns: minmax(110px, 1.4fr) minmax(55px, 0.8fr) minmax(55px, 0.8fr) minmax(85px, 1.1fr) minmax(65px, 0.8fr);
}

/* =========================================================
   Solvent Detail — Multi-Image Carousel & Lightbox
   ========================================================= */
.detail-card__photo-section {
  width: 240px;
  flex-shrink: 0;
}
.single-photo-box {
  width: 100%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--head-bg);
}
.single-photo-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.single-photo-box:hover img {
  transform: scale(1.03);
}
.photo-zoom-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.solvent-carousel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.carousel-stage {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--head-bg);
}
.carousel-active-view {
  position: relative;
  width: 100%;
  height: 220px;
  cursor: pointer;
}
.carousel-active-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.15s ease;
}
.carousel-btn:hover {
  background: #fff;
  color: var(--red);
  transform: translateY(-50%) scale(1.08);
}
.carousel-btn--prev { left: 8px; }
.carousel-btn--next { right: 8px; }

.carousel-counter {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.carousel-thumbnails {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
}
.carousel-thumbnails::-webkit-scrollbar {
  height: 4px;
}
.carousel-thumbnails::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.thumb-card {
  flex: 0 0 54px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--head-bg);
  transition: all 0.15s ease;
}
.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-card:hover {
  border-color: var(--link);
  opacity: 0.9;
}
.thumb-card.active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

/* Fullscreen Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 15, 25, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s ease;
  z-index: 10001;
}
.lightbox-close:hover { opacity: 1; color: var(--red); }

.lightbox-stage {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lightbox-img-wrapper {
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-nav--prev { left: 10px; }
.lightbox-nav--next { right: 10px; }

.lightbox-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.lightbox-counter {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
}

/* =========================================================
   Legal Pages (Privacy Policy & Terms and Conditions)
   ========================================================= */
.legal-hero {
  padding: 32px 0 20px;
  max-width: 840px;
}
.legal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--peach);
  border: 1px solid var(--peach-border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.legal-hero h1 {
  font-size: 28px;
  color: var(--link-hover);
  margin: 0 0 6px;
}
.legal-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

.legal-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 60px;
}
.legal-toc {
  position: sticky;
  top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 18px;
}
.legal-toc h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal-toc li {
  margin-bottom: 8px;
}
.legal-toc a {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.4;
  display: block;
}
.legal-toc a:hover {
  color: var(--red);
  font-weight: 600;
}

.legal-content {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 32px;
}
.legal-content section {
  margin-bottom: 32px;
  scroll-margin-top: 20px;
}
.legal-content section:last-child {
  margin-bottom: 0;
}
.legal-content h2 {
  font-size: 18px;
  color: var(--link-hover);
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
}
.legal-content p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--charcoal);
  margin: 0 0 12px;
}
.legal-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.legal-content li {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.legal-callout {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 16px 0;
}
.legal-callout p {
  margin: 0;
  font-size: 13px;
  color: #1e40af;
}
.legal-callout--warning {
  border-color: var(--peach-border);
  background: var(--peach);
}
.legal-callout--warning p {
  color: #991b1b;
}

.legal-contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--head-bg);
  padding: 16px 20px;
  margin-top: 14px;
}
.legal-contact-card p {
  margin: 0 0 4px;
  font-size: 13px;
}
.legal-contact-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .legal-card {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
  .detail-card__photo-section {
    width: 100%;
  }
}