/* The Synap: the price tracker pages, /price-tracker/ and /{cat}-price-tracker/ (class prefix pt-).
   Built on the page deck (home.css .pg-*): breadcrumbs on the black, one light sheet. Each section is a label and
   heading on the left and its content on the right, like the device page. Cuts in green, rises in the accent text
   colour, and the orange dot only ever marks a lowest price. Light by default; dark follows the style.css tokens. */

.pt { --pt-card: #ffffff; --pt-edge: rgba(0,0,0,.08); --pt-lift: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.05); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pt { --pt-card: #0e0e0e; --pt-edge: rgba(255,255,255,.09); --pt-lift: none; }
}
:root[data-theme="dark"] .pt { --pt-card: #0e0e0e; --pt-edge: rgba(255,255,255,.09); --pt-lift: none; }
.pt a { color: inherit; }
.pt .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- title block aside: how we track prices ---------- */
.pt-how { display: grid; gap: .7em; margin: 0 0 1.1em; padding: 0; list-style: none; font-size: var(--t-ui); line-height: 1.5; color: var(--ink-2); }
.pt-how li { position: relative; padding-left: 1.1em; }
.pt-how li::before { content: ""; position: absolute; left: 0; top: .62em; width: .32em; height: .32em; border-radius: 50%; background: var(--ink); }
.pt-link { font-size: var(--t-ui); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--line-2); transition: color .25s ease, text-decoration-color .25s ease; }
.pt-link:hover, .pt-link:focus-visible { color: var(--acc-text); text-decoration-color: currentColor; }

/* ---------- sections ---------- */
.pt-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1em 3em; margin-top: 4em; padding-top: 2.6em; border-top: 1px solid var(--line); }
.pt-sec__h .pg-label { margin-bottom: .7em; }
.pt-sec__t { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(22px, calc(.7vw + 12.6px), 32px); line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); }
.pt-sec__d { margin: .6em 0 0; font-size: var(--t-meta); line-height: 1.4; color: var(--ink-3); }
.pt-sec__b { min-width: 0; }
.pt-prose { max-width: 40em; margin: 0 0 1.2em; font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); }
.pt-prose a { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }

/* ---------- the month in figures ---------- */
.pt-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(11em, 1fr)); gap: 1.6em 1.4em; margin: 0; }
.pt-figs > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .45em; }
.pt-figs dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 2.4vw + 12px, 48px); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; color: var(--ink); }
.pt-figs dt { max-width: 15em; font-size: var(--t-ui); line-height: 1.4; color: var(--ink-2); }
.pt-figs--one { margin-top: 1.6em; }

/* ---------- cite this ---------- */
.pt-cite { margin-top: 2.2em; padding: 1.3em 1.5em; border-radius: 1.25em; background: var(--pt-card); box-shadow: var(--pt-lift), inset 0 0 0 1px var(--pt-edge); }
.pt-cite__h { display: flex; align-items: center; justify-content: space-between; gap: 1em; min-height: 44px; }
.pt-cite__h .pg-label { margin: 0; }
.pt-copy { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 1.15em; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: inherit; font-size: var(--t-ui); font-weight: 600; cursor: pointer; transition: background-color .25s ease; }
.pt-copy[hidden] { display: none; }
.pt-copy:hover, .pt-copy:focus-visible { background: #E85002; color: #fff; }
.pt-cite__text { margin: .5em 0 0; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.pt-cite__foot { display: flex; flex-wrap: wrap; gap: .5em 1.6em; margin: 1em 0 0; padding-top: 1em; border-top: 1px solid var(--line); font-size: var(--t-ui); color: var(--ink-3); }
.pt-cite__foot span a, .pt-cite__more a { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.pt-cite__more { margin: .7em 0 0; font-size: var(--t-meta); color: var(--ink-3); }

/* ---------- empty month ---------- */
.pt-empty__t { margin: 0; font-family: var(--display); font-weight: 500; font-size: var(--t-card-title, 20px); letter-spacing: -0.02em; color: var(--ink); }
.pt-empty__d { max-width: 36em; margin: .6em 0 0; font-size: var(--t-ui); line-height: 1.55; color: var(--ink-2); }

/* ---------- rows: cuts, rises, launches ---------- */
.pt-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pt-row { position: relative; display: grid; grid-template-columns: 4.4em minmax(0, 1fr) auto; align-items: center; gap: .4em 1.2em; padding: 1em 0; border-bottom: 1px solid var(--line); }
.pt-row__ph { position: relative; display: grid; place-items: center; width: 4.4em; aspect-ratio: 1 / 1; border-radius: 1em; }
.pt-row__ph > img { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.pt-row__body { min-width: 0; }
.pt-row__brand { display: block; font-size: var(--t-label); font-weight: 600; line-height: 1.2; letter-spacing: .02em; color: var(--ink-3); }
.pt-row__name { margin: .3em 0 0; font-family: var(--display); font-weight: 500; font-size: var(--t-card-title, 18px); line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pt-row__link { transition: color .25s ease; }
.pt-row__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: .9em; }
.pt-row__link:focus-visible { outline: 0; }
.pt-row:has(.pt-row__link:focus-visible), .pt-card:has(.pt-row__link:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: .9em; }
.pt-row:hover .pt-row__link, .pt-card:hover .pt-row__link { color: var(--acc-text); }
.pt-row:hover .pt-row__ph img, .pt-card:hover .pt-card__ph img { transform: scale(1.04); }
.pt-row__was { display: flex; flex-wrap: wrap; gap: .2em .8em; margin: .4em 0 0; font-size: var(--t-meta); line-height: 1.4; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pt-row__was b { font-weight: 600; color: var(--ink); }
.pt-row__was s { text-decoration-thickness: 1px; }
.pt-row__v { color: var(--ink-2); }
.pt-row__chg { display: flex; flex-direction: column; align-items: flex-end; gap: .3em; text-align: right; font-variant-numeric: tabular-nums; }
.pt-row__pct { font-family: var(--display); font-weight: 500; font-size: var(--t-card-title, 18px); letter-spacing: -0.02em; color: var(--ok); white-space: nowrap; }
.pt-row__pct.is-up { color: var(--acc-text); }
.pt-row__gap { font-size: var(--t-meta); color: var(--ink-3); white-space: nowrap; }

.pt-rest { margin-top: .2em; }
.pt-rest > summary { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-ui); font-weight: 600; cursor: pointer; list-style: none; }
.pt-rest > summary::-webkit-details-marker { display: none; }
.pt-rest > summary:hover { color: var(--acc-text); }
.pt-rest__c, .pt-rest[open] .pt-rest__o { display: none; }
.pt-rest[open] .pt-rest__c { display: inline; }
.pt-rest[open] > summary { order: 2; }
.pt-rest[open] { display: flex; flex-direction: column; }
.pt-rest[open] .pt-rows { border-top: 0; }

/* ---------- at their lowest: photo cards ---------- */
.pt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); gap: 1em; margin: 0; padding: 0; list-style: none; }
.pt-card { position: relative; display: flex; flex-direction: column; padding: 1em 1em 1.2em; border-radius: 1.5em; background: var(--pt-card); box-shadow: var(--pt-lift), inset 0 0 0 1px var(--pt-edge); }
.pt-card__ph { position: relative; display: block; aspect-ratio: 1 / 1; margin-bottom: 1em; border-radius: 1em; }
.pt-card__ph > img { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.pt-card__name { margin: .3em 0 0; font-family: var(--display); font-weight: 500; font-size: var(--t-ui); line-height: 1.2; letter-spacing: -0.01em; }
.pt-card__price { display: flex; align-items: center; gap: .5em; margin: .6em 0 0; font-family: var(--display); font-weight: 500; font-size: var(--t-card-title, 20px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pt-card__was { margin: .3em 0 0; font-size: var(--t-meta); color: var(--ink-3); }
.pt-dot { flex: none; width: .4em; height: .4em; border-radius: 50%; background: #E85002; }

/* ---------- other trackers ---------- */
.pt-links { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pt-links a { display: flex; align-items: center; justify-content: space-between; gap: 1em; min-height: 3.6em; border-bottom: 1px solid var(--line); font-size: var(--t-lead); font-weight: 500; transition: color .25s ease; }
.pt-links a:hover, .pt-links a:focus-visible { color: var(--acc-text); }
.pt-links .sy-go { flex: none; }

/* ---------- the hub's tiles ---------- */
.pt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(16em, 1fr)); gap: 1em; margin: 0; padding: 0; list-style: none; }
.pt-tile { position: relative; display: flex; flex-direction: column; padding: 1.6em; border-radius: 1.75em; background: var(--pt-card); box-shadow: var(--pt-lift), inset 0 0 0 1px var(--pt-edge); }
.pt-tile__t { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin: 0; font-family: var(--display); font-weight: 500; font-size: var(--t-card-title, 22px); letter-spacing: -0.02em; }
.pt-tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 1.75em; }
.pt-tile__link:focus-visible { outline: 0; }
.pt-tile:has(.pt-tile__link:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.pt-tile:hover .pt-tile__link { color: var(--acc-text); }
.pt-tile:hover .sy-go { background: #E85002; color: #fff; }
.pt-tile__m { margin: .3em 0 0; font-size: var(--t-meta); color: var(--ink-3); }
.pt-tile__big { display: flex; flex-direction: column; gap: .35em; margin: 1.6em 0 0; }
.pt-tile__big b { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 2.8vw + 14px, 56px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pt-tile__big span { font-size: var(--t-ui); color: var(--ink-2); }
.pt-tile__rows { margin: 1.6em 0 0; border-top: 1px solid var(--line); }
.pt-tile__rows div { display: flex; justify-content: space-between; gap: 1em; padding: .65em 0; border-bottom: 1px solid var(--line); font-size: var(--t-ui); }
.pt-tile__rows div:last-child { border-bottom: 0; }
.pt-tile__rows dt { color: var(--ink-3); }
.pt-tile__rows dd { margin: 0; font-weight: 600; text-align: right; }
.pt-tile__quiet { margin: 1.6em 0 0; font-size: var(--t-ui); line-height: 1.55; color: var(--ink-2); }
.pt--hub .pt-sec { margin-top: 4.5em; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pt-sec { grid-template-columns: minmax(0, 1fr); gap: 1.2em; margin-top: 3em; padding-top: 2em; }
}
@media (max-width: 560px) {
  .pt-row { grid-template-columns: 3.8em minmax(0, 1fr); }
  .pt-row__ph { width: 3.8em; }
  .pt-row__chg { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .2em .8em; text-align: left; }
  .pt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75em; }
  .pt-cite { padding: 1.1em 1.15em; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-row__ph > img, .pt-card__ph > img { transition: none; }
}
