:root {
  --paper: #F5F1E8;
  --white: #FFFFFF;
  --ink: #141311;
  --muted: #625D55;
  --rule: #D6CFC2;
  --rule-strong: #141311;
  --accent: #C83E2B;
  --ok: #1D6F42;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
.serif { font-family: 'Newsreader', Georgia, serif; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

/* Masthead */
.masthead {
  border-bottom: 3px double var(--rule-strong);
  padding: 16px 0 12px;
}
.mast-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.mast-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 0 10px;
  gap: 16px;
}
.mast-note { font-size: 11px; color: var(--muted); line-height: 1.4; }
.mast-note.right { text-align: right; }
.mast-calc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 9px 14px;
  text-align: left;
  transition: transform 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
}
.mast-calc-cta:hover,
.mast-calc-cta.is-current {
  background: var(--ink);
  box-shadow: 2px 2px 0 var(--accent);
  transform: translate(1px, 1px);
}
.mast-calc-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.mast-calc-cta strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}
.mast-calc-cta small {
  display: block;
  font-size: 10px;
  opacity: 0.92;
  margin-top: 2px;
  line-height: 1.15;
}
.mast-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  line-height: 1;
}
.mast-title span { color: var(--accent); }
.mast-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 10px;
  font-size: 12px;
  font-weight: 500;
}
.mast-nav a {
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.mast-nav a:hover, .mast-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Live Search Bar (Editorial Press style) */
.mast-search-bar {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: center;
}
.tn-live-search {
  position: relative;
  width: 100%;
  max-width: 780px;
}
.tn-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--rule-strong);
  padding: 0 12px;
  height: 42px;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}
.tn-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 4px 4px 0 rgba(20, 19, 17, 0.12);
}
.tn-search-ico {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}
.tn-search-box:focus-within .tn-search-ico { color: var(--accent); }
.tn-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.tn-search-input::placeholder { color: #8A8378; }
.tn-search-clear {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.tn-search-clear:hover { color: var(--accent); }
.tn-search-kbd {
  font-size: 11px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1px 6px;
  line-height: 1.4;
}
.tn-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
  background: var(--white);
  border: 1px solid var(--rule-strong);
  box-shadow: 6px 6px 0 rgba(20, 19, 17, 0.14);
  max-height: 72vh;
  overflow-y: auto;
}
.tn-sd-head {
  background: #ECE6D8;
  border-bottom: 1px solid var(--rule-strong);
  border-top: 1px solid var(--rule);
  padding: 6px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
}
.tn-sd-head:first-child { border-top: 0; }
.tn-sd-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: inherit;
}
.tn-sd-item.is-article {
  grid-template-columns: 1fr auto;
}
.tn-sd-item:hover,
.tn-sd-item.is-active {
  background: #FAF7F0;
  border-left-color: var(--accent);
}
.tn-sd-thumb {
  width: 50px;
  height: 40px;
  object-fit: contain;
  border: 1px solid var(--rule);
  background: #fff;
  padding: 2px;
}
.tn-sd-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.tn-sd-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.tn-sd-price {
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap;
}
.tn-sd-price strong { font-size: 14px; display: block; }
.tn-sd-price span { font-size: 10px; color: var(--ok); }
.tn-sd-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--paper);
  border-top: 1px solid var(--rule-strong);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}
.tn-sd-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.tn-live-search mark {
  background: rgba(200, 62, 43, 0.14);
  color: var(--ink);
  padding: 0 2px;
}

/* Front Page Split */
.front {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 26px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--rule-strong);
  align-items: stretch;
}
.lead-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding-right: 26px;
  border-right: 1px solid var(--rule);
}
.lead-hero {
  display: grid;
  grid-template-columns: 1fr 215px;
  gap: 20px;
  align-items: start;
}
.kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 6px;
}
.lead-hero h1 {
  font-family: 'Newsreader', serif;
  font-size: clamp(26px, 2.65vw, 36px);
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 10px;
}
.lead-hero p { font-size: 13.5px; line-height: 1.5; color: #36332E; margin: 0 0 12px; }
.lead-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--rule);
  margin-bottom: 14px;
}
.lead-metrics > div { white-space: nowrap; }
.lead-metrics span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.lead-metrics strong { font-size: 13.5px; }
.lead-secondary {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.lead-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.lead-mini-card {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 8px 10px;
  text-decoration: none;
  transition: border-color 0.1s ease;
}
.lead-mini-card:hover { border-color: var(--rule-strong); }
.lead-mini-img {
  width: 46px;
  height: 38px;
  object-fit: contain;
  border: 1px solid var(--rule);
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
}
.lead-mini-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lead-mini-card:hover .lead-mini-title { color: var(--accent); }
.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 10px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-accent:hover { background: #A83020; }
.lead-photo {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 14px;
  text-align: center;
}
.lead-photo img { max-width: 100%; height: 145px; object-fit: contain; }
.lead-caption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  border-top: 1px solid var(--rule);
  padding-top: 8px;
}

/* Dispatches */
.dispatches h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-strong);
}
.disp-item { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.disp-item:last-child { border-bottom: 0; }
.disp-link { text-decoration: none; display: block; }
.disp-link:hover .disp-title { color: var(--accent); }
.disp-meta { font-size: 10px; color: var(--accent); font-weight: 600; }
.disp-title { font-family: 'Newsreader', serif; font-size: 16.5px; line-height: 1.2; margin: 2px 0 4px; font-weight: 600; }
.disp-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Filter + Calculator Strip */
.strip {
  background: var(--white);
  border: 1px solid var(--rule-strong);
  padding: 14px 18px;
  margin: 24px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.strip label { font-size: 11px; font-weight: 600; display: block; margin-bottom: 4px; }
.strip input[type="range"] { width: 160px; accent-color: var(--accent); }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  padding: 6px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}
.pill.active, .pill:hover { background: var(--ink); color: var(--paper); }

.search-form { display: flex; gap: 6px; }
.search-input {
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  min-width: 190px;
}

/* Brand Filters Strip */
.brand-strip {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rule-strong);
  padding: 12px 16px;
  margin: -8px 0 18px;
}
.brand-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.brand-strip-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}
.brand-count { font-size: 11px; color: var(--muted); }
.brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* Unified Compact Catalog Filter Block */
.catalog-filters {
  background: var(--white);
  border: 1px solid var(--rule-strong);
  margin: 14px 0 14px;
}
.cf-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 9px 12px;
}
.cf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cf-pills .pill {
  padding: 4px 8px;
  font-size: 10.5px;
}
.cf-ranges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.cf-range-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cf-range-item label {
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.cf-range-item input[type="range"] {
  width: 88px;
  accent-color: var(--accent);
  margin: 0;
}
.cf-search {
  margin-left: auto;
}
.cf-search .search-input {
  min-width: 155px;
  width: 170px;
  padding: 4px 8px;
  font-size: 11.5px;
}
.cf-row-brands {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-top: 1px solid var(--rule);
  background: #FAF7F0;
}
.cf-brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}
.cf-row-brands .brand-pill {
  padding: 2px 7px;
  font-size: 10.5px;
  gap: 4px;
}
@media (max-width: 780px) {
  .cf-row-brands { flex-wrap: wrap; }
  .cf-search { margin-left: 0; width: 100%; }
  .cf-search .search-input { width: 100%; }
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  padding: 4px 10px;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s ease, border-color 0.1s ease;
}
.brand-pill .bp-cnt { color: var(--muted); font-size: 10px; }
.brand-pill:hover {
  border-color: var(--rule-strong);
  background: #ECE6D8;
}
.brand-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.brand-pill.active .bp-cnt { color: #D6CFC2; }

/* Argus Table */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--rule-strong);
  overflow-x: auto;
  margin-bottom: 44px;
}
table.argus { width: 100%; border-collapse: collapse; font-size: 13px; }
table.argus thead th {
  background: #ECE6D8;
  border-bottom: 2px solid var(--rule-strong);
  text-align: left;
  padding: 11px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
table.argus thead th a { text-decoration: none; color: inherit; }
table.argus thead th a:hover { color: var(--accent); }
table.argus tbody td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.argus tbody tr:hover { background: #FAF7F0; }
table.argus tbody tr.dim { opacity: 0.46; }
.prod-cell { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.prod-cell:hover .prod-name { color: var(--accent); }
.prod-cell img { width: 54px; height: 44px; object-fit: contain; border: 1px solid var(--rule); background: #fff; padding: 3px; flex-shrink: 0; }
.badge-ok { font-size: 10px; color: var(--ok); border: 1px solid var(--ok); padding: 2px 6px; white-space: nowrap; display: inline-block; }
.badge-no { font-size: 10px; color: var(--muted); border: 1px solid var(--rule); padding: 2px 6px; white-space: nowrap; display: inline-block; }
.btn-row {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 7px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-row:hover { background: var(--accent); color: #fff; }

/* Detail Page */
.breadcrumb { font-size: 12px; color: var(--muted); padding: 18px 0 8px; }
.breadcrumb a:hover { color: var(--accent); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  margin-bottom: 32px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--rule-strong);
  padding: 22px;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  margin: 16px 0;
}
.spec-item span { display: block; font-size: 10px; color: var(--muted); }
.spec-item strong { font-size: 14px; }

/* Article prose */
.prose p { font-size: 16px; line-height: 1.72; color: #262420; margin: 0 0 18px; }
.prose h3 { font-family: 'Newsreader', serif; font-size: 26px; margin: 26px 0 10px; font-weight: 600; }
.prose ul { margin: 0 0 20px; padding-left: 20px; }
.prose li { margin-bottom: 8px; font-size: 15px; line-height: 1.6; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 13px;
  border: 1px solid var(--rule-strong);
}
.prose table th {
  background: #ECE6D8;
  border-bottom: 2px solid var(--rule-strong);
  padding: 9px 10px;
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
}
.prose table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--rule);
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-product-card {
  margin-top: 24px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  padding: 16px 18px;
}

/* Catalog Head & Homepage Deals Grid */
.intro-banner {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-left: 2px solid var(--accent);
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  line-height: 1.55;
  color: #46423B;
}
.cat-intro {
  margin: 10px 0 2px;
  max-width: 840px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #4A453E;
}
.catalog-head {
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 6px;
}
.deals-section {
  padding: 28px 0 12px;
  border-bottom: 1px solid var(--rule-strong);
}
.deals-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.deal-card {
  background: var(--white);
  border: 1px solid var(--rule-strong);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.12s ease;
}
.deal-card:hover {
  box-shadow: 4px 4px 0 rgba(20, 19, 17, 0.12);
}
.deal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 10px;
  font-size: 10px;
}
.deal-cat {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.deal-badge {
  background: var(--accent);
  color: #fff;
  padding: 2px 6px;
  font-weight: 600;
}
.deal-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  background: #fff;
  padding: 6px;
  margin-bottom: 10px;
}
.deal-img img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}
.deal-title {
  font-size: 19px;
  line-height: 1.18;
  margin: 0 0 6px;
  font-weight: 600;
}
.deal-title a { text-decoration: none; }
.deal-card:hover .deal-title a { color: var(--accent); }
.deal-specs {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.deal-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.deal-price-row strong { font-size: 20px; }
.deal-old-price {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}
.editorial-more {
  padding: 28px 0 8px;
}
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* GEO / AEO FAQ Box */
.faq-box {
  margin: 28px 0 10px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--rule-strong);
}
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 10px 0;
}
.faq-item:last-child { padding-bottom: 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  color: var(--accent);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 8px 0 2px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #36332E;
}

/* Footer */
footer {
  border-top: 2px solid var(--rule-strong);
  padding: 24px 0 40px;
  margin-top: 40px;
  font-size: 12px;
  color: var(--muted);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 980px) {
  .front { grid-template-columns: 1fr; }
  .lead-col { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 20px; }
  .lead-hero { grid-template-columns: 1fr; }
  .lead-mini-grid { grid-template-columns: 1fr; }
  .mast-main { grid-template-columns: 1fr; text-align: center; }
  .mast-note, .mast-note.right { text-align: center; }
  .detail-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
}
