/* Plugin Deals — shared styles for the browse, product and review pages. */

:root {
  color-scheme: light;
  --font-body: Roboto, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: Rubik, var(--font-body);
  --surface: #f0f1f2;          /* page (live plugindeals.net) */
  --surface-card: #ffffff;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6472' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");   /* the select's arrow: drawn here, so it can be inset from the edge */
  --image-bg: linear-gradient(135deg, #5f74a14d 0%, #a9bde66b 50%, #5f74a14d 100%);  /* slate blue with a lighter, shinier middle; translucent, so it suits light and dark cards */
  --surface-2: #edeff3;        /* inputs, chips, table heads */
  --text-primary: #17202e;
  --text-secondary: #5b6472;
  --text-muted: #7c8492;
  --border: #e2e5ea;
  --border-strong: #c9ced7;
  --grid: #e8eaee;
  --accent: #1e4bb8;           /* navy-blue, echoes the header */
  --accent-ink: #ffffff;
  --accent-soft: #e7edfb;
  --deal: #d6293a;             /* red — discount badge: white text ≥ 4.5:1 */
  --deal-ink: #ffffff;
  --deal-soft: #fbe6e8;
  --best: #e5f4ea;
  --ok: #1a7f3f;                /* green: best price, "Record low". Was #1c8a44 (4.40:1 on white, under AA); now 5.06:1 */
  --warn: #b3720a;
  --bad: #b3261e;
  --shadow: 0 3px 6px rgb(19 42 82 / 8%);
  --shadow-hover: 0 3px 15px rgb(19 42 82 / 16%);
  --radius: 3px;
  --alerts-bg: #000064; --alerts-bg-hover: #1a1a8c; --alerts-ink: #ffffff;
  /* Chart series: the validated reference palette, slots 1–8 (light). */
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #008300; --series-7: #4a3aa7; --series-8: #e34948;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #0f1522;
    --surface-card: #161e2f;
    --surface-2: #1e2739;
    --text-primary: #f0f2f6;
    --text-secondary: #b7bfcc;
    --text-muted: #8891a1;
    --border: #283350;
    --border-strong: #3a4666;
    --grid: #232d45;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b7bfcc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --accent: #7fa3ff;
    --alerts-bg: #7fa3ff; --alerts-bg-hover: #a3bcff; --alerts-ink: #0a1730;
    --accent-ink: #0a1730;
    --accent-soft: #1c2846;
    --deal: #ef5b68;
    --deal-ink: #1a0a0c;
    --deal-soft: #3a1a1e;
    --best: #163524;
    --ok: #4fce85;
    --warn: #e0b24a;
    --bad: #f08a84;
    --shadow: 0 0px 3px rgb(0 0 0 / 40%);
    --shadow-hover: 0 3px 18px rgb(0 0 0 / 55%);
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0f1522; --surface-card: #161e2f; --surface-2: #1e2739;
  --text-primary: #f0f2f6; --text-secondary: #b7bfcc; --text-muted: #8891a1;
  --border: #283350; --border-strong: #3a4666; --grid: #232d45;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b7bfcc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --accent: #7fa3ff; --accent-ink: #0a1730; --accent-soft: #1c2846;
  --alerts-bg: #7fa3ff; --alerts-bg-hover: #a3bcff; --alerts-ink: #0a1730;
  --deal: #ef5b68; --deal-ink: #1a0a0c; --deal-soft: #3a1a1e; --best: #163524;
  --ok: #4fce85; --warn: #e0b24a; --bad: #f08a84;
  --shadow: 0 0px 3px rgb(0 0 0 / 40%); --shadow-hover: 0 3px 18px rgb(0 0 0 / 55%);
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
  --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767;
}

/* The masthead switches like the rest of the page. The logo has a colour and a white
   version (2026-10-19): the white one shows in dark mode, on the dark masthead. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .masthead { background: var(--surface); }
  :root:not([data-theme="light"]) .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .logo-on-dark { display: block; }
  :root:not([data-theme="light"]) .navbar { background: var(--surface-card); box-shadow: 0 1px 3px rgb(0 0 0 / 40%); }
  :root:not([data-theme="light"]) .menu__top { color: var(--text-primary); }
  :root:not([data-theme="light"]) .menu__top:hover { color: var(--accent); }
  :root:not([data-theme="light"]) .submenu { background: var(--surface-card); box-shadow: 0 0 2px rgb(0 0 0 / 40%), 0 20px 40px rgb(0 0 0 / 45%); }
  :root:not([data-theme="light"]) .submenu a { color: var(--text-secondary); border-bottom-color: var(--border); }
  :root:not([data-theme="light"]) .submenu a:hover { color: var(--accent); background: var(--surface-2); }
  :root:not([data-theme="light"]) .search-form input { background: var(--surface-2); border-color: var(--border); color: var(--text-primary); }
  :root:not([data-theme="light"]) .social a { color: var(--text-primary); }
  :root:not([data-theme="light"]) .social a:hover { color: var(--accent); }
  :root:not([data-theme="light"]) .theme-toggle { color: var(--text-primary); }
  :root:not([data-theme="light"]) .theme-toggle:hover { background: rgb(255 255 255 / 10%); }
}
:root[data-theme="dark"] .masthead { background: var(--surface); }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
:root[data-theme="dark"] .navbar { background: var(--surface-card); box-shadow: 0 1px 3px rgb(0 0 0 / 40%); }
:root[data-theme="dark"] .menu__top { color: var(--text-primary); }
:root[data-theme="dark"] .menu__top:hover { color: var(--accent); }
:root[data-theme="dark"] .submenu { background: var(--surface-card); box-shadow: 0 0 2px rgb(0 0 0 / 40%), 0 20px 40px rgb(0 0 0 / 45%); }
:root[data-theme="dark"] .submenu a { color: var(--text-secondary); border-bottom-color: var(--border); }
:root[data-theme="dark"] .submenu a:hover { color: var(--accent); background: var(--surface-2); }
:root[data-theme="dark"] .search-form input { background: var(--surface-2); border-color: var(--border); color: var(--text-primary); }
:root[data-theme="dark"] .social a { color: var(--text-primary); }
:root[data-theme="dark"] .social a:hover { color: var(--accent); }
:root[data-theme="dark"] .theme-toggle { color: var(--text-primary); }
:root[data-theme="dark"] .theme-toggle:hover { background: rgb(255 255 255 / 10%); }

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text-primary);
  font: 15px/1.5 var(--font-body);
}
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-body); }
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; font-weight: 700; margin: 1.75rem 0 .75rem; }
.muted { color: var(--text-secondary); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { max-width: 1320px; margin: 0 auto; padding: 21px 15px 48px; }
input, button, select { font: inherit; color: inherit; }
input[type="search"], input[type="number"], select {
  padding: 9px 9px; border-radius: 3px;
  border: 1px solid var(--border-strong); background: var(--surface-card);
}
select:not([multiple]) {
  -webkit-appearance: none; appearance: none; padding-right: 34px;
  background-image: var(--chevron); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: var(--surface-2); padding: 9px 12px; border-radius: 3px; overflow-x: auto; }

/* Progressive enhancement: browse.js adds .js to <html>. */
.js-only { display: none; }
html.js .js-only { display: inline-flex; }
html.js .nojs-only { display: none; }

/* -------------------------------------------------------------- buttons */
.btn, button.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 15px; border-radius: 3px; border: 1px solid var(--border-strong);
  background: var(--surface-card); color: var(--text-primary);
  font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn--primary, button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover, button.primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--small { padding: 6px 9px; font-size: .85rem; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }

/* The image panel takes its colour from the price verdict: green for Exceptional, Great and Good (deeper to
   lighter), amber for Above Typical, red for High. Typical Price and Too New to Rate keep the slate blue. Same
   shape as --image-bg: translucent, with a lighter middle, so it works on light and dark cards. */
.image--exceptional, .image--great, .image--good, .image--above, .image--high {
  --edge: 32%; --mid: 50%;
  --image-bg: linear-gradient(135deg,
    color-mix(in srgb, var(--tint) var(--edge), transparent) 0%,
    color-mix(in srgb, color-mix(in srgb, var(--tint) 45%, white) var(--mid), transparent) 50%,
    color-mix(in srgb, var(--tint) var(--edge), transparent) 100%);
}
.image--exceptional, .image--great, .image--good { --tint: var(--ok); }
.image--exceptional { --edge: 48%; --mid: 66%; }
.image--good { --edge: 20%; --mid: 38%; }
.image--above { --tint: var(--warn); }
.image--high { --tint: var(--bad); }

/* --------------------------------------------------------------- header */
/* Matches the live plugindeals.net header (measured 2026-09-26). On desktop the
   whole header is sticky with a negative top, so only the nav bar stays. */
.container { max-width: 1320px; margin: 0 auto; padding: 0 15px; }
.icon {
  display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.125em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.icon--navy { color: #000064; }
.icon--orange { color: #ffa000; }
.icon--green { color: #00bb00; }
.icon--purple { color: #930099; }
.site-header { position: sticky; top: -90px; z-index: 20; color: #28262c; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.masthead { background: linear-gradient(90deg, #ffffff 0%, #ededed 100%); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; height: 90px; }
.masthead__logo { display: block; line-height: 0; }
.masthead__logo img { width: 400px; max-width: 100%; height: auto; }
.logo-on-dark { display: none; }
.masthead__menu { display: none; }
.alerts-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 20px; border-radius: var(--radius);
  background: var(--alerts-bg); color: var(--alerts-ink); text-decoration: none; white-space: nowrap;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.alerts-btn:hover { background: var(--alerts-bg-hover); }
.navbar {
  background: linear-gradient(0deg, #eaeaea 0%, #ffffff 75%);
  box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
}
.navbar__inner { display: flex; align-items: center; gap: 15px; min-height: 46px; }
.menu { display: flex; list-style: none; margin: 0 0 0 -16px; padding: 0; }
.menu > li { position: relative; }
.menu__top {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px;
  border: 0; background: none; cursor: pointer; text-decoration: none;
  color: #28262c; font-size: 15px; font-weight: 700;
}
.menu__top .icon:last-child:not(:first-child) { font-size: 11px; opacity: .55; }
.menu__top:hover { color: #000064; }
.submenu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 290px;
  max-height: calc(100vh - 60px); overflow-y: auto; margin: 0; padding: 0; list-style: none;
  background: #ffffff; box-shadow: 0 0 2px rgb(0 0 0 / 10%), 0 20px 40px rgb(0 0 0 / 18%);
}
.menu__parent:hover > .submenu, .menu__parent:focus-within > .submenu { display: block; }
.submenu a {
  display: flex; align-items: center; gap: 9px; padding: 8px 16px; border-bottom: 1px solid #eeeeee;
  color: #7b7b7b; font-size: 13px; line-height: 20px; text-decoration: none;
}
.submenu a:hover { color: #000064; background: #f7f7f7; }
/* Group headings inside a dropdown; theme tokens, so no separate dark-mode rule. */
.submenu__heading {
  padding: 10px 16px 5px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.search-form { display: flex; gap: 6px; flex: 0 1 360px; }
.search-form input {
  flex: 1; min-width: 0; height: 30px; padding: 6px 10px; border-radius: 3px;
  border: 1px solid #cccccc; background: #ffffff; color: #000000; font-size: 13px;
}
.search-form button {
  height: 30px; padding: 0 10px; border-radius: 3px; border: 0;
  background: #3caf50; color: #ffffff; font-size: 13px; font-weight: 700;
}
.search-form button:hover { background: #33994a; }
.social { display: flex; gap: 18px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.social a { display: inline-flex; color: #28262c; font-size: 16px; }
.social a:hover { color: #000064; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: #28262c; font-size: 15px; cursor: pointer;
}
.theme-toggle:hover { color: #000064; background: rgb(0 0 0 / 6%); }

/* Mobile: hamburger on the left, logo centred; the nav bar opens as a panel. */
@media (max-width: 900px) {
  .site-header { top: 0; }
  .masthead__inner { position: relative; justify-content: center; height: 60px; }
  .masthead__logo img { width: 189px; }
  .masthead__menu {
    display: grid; place-items: center; position: absolute; left: 9px;
    width: 42px; height: 42px; font-size: 22px; cursor: pointer;
  }
  .alerts-btn { display: none; }
  .navbar { display: none; }
  .nav-toggle:checked ~ .navbar { display: block; max-height: calc(100vh - 60px); overflow-y: auto; }
  .navbar__inner { flex-direction: column; align-items: stretch; gap: 9px; padding: 12px 15px 15px; }
  .navbar .search-form { order: -1; flex: none; }
  .menu { flex-direction: column; margin: 0; }
  .menu__top { width: 100%; padding: 0; }
  .submenu { display: block; position: static; min-width: 0; max-height: none; box-shadow: none; }
  .social { margin: 3px 0 0; }
}

/* --------------------------------------------------------------- browse */
/* Homepage text box, styled like the live site's white content boxes. One
   box, not two: the SEO copy stays word for word (docs/seo-migration-plan.md,
   "Text content"), but it no longer costs a second card's worth of padding,
   shadow and border just to get from the H1 to the product grid. */
.intro-box {
  margin: 0 0 21px; padding: 18px 20px; background: var(--surface-card);
  box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
}
.intro-box h1 { font-size: 22px; margin: 0 0 9px; }
.intro-box h2 { font-size: 15px; margin: 15px 0 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.intro-box p { margin: 0 0 9px; }
.intro-box p:last-child { margin-bottom: 0; }
.intro-box__strap { font-weight: 600; color: var(--text-secondary); }
.intro-box__tips { margin: 0 0 12px; padding-left: 20px; font-size: .9rem; }
.intro-box__tips li { margin: 0 0 3px; }
.intro-box__note { padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 3px; font-size: .85rem; }
.intro-box__fine { font-size: .78rem; color: var(--text-secondary); }
.intro-box__green { color: var(--ok); }
.browse-main { max-width: 1320px; margin: 0 auto; padding: 21px 15px 48px; }
.browse { display: grid; grid-template-columns: 261px minmax(0, 1fr); gap: 27px; align-items: start; }
#browse-root { transition: opacity .15s; }
#browse-root.is-loading .results { opacity: .55; }
#browse-root.is-loading::before {
  content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 30;
  background: linear-gradient(90deg, transparent, var(--deal), transparent);
  background-size: 50% 100%; background-repeat: no-repeat;
  animation: loading 1s linear infinite;
}
@keyframes loading { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@media (prefers-reduced-motion: reduce) { #browse-root.is-loading::before { animation: none; background: var(--deal); } }

/* Filters sidebar */
.filters { position: sticky; top: 64px; max-height: calc(100vh - 82px); overflow-y: auto; padding-right: 3px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; }
.filters__head h2 { margin: 0 0 9px; font-size: 1rem; }
.filters__close { display: none; }
.facet { border: 0; margin: 0 0 18px; padding: 0 0 15px; border-bottom: 1px solid var(--border); min-width: 0; }
.facet legend {
  padding: 0; margin-bottom: 9px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary);
}
.facet__list { display: grid; gap: 0px; }
.facet__list--scroll { max-height: 291px; overflow-y: auto; padding-right: 3px; }
.facet__search { width: 100%; margin-bottom: 9px; padding: 6px 9px; font-size: .9rem; }
.facet__hint { margin: 9px 0 0; font-size: .8rem; color: var(--text-muted); }
.opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center;
  padding: 6px 6px; border-radius: 3px; cursor: pointer; font-size: .92rem;
}
.opt:hover { background: var(--surface-2); }
.opt input { margin: 0; accent-color: var(--accent); width: 15px; height: 15px; }
.opt__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt__count { color: var(--text-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.opt.is-empty { color: var(--text-muted); }
.opt--none .opt__label { font-style: italic; }
.price-range { display: flex; align-items: center; gap: 9px; }
.price-range label { flex: 1; }
.price-range input { width: 100%; }
.filters__foot { position: sticky; bottom: 0; padding: 9px 0; background: var(--surface); }
.filters__foot .btn { width: 100%; }
/* With JS on a wide screen every change applies at once: no footer button. */
@media (min-width: 901px) { html.js .filters__foot { display: none; } }

/* Toolbar + chips */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar__count { margin: 0; flex: 1; color: var(--text-secondary); }
.toolbar__count strong { color: var(--text-primary); font-size: 1.05rem; }
.toolbar__sort { display: inline-flex; align-items: center; gap: 9px; color: var(--text-secondary); font-size: .9rem; }
.toolbar__filters { display: none !important; }
.pill { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0 0 15px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 3px;
  background: var(--accent-soft); color: var(--text-primary); text-decoration: none; font-size: .85rem;
  border: 1px solid transparent;
}
.chip:hover { border-color: var(--accent); }
.chip span { color: var(--text-secondary); font-weight: 700; }
.chip--clear { background: transparent; color: var(--accent); }

/* Card grid */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(231px, 1fr)); gap: 15px;
}
.card {
  display: flex; flex-direction: column; gap: 6px; padding: 15px;
  background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; min-width: 0;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
/* Everything below the image: its own flex column so it can flex:1 to fill
   the card's stretched height, same as before .card__image and this content
   were split into two flex children instead of five. */
.card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; }
.card__image {
  position: relative;
  container-type: inline-size;   /* the corner chips scale with this box (--chip, below) */
  margin: -15px -15px 3px; aspect-ratio: 16 / 10; background: var(--image-bg);
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 15px 15px;
}
.card__image > a {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: inherit; text-decoration: none;
}
/* max- not fixed width/height: guarantees the padding as a gap on every
   side, whatever the source image's own proportions -- a portrait
   screenshot stays inset top and bottom instead of touching both edges. */
.card__image img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0px 3px 6px rgb(0 0 0 / 30%));
}
.card__image-empty {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .03em;
  color: var(--border-strong); text-transform: uppercase; user-select: none;
}
.card__image-empty--dev {
  max-width: 90%; text-align: center; line-height: 1.2; font-size: 1rem; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Used in-flow on the product page's best-price box (search/product.html). */
.card__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; min-height: 24px; margin: 0; }
/* Tile-only: overlaid on the product image (not in flow) so badges never
   push the title/price below to a different height card-to-card. Position
   and shape follow plugindeals.net's own .discount-label / .lowest::after
   rules, but in the app's own quieter palette (not the live site's alarm
   red/green) and sentence case, not caps -- this is a compare tool letting
   people browse, not a sale banner trying to close one. */
/* --chip is the chips' type size: 0.68rem on a small card (as before), growing with the image area on a wide one. The
   chips' padding and offsets are in em / multiples of it, so they all scale together. */
.card__ribbons { --chip: clamp(.68rem, 3.2cqw, 1.1rem); position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.card__ribbons .badge { pointer-events: auto; }
.card__ribbons-left { position: absolute; top: calc(var(--chip) * .735); left: calc(var(--chip) * .735); display: flex; flex-wrap: wrap; align-items: flex-start; gap: calc(var(--chip) * .37); }
.card__ribbons-left .badge {
  clip-path: none; border-radius: 3px; padding: .276em .735em;
  font-size: var(--chip); font-weight: 700;
  box-shadow: 0 1px 3px rgb(0 0 0 / 15%);
}
.card__ribbons-left .badge--record { background: var(--deal); color: var(--deal-ink); }
.card__ribbons .badge--deal {
  position: absolute; right: 0; bottom: calc(var(--chip) * 1.1);   /* low on the image's right edge, as on the live site */
  clip-path: none; border-radius: 3px 0 0 3px; padding: .32em .8em; margin: 0; line-height: 1;
  background: var(--ok); color: var(--surface-card); font-size: calc(var(--chip) * 1.15); font-weight: 700;
  box-shadow: 0 1px 3px rgb(0 0 0 / 15%);
}
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 2px; font-weight: 800; font-size: .85rem;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
/* A small flag notch, not a rounded pill -- the one place this app gets to
   look like a stamped price tag rather than another soft SaaS card. */
.badge--deal, .badge--label {
  padding-right: 15px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
}
.badge--deal { background: var(--deal); color: var(--deal-ink); }
/* The discount flag and the deal labels share one size (2026-09-30: same height, matching the
   Record low label); colour tells them apart. Record low = green (best-price family); Fresh
   deal = accent blue (about time, not price quality). The card-corner ribbon sets its own size. */
.badge--deal, .badge--label { font-size: .75rem; font-weight: 700; padding-top: 3px; padding-bottom: 3px; }
.badge--record { background: var(--ok); color: var(--surface-card); }
.card__note { font-size: .75rem; color: var(--text-secondary); }
/* Card view: .card__col-* wrappers (see _card.html) collapse via
   display:contents so their children flatten straight into .card__body's
   own flex column, same as before the wrappers existed; `order` restores
   the original title/price/offers/more/actions sequence since the wrapper
   grouping alone would put .card__actions right after .card__price. List
   view (further down) gives the wrappers real boxes instead, as the three
   grid columns, where `order` only matters within each wrapper's own pair
   or so of children and so still sorts them correctly. */
.card__col-main, .card__col-offers, .card__col-actions { display: contents; }
/* Table-view only (list view, below). */
.card__dev, .card__cell, .list-head { display: none; }
/* min-height reserves two lines even for short names, so the price row
   below starts at the same height on every card in a row. */
.card__title { order: 1; margin: 0; font-size: 1rem; line-height: 1.3; min-height: 2.6em; }
.card__title a {
  color: var(--text-primary); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__title a:hover { color: var(--accent); }
.card__price { order: 2; margin: 6px 0 0; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.was { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.card__store { margin: 0; font-size: .85rem; color: var(--text-secondary); }
.card__store--more { order: 4; margin: 3px 0 0; font-size: .78rem; color: var(--text-muted); }
.stale { color: var(--warn); font-size: .78rem; }

/* minmax(0, 1fr) and min-width: 0 let a long store name truncate instead of pushing the price past the card edge. */
.card__offers { order: 3; list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.card__offers li { font-size: .82rem; padding: 0px 0; min-width: 0; }
.card__offers li > a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 9px;
  color: var(--text-secondary); text-decoration: none; border-radius: 2px; margin: 0 -3px; padding: 0px 3px;
}
.card__offers li > a:hover { background: var(--surface-2); color: var(--text-primary); }
.card__offers-best > a { color: var(--text-primary); }
.card__offers-best .card__offers-store { font-weight: 700; }
.card__offers-best .card__offers-price { color: var(--ok); font-weight: 700; }
.card__offers-store { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__offers-price { font-variant-numeric: tabular-nums; flex-shrink: 0; }
.card__tags { display: flex; flex-wrap: wrap; gap: 3px; list-style: none; padding: 0; margin: 3px 0 0; }
.card__tags li, .card__tags a {
  font-size: .72rem; padding: 3px 9px; border-radius: 3px;
  background: var(--surface-2); color: var(--text-secondary); text-decoration: none;
}
.card__tags a:hover { color: var(--accent); }
.card__actions { order: 5; display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 9px; }
.card__actions .btn { width: 100%; }
/* Price History on a card: a subtle fill and no outline. */
.card__actions .btn--ghost { background: var(--surface-2); border-color: transparent; }
.card__actions .btn--ghost:hover { background: var(--border); }

/* Card / list view toggle. browse.js toggles #browse-root's class and
   remembers the choice in localStorage; the SSR default (no class) is the
   card grid, so the page still works with JS off. */
.view-toggle { display: inline-flex; gap: 3px; }
.view-toggle button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 33px; height: 33px; padding: 0; border: 1px solid var(--border); background: var(--surface-card);
  border-radius: 3px; color: var(--text-secondary); cursor: pointer;
}
.view-toggle button .icon { font-size: 15px; }
.view-toggle button[aria-pressed="true"] { background: var(--text-primary); color: var(--surface); border-color: var(--text-primary); }
.view-toggle button:hover:not([aria-pressed="true"]) { border-color: var(--accent); color: var(--text-primary); }

/* List view: a table. No thumbnail; .list-head and each card's .card__body
   share one column template, so headings line up with the cells. The
   .card__col-* wrappers become real cells. It folds into stacked blocks
   when the results column is narrow (container query on .results). */
.results { container-type: inline-size; }
#browse-root.view-list {
  --list-cols: minmax(0, 2.2fr) minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.6fr) 132px;
}
#browse-root.view-list .list-head {
  display: grid; grid-template-columns: var(--list-cols); column-gap: 18px;
  padding: 9px 16px; font-size: .78rem; font-weight: 700; color: var(--text-secondary);
}
#browse-root.view-list .list-head a { color: inherit; text-decoration: none; }
#browse-root.view-list .list-head a:hover, #browse-root.view-list .list-head a[aria-current] { color: var(--accent); }
#browse-root.view-list .grid { grid-template-columns: 1fr; gap: 3px; }
#browse-root.view-list .card { padding: 12px 15px; }
#browse-root.view-list .card:hover { transform: none; }
#browse-root.view-list .card__image { display: none; }
#browse-root.view-list .card__body {
  display: grid; flex: none; align-items: start;
  grid-template-columns: var(--list-cols); column-gap: 18px;
}
#browse-root.view-list .card__col-main,
#browse-root.view-list .card__cell,
#browse-root.view-list .card__col-offers,
#browse-root.view-list .card__col-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
#browse-root.view-list .card__col-main { grid-column: 1; gap: 6px; }
#browse-root.view-list .card__col-price { grid-column: 2; }
#browse-root.view-list .card__col-full { grid-column: 3; }
#browse-root.view-list .card__col-low { grid-column: 4; }
#browse-root.view-list .card__col-offers { grid-column: 5; align-items: stretch; }
#browse-root.view-list .card__col-actions { grid-column: 6; align-items: stretch; }
#browse-root.view-list .card__title { min-height: 0; }
#browse-root.view-list .card__dev { display: block; order: 1; margin: -3px 0 0; font-size: .82rem; color: var(--text-secondary); }
#browse-root.view-list .card__price { display: none; }
#browse-root.view-list .card__verdict { margin: 0; }
#browse-root.view-list .price { font-size: 1.15rem; }
#browse-root.view-list .card__col-full .was { font-size: .95rem; }
#browse-root.view-list .card__low { font-weight: 700; font-variant-numeric: tabular-nums; }
#browse-root.view-list .card__meta { font-size: .78rem; color: var(--text-muted); }
#browse-root.view-list .card__off { font-size: .78rem; font-weight: 700; color: var(--ok); }
#browse-root.view-list .card__actions { margin: 0; padding-top: 0; }
#browse-root.view-list .card__offers { margin: 0; }
#browse-root.view-list .card__store--more { margin: 0; }
@container (max-width: 760px) {
  #browse-root.view-list .list-head { display: none; }
  #browse-root.view-list .card__body { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 12px; }
  #browse-root.view-list .card__col-main,
  #browse-root.view-list .card__col-offers,
  #browse-root.view-list .card__col-actions { grid-column: 1 / -1; }
  #browse-root.view-list .card__col-price { grid-column: 1; }
  #browse-root.view-list .card__col-full { grid-column: 2; }
  #browse-root.view-list .card__col-low { grid-column: 3; }
  #browse-root.view-list .card__cell::before {
    content: attr(data-label); font-size: .72rem; font-weight: 700; color: var(--text-secondary);
  }
  #browse-root.view-list .card__actions { flex-direction: row; }
  #browse-root.view-list .card__actions .btn { flex: 1; }
}

.empty, .notice {
  padding: 39px 24px; text-align: center; border: 1px dashed var(--border-strong);
  border-radius: var(--radius); background: var(--surface-card);
}
.notice { text-align: left; }
.notice--error { border-color: var(--bad); }

/* Load More (browse pages, only with JS; the page links stay underneath) */
.load-more { display: none; }
html.js .load-more { display: flex; flex-direction: column; align-items: center; gap: 9px; margin: 27px 0 0; }
.load-more__count { margin: 0; color: var(--text-muted); font-size: .9em; font-variant-numeric: tabular-nums; }
.load-more__btn { min-width: 180px; }
.load-more__btn:hover { border-color: var(--accent); }
.load-more__btn[aria-busy="true"] { opacity: .55; pointer-events: none; }

/* Pagination (browse and review pages) */
.pager { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; margin: 27px 0 9px; }
.pager ul { display: flex; gap: 3px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pager a, .pager span[aria-current], .pager > span {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 9px;
  border-radius: 3px; text-decoration: none; font-variant-numeric: tabular-nums;
}
.pager a { border: 1px solid var(--border); background: var(--surface-card); color: var(--text-primary); }
.pager a:hover { border-color: var(--accent); }
.pager span[aria-current] { background: var(--text-primary); color: var(--surface); font-weight: 700; }
.pager__gap { display: inline-grid; place-items: center; min-width: 21px; color: var(--text-muted); }

/* Mobile: filters become a drawer (only with JS; without JS they stack above results). */
@media (max-width: 900px) {
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  html.js .toolbar__filters { display: inline-flex !important; }
  html.js .filters {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 92vw); max-height: none; z-index: 40;
    background: var(--surface); padding: 15px; box-shadow: var(--shadow-hover);
    transform: translateX(105%); transition: transform .2s ease; visibility: hidden;
  }
  html.js body.filters-open .filters { transform: none; visibility: visible; }
  html.js body.filters-open::after {
    content: ""; position: fixed; inset: 0; background: rgb(0 0 0 / 40%); z-index: 35;
  }
  html.js .filters__close {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 3px;
    border: 1px solid var(--border); background: var(--surface-card); font-size: 1.3rem;
  }
  .grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
  .card { padding: 12px; }
  /* Narrow cards: two deal labels can wrap to a second row, where the
     discount ribbon (30% down) would cover them. Pin it to the image's foot. */
  .card__image { margin: -12px -12px 3px; }
  .price { font-size: 1.25rem; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 9px; }
}

/* -------------------------------------------------------------- product */
.crumbs { margin-bottom: 12px; font-size: .9rem; }
.crumbs a { text-decoration: none; }
.product-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 40%); gap: 24px; align-items: start;
  padding: 24px; background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.product-head__image {
  aspect-ratio: 16 / 9; background: var(--image-bg);
  border-radius: var(--radius); overflow: hidden; margin: 0 0 15px;
  display: flex; align-items: center; justify-content: center;
  padding: 18px 24px;
}
.product-head__image img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0px 3px 6px rgb(0 0 0 / 30%));
}
/* "Price History for" stays in the H1 (the old site's heading, kept for search) but reads as a quiet label above the name. */
.product-head__kicker { display: block; font-size: .8rem; font-weight: 500; letter-spacing: .02em; color: var(--text-secondary); margin-bottom: 2px; }
.product-head__dev { margin: 0 0 9px; color: var(--text-secondary); }
.product-head__stats { list-style: none; padding: 0; margin: 9px 0 0; color: var(--text-secondary); }
.product-head__stats li:not(:last-child) { margin-bottom: 3px; }
.best-box { padding: 15px; border-radius: var(--radius); background: var(--surface-2); }
.best-box p { margin: 0 0 6px; }
.best-box__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); }
.best-box .btn { width: 100%; margin-top: 9px; }
/* Price left, discount analysis right; wraps to two rows when the box is too narrow. */
.best-box__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 15px; margin: 3px 0 9px; }
.best-box .best-box__row p { margin: 0; }
.best-box__price { display: flex; flex-direction: column; line-height: 1.15; }
.best-box__price .price { font-size: 1.75rem; }
.best-box__analysis { flex: 1 1 120px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.best-box__analysis .card__badges { min-height: 0; }
.best-box__analysis .card__note { line-height: 1.3; }
@media (max-width: 720px) { .product-head { grid-template-columns: 1fr; padding: 15px; } }

.product-tables { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
@media (max-width: 860px) { .product-tables { grid-template-columns: minmax(0, 1fr); gap: 27px; } }
.product-tables > section { min-width: 0; }   /* a wide chart canvas must not stretch the column (and the price table) past the screen */

table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 9px 9px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-weight: 600; color: var(--text-secondary); font-size: .8rem; background: var(--surface-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.offers { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.offers td a { color: var(--accent); text-decoration: none; }
tr.best td { background: var(--best); }
tr.stale td { opacity: .65; }
tr.offers__regular td { color: var(--text-secondary); }
.offers__stale td { color: var(--text-primary); }
.offers__status { display: block; color: var(--warn); font-size: .8rem; font-weight: 600; }
.best-box--unavailable { border: 1px solid var(--warn); }
.best-box__unavailable { margin: 3px 0 8px; color: var(--warn); font-size: 1.25rem; font-weight: 700; }
.offers tbody tr[data-href] { cursor: pointer; }
.offers tbody tr[data-href]:hover td { background: var(--surface-2); }
.offers tbody tr.best[data-href]:hover td { background: var(--best); filter: brightness(.97); }
.table-scroll { overflow-x: auto; }
/* min-height matches .chart-range's button height so this header lines up
   with "Prices by store" next to it, which has no buttons of its own to
   set the row's height -- without it the table starts higher than the
   chart-card beside it. */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; min-height: 33px; }
.section-head h2 { margin: 0; }
.chart-range { display: inline-flex; gap: 3px; }
.chart-range button {
  padding: 6px 12px; border: 1px solid var(--border); background: var(--surface-card);
  border-radius: 3px; color: var(--text-secondary); font-size: .82rem; cursor: pointer;
}
.chart-range button[aria-pressed="true"] { background: var(--text-primary); color: var(--surface); border-color: var(--text-primary); }
.chart-range button:hover:not([aria-pressed="true"]) { border-color: var(--accent); color: var(--text-primary); }
.chart-card { padding: 15px; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius); }
.chart-box { position: relative; height: 339px; width: 100%; }
.chart-box.is-fading canvas { animation: chart-fade .35s ease-out; }
@keyframes chart-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chart-box.is-fading canvas { animation: none; } }
@media (max-width: 600px) {
  .chart-box { height: 261px; }
}

/* --------------------------------------------------------------- review */
.flash { padding: 9px 12px; border-radius: 3px; border: 1px solid var(--border); margin: 9px 0; }
.flash.ok { border-color: var(--ok); }
.flash.error { border-color: var(--bad); }
.review-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin: 12px 0; background: var(--surface-card); }
.type-search, .type-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 9px 0; }
.type-search input[type=search], .type-tags input[type=text] { flex: 1 1 240px; min-width: 0; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 700px) { .review-grid { grid-template-columns: 1fr; } }
.review-actions { display: flex; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.review-actions button { padding: 6px 12px; border-radius: 3px; border: 1px solid var(--border-strong); background: var(--surface-2); }
.score { font-weight: 700; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 12px; flex-wrap: wrap; margin: 9px 0 15px; }
.tabs a[aria-current="page"] { font-weight: 700; text-decoration: none; color: var(--text-primary); }
.status-ok { color: var(--ok); }
.status-warning { color: var(--warn); }
.status-failed, .status-running { color: var(--bad); }
.anomaly-filters { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; margin: 15px 0; }
.anomaly-filters label, .anomaly-decision label { display: flex; flex-direction: column; gap: 3px; color: var(--text-secondary); font-size: .85rem; }
.anomaly-group { margin: 15px 0; padding: 15px; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius); }
.anomaly-group__head { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.anomaly-group h2 { margin: 0; font-size: 1.05rem; }
.anomaly-ratio { color: var(--bad); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.anomaly-table { min-width: 720px; }
.anomaly-table th, .anomaly-table td { padding: 7px 8px; }
.anomaly-decision { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.anomaly-decision input[type="text"] { width: min(100%, 620px); padding: 8px; border: 1px solid var(--border-strong); border-radius: 3px; background: var(--surface-card); }

/* Image review (review/images.html): tick images to remove. */
.image-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 15px 0; }
.image-review__item {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 9px;
  background: var(--surface-card); border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer;
}
.image-review__item:has(input:checked) { border-color: var(--deal); background: var(--surface-2); }
.image-review__item input { position: absolute; top: 12px; left: 12px; width: 20px; height: 20px; }
.image-review__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; }
.image-review__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.image-review__name { font-size: .85rem; font-weight: 600; line-height: 1.25; }
.image-review__actions { position: sticky; bottom: 0; padding: 12px 0; background: var(--surface); }

/* Category index (search/categories.html) and category page intro. */
/* Old site articles and pages (webapp/templates/search/article.html): WordPress block HTML, copied as it was. */
.article { max-width: 760px; margin: 0 auto; padding: 24px; background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.article h1 { margin-top: 0; }
.article__date { margin: -6px 0 18px; }
.article__body { line-height: 1.6; overflow-wrap: anywhere; }
.article__body img, .article__body video { max-width: 100%; height: auto; }
.article__body figure { margin: 18px 0; }
.article__body .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.article__body hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.article__body iframe { max-width: 100%; border: 0; }
.article__body .wp-has-aspect-ratio .wp-block-embed__wrapper, .article__body .jeg_video_container { position: relative; aspect-ratio: 16 / 9; }
.article__body .wp-has-aspect-ratio .wp-block-embed__wrapper iframe, .article__body .jeg_video_container iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; }
.article__body a.btn { display: inline-block; text-decoration: none; }
.article__body a.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.article-list { list-style: none; padding: 0; margin: 15px 0; }
.article-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }

/* Price history index (/search-for-audio-plugin-prices-and-price-history/): A to Z pages linking every product. */
.hub-search { display: flex; gap: 8px; max-width: 520px; margin: 15px 0; }
.hub-search input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-card); color: inherit; font: inherit; }
.hub-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0; }
.hub-letters a { min-width: 34px; padding: 5px 8px; text-align: center; text-decoration: none; font-weight: 500;
  border: 1px solid var(--border); border-radius: var(--radius); }
.hub-letters a[aria-current] { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.hub-list { list-style: none; padding: 0; margin: 15px 0; columns: 3 260px; column-gap: 24px; }
.hub-list li { break-inside: avoid; padding: 3px 0; }
.category-list { list-style: none; padding: 0; margin: 15px 0; columns: 4 200px; column-gap: 24px; }
.category-list li { break-inside: avoid; padding: 5px 0; }
.category-list a { font-weight: 500; }
.intro-box--category .crumbs { margin-bottom: 6px; }

/* Product page price summary (queries.price_summary), inside the best-price box. Theme tokens only. */
.price-summary { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.best-box .price-summary p { margin: 0 0 8px; }
.price-summary__verdict { display: flex; align-items: center; gap: 8px; font-size: .85rem; white-space: nowrap; }
.price-summary__note { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { .price-summary__verdict { flex-wrap: wrap; white-space: normal; } }
/* Named verdict-chip, not chip: .chip is the active-filter chip and brings hover and outline styles. */
.verdict-chip { flex: none; padding: 2px 8px; border-radius: 2px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--text-secondary);
  border: 1px solid var(--border); }
.verdict-chip--exceptional { background: var(--ok); color: var(--surface-card); border-color: transparent; }
.verdict-chip--great, .verdict-chip--good { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: transparent; }
.verdict-chip--high { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); border-color: transparent; }
.verdict-chip--above { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); border-color: transparent; }
.range { margin: 18px 6px 10px; }
.range__track { position: relative; height: 6px; margin: 0 0 8px; border-radius: 3px; background: var(--border-strong); }
.range__tick { position: absolute; top: -4px; width: 2px; height: 14px; margin-left: -1px; background: var(--text-secondary); }
/* Today's price: an arrow pointing down at the track. No text, and nothing that looks draggable. */
.range__now { --marker: var(--text-secondary); position: absolute; bottom: calc(100% + 3px); left: 0; width: 0; height: 0;
  margin-left: -6px; border: 6px solid transparent; border-top: 8px solid var(--marker); border-bottom: 0; }
.range__now--exceptional, .range__now--great, .range__now--good { --marker: var(--ok); }
.range__now--high { --marker: var(--bad); }
.range__now--above { --marker: var(--warn); }
.range__labels { display: flex; justify-content: space-between; gap: 6px; font-size: .75rem; color: var(--text-secondary); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.facts > div { border-top: 1px solid var(--border); padding-top: 6px; min-width: 0; }
.facts__wide { grid-column: 1 / -1; }
.facts dt { font-size: .75rem; color: var(--text-secondary); }
.facts dd { margin: 0; font-weight: 600; }
.facts dd .muted { font-weight: 400; }
.best-box .best-box__cta { display: block; width: 100%; margin-top: 4px; text-align: center; text-decoration: none; }
.product-head__checked { grid-column: 1 / -1; margin: 0; text-align: right; font-size: .75rem; color: var(--text-secondary); }
.pricing-notice { margin: 12px 0; font-size: .8rem; line-height: 1.5; color: var(--text-secondary); }
/* Tooltips on the bar's prices: hover or keyboard/touch focus. */
.tip { position: relative; cursor: help; }
.tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 5;
  width: max-content; max-width: 230px; padding: 6px 9px; border-radius: var(--radius); background: var(--text-primary); color: var(--surface-card);
  font-size: .75rem; font-weight: 400; line-height: 1.35; text-align: left; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s; }
.tip:hover::after, .tip:focus::after { opacity: 1; visibility: visible; }
.tip--start::after { left: 0; transform: none; }
.tip--end::after { left: auto; right: 0; transform: none; }
.range__now.tip::after { bottom: calc(100% + 6px); }
.tip:focus { outline: none; }
.card__verdict { order: 2; margin: 6px 0 0; }   /* order 2 = the price's slot, and it follows the price in the markup */
.card__verdict .verdict-chip { font-size: .72rem; padding: 1px 7px; }
.verdict-chip--new { background: transparent; color: var(--text-muted); border: 1px dashed var(--border-strong); font-weight: 600; }
/* ---------------------------------------------------- watch price (alerts) */
.watch { margin-top: 12px; }
.watch__box > summary { list-style: none; cursor: pointer; width: 100%; }
.watch__box > summary::-webkit-details-marker { display: none; }
.watch__form { display: grid; gap: 12px; margin-top: 12px; }
.watch__lead { margin: 0; color: var(--text-secondary); font-size: .92rem; }
.watch__field { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.watch__field input { font-weight: 400; width: 100%; }
.watch input[type="email"] {
  padding: 9px 9px; border-radius: 3px; border: 1px solid var(--border-strong); background: var(--surface-card);
}
.watch__opts { display: grid; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.watch__opts legend { padding: 0 6px; font-size: .85rem; color: var(--text-secondary); }
.watch__check { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.watch__state { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.watch__note { margin: 0 0 10px; padding: 9px 12px; border: 1px solid var(--ok); border-radius: var(--radius); font-size: .92rem; }
.watch__note--error { border-color: var(--bad); }
.watch__form.is-done > :not(.watch__result) { display: none; }
.watch__form.is-done .watch__result { margin: 0; }

/* ----------------------------------------------------- manage my alerts */
.manage__who { color: var(--text-secondary); margin-top: 0; }
.manage__list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 15px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.manage__item {
  display: flex; flex-direction: column; gap: 9px; padding: 15px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface-card); box-shadow: var(--shadow);
}
.manage__top { display: flex; gap: 12px; align-items: center; }
.manage__image {
  flex: none; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--surface-2); border-radius: var(--radius); color: var(--text-muted); font-weight: 700; text-decoration: none;
}
.manage__image img { width: 100%; height: 100%; object-fit: contain; }
.manage__title { min-width: 0; }
.manage__title h2 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.manage__state { margin: 3px 0 0; font-size: .82rem; font-weight: 600; color: var(--text-secondary); }
.manage__state--hold { color: var(--warn); }
.manage__price { margin: 0; font-size: .95rem; }
.manage__price .was { color: var(--text-muted); margin-left: 4px; }
.manage__triggers { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.manage__chip { padding: 2px 8px; font-size: .78rem; border: 1px solid var(--border-strong); border-radius: 3px; color: var(--text-secondary); }
.manage__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 3px; align-items: flex-start; }
.manage__actions form { margin: 0; }
.manage__edit { order: 9; }
.manage__edit[open] { width: 100%; }
.manage__edit > summary { list-style: none; cursor: pointer; display: inline-block; }
.manage__edit > summary::-webkit-details-marker { display: none; }
.manage__edit[open] > summary { margin-bottom: 10px; }
.manage__edit form { display: grid; gap: 10px; max-width: 320px; }
.manage__foot { font-size: .9rem; }
.manage__signout { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 6px 0 18px; }
.alerts-link { max-width: 360px; }

/* Watch pop-up on the product cards (static/watch.js) and the in-page form's answer. */
.watch-dialog { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px; width: min(92vw, 420px); background: var(--surface-card); color: var(--text); }
.watch-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.watch-dialog h2 { margin: 0 0 6px; font-size: 1.1rem; }
.watch-dialog__close { margin-top: 10px; }

/* Written text under the product tables: the sale Q&A and the product description. */
.product-text {
  margin-top: 24px; padding: 24px; background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (max-width: 720px) { .product-text { padding: 15px; } }
.product-text p { margin: 0 0 12px; line-height: 1.6; }
.qa { margin: 0 0 8px; }
.qa > div { border-top: 1px solid var(--border); padding: 10px 0; }
.qa dt { font-weight: 600; margin-bottom: 4px; }
.qa dd { margin: 0; line-height: 1.6; color: var(--text-secondary); }

/* Description review page: the editable draft on the left, the research facts beside it. */
.desc-review h2 { font-size: 1.1rem; margin: 0 0 9px; }
.desc-review__cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .desc-review__cols { grid-template-columns: 1fr; } }
.desc-review textarea { width: 100%; box-sizing: border-box; font: inherit; line-height: 1.5; padding: 9px; }
.desc-review__facts { border-left: 1px solid var(--border); padding-left: 15px; }
.desc-review__facts p, .desc-review__facts ul { margin: 0 0 8px; }
.desc-review__facts ul { padding-left: 18px; }
.desc-review__uncertain { color: var(--bad); }
@media (max-width: 860px) { .desc-review__facts { border-left: 0; padding-left: 0; } }

.product-head__answer { margin: 12px 0; line-height: 1.55; font-size: 1rem; }

/* Duplicate products review. */
.dup-list { list-style: none; margin: 0 0 9px; padding: 0; display: grid; gap: 8px; }
.dup-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-card); }
.dup-pick { flex: none; min-width: 64px; font-size: .88rem; }
.dup-main { min-width: 0; }
.dup-actions { display: flex; gap: 8px; margin: 0; }

/* Cookie banner (base.html, static/consent.js): a quiet bar along the bottom until the visitor chooses. */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
  background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: .9rem; }
.consent__buttons { display: flex; gap: 8px; }

/* Black Friday section on product pages (pluginpricecheck/black_friday.py). */
.black-friday .section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bf-status { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 3px; border: 1px dashed var(--border-strong); color: var(--text-muted); }
.bf-status--live { background: var(--ok); border: 0; color: var(--surface-card); }
.bf-table td, .bf-table th { text-align: left; }
.bf-table td.num, .bf-table th.num { text-align: right; }

/* White content panel for pages that are not a price list or a product page (Stu, 2026-10-12). */
.panel { margin: 0 auto; padding: 24px; background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.panel h1 { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

/* Developer Deals and Freebies (search/developer_deals.html, static/deals.js). */
.deals__intro { margin: 0 0 18px; color: var(--text-secondary); }
.deals__controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.deals__controls input[type="search"] { flex: 1 1 260px; min-width: 0; }
.deals__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; }
.deals__filters[hidden], .deals__controls[hidden] { display: none; }
.deals__filters .chip { padding: 5px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface-2); cursor: pointer; font-size: .85rem; }
.deals__filters .chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.deals__count { margin-left: auto; }
.deals__list { list-style: none; margin: 0; padding: 0; }
.deal { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding: 12px 0;
  border-top: 1px solid var(--border); }
.deal[hidden] { display: none; }
.deal__text { flex: 1 1 380px; min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.deal__text a { text-decoration: none; }
.deal__text a:hover, .deal__text a:focus-visible { text-decoration: underline; }
.deal__meta { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.deal__ends { white-space: nowrap; }
.tag { padding: 2px 7px; border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: .75rem;
  font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.tag--ok { border-color: var(--ok); color: var(--ok); }
.tag--warn { border-color: var(--warn); color: var(--warn); }
.deals__note { margin: 18px 0 0; }
.home-deals { margin-top: 32px; }
.home-deals__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 40px; }
.home-deals h2 { margin: 0 0 8px; font-size: 1.15rem; }
.home-deals .deal { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 2px; line-height: 1.45; overflow-wrap: anywhere; }
.home-deals .deal a { text-decoration: none; }
.home-deals .deal a:hover, .home-deals .deal a:focus-visible { text-decoration: underline; }
.home-deals__all { margin: 12px 0 0; }
@media (max-width: 600px) { .panel { padding: 16px; } .deal__meta { flex: 1 1 100%; } }

/* Text pages with the filter sidebar (templates/side_page.html, static/sidebar.js). */
.side-content { min-width: 0; }
.side-content__bar { display: none; margin: 0 0 12px; }
@media (max-width: 900px) { html.js .side-content__bar { display: block; } }
.side-nofilters .side-content { max-width: 1320px; }
.filters__blurb { margin: -4px 0 10px; color: var(--text-secondary); font-size: .85rem; line-height: 1.4; }
