:root {
  --brand: #12704a;
  --brand-dark: #0c5536;
  --badge: #a8201a;
  --bg: #ffffff;
  --panel: #f2f2f0;
  --text: #1d1d1b;
  --muted: #64645e;
  --line: #e1e1dc;
  --best: #e6f4ec;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; } /* backstop: nothing may widen the page on phones (clip, unlike hidden, keeps sticky headers working) */
body {
  margin: 0;
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--brand); }
button, input, select { font: inherit; color: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Masthead */
.masthead { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--line); }
/* In-page links (#beauty, /stores#electronics) and focus land below the sticky masthead, not under it: with a
   section row it is 191 px tall on desktop and 247-252 px at 900 px and below (see #site-header:empty). */
html { scroll-padding-top: 200px; }
@media (max-width: 900px) { html { scroll-padding-top: 260px; } }
.bar { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.logo { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--brand); }
/* maltacompare's wordmark is 2 letters wider (header.js sets data-site on maltacompare only): from 521 to 640 px
   the phone-sized logo and cart icon keep the logo, the 2+ stores switch and the cart on one row, as on
   maltasuper, so the header keeps the heights below (measured 12 Nov 2026: it needs 551 px at full size). */
@media (min-width: 521px) and (max-width: 640px) {
  .masthead[data-site="maltacompare"] .logo { font-size: 28px; line-height: calc(34px * 1.45); } /* the bar keeps its height */
  .masthead[data-site="maltacompare"] .cart-label { display: none; }
}
.searchbox {
  flex: 1;
  display: flex;
  align-items: stretch;
  background: var(--panel);
  border-radius: var(--radius);
  min-width: 0;
  max-width: 820px;
}
.searchbox select { border: 0; background: transparent; padding: 0 12px; border-right: 1px solid var(--line); max-width: 190px; }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 12px; outline: none; }
.searchbox button { border: 0; background: transparent; padding: 0 16px; cursor: pointer; }
.searchbox:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.switch { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.cart-link {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto;
  min-height: 44px; padding: 6px 10px; border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px;
}
.cart-link:hover, .cart-link.active { background: var(--panel); }
.cart-link.active { box-shadow: inset 0 -3px 0 var(--brand); }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.cart-count[hidden] { display: none; }

/* Green navigation */
.navbar { background: var(--brand); color: #fff; }
.navrow { display: flex; align-items: center; gap: 4px; min-height: 58px; overflow-x: auto; }
.navrow > a, .shopby > button {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.navrow > a:hover, .shopby > button:hover, .navrow > a.active { background: var(--brand-dark); border-radius: var(--radius); }
/* The current section's own pages, in a row under the main menu (header.js SECTIONS) */
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subrow { display: flex; align-items: center; gap: 2px; min-height: 46px; overflow-x: auto; scrollbar-width: none; }
.subrow::-webkit-scrollbar { display: none; }
.subrow a { padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; border-radius: var(--radius); }
.subrow a:hover { background: var(--panel); }
.subrow a.active { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }
.shopby { position: relative; }
/* The menu hangs below the bar from this zero-height anchor, outside .navrow: that row scrolls
   sideways on phones, and a scrolling box clips everything inside it to its own height. */
.menu-anchor { position: relative; height: 0; }
.megamenu {
  position: absolute;
  top: 4px;
  left: 16px;
  width: min(560px, 92vw);
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  z-index: 30;
}
.megamenu[hidden] { display: none; }
.megamenu button { text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: var(--radius); cursor: pointer; }
.megamenu button:hover { background: var(--panel); }
.megamenu a { display: block; padding: 8px 10px; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.megamenu a:hover { background: var(--panel); }
.megamenu .count { color: var(--muted); font-size: 12px; }

/* Browse by category */
.browse { padding-top: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; }
h2 { font-size: 26px; font-weight: 600; margin: 0 0 18px; letter-spacing: -0.01em; }
.arrows { display: flex; gap: 8px; }
.arrows button {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--text); background: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
.tiles { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.tiles::-webkit-scrollbar { display: none; }
.tile {
  flex: 0 0 121px;
  height: 140px;
  border: 1.5px solid var(--text);
  border-radius: var(--radius);
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; padding: 8px; text-align: center;
}
.tile .icon { font-size: 34px; line-height: 1; }
.tile .label { font-weight: 600; font-size: 14px; line-height: 1.15; }
.tile:hover, .tile.active { border-color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }

/* Listing */
.listing { padding-top: 34px; }
.showing { margin: -6px 0 12px; padding: 0 8px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 8px 18px; }
.filters { display: flex; gap: 18px; flex-wrap: wrap; }
.filters label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.filters select { font-weight: 400; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; background: #fff; min-width: 140px; }

.pager { display: flex; gap: 6px; align-items: center; }
.pager.bottom { justify-content: center; padding: 26px 0 8px; }
.pager button {
  min-width: 30px; height: 30px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; font-size: 13px;
}
.pager button[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pager .gap { color: var(--muted); padding: 0 2px; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 20px;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 0 14px 14px;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.card:hover { border-bottom-color: var(--line); }
.card:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: var(--radius); }
.badge-row { min-height: 28px; display: flex; justify-content: center; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.badge {
  display: inline-block; align-self: center;
  background: var(--badge); color: #fff; font-weight: 700; font-size: 12px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 4px; letter-spacing: 0.02em;
}
.badge.stores { background: var(--brand); }
.badge.save { background: #b45309; }
.badge-row { flex-wrap: wrap; }
.thumb { height: 170px; display: flex; align-items: center; justify-content: center; margin: 12px 0; }
.thumb img { max-width: 100%; max-height: 170px; object-fit: contain; }
.thumb .placeholder { font-size: 64px; opacity: 0.85; }
.card h3 { font-size: 14px; font-weight: 500; margin: 0 0 8px; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-size: 20px; font-weight: 800; margin: 0; }
.price .from { font-size: 12px; font-weight: 500; color: var(--muted); margin-right: 4px; }
.price s { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.sub { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.card-actions { margin-top: 10px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.compare-btn {
  align-self: center;
  border: 1.5px solid var(--text); background: #fff; border-radius: 4px; padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.card:hover .compare-btn { background: var(--brand); border-color: var(--brand); color: #fff; }
.cart-btn {
  border: 1.5px solid var(--brand); background: #fff; color: var(--brand); border-radius: 4px;
  padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.cart-btn:hover { background: var(--best); }
.cart-btn.in-cart { background: var(--brand); color: #fff; }
@media (pointer: coarse) { .compare-btn, .cart-btn { min-height: 40px; } }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* Detail dialog */
dialog {
  width: min(820px, 94vw); border: 0; border-radius: 10px; padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
dialog::backdrop { background: rgba(20, 20, 18, 0.5); }
.close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; font-size: 28px; cursor: pointer; line-height: 1; }
.detail-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.detail-img { width: 110px; height: 110px; flex: 0 0 110px; display: flex; align-items: center; justify-content: center; }
.detail-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.detail-img .placeholder { font-size: 56px; }
dialog h3 { margin: 0 0 4px; font-size: 20px; }
.detail-sub { margin: 0; color: var(--muted); }
table.offers { width: 100%; border-collapse: collapse; font-size: 14px; }
.offers th { text-align: left; font-size: 12px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 8px; }
.offers td { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.offers .num { text-align: right; white-space: nowrap; }
.offers tr.best td { background: var(--best); }
.offers .store { font-weight: 700; white-space: nowrap; }
.offers .note { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.offers .price-cell strong { font-size: 16px; }
.offers .price-cell s { color: var(--muted); font-size: 12px; display: block; }
.fine { color: var(--muted); font-size: 12px; margin: 14px 0 0; }

/* Buttons and quantity stepper (detail dialog and cart page) */
.primary-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border: 0; border-radius: var(--radius); background: var(--brand); color: #fff;
  font-weight: 700; text-decoration: none; cursor: pointer;
}
.primary-btn:hover { background: var(--brand-dark); }
.link-btn { border: 0; background: transparent; color: var(--brand); text-decoration: underline; cursor: pointer; padding: 10px 6px; min-height: 40px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; }
.qty button:disabled { color: var(--line); cursor: default; }
.qty output { min-width: 30px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.detail-cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.detail-cart[hidden] { display: none; }
.go-cart { font-weight: 700; margin-left: auto; padding: 10px 0; }
.cart-message { flex-basis: 100%; margin: 0; color: var(--badge); }
.cart-page [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* Cart page */
.cart-page { padding-top: 30px; }
.cart-page h1 { font-size: 32px; margin: 0 0 6px; letter-spacing: -0.02em; }
.cart-empty, .cart-error { max-width: 620px; padding: 10px 0 30px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 32px; align-items: start; }
.cart-layout[hidden], .cart-empty[hidden], .cart-error[hidden], .gone[hidden] { display: none; }
.cart-items-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.cart-items-head h2 { margin: 0; font-size: 20px; }
.cart-list, .gone-list { list-style: none; margin: 0; padding: 0; }
.cart-item {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 6px 16px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-thumb { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; }
.cart-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-thumb .placeholder { font-size: 40px; }
.cart-info { min-width: 0; }
.cart-info h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.cart-best { margin: 0; }
.cart-best .unit { color: var(--muted); font-size: 13px; }
.cart-note { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 0; }
.others { margin-top: 6px; font-size: 13px; }
.others summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: 10px 0; }
.others ul { list-style: none; margin: 4px 0 0; padding: 0; }
.others li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; min-height: 40px; padding: 2px 0; }
.others li .num { margin-left: auto; font-variant-numeric: tabular-nums; }
.others li .cart-note { display: inline; margin: 0; }
.cart-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.line-total { margin: 0; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gone { margin-top: 26px; }
.gone h3 { margin: 0; font-size: 17px; }
.gone-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.cart-summary { position: sticky; top: 160px; }
.summary-card { border: 1.5px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.summary-card.split { border-color: var(--brand); background: var(--best); }
.summary-card h2 { font-size: 18px; margin: 0 0 6px; }
.summary-card .fine { margin: 2px 0 0; }
.total { margin: 0; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.store-group { margin-top: 14px; }
.store-group-head, .onestop-head { display: flex; justify-content: space-between; gap: 12px; }
.store-group ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.store-group li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.store-group li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.onestop-lede { margin: 0 0 8px; }
.onestop { list-style: none; margin: 0; padding: 0; }
.onestop li { padding: 8px 0; border-top: 1px solid var(--line); }
.onestop li.complete .onestop-head strong { color: var(--brand); }
.onestop .fine { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 60px minmax(0, 1fr); }
  .cart-thumb { width: 60px; height: 60px; }
  .cart-controls { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer { margin-top: 48px; background: var(--panel); color: var(--muted); font-size: 13px; padding: 26px 0 34px; }
.footer p { max-width: 900px; }

.prose { max-width: 760px; padding-top: 30px; padding-bottom: 50px; }

/* Section switch on the cheapest page */
.section-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.section-tabs a {
  padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px;
}
.section-tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Cheapest store page */
.rank-page { padding-top: 30px; }
.rank-page h1 { font-size: 32px; margin: 0 0 6px; letter-spacing: -0.02em; }
.lede { color: var(--muted); margin: 0 0 24px; }
.rank-page section { margin-top: 34px; }
.winner {
  display: flex; align-items: center; gap: 18px;
  background: var(--best); border: 1.5px solid var(--brand); border-radius: 10px; padding: 18px 22px;
}
.winner .trophy { font-size: 44px; }
.eyebrow { margin: 0; text-transform: uppercase; font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: 0.04em; }
.winner-name { margin: 2px 0; font-size: 28px; font-weight: 800; }
.winner-sub { margin: 0; color: var(--muted); }
.ranking, .mini { list-style: none; margin: 0; padding: 0; }
.rank-row {
  display: grid; grid-template-columns: 28px minmax(110px, 180px) 1fr auto; gap: 4px 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.rank-row .pos { font-weight: 800; color: var(--muted); }
.rank-row .store { font-weight: 700; }
.rank-row .meter { height: 10px; background: var(--panel); border-radius: 999px; overflow: hidden; }
.rank-row .meter-fill { display: block; height: 100%; background: var(--badge); opacity: 0.75; border-radius: 999px; }
.rank-row.first .meter-fill { background: var(--brand); }
.rank-row .score { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-row.first .score { color: var(--brand); }
.rank-row .detail { grid-column: 2 / -1; color: var(--muted); font-size: 13px; }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cat-card { border: 1.5px solid var(--line); border-radius: 10px; padding: 16px; }
.cat-card header { display: flex; align-items: center; gap: 10px; }
.cat-card .icon { font-size: 26px; }
.cat-card h3 { margin: 0; font-size: 17px; }
.cat-winner { margin: 10px 0 0; font-size: 20px; font-weight: 800; color: var(--brand); }
.cat-sub { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.mini .rank-row { grid-template-columns: 22px minmax(80px, 120px) 1fr auto; padding: 6px 0; font-size: 14px; }
.method { max-width: 820px; color: var(--text); }
.method p { line-height: 1.6; }
@media (max-width: 520px) {
  .rank-row { grid-template-columns: 24px 1fr auto; }
  .rank-row .meter { grid-column: 2 / -1; order: 5; }
  .winner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .bar { flex-wrap: wrap; gap: 12px; }
  .searchbox { order: 3; flex-basis: 100%; max-width: none; }
  .searchbox select { max-width: 130px; }
  .switch { margin-left: auto; }
  .switch + .cart-link { margin-left: 0; }
}
@media (max-width: 520px) {
  .logo { font-size: 28px; }
  .switch { order: 4; flex-basis: 100%; margin-left: 0; white-space: normal; }
  .switch + .cart-link { margin-left: auto; }
  .cart-label { display: none; }
  .compare-btn, .cart-btn { min-height: 40px; }
  .searchbox select { max-width: 112px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .card { padding: 0 4px 10px; }
  .thumb { height: 120px; }
  .thumb img { max-height: 120px; }
  .tile { flex-basis: 104px; height: 120px; }
  .offers th:nth-child(4), .offers td:nth-child(4) { display: none; }
}

/* Page heading on the home page (search engines read it; it follows the section) */
.intro { padding-top: 26px; }
.intro h1 { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 6px; text-wrap: balance; }
.intro-sub { margin: 0; color: var(--muted); font-size: 15px; max-width: 70ch; }
.intro + .browse { padding-top: 22px; }
@media (max-width: 600px) { .intro { padding-top: 18px; } .intro h1 { font-size: 22px; } .intro-sub { font-size: 14px; } }

/* Server-rendered pages: products, categories, stores, offers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ssr { padding-top: 18px; padding-bottom: 40px; }
.ssr h1 { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; margin: 4px 0 10px; text-wrap: balance; }
.ssr h2 { font-size: 21px; margin: 30px 0 12px; }
.ssr .lede { font-size: 16px; max-width: 72ch; margin: 0 0 14px; }
.ssr .muted, .ssr small { color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { color: var(--muted); }
.product-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.product-photo { aspect-ratio: 1; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-summary { min-width: 0; }
.verdict { font-size: 17px; margin: 0 0 6px; }
.product-actions { display: flex; gap: 14px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.btn { background: var(--brand); color: #fff; border: 0; border-radius: var(--radius); padding: 10px 16px; font-weight: 600; cursor: pointer; }
.btn[aria-pressed="true"] { background: var(--brand-dark); }
.btn:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 2px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.prices { width: 100%; border-collapse: collapse; font-size: 14px; }
table.prices th, table.prices td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.prices th { background: var(--panel); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
table.prices tr:last-child td { border-bottom: 0; }
table.prices tr.best td { background: var(--best); }
table.prices tr.out td { color: var(--muted); }
table.prices td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.prices td.c-store { font-weight: 600; white-space: nowrap; }
table.prices s { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); max-width: 80ch; }
.plist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.plist li { padding: 10px 2px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.plist li a { font-weight: 600; flex: 1 1 280px; min-width: 0; }
.plist .amount { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.plist s { color: var(--muted); font-weight: 400; }
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pager span[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }
.facts-list { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; margin: 12px 0 0; list-style: none; }
.facts-list b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--panel); white-space: nowrap; }
.tag.good { background: var(--best); color: var(--brand-dark); }
.tag.warn { background: #fdecea; color: var(--badge); }
.tag.bf { background: var(--text); color: #fff; } /* the shop itself calls the deal Black Friday */
.faq h3 { font-size: 17px; margin: 22px 0 4px; }
.faq p, .faq ul { max-width: 80ch; margin-top: 0; }
@media (max-width: 640px) {
  .product-head { grid-template-columns: 1fr; gap: 14px; }
  .product-photo { width: 180px; }
  .ssr h1 { font-size: 23px; }
}
table.prices tr.best { background: var(--best); }
/* Phones: price tables become one card per row, so the store link never sits off-screen. */
@media (max-width: 640px) {
  table.prices.stack thead { display: none; }
  table.prices.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "store price" "name name" "unit link"; gap: 4px 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  table.prices.stack tr:last-child { border-bottom: 0; }
  table.prices.stack td { display: block; padding: 0; border: 0; background: none; white-space: normal; min-width: 0; }
  table.prices.stack td.c-price strong { white-space: nowrap; }
  table.prices.stack td.c-store { grid-area: store; }
  table.prices.stack td.c-price { grid-area: price; text-align: right; }
  table.prices.stack td.c-name { grid-area: name; }
  table.prices.stack td.c-unit { grid-area: unit; }
  table.prices.stack td.c-link { grid-area: link; text-align: right; }
  table.prices.stack.offers tr { grid-template-areas: "name name" "price check" "until until"; }
  table.prices.stack td.c-check { grid-area: check; text-align: right; }
  table.prices.stack td.c-until { grid-area: until; color: var(--muted); }
  table.prices.stack td:empty { display: none; }
}
.product-photo[hidden] { display: none; }
.product-head.no-photo { grid-template-columns: minmax(0, 1fr); }
.intro-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: 14px; font-weight: 600; }
/* The home page's Black Friday teaser, shown until Cyber Monday 2026 is over (its script in index.html) */
.bf-teaser { margin: 12px 0 0; }
.bf-teaser a { display: inline-block; padding: 8px 14px; border-radius: var(--radius); background: var(--text); color: #fff; font-size: 14px; text-decoration: none; }
.bf-teaser a:hover { background: #000; }
.index-chart { margin: 18px 0 6px; max-width: 640px; }
.index-chart svg { width: 100%; height: auto; display: block; }

/* Takeaway section (takeaway_pages.py, templates/takeaway/): its own navigation, notice and tables */
.tk-notice { max-width: 92ch; margin: 0 0 18px; padding: 10px 14px; font-size: 13px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.tk-notice p { margin: 4px 0; }
.tk-picks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tk-picks li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; }
.tk-picks .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tk-picks .amount { font-size: 20px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.tk-picks .muted { font-size: 13px; }
.tk-venues { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; }
.tk-venue h2 { margin-top: 10px; }
.tk-venue p { margin: 4px 0; }
table.tk-menu tr.tk-section th { background: var(--bg); color: var(--text); font-size: 14px; text-transform: none; letter-spacing: 0; padding-top: 16px; }
table.tk-dishes td small, table.tk-fees td small, table.tk-orders td small { color: var(--muted); }
@media (max-width: 640px) {
  table.tk-dishes thead, table.tk-fees thead, table.tk-orders thead { display: none; }
  table.tk-dishes tr, table.tk-fees tr, table.tk-orders tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.tk-dishes td, table.tk-fees td, table.tk-orders td { display: block; padding: 2px 0; border: 0; }
  table.tk-dishes td[data-label]::before, table.tk-fees td[data-label]::before, table.tk-orders td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
}

/* Room for the header that header.js draws, so the page doesn't jump down when it appears
   (measured: 144 px desktop, 205 px tablet, 231 / 200 px on phones with / without the 2+ stores switch).
   The phone heights start where the header's phone layout does, at 520 px (re-measured 12 Nov 2026 for
   both sites at 320-1240 px). */
#site-header:empty { display: block; min-height: 144px; background: #fff; }
@media (max-width: 900px) { #site-header:empty { min-height: 205px; } }
@media (max-width: 520px) {
  body[data-page="home"] #site-header:empty { min-height: 231px; }
  body:not([data-page="home"]) #site-header:empty { min-height: 200px; }
}
/* Pages with a section (and the home page) also show its row of pages: 47 px more, measured 10 Nov */
body[data-section] #site-header:empty, body[data-page="home"] #site-header:empty { min-height: 191px; }
@media (max-width: 900px) { body[data-section] #site-header:empty, body[data-page="home"] #site-header:empty { min-height: 252px; } }
@media (max-width: 520px) {
  body[data-page="home"] #site-header:empty { min-height: 278px; }
  body[data-section]:not([data-page="home"]) #site-header:empty { min-height: 247px; }
}

/* Store leaflets on the offer pages */
.leaflets { display: grid; gap: 22px; margin-bottom: 10px; }
.leaflet h3 { margin: 0 0 4px; font-size: 18px; }
.leaflet .muted { margin: 0 0 10px; font-size: 13px; }
.leaflet-frame { width: 100%; aspect-ratio: 16 / 10; max-height: 82vh; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.leaflet-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.leaflet-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.leaflet-pages img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.leaflet-more { margin-top: 12px; }
.leaflet-more summary { cursor: pointer; font-weight: 600; color: var(--brand); margin-bottom: 12px; }
.leaflet-cover { max-width: 240px; height: auto; border: 1px solid var(--line); }
.leaflet.upcoming { opacity: 0.92; }
@media (max-width: 640px) {
  .leaflet-frame { aspect-ratio: 3 / 4; }
  .leaflet-pages { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ---------------------------------------------------------------------------------------------
   Mobile, internet & TV comparison (telecom_pages.py, templates/telecom/, telecom.js)
   --------------------------------------------------------------------------------------------- */
.tnotice { max-width: 92ch; margin: 0 0 18px; padding: 10px 14px; font-size: 13px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.tnotice p { margin: 4px 0; }
.tpicks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tpicks li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; }
.tpicks .amount { font-size: 20px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.tpicks .muted { font-size: 13px; }
.formula { padding: 8px 12px; background: var(--panel); border-radius: var(--radius); font-weight: 600; }
table.tstack td small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
table.tstack td.t-plan { min-width: 200px; }
table.tstack .t-op { color: var(--muted); font-weight: 600; }
table.tstack td.t-cost strong { font-size: 16px; }
table.tstack td.t-link { white-space: nowrap; }
table.tstack details.t-more { margin-top: 4px; font-size: 12px; }
table.tstack details.t-more summary { cursor: pointer; color: var(--brand); width: max-content; }
table.tstack details.t-more ul { margin: 4px 0 0; padding-left: 16px; max-width: 46ch; color: var(--muted); }
table.tstack th .tsort-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
table.tstack th .tsort-btn::after { content: " ↕"; opacity: 0.45; }
table.tstack th[aria-sort="ascending"] .tsort-btn::after { content: " ↑"; opacity: 1; }
table.tstack th[aria-sort="descending"] .tsort-btn::after { content: " ↓"; opacity: 1; }
table.tstack th .tsort-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tsort { display: none; margin: 0 0 8px; font-size: 14px; }
.tsort select { margin-left: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
/* Phones: each plan becomes a card (like .prices.stack), every value next to its label, the link last. */
@media (max-width: 640px) {
  table.tstack thead { display: none; }
  table.tstack tr { display: block; padding: 12px; border-bottom: 1px solid var(--line); }
  table.tstack td { display: block; position: relative; min-width: 0; padding: 3px 0 3px 40%; border: 0; white-space: normal; }
  table.tstack td::before { content: attr(data-label); position: absolute; left: 0; width: 37%; color: var(--muted); font-size: 12px; }
  table.tstack td.t-plan { padding: 0 0 6px; }
  table.tstack td.t-link { padding: 6px 0 0; }
  table.tstack td.t-plan::before, table.tstack td.t-link::before { content: none; }
  .tsort { display: block; }
}

/* ---------------------------------------------------------------------------------------------
   Taxi fares and waiting times (taxi_pages.py, templates/taxi/, taxi.js). Map and chart colours:
   the dataviz reference blue ramp in five classes, validated as an ordinal scale against each
   surface; dark mode has its own steps (low values dark), not an automatic flip. Label ink inside
   a class (near-black or white) follows APCA. "No car available" is hatched, never colour alone.
   --------------------------------------------------------------------------------------------- */
.tx-notice { max-width: 92ch; margin: 0 0 18px; padding: 10px 14px; font-size: 13px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.tx-notice p { margin: 4px 0; }
.tx-collecting { max-width: 80ch; padding: 8px 12px; background: var(--panel); border-left: 4px solid var(--line); border-radius: var(--radius); }
.tx-map-fig, .tx-chart, .tx-heat {
  color-scheme: light;
  --tx-surface: #fcfcfb; --tx-ink: #0b0b0b; --tx-ink-2: #52514e; --tx-muted: #898781; --tx-grid: #e1e0d9; --tx-axis: #c3c2b7;
  --tx-border: rgba(11, 11, 11, 0.10); --tx-s1: #2a78d6; --tx-ref: #898781;
  --tx-c1: #86b6ef; --tx-c2: #5598e7; --tx-c3: #2a78d6; --tx-c4: #1c5cab; --tx-c5: #104281; --tx-na: #e1e0d9; --tx-na-line: #898781; --tx-nd: #e1e0d9;
  --tx-ink-c1: #0b0b0b; --tx-ink-c2: #ffffff; --tx-ink-c3: #ffffff; --tx-ink-c4: #ffffff; --tx-ink-c5: #ffffff; --tx-ink-na: #0b0b0b; --tx-ink-nd: #52514e;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) :is(.tx-map-fig, .tx-chart, .tx-heat) {
    color-scheme: dark;
    --tx-surface: #1a1a19; --tx-ink: #f0efec; --tx-ink-2: #c3c2b7; --tx-grid: #2c2c2a; --tx-axis: #383835;
    --tx-border: rgba(255, 255, 255, 0.10); --tx-s1: #3987e5;
    --tx-c1: #184f95; --tx-c2: #256abf; --tx-c3: #3987e5; --tx-c4: #6da7ec; --tx-c5: #9ec5f4; --tx-na: #2c2c2a; --tx-nd: #2c2c2a;
    --tx-ink-c1: #ffffff; --tx-ink-c2: #ffffff; --tx-ink-c3: #ffffff; --tx-ink-c4: #0b0b0b; --tx-ink-c5: #0b0b0b; --tx-ink-na: #f0efec; --tx-ink-nd: #c3c2b7;
  }
}
:root[data-theme="dark"] :is(.tx-map-fig, .tx-chart, .tx-heat) {
  color-scheme: dark;
  --tx-surface: #1a1a19; --tx-ink: #f0efec; --tx-ink-2: #c3c2b7; --tx-grid: #2c2c2a; --tx-axis: #383835;
  --tx-border: rgba(255, 255, 255, 0.10); --tx-s1: #3987e5;
  --tx-c1: #184f95; --tx-c2: #256abf; --tx-c3: #3987e5; --tx-c4: #6da7ec; --tx-c5: #9ec5f4; --tx-na: #2c2c2a; --tx-nd: #2c2c2a;
  --tx-ink-c1: #ffffff; --tx-ink-c2: #ffffff; --tx-ink-c3: #ffffff; --tx-ink-c4: #0b0b0b; --tx-ink-c5: #0b0b0b; --tx-ink-na: #f0efec; --tx-ink-nd: #c3c2b7;
}
.tx-split { display: grid; gap: 16px; align-items: start; margin: 0 0 10px; }
@media (min-width: 900px) {
  .tx-split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .tx-side { max-height: 760px; overflow: auto; }
}
@media (max-width: 899px) { .tx-short { max-height: 440px; overflow: auto; } } /* the hub's list of every area, kept short */
.tx-map-fig { margin: 0; padding: 10px; background: var(--tx-surface); color: var(--tx-ink); border: 1px solid var(--tx-border); border-radius: var(--radius); }
.tx-map { position: relative; container-type: inline-size; }
.tx-map svg { display: block; width: 100%; height: 100%; }
.tx-r { stroke: var(--tx-surface); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tx-r:hover, .tx-r.tx-on { stroke: var(--tx-ink); stroke-width: 2px; }
.tx-r.tx-home { stroke: var(--tx-ink); stroke-width: 2px; }
.tx-c1 { fill: var(--tx-c1); } .tx-c2 { fill: var(--tx-c2); } .tx-c3 { fill: var(--tx-c3); } .tx-c4 { fill: var(--tx-c4); } .tx-c5 { fill: var(--tx-c5); }
.tx-r.tx-na { fill: url(#tx-hatch); } .tx-r.tx-nd { fill: var(--tx-nd); }
.tx-hatch-bg { fill: var(--tx-na); } .tx-hatch-line { fill: var(--tx-na-line); }
.tx-lab { position: absolute; transform: translate(-50%, -50%); text-align: center; white-space: nowrap; pointer-events: none; font-size: 12px; line-height: 14px; font-weight: 500; text-shadow: 0 0 2px var(--tx-halo), 0 0 2px var(--tx-halo), 0 0 3px var(--tx-halo); }
.tx-lab b { display: block; font-weight: 700; }
.tx-lab .tx-v { display: block; font-variant-numeric: tabular-nums; }
.tx-ink-c1 { color: var(--tx-ink-c1); --tx-halo: var(--tx-c1); } .tx-ink-c2 { color: var(--tx-ink-c2); --tx-halo: var(--tx-c2); }
.tx-ink-c3 { color: var(--tx-ink-c3); --tx-halo: var(--tx-c3); } .tx-ink-c4 { color: var(--tx-ink-c4); --tx-halo: var(--tx-c4); }
.tx-ink-c5 { color: var(--tx-ink-c5); --tx-halo: var(--tx-c5); } .tx-ink-na { color: var(--tx-ink-na); --tx-halo: var(--tx-na); }
.tx-ink-nd { color: var(--tx-ink-nd); --tx-halo: var(--tx-nd); }
@container (max-width: 639px) { .tx-k2 { display: none; } }
.tx-marker { position: absolute; width: 14px; height: 14px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--tx-ink); border: 3px solid var(--tx-surface); box-shadow: 0 0 0 1px var(--tx-ink); }
.tx-map-fig figcaption { margin-top: 8px; }
.tx-legend-title { margin: 0; font-size: 13px; font-weight: 600; color: var(--tx-ink); }
.tx-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--tx-ink-2); }
.tx-sw { display: inline-block; width: 16px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; }
.tx-sw.tx-c1 { background: var(--tx-c1); } .tx-sw.tx-c2 { background: var(--tx-c2); } .tx-sw.tx-c3 { background: var(--tx-c3); }
.tx-sw.tx-c4 { background: var(--tx-c4); } .tx-sw.tx-c5 { background: var(--tx-c5); }
.tx-sw.tx-na { background: repeating-linear-gradient(45deg, var(--tx-na-line) 0 2px, var(--tx-na) 2px 6px); }
.tx-sw.tx-nd { background: var(--tx-nd); box-shadow: inset 0 0 0 1px var(--tx-axis); }
table.tx-table caption { caption-side: top; text-align: left; padding: 8px 12px; font-size: 13px; color: var(--muted); }
table.tx-table tbody th { background: none; color: var(--text); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; white-space: normal; }
table.tx-table tbody th small, table.tx-table td small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
table.tx-table thead th { white-space: normal; }
.tx-side table.prices th, .tx-side table.prices td { padding: 8px 9px; }
@media (max-width: 640px) {
  table.tx-table th, table.tx-table td { padding: 8px; }
  table.tx-table tbody th { position: sticky; left: 0; z-index: 1; min-width: 112px; background: var(--bg); box-shadow: 1px 0 0 var(--line); }
  table.tx-table thead th:first-child { position: sticky; left: 0; z-index: 2; }
}
.tx-tableview { margin: 0 0 14px; }
.tx-tableview > summary { cursor: pointer; width: max-content; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--brand); }
table.tx-heat { border-collapse: separate; border-spacing: 2px; font-size: 12px; background: var(--tx-surface); color: var(--tx-ink); }
table.tx-heat caption { caption-side: top; text-align: left; padding: 6px 4px; font-size: 13px; color: var(--muted); }
table.tx-heat th { padding: 2px 6px; font-weight: 600; text-align: left; white-space: nowrap; }
table.tx-heat thead th { font-weight: 400; color: var(--tx-muted); text-align: center; padding: 2px; }
table.tx-heat td { min-width: 26px; height: 24px; text-align: center; border-radius: 3px; font-variant-numeric: tabular-nums; }
table.tx-heat td.tx-c1 { background: var(--tx-c1); color: var(--tx-ink-c1); } table.tx-heat td.tx-c2 { background: var(--tx-c2); color: var(--tx-ink-c2); }
table.tx-heat td.tx-c3 { background: var(--tx-c3); color: var(--tx-ink-c3); } table.tx-heat td.tx-c4 { background: var(--tx-c4); color: var(--tx-ink-c4); }
table.tx-heat td.tx-c5 { background: var(--tx-c5); color: var(--tx-ink-c5); } table.tx-heat td.tx-nd { background: var(--tx-nd); }
table.tx-heat td.tx-na { background: repeating-linear-gradient(45deg, var(--tx-na-line) 0 2px, var(--tx-na) 2px 6px); color: var(--tx-ink-na); }
.tx-chart { max-width: 860px; margin: 8px 0 14px; padding: 12px 14px 10px; background: var(--tx-surface); color: var(--tx-ink); border: 1px solid var(--tx-border); border-radius: var(--radius); }
.tx-chart figcaption { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.tx-keys { margin: -4px 0 10px; }
.tx-key { display: inline-block; width: 16px; height: 2px; margin-right: 6px; vertical-align: middle; }
.tx-key.tx-s1 { background: var(--tx-s1); } .tx-key.tx-ref { background: var(--tx-ref); }
.tx-plot { position: relative; height: 200px; margin: 0 48px 0 40px; border-bottom: 1px solid var(--tx-axis); }
.tx-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--tx-grid); }
.tx-grid > span { position: absolute; right: 100%; transform: translateY(-50%); padding-right: 6px; font-size: 11px; color: var(--tx-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.tx-col { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.tx-bar { position: relative; width: min(24px, 70%); background: var(--tx-s1); border-radius: 4px 4px 0 0; }
.tx-bar.tx-zero { height: 2px; background: var(--tx-muted); border-radius: 1px; }
.tx-col:hover .tx-bar, .tx-col.tx-on .tx-bar { filter: brightness(1.15); }
.tx-val { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 2px; font-size: 11px; color: var(--tx-ink); white-space: nowrap; }
.tx-xaxis { display: flex; gap: 2px; margin: 4px 48px 0 40px; font-size: 11px; color: var(--tx-muted); font-variant-numeric: tabular-nums; }
.tx-xaxis > span { flex: 1 1 0; text-align: center; }
.tx-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tx-lines polyline { fill: none; stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.tx-lines .tx-s1 { stroke: var(--tx-s1); } .tx-lines .tx-ref { stroke: var(--tx-ref); }
.tx-dot { position: absolute; width: 8px; height: 8px; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 2px var(--tx-surface); }
.tx-dot::after { content: ""; position: absolute; inset: -8px; }
.tx-dot.tx-s1 { background: var(--tx-s1); } .tx-dot.tx-ref { background: var(--tx-ref); }
.tx-end { position: absolute; transform: translate(8px, -50%); font-size: 11px; color: var(--tx-ink-2); white-space: nowrap; }
.tx-tip { position: fixed; z-index: 40; max-width: 260px; padding: 5px 9px; border-radius: 4px; background: #1d1d1b; color: #fff; font-size: 13px; line-height: 1.35; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.tx-tip strong { display: block; }
