/* A small, server-rendered observatory. No font or component dependencies. */
:root {
  color-scheme: light;
  --paper: #f7f8f3;
  --surface: #fff;
  --ink: #202e27;
  --muted: #667369;
  --green: #235b43;
  --green-dark: #17442f;
  --green-wash: #edf3ec;
  --line: #dfe5dc;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 14px; line-height: 1.55; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a47716; outline-offset: 4px; }
input:focus-visible, select:focus-visible { outline-offset: 2px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; }
h1 { font-size: clamp(34px, 4vw, 52px); font-weight: 610; letter-spacing: -.045em; }
h2 { font-size: 26px; font-weight: 620; letter-spacing: -.035em; }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
strong { font-weight: 620; }
.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; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; color: #fff; background: var(--green); border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.site-header { background: rgba(255,255,255,.8); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1280px; min-height: 96px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; gap: 48px; }
.wordmark { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--green); background: var(--green-wash); }
.brand-symbol svg { width: 32px; height: 32px; }
.wordmark strong { display: block; font-size: 25px; letter-spacing: -.055em; line-height: 1.05; font-weight: 690; }
.wordmark-caption { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.primary-nav { display: flex; gap: 28px; align-self: stretch; align-items: stretch; margin-left: 40px; }
.primary-nav a { display: flex; align-items: center; position: relative; color: var(--muted); font-size: 13px; font-weight: 550; }
.primary-nav a:hover, .primary-nav a.active { color: var(--green); }
.primary-nav a.active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--green); border-radius: 3px 3px 0 0; }
.language-nav { display: flex; align-items: center; gap: 13px; margin-left: auto; white-space: nowrap; font-size: 11px; }
.language-nav a { color: var(--muted); padding: 7px 0; }
.language-nav a:hover, .language-nav a[aria-current="true"] { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.language-nav a[aria-current="true"] { font-weight: 650; }
.header-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-left: 0; font-size: 11px; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border: 1.5px solid #7a887d; border-radius: 50%; }
.main-shell { max-width: 1280px; margin: 0 auto; padding: 0 48px 64px; min-height: calc(100vh - 185px); }
.page-intro { display: flex; justify-content: space-between; align-items: center; gap: 56px; padding: 57px 0 37px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .14em; color: var(--green); text-transform: uppercase; margin-bottom: 15px; }
.intro-copy { color: var(--muted); font-size: 15px; max-width: 570px; margin-top: 21px; line-height: 1.8; }
.snapshot-note { border-left: 1px solid var(--line); padding: 10px 0 12px 31px; min-width: 231px; max-width: 235px; }
.note-icon { display: grid; place-items: center; width: 36px; height: 36px; background: #e8eee1; color: var(--green); border-radius: 50%; font-size: 22px; margin-bottom: 20px; }
.small-label { font-size: 10px; font-weight: 570; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.snapshot-note strong { display: block; font-size: 21px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-top: 5px; }
.snapshot-note > p:last-child { font-size: 11px; color: var(--muted); max-width: 180px; margin-top: 7px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 0; margin-bottom: 46px; }
.stat { padding: 0 29px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 560; letter-spacing: -.035em; margin: 7px 0 4px; font-variant-numeric: tabular-nums; }
.stat-description { color: var(--muted); font-size: 11px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-note { font-size: 12px; color: var(--muted); padding-bottom: 3px; }
.search-form { position: relative; display: flex; gap: 16px; align-items: flex-end; padding: 23px 24px; border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; background: #eff2eb; }
.search-field { flex: 1 1 auto; min-width: 0; }
.search-form label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.input-wrap { position: relative; }
.search-icon { position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; color: #839084; pointer-events: none; }
input, select { border: 1px solid #d5ddcf; background: var(--surface); color: var(--ink); border-radius: 7px; height: 45px; }
input { width: 100%; padding: 9px 13px 9px 43px; }
input::placeholder { color: #7b867a; }
select { padding: 8px 32px 8px 13px; width: 100%; }
.retailer-field { flex: 0 1 210px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 11px 22px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; gap: 7px; }
.button-primary { color: #fff; background: var(--green); border-color: var(--green); }
.button-primary:hover { color: #fff; background: var(--green-dark); }
.button-secondary { color: var(--green); background: var(--surface); border-color: var(--line); }
.button-secondary:hover { background: var(--green-wash); border-color: #b8c7b7; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: block; }
#search-progress { position: absolute; right: 24px; bottom: 3px; font-size: 10px; color: var(--green); }
.request-status:empty { display: none; }
.request-status { color: #844721; background: #fbf1e6; border: 1px solid #e4c9af; padding: 12px 20px; font-size: 12px; }
.results { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.results-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 19px 24px 17px; color: var(--muted); font-size: 11px; }
.results-summary strong { color: var(--ink); font-size: 12px; }
.results-summary > span { white-space: nowrap; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { font-size: 10px; text-transform: uppercase; letter-spacing: .055em; color: var(--muted); font-weight: 570; white-space: nowrap; background: #f9faf7; padding: 13px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
td { padding: 19px 20px; border-bottom: 1px solid #eaf0e6; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbf7; }
.product-name-cell { width: 41%; }
.product-link { font-size: 13px; color: var(--ink); font-weight: 600; line-height: 1.5; }
.product-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.product-brand { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.retailer-tag { display: inline-block; padding: 4px 9px; color: #526652; background: #f0f4ec; border-radius: 5px; font-size: 10px; font-weight: 550; white-space: nowrap; }
.price-cell { font-weight: 630; font-variant-numeric: tabular-nums; white-space: nowrap; }
.currency { font-weight: 450; font-size: 10px; color: var(--muted); }
.quantity-cell { color: #58665a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.date-cell { color: var(--muted); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); padding: 20px 24px; gap: 16px; }
.pagination > :first-child { justify-self: start; }
.pagination > :last-child { justify-self: end; }
.pagination .button { min-height: 37px; padding: 8px 14px; font-size: 11px; }
.page-number { font-size: 11px; color: var(--muted); }
.context-note { display: flex; gap: 13px; align-items: flex-start; margin-top: 23px; padding: 0 3px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.context-note p { max-width: 880px; }
.context-note strong { color: #526452; }
.context-symbol { display: grid; place-items: center; flex-shrink: 0; width: 17px; height: 17px; border: 1px solid #adb9a8; border-radius: 50%; margin-top: 2px; font-size: 10px; font-family: Georgia, serif; }
.empty-state { text-align: center; padding: 56px 24px; }
.empty-symbol { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-wash); color: var(--green); font-size: 31px; margin: 0 auto 22px; }
.empty-state p { color: var(--muted); max-width: 510px; margin: 14px auto 23px; line-height: 1.8; }
.text-link { font-weight: 600; font-size: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 48px; max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-separator { padding: 0 5px; color: #aeb9a9; }
.back-link { display: inline-block; font-size: 12px; margin: 32px 0; color: var(--muted); }
.detail-intro { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 10px 0 34px; }
.detail-intro > div { min-width: 0; }
.product-title { font-size: clamp(30px, 3.4vw, 44px); max-width: 740px; overflow-wrap: anywhere; }
.product-brand-large { color: var(--muted); margin-top: 11px; font-size: 16px; }
.product-description { font-size: 13px; }
.product-identifier { color: var(--muted); font-size: 10px; margin-top: 18px; overflow-wrap: anywhere; }
.product-identifier span { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.latest-price { border-left: 1px solid var(--line); padding-left: 30px; flex: 0 0 250px; }
.latest-price > strong { display: block; font-size: 42px; letter-spacing: -.05em; margin: 9px 0 5px; font-weight: 550; font-variant-numeric: tabular-nums; }
.latest-price > strong span { font-size: 21px; letter-spacing: -.02em; color: var(--muted); }
.latest-price > p:last-child { font-size: 11px; color: var(--muted); }
.detail-facts { display: grid; grid-template-columns: repeat(4, 1fr); background: #edf1e8; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 0; margin-bottom: 35px; }
.detail-facts > div { padding: 0 24px; }
.detail-facts > div + div { border-left: 1px solid #d9e2d2; }
.detail-facts strong { display: block; font-size: 19px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.detail-facts > div > p:last-child:not(.small-label) { font-size: 10px; color: var(--muted); margin-top: 4px; }
.history-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 23px; margin-bottom: 40px; }
.chart-legend { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.legend-line { display: block; width: 21px; height: 2px; background: var(--green); }
.price-chart { margin: 25px 0 0; }
.price-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: #e7ece3; stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 11px; font-family: inherit; font-variant-numeric: tabular-nums; }
.chart-area { fill: #edf4e9; }
.chart-line { stroke: var(--green); }
.chart-point { fill: var(--green); }
.price-chart figcaption { color: var(--muted); font-size: 10px; margin-top: 8px; }
.chart-empty { min-height: 220px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; gap: 9px; color: var(--muted); }
.chart-empty p { color: var(--green); font-size: 18px; }
.chart-empty span { font-size: 12px; }
.history-notice { background: #f5f2e7; color: #786037; border-radius: 6px; padding: 10px 13px; font-size: 11px; margin-top: 15px; }
.ledger-explainer { max-width: 870px; font-size: 12px; color: var(--muted); line-height: 1.8; margin: -3px 0 22px; }
.ledger-scroll { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-height: 560px; }
.history-table { min-width: 800px; }
.history-table th { position: sticky; top: 0; }
.history-table td { padding-top: 15px; padding-bottom: 15px; }
.table-footnote { color: var(--muted); font-size: 11px; margin-top: 15px; max-width: 990px; line-height: 1.8; }
.status-intro { padding-bottom: 34px; }
.status-intro h1 { max-width: 740px; }
.run-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 58px 24px; }
.runs-table { min-width: 860px; background: var(--surface); }
.run-status { padding: 5px 8px; background: var(--green-wash); border-radius: 4px; color: var(--green); }
.error-state { padding: 100px 24px; }
@media (min-width: 1400px) { .main-shell, .header-inner, .site-footer { max-width: 1320px; } }
@media (max-width: 1000px) {
  .header-inner, .main-shell { padding-left: 30px; padding-right: 30px; }
  .header-inner { gap: 24px; }
  .primary-nav { margin-left: 12px; }
  .page-intro { gap: 30px; }
  .snapshot-note { min-width: 200px; padding-left: 23px; }
  .stat { padding: 0 22px; }
  .stat-description { max-width: 200px; }
  .product-table th, .product-table td { padding-left: 14px; padding-right: 14px; }
  .product-table td:first-child, .product-table th:first-child { padding-left: 22px; }
  .product-table td:last-child, .product-table th:last-child { padding-right: 22px; }
  .detail-facts > div { padding: 0 18px; }
  .latest-price { flex-basis: 215px; padding-left: 23px; }
  .site-footer { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 760px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; min-height: 84px; padding: 14px 22px 0; gap: 0 16px; }
  .wordmark { grid-column: 1; grid-row: 1; }
  .wordmark strong { font-size: 22px; }
  .wordmark-caption { font-size: 8px; }
  .brand-symbol { width: 39px; height: 39px; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; gap: 28px; min-height: 48px; justify-content: center; }
  .language-nav { grid-column: 2; grid-row: 1; gap: 12px; font-size: 11px; }
  .primary-nav a { font-size: 12px; }
  .header-note { display: none; }
  .main-shell { padding: 0 22px 40px; }
  .page-intro { padding: 36px 0 27px; align-items: flex-start; gap: 26px; }
  h1 { font-size: 37px; }
  .intro-copy { font-size: 13px; margin-top: 17px; }
  .snapshot-note { display: none; }
  .stats-grid { padding: 20px 0; margin-bottom: 32px; }
  .stat { padding: 0 17px; }
  .stat-value { font-size: 26px; }
  .stat-description { font-size: 10px; }
  .small-label { font-size: 9px; }
  .section-heading { align-items: flex-start; margin-bottom: 18px; }
  .section-note { font-size: 10px; max-width: 170px; text-align: right; padding-top: 20px; }
  h2 { font-size: 24px; }
  .search-form { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .search-field { flex-basis: 100%; }
  .retailer-field { flex: 1; }
  .search-form .button { min-width: 112px; }
  .results-summary { padding: 17px 18px; }
  .product-table { table-layout: auto; }
  .product-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .product-table tbody { display: block; }
  .product-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 17px 18px; border-bottom: 1px solid var(--line); gap: 8px 16px; }
  .product-table tr:last-child { border-bottom: 0; }
  .product-table td, .product-table td:first-child, .product-table td:last-child { display: block; width: auto; padding: 0; border: 0; font-size: 12px; }
  .product-table .product-name-cell { grid-column: 1 / -1; padding-bottom: 7px; }
  .product-link { font-size: 14px; }
  .product-brand { margin-top: 2px; }
  .product-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 9px; font-weight: 450; margin-bottom: 4px; }
  .product-table .date-cell { white-space: normal; }
  .retailer-tag { padding: 2px 7px; }
  .pagination { padding: 17px 18px; }
  .site-footer { padding: 22px; flex-direction: column; gap: 7px; font-size: 10px; }
  .back-link { margin: 25px 0; }
  .detail-intro { display: block; }
  .latest-price { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; margin-top: 25px; }
  .latest-price > strong { font-size: 35px; margin-top: 6px; }
  .detail-facts { grid-template-columns: 1fr 1fr; padding: 0; }
  .detail-facts > div { padding: 18px; }
  .detail-facts > div + div { border: 0; }
  .detail-facts > div:nth-child(even) { border-left: 1px solid #d9e2d2; }
  .detail-facts > div:nth-child(n+3) { border-top: 1px solid #d9e2d2; }
  .history-panel { padding: 22px 18px 18px; }
  .history-panel .section-heading { flex-direction: column; gap: 14px; }
  .price-chart { margin-top: 16px; }
  .price-chart svg { min-height: 190px; }
  .price-chart figcaption { font-size: 10px; line-height: 1.7; }
  .ledger-explainer { font-size: 11px; }
  .observations-section .section-heading { flex-direction: column; gap: 8px; }
  .observations-section .section-note { text-align: left; max-width: none; padding-top: 0; }
}
@media (max-width: 430px) {
  .header-inner { gap: 0 10px; padding: 14px 16px 0; }
  .brand-symbol { width: 34px; height: 34px; }
  .brand-symbol svg { width: 28px; height: 28px; }
  .wordmark { gap: 7px; }
  .wordmark strong { font-size: 20px; }
  .wordmark-caption { font-size: 7px; letter-spacing: .12em; }
  .primary-nav { gap: 13px; }
  .primary-nav a { font-size: 11px; }
  .main-shell { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 33px; }
  .eyebrow { font-size: 9px; letter-spacing: .11em; }
  .stats-grid { grid-template-columns: 1fr; padding: 0 18px; }
  .stat { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 15px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat .small-label { grid-column: 1; font-size: 9px; }
  .stat-value { grid-column: 2; grid-row: 1 / 3; font-size: 27px; margin: 0; }
  .stat-description { grid-column: 1; font-size: 9px; max-width: 170px; }
  .section-heading > .section-note { display: none; }
  .search-form { padding: 15px; }
  .search-form .button { padding-left: 16px; padding-right: 16px; min-width: 95px; }
  input { font-size: 12px; }
  select { font-size: 12px; }
  .detail-facts > div { padding: 15px; }
  .detail-facts strong { font-size: 17px; }
  .latest-price .small-label { font-size: 10px; }
  .error-state { padding: 70px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Shareable, server-rendered product comparisons. */
.compare-product { display: inline-block; margin-left: 12px; font-size: 12px; text-decoration: underline; }
.comparison-section { margin: 28px 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.comparison-section h2 { margin: 0 0 14px; }
.comparison-section p { margin: 12px 0; max-width: 90ch; }
.comparison-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin: 20px 0; }
.comparison-controls label { display: grid; gap: 6px; }
.comparison-controls input, .comparison-controls select { padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); max-width: 100%; }
.comparison-selection, .comparison-search { list-style: none; padding: 0; }
.comparison-selection li, .comparison-search li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.remove-product { white-space: nowrap; text-decoration: underline; }
.comparison-notice { padding: 12px; background: var(--green-wash); }
.comparison-chart { margin: 20px 0 36px; }
.comparison-chart > svg { display: block; width: 100%; height: auto; }
.comparison-chart text { font-size: 12px; fill: var(--muted); }
.comparison-legend { display: inline-flex; align-items: center; gap: 6px; margin: 4px 16px 4px 0; }
.comparison-section summary { cursor: pointer; font-weight: 600; }
@media (max-width: 600px) {
  .comparison-section { padding: 14px; }
  .comparison-controls label { width: 100%; }
  .comparison-controls input, .comparison-controls select { width: 100%; min-width: 0; }
  .comparison-search li { align-items: start; }
}
