:root {
  --ink: #0e2923;
  --muted: #617972;
  --line: #d5dfd8;
  --paper: #fbfcf8;
  --field: #f5f7f2;
  --card: #edf2ed;
  --page-max: 100rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-height: 6.15rem;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
body.sheet-lock { overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
.sheet-apply, .show-more-coffees { background: var(--ink); border: 0; border-radius: 0.65rem; color: #fff; cursor: pointer; font-size: 0.9rem; font-weight: 700; min-height: 3.1rem; width: 100%; }

/* Header and content share one container so their edges line up. */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header-inner { align-items: center; display: flex; gap: 3rem; margin: 0 auto; max-width: var(--page-max); min-height: var(--header-height); padding: 0 var(--gutter); }
.wordmark { color: var(--ink); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.2em; line-height: 1.12; text-decoration: none; text-transform: uppercase; width: max-content; }
.details-trigger:hover { color: #4b7467; }

.hero { margin: 0 auto; max-width: var(--page-max); padding: 3.6rem var(--gutter) 3.2rem; }
.detail-eyebrow, .detail-label, .detail-highlights span, .detail-facts dt { color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; line-height: 1.3; margin: 0; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, .detail-header h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(2.5rem, 5vw, 5.2rem); letter-spacing: -0.05em; line-height: 1; margin: 0 0 1.4rem; max-width: 64rem; }
.hero-turn { color: var(--muted); display: block; }
.hero-copy { color: var(--muted); font-size: 1.08rem; line-height: 1.55; margin: 0; }

.browse-section { border-top: 1px solid var(--line); margin: 0 auto; max-width: var(--page-max); padding: 0 var(--gutter) 6rem; }

/* Toolbar row spans both columns: filter controls over the sidebar, sort over the grid. */
.browse-layout { display: grid; grid-template-areas: "bar tools" "panel list"; grid-template-columns: 16rem minmax(0, 1fr); }
.browse-layout.filters-collapsed { grid-template-areas: "bar tools" "list list"; grid-template-columns: auto minmax(0, 1fr); }
.filter-bar { align-items: center; border-bottom: 1px solid var(--line); display: flex; grid-area: bar; justify-content: space-between; padding: 2rem 2rem 1.1rem 0; }
.filters-collapsed .filter-bar { border-bottom: 0; }
.filter-toggle { align-items: center; background: none; border: 0; cursor: pointer; display: inline-flex; font-size: 0.98rem; font-weight: 700; gap: 0.6rem; letter-spacing: 0.15em; padding: 0; text-transform: uppercase; }
.filter-icon { fill: none; height: 1.1rem; stroke: currentColor; stroke-linecap: round; stroke-width: 1.5; width: 1.1rem; }
.filter-icon circle { fill: var(--paper); }
.filter-count { background: var(--ink); border-radius: 999px; color: #fff; font-size: 0.66rem; letter-spacing: 0; line-height: 1; min-width: 1.35rem; padding: 0.22rem 0.4rem; text-align: center; }
.filter-count[hidden], .clear-filters[hidden] { display: none; }
.clear-filters { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.8rem; padding: 0; }

.catalog-toolbar { align-items: center; display: flex; gap: 1.5rem; grid-area: tools; justify-content: space-between; padding: 2rem 0 1.1rem 2.5rem; }
.catalog-summary { align-items: center; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.catalog-summary p { color: var(--muted); font-size: 0.82rem; margin: 0; }
.info-mark { align-items: center; border: 1px solid #b8c7bf; border-radius: 50%; cursor: help; display: inline-flex; font-size: 0.6rem; font-weight: 800; height: 1rem; justify-content: center; margin-left: 0.3rem; vertical-align: 0.05rem; width: 1rem; }
.stock-legend { align-items: center; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.stock-legend[hidden] { display: none; }
.stock-legend-item { align-items: center; display: inline-flex; gap: 0.35rem; white-space: nowrap; }
.legend-dot { border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0.1rem 0.5rem rgb(14 41 35 / 22%); display: inline-block; height: 0.82rem; width: 0.82rem; }
.legend-dot[data-status='in_stock'] { background: #16a34a; }
.legend-dot[data-status='out_of_stock'] { background: #dc2626; }
.legend-dot[data-status='unknown'] { background: #87968f; }
.sort-control { align-items: center; color: var(--muted); display: flex; font-size: 0.8rem; gap: 0.7rem; }

.filter-panel { align-self: start; border-right: 1px solid var(--line); grid-area: panel; max-height: calc(100vh - var(--header-height) - 1rem); overflow: auto; overscroll-behavior: contain; padding: 0 2rem 2rem 6px; margin-left: -6px; position: sticky; scrollbar-color: var(--line) transparent; scrollbar-width: thin; top: calc(var(--header-height) + 0.5rem); }
.filter-panel[hidden] { display: none; }
.sheet-header, .sheet-footer, .filter-backdrop { display: none; }
.filter-search { border-bottom: 1px solid var(--line); color: var(--muted); display: block; font-size: 0.83rem; font-weight: 700; padding: 1.35rem 0; }
.filter-search input, .option-search, .sort-control select {
  appearance: auto;
  background: #fff;
  border: 1px solid #ccd6d0;
  border-radius: 0.65rem;
  color: var(--ink);
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 0.7rem;
  min-height: 3.3rem;
  padding: 0 0.85rem;
  width: 100%;
}
.filter-search input::placeholder, .option-search::placeholder { color: #82958e; }
.option-search { margin: 0 0 0.6rem; min-height: 2.6rem; }
.sort-control select { font-size: 0.84rem; margin: 0; min-height: 3.15rem; min-width: 14.5rem; }
.filter-search input:focus, .option-search:focus, .sort-control select:focus, .details-trigger:focus-visible, .image-button:focus-visible, .dialog-close:focus-visible, .filter-toggle:focus-visible, .filter-group summary:focus-visible, .option input:focus-visible, .applied-chip:focus-visible, .info-mark:focus-visible { outline: 2px solid #4b7467; outline-offset: 3px; }
.filter-group { border-bottom: 1px solid var(--line); }
.filter-group summary { align-items: center; color: var(--muted); cursor: pointer; display: flex; font-size: 0.83rem; font-weight: 700; gap: 0.6rem; list-style: none; padding: 1.2rem 0; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { color: var(--ink); content: '+'; font-size: 1.15rem; font-weight: 300; line-height: 1; margin-left: auto; }
.filter-group[open] summary::after { content: '−'; }
.group-selected { background: var(--ink); border-radius: 999px; color: #fff; font-size: 0.66rem; line-height: 1; min-width: 1.35rem; padding: 0.22rem 0.4rem; text-align: center; }
.group-selected[hidden] { display: none; }
.option-list { list-style: none; margin: 0; padding: 0 0 1rem; }
.option-list.is-scrollable { max-height: 15rem; overflow: auto; overscroll-behavior: contain; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.option-list li[hidden] { display: none; }
.option { align-items: center; cursor: pointer; display: flex; font-size: 0.86rem; gap: 0.6rem; padding: 0.32rem 0; }
.in-stock-filter { border-bottom: 1px solid var(--line); margin-bottom: 0.25rem; padding: 1rem 0; }
.in-stock-filter[hidden] { display: none; }
.option input { accent-color: var(--ink); flex: 0 0 auto; height: 1rem; margin: 0; width: 1rem; }
.option-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.option-count { color: var(--muted); font-size: 0.76rem; font-variant-numeric: tabular-nums; }
.option-list li.is-empty .option { cursor: default; opacity: 0.42; }
.catalog-area { grid-area: list; min-width: 0; padding: 1.75rem 0 0 2.5rem; }
.filters-collapsed .catalog-area { padding-left: 0; }
.applied-filters { align-items: center; display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.75rem; }
.applied-filters[hidden] { display: none; }
.applied-chip { align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); cursor: pointer; display: inline-flex; font-size: 0.78rem; gap: 0.45rem; padding: 0.42rem 0.72rem; }
.applied-chip span { color: var(--muted); font-size: 0.95rem; line-height: 1; }
.applied-clear { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.78rem; margin-left: 0.35rem; padding: 0.4rem 0.2rem; text-decoration: underline; }

/* Grid picks its own column count; cards stay a comfortable reading width. */
.catalog { display: grid; gap: 3rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.catalog-sentinel { height: 1px; margin-top: 1px; }
.catalog-pagination { display: grid; gap: 0.8rem; justify-items: center; margin: 2.5rem auto 0; max-width: 24rem; }
.catalog-pagination[hidden] { display: none; }
.catalog-progress { color: var(--muted); font-size: 0.82rem; margin: 0; text-align: center; }

/* Standard coffee card: every slot has a fixed shape so rows line up. */
.product-card { contain-intrinsic-size: auto 32rem; content-visibility: auto; }
.product-card[hidden] { display: none; }
.image-button { background: transparent; border: 0; cursor: pointer; display: block; padding: 0; width: 100%; }
.image-frame { aspect-ratio: 1 / 1.04; background: var(--card); border: 1px solid var(--line); border-radius: 0.85rem; display: block; overflow: hidden; position: relative; }
.product-image { display: block; height: 100%; mix-blend-mode: multiply; object-fit: contain; padding: 6%; transition: transform 260ms ease; width: 100%; }
.image-button:hover .product-image { transform: scale(1.02); }
.product-image-placeholder { align-items: center; color: var(--muted); display: flex; font-size: 0.69rem; font-weight: 800; inset: 0; justify-content: center; letter-spacing: 0.15em; position: absolute; text-transform: uppercase; }
.product-image-placeholder[hidden] { display: none; }
.badge { position: absolute; right: 0.8rem; top: 0.8rem; }
.product-copy { padding-top: 1rem; }
.product-roaster { color: #46655b; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.14em; line-height: 1.2; margin: 0 0 0.5rem; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.product-title { font-size: 1rem; line-height: 1.25; margin: 0; min-height: 2.5em; }
.details-trigger { -webkit-box-orient: vertical; -webkit-line-clamp: 2; background: none; border: 0; cursor: pointer; display: -webkit-box; font: inherit; overflow: hidden; padding: 0; text-align: left; text-overflow: ellipsis; }
.product-price { align-items: baseline; display: flex; gap: 0.6rem; margin: 0.7rem 0 0; min-height: 1.6rem; min-width: 0; }
.product-price-value { flex: 0 0 auto; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1; white-space: nowrap; }
.product-price-context { align-self: center; color: #46655b; display: flex; font-size: 0.72rem; font-weight: 700; gap: 0.3rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.size-tag { border: 1px solid var(--line); border-radius: 0.3rem; color: #365f52; flex: 0 0 auto; font-size: 0.68rem; font-weight: 700; line-height: 1; padding: 0.24rem 0.4rem; }
.size-tag-more { border-style: dashed; color: var(--muted); }
.detail-size-row a { color: inherit; text-underline-offset: 0.15em; }
.product-notes { align-items: center; border-top: 1px solid var(--line); display: flex; flex-wrap: nowrap; gap: 0.35rem; margin-top: 0.85rem; min-height: 2.35rem; overflow: hidden; padding-top: 0.65rem; }
.product-note { background: #eef2ee; border-radius: 999px; color: #365f52; flex: 0 1 auto; font-size: 0.69rem; line-height: 1; max-width: 10.5em; min-width: 0; overflow: hidden; padding: 0.36rem 0.54rem; text-overflow: ellipsis; white-space: nowrap; }
.product-note-more { background: transparent; border: 1px solid var(--line); color: var(--muted); flex: 0 0 auto; }
.product-notes-empty { color: var(--muted); font-size: 0.72rem; }
.empty-state { color: var(--muted); font-size: 0.9rem; padding: 3rem 0; }

.product-dialog { background: transparent; border: 0; height: 100%; margin: 0; max-height: none; max-width: none; padding: 0; width: 100%; }
.product-dialog::backdrop { background: rgb(14 41 35 / 48%); }
.detail-panel { background: var(--paper); box-shadow: -1rem 0 4rem rgb(14 41 35 / 15%); height: 100%; margin-left: auto; max-width: 46rem; overflow: auto; }
.detail-header { align-items: flex-start; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 2rem 2.2rem 1.5rem; position: sticky; top: 0; z-index: 1; backdrop-filter: blur(12px); }
.detail-header h2 { font-size: clamp(2.4rem, 4vw, 4rem); letter-spacing: -0.055em; line-height: 0.94; margin: 0.55rem 1rem 0 0; }
.dialog-close { background: transparent; border: 0; cursor: pointer; font-size: 2.1rem; font-weight: 300; line-height: 1; padding: 0; }
.detail-content { padding: 2rem 2.2rem 3.5rem; }
.detail-hero { align-items: center; display: grid; gap: 1.5rem; grid-template-columns: 12rem 1fr; }
.detail-image { aspect-ratio: 1 / 1; background: var(--card); border: 1px solid var(--line); border-radius: 0.6rem; mix-blend-mode: multiply; object-fit: contain; padding: 6%; width: 100%; }
.detail-status { font-size: 0.9rem; font-weight: 800; margin: 0 0 0.6rem; }
.detail-status[data-status='in_stock'] { color: #16833c; }
.detail-status[data-status='out_of_stock'] { color: #c23b32; }
.detail-status[data-status='unknown'] { color: var(--muted); }
.detail-price { font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; margin: 0 0 1rem; }
.detail-source-link { color: var(--ink); font-size: 0.82rem; font-weight: 800; }
.detail-description, .detail-notes { color: var(--muted); font-size: 0.98rem; line-height: 1.58; margin: 1.7rem 0 0; }
.detail-highlights { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.8rem; }
.detail-highlights > div { min-height: 5.3rem; padding: 1rem 1rem 1rem 0; }
.detail-highlights > div + div { border-left: 1px solid var(--line); padding-left: 1rem; }
.detail-highlights strong { display: block; font-size: 0.95rem; font-weight: 500; line-height: 1.3; margin-top: 0.5rem; }
.detail-section { border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
.detail-section h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 400; margin: 0 0 1rem; }
.detail-label { display: block; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.65rem; }
.detail-chip { background: #eef2ee; border-radius: 999px; color: #365f52; font-size: 0.78rem; padding: 0.4rem 0.62rem; }
.detail-facts { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin: 0; }
.detail-facts dd { font-size: 0.96rem; line-height: 1.4; margin: 0.45rem 0 0; }
.detail-sizes { border: 1px solid var(--line); border-radius: 0.55rem; overflow: hidden; }
.detail-size-row { align-items: center; display: grid; gap: 0.6rem; grid-template-columns: 1fr auto auto; padding: 0.75rem 0.85rem; }
.detail-size-row + .detail-size-row { border-top: 1px solid var(--line); }
.detail-size-row > span:nth-child(2), .size-availability { font-size: 0.78rem; font-weight: 700; }
.size-availability[data-status='in_stock'] { color: #16833c; }
.size-availability[data-status='out_of_stock'] { color: #c23b32; }
.size-availability[data-status='unknown'], .detail-muted, .detail-grind { color: var(--muted); }
.detail-grind, .detail-muted { font-size: 0.78rem; line-height: 1.5; margin: 0.9rem 0 0; }
.detail-notes-section[hidden] { display: none; }

@media (max-width: 68rem) {
  .browse-layout { grid-template-columns: 15rem minmax(0, 1fr); }
  .filter-panel, .filter-bar { padding-right: 1.5rem; }
  .catalog-toolbar, .catalog-area { padding-left: 2rem; }
}

@media (max-width: 48rem) {
  .site-header-inner { gap: 1.25rem; min-height: 5rem; }
  .hero { padding-bottom: 2.2rem; padding-top: 2.4rem; }
  h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero-copy { font-size: 1rem; }
  .browse-section { padding-bottom: 3.5rem; }
  .browse-layout, .browse-layout.filters-collapsed { display: block; }
  .filter-bar { border-bottom: 0; padding: 1.75rem 0 0.75rem; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; gap: 1rem; padding: 0 0 1.25rem; }
  .sort-control { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .sort-control select { min-width: 12rem; }
  .catalog-area, .filters-collapsed .catalog-area { padding: 0; }
  .catalog { gap: 2.5rem 1rem; }
  .product-price-value { font-size: 1.35rem; }

  /* Filters become a bottom sheet. */
  .filter-backdrop { background: rgb(14 41 35 / 48%); display: block; inset: 0; position: fixed; z-index: 29; }
  .filter-backdrop[hidden] { display: none; }
  .filter-panel { background: var(--paper); border: 0; border-radius: 1.1rem 1.1rem 0 0; bottom: 0; box-shadow: 0 -1rem 3rem rgb(14 41 35 / 18%); left: 0; margin-left: 0; max-height: 88vh; padding: 0 1.25rem; position: fixed; right: 0; top: auto; z-index: 30; }
  .sheet-header { align-items: center; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 1.1rem 0; position: sticky; top: 0; z-index: 1; }
  .sheet-header h3 { font-size: 0.98rem; letter-spacing: 0.15em; margin: 0; text-transform: uppercase; }
  .sheet-close { background: none; border: 0; cursor: pointer; font-size: 1.9rem; font-weight: 300; line-height: 1; padding: 0; }
  .sheet-footer { background: var(--paper); border-top: 1px solid var(--line); bottom: 0; display: block; padding: 1rem 0 1.25rem; position: sticky; }
  .detail-panel { max-width: none; }
  .detail-header, .detail-content { padding-left: 1.25rem; padding-right: 1.25rem; }
  .detail-hero { grid-template-columns: 8rem 1fr; }
  .detail-highlights, .detail-facts { grid-template-columns: 1fr; }
  .detail-highlights > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .detail-size-row { grid-template-columns: 1fr auto; }
  .size-availability { grid-column: 1 / -1; }
}

/* Text pages (about, methodology) and the generated SEO pages share this column. */
.page { margin: 0 auto; max-width: 46rem; padding: 3.2rem var(--gutter) 6rem; }
.page h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin: 0 0 1.4rem; }
.page h2 { font-size: 1.35rem; margin: 2.6rem 0 0.8rem; }
.page p, .page li { color: var(--ink); font-size: 1.02rem; line-height: 1.7; }
.page ul { padding-left: 1.2rem; }
.page .lede { color: var(--muted); font-size: 1.15rem; }
.page a { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; margin: 0 auto; max-width: var(--page-max); padding: 2rem var(--gutter) 3rem; }
.site-footer a { color: var(--muted); margin-right: 1.2rem; }

/* Static coffee, roaster and topic pages use the existing text-page rhythm. */
.breadcrumbs { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 0.82rem; gap: 0.45rem; margin: 0 0 1.8rem; }
.breadcrumbs a { color: var(--muted); }
.seo-page h1 + .seo-roaster-line { margin-top: -0.8rem; }
.seo-roaster-line { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.seo-coffee-hero-image { background: var(--card); border: 1px solid var(--line); border-radius: 0.85rem; display: block; height: auto; margin: 0; max-width: 17rem; mix-blend-mode: multiply; object-fit: contain; padding: 6%; width: 100%; }
.seo-purchase { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); padding: 1.15rem 0; }
.seo-coffee-top { display: grid; gap: 1.5rem; margin: 1.7rem 0 2.3rem; }
@media (min-width: 40rem) { .seo-coffee-top { align-items: center; grid-template-columns: 17rem minmax(0, 1fr); } }
.seo-price { font-family: Georgia, "Times New Roman", serif; font-size: 2rem !important; line-height: 1.1 !important; margin-bottom: 0.45rem; }
.seo-price span { color: #46655b; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 0.78rem; font-weight: 800; margin-left: 0.45rem; }
.seo-sizes { color: var(--muted) !important; font-size: 0.82rem !important; margin-bottom: 0.7rem; }
.seo-roaster-link { font-size: 0.86rem; font-weight: 800; }
.seo-stock { align-items: center; color: #46655b !important; display: flex; font-size: 0.8rem !important; font-weight: 700; gap: 0.5rem; margin: 0.9rem 0 0; }
.seo-stock[hidden] { display: none; }
.seo-facts { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.1rem 0 0; }
.seo-facts > div { min-height: 4.7rem; padding: 0.9rem 1rem 0.9rem 0; }
.seo-facts > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 1rem; }
.seo-facts dt { color: var(--muted); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.seo-facts dd { margin: 0.45rem 0 0; }
.seo-notes { color: #365f52 !important; font-weight: 700; }
.seo-summary { border-left: 2px solid #729485; color: #365f52 !important; font-family: Georgia, "Times New Roman", serif; font-size: 1.16rem !important; padding-left: 1rem; }
.seo-coffee-grid { display: grid; gap: 2.2rem 1.2rem; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); margin-top: 1.35rem; }
.seo-coffee-grid-text { gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.seo-coffee-grid-text .seo-card-roaster { margin-top: 0 !important; }
.seo-coffee-card { min-width: 0; }
.seo-card-image { align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 0.7rem; display: flex; height: auto; justify-content: center; overflow: hidden; }
.seo-card-image img { aspect-ratio: 1; display: block; height: auto; mix-blend-mode: multiply; object-fit: contain; padding: 6%; width: 100%; }
.seo-card-image-empty { color: var(--muted); font-size: 0.7rem; min-height: 11.5rem; padding: 1rem; text-align: center; }
.seo-card-roaster { color: #46655b !important; font-size: 0.62rem !important; font-weight: 800; letter-spacing: 0.13em; margin: 0.8rem 0 0.35rem !important; text-transform: uppercase; }
.seo-coffee-card h3 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 0.92rem; line-height: 1.28; margin: 0; }
.seo-card-price { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem !important; margin: 0.45rem 0 0 !important; }
.seo-card-price span { color: #46655b; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 0.66rem; font-weight: 800; margin-left: 0.25rem; }
.seo-related { margin-top: 2.5rem; }
.seo-explore-links { color: var(--muted) !important; font-size: 0.86rem !important; margin-top: 2.3rem; }
.seo-explore-links a, .seo-related-topics a { color: #365f52; font-weight: 700; }
.seo-roaster-list { border-top: 1px solid var(--line); list-style: none; margin: 1.7rem 0 0; padding: 0; }
.seo-roaster-list li { align-items: baseline; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; justify-content: space-between; padding: 0.9rem 0; }
.seo-roaster-list span { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.seo-topic-count { color: var(--muted) !important; font-size: 0.88rem !important; }
.seo-faqs { margin-top: 3rem; }
.seo-faqs details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.seo-faqs summary { cursor: pointer; font-weight: 700; }
.seo-faqs p { color: var(--muted) !important; margin: 0.8rem 0 0; }
.seo-related-topics { margin-top: 2.6rem; }
.seo-topic-index { display: grid; gap: 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }
.seo-topic-group h2 { margin-top: 0; }
.seo-topic-group ul { margin: 0; }
.seo-estate-attribution, .seo-estates-index-link { color: var(--muted) !important; font-size: 0.88rem !important; }
.seo-estate-attribution a, .seo-estates-index-link a { color: #365f52; font-weight: 700; }
.estate-answer { max-width: 58rem; }
.estate-coffee-group { margin-top: 2.5rem; }
.estate-coffee-group > p { color: var(--muted) !important; font-size: 0.85rem !important; margin: -0.75rem 0 1rem !important; }
.estate-table-wrap { width: 100%; }
.estate-comparison-table { border-collapse: collapse; table-layout: fixed; width: 100%; }
.estate-comparison-table th, .estate-comparison-table td { border-bottom: 1px solid var(--line); padding: 0.75rem 0.6rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.estate-comparison-table th { color: var(--muted); font-size: 0.67rem; letter-spacing: 0.08em; text-transform: uppercase; }
.estate-comparison-table td { font-size: 0.84rem; }
.estate-comparison-table th:first-child, .estate-comparison-table td:first-child { padding-left: 0; width: 19%; }
.estate-comparison-table th:nth-child(2), .estate-comparison-table td:nth-child(2) { width: 31%; }
.estate-comparison-table th:last-child, .estate-comparison-table td:last-child { padding-right: 0; width: 19%; }
.estate-differences { border-left: 2px solid #729485; color: var(--muted); margin-top: 3rem; padding-left: 1rem; }
.estate-differences h2 { font-size: 1.15rem; margin-top: 0; }
.estate-differences p { line-height: 1.65; margin-bottom: 0; }
.estate-faqs { margin-top: 2rem; }
.seo-roaster-list li span { text-align: right; }

/* The home page keeps its catalog layout; this is its quiet SEO-only tail. */
.explore-topics { border-top: 1px solid var(--line); margin: 0 auto; max-width: var(--page-max); padding: 3.5rem var(--gutter) 5rem; }
.explore-topics h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 400; margin: 0 0 1.8rem; }
.explore-topic-groups { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.explore-topic-groups h3 { color: var(--muted); font-size: 0.67rem; letter-spacing: 0.16em; margin: 0 0 0.7rem; text-transform: uppercase; }
.explore-topic-groups a { color: var(--ink); display: block; font-size: 0.88rem; line-height: 1.45; margin: 0.26rem 0; text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
.explore-all-roasters { color: #365f52; display: inline-block; font-size: 0.86rem; font-weight: 800; margin-top: 2.1rem; }

@media (max-width: 48rem) {
  .seo-facts { grid-template-columns: 1fr; }
  .seo-facts > div:nth-child(even) { border-left: 0; padding-left: 0; }
  .seo-facts > div + div { border-top: 1px solid var(--line); }
  .seo-coffee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-topic-index, .explore-topic-groups { grid-template-columns: 1fr; }
  .estate-comparison-table, .estate-comparison-table tbody, .estate-comparison-table tr, .estate-comparison-table td { display: block; width: 100%; }
  .estate-comparison-table thead { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
  .estate-comparison-table tr { border-bottom: 1px solid var(--line); padding: 0.65rem 0; }
  .estate-comparison-table td, .estate-comparison-table th:first-child, .estate-comparison-table td:first-child, .estate-comparison-table th:nth-child(2), .estate-comparison-table td:nth-child(2), .estate-comparison-table th:last-child, .estate-comparison-table td:last-child { border: 0; display: grid; gap: 0.5rem; grid-template-columns: 8rem minmax(0, 1fr); padding: 0.22rem 0; width: 100%; }
  .estate-comparison-table td::before { color: var(--muted); content: attr(data-label); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
}
.home-faqs { margin-top: 0; }
.home-faqs details { max-width: 46rem; }
.home-faqs p { line-height: 1.65; max-width: 44rem; }
.home-faqs p a { color: #365f52; font-weight: 700; }
.home-faqs .home-faqs-updated { font-size: 0.8rem; margin-top: 1.4rem; }
