/* ATC Popular Tire — scoped UI, compact charts v2026.09.10.2. */
body.atc-popular-page { background: #f5f6f8; }
.atc-pop {
  --atc-pop-ink: #18202d;
  --atc-pop-muted: #596474;
  --atc-pop-line: #dde2e9;
  --atc-pop-gold: #f5a30a;
  --atc-pop-blue: #365a8c;
  width: 100%; max-width: 1170px; margin: 0 auto; padding: 18px 24px 36px;
  box-sizing: border-box; color: var(--atc-pop-ink);
  font-family: Kanit, "Noto Sans Thai", Tahoma, sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.6;
}
.atc-pop *, .atc-pop *::before, .atc-pop *::after { box-sizing: border-box; }
.atc-pop a { color: #805000; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.atc-pop a:hover { color: #4f3200; }
.atc-pop a:focus-visible, .atc-pop button:focus-visible,
.atc-pop select:focus-visible, .atc-pop summary:focus-visible,
.atc-pop input:focus-visible { outline: 3px solid #326cac; outline-offset: 3px; }
.atc-pop h1, .atc-pop h2, .atc-pop h3, .atc-pop h4, .atc-pop p { margin: 0; }
.atc-pop button, .atc-pop input, .atc-pop select { font: inherit; }
.atc-pop button, .atc-pop select, .atc-pop summary { cursor: pointer; }
.atc-pop__content img { max-width: 100%; }
.atc-pop [hidden] { display: none !important; }
.atc-pop__hero {
  margin-bottom: 16px; padding: 22px 26px; border-radius: 15px;
  color: #fff; background: radial-gradient(ellipse at 100% 100%, #634004 0, transparent 70%), linear-gradient(115deg, #151b26, #191716);
  box-shadow: 0 8px 24px #18202d0c;
}
.atc-pop__crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-bottom: 14px; color: #d7dfed; font-size: 14px; line-height: 1.5; }
.atc-pop__crumb a { color: #e6edf7; text-decoration: none; }
.atc-pop__crumb a:hover { color: #ffc45c; text-decoration: underline; }
.atc-pop__eyebrow { margin-bottom: 6px; color: #ffc052; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.atc-pop__hero h1 { max-width: 1080px; margin: 0 0 8px; font-size: 32px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.atc-pop__hero > p { max-width: 1000px; color: #e0e6ef; font-size: 16px; line-height: 1.65; }
.atc-pop__hero-meta { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-top: 12px; color: #e0e6ef; font-size: 14px; }
.atc-pop__hero-meta a { color: #ffca6a; }
.atc-pop__layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 20px; }
.atc-pop__aside { min-width: 0; width: 300px; }
.atc-pop__aside .detail-right-box.rev { width: 300px; max-width: none; float: none; margin: 0 0 16px; }
.atc-pop__aside .detail-right-box { max-width: 100%; }
.atc-pop__content { min-width: 0; container-name: atc-pop-content; container-type: inline-size; }
.atc-pop__toolbar { padding: 16px; margin-bottom: 12px; border: 1px solid var(--atc-pop-line); border-top: 3px solid var(--atc-pop-gold); border-radius: 12px; background: #fff; }
.atc-pop__filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.atc-pop__filters label { display: flex; flex: 1 1 180px; flex-direction: column; gap: 5px; font-size: 15px; font-weight: 500; }
.atc-pop__filters select { width: 100%; min-height: 44px; padding: 8px 34px 8px 12px; border: 1px solid #cbd2dc; border-radius: 8px; color: #18202d; background-color: #fff; font-size: 16px; }
.atc-pop__button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border: 1px solid #e79700; border-radius: 8px; color: #1b1b1b !important; background: linear-gradient(#ffc448, #f3a313); font-weight: 600; text-decoration: none; }
.atc-pop__button:hover { background: #ffc052; }
.atc-pop__notice { padding: 10px 13px; margin: 10px 0 14px; border: 1px solid #e8d4a5; border-radius: 9px; background: #fff9e9; color: #654916; font-size: 14px; line-height: 1.6; }
.atc-pop__section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 16px 0 10px; }
.atc-pop__section-head h2 { font-size: 23px; line-height: 1.4; font-weight: 600; }
.atc-pop__section-head p, .atc-pop__section-head > span { color: var(--atc-pop-muted); font-size: 14px; }
.atc-pop__list { display: grid; gap: 9px; }
.atc-pop__brand { min-width: 0; border: 1px solid var(--atc-pop-line); border-radius: 11px; background: #fff; overflow: clip; scroll-margin-top: 20px; }
.atc-pop__brand[open] { border-color: #d5a13d; box-shadow: 0 3px 16px #18202d08; }
.atc-pop__summary { display: grid; grid-template-columns: 42px minmax(130px, 1fr) 110px 90px 75px 110px; align-items: center; column-gap: 12px; row-gap: 8px; padding: 13px 15px; list-style: none; min-width: 0; }
.atc-pop__summary::-webkit-details-marker { display: none; }
.atc-pop__summary::marker { content: ""; }
.atc-pop__summary:hover { background: #fffdf8; }
.atc-pop__rank { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 43px; border-radius: 9px; background: #eff2f6; color: #465364; font-size: 21px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.atc-pop__rank small { font-size: 11px; line-height: 1.4; font-weight: 500; }
.atc-pop__rank[data-medal="1"] { background: #fff0bd; color: #705000; border: 1px solid #ebc257; }
.atc-pop__rank[data-medal="2"] { background: #e9eef4; color: #45576b; border: 1px solid #bcc9d5; }
.atc-pop__rank[data-medal="3"] { background: #f6e7d9; color: #804721; border: 1px solid #d7b08e; }
.atc-pop__identity { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.atc-pop__logo { display: block; width: 110px; height: 32px; object-fit: contain; object-position: left center; }
.atc-pop__brand-name { max-width: 100%; color: #19222e; font-size: 16px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.atc-pop__country { color: var(--atc-pop-muted); font-size: 13px; line-height: 1.4; }
.atc-pop__views { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.4; font-variant-numeric: tabular-nums; }
.atc-pop__views strong { color: #1b2738; font-size: 22px; font-weight: 600; }
.atc-pop__views small { color: var(--atc-pop-muted); font-size: 13px; line-height: 1.5; }
.atc-pop__delta { font-variant-numeric: tabular-nums; }
.atc-pop__delta[data-direction="up"] { color: #166344; }
.atc-pop__delta[data-direction="down"] { color: #9e4430; }
.atc-pop__movement { font-size: 14px; line-height: 1.5; color: #42556c; }
.atc-pop__movement small { display: block; color: var(--atc-pop-muted); font-size: 12px; }
.atc-pop__summary-action { display: inline-flex; align-items: center; gap: 4px; color: #775000; font-size: 14px; font-weight: 500; white-space: nowrap; }
.atc-pop__summary-action::after { content: "⌄"; font-size: 20px; line-height: 1; }
.atc-pop__brand[open] > .atc-pop__summary .atc-pop__summary-action::after { content: "⌃"; }
.atc-pop__summary-action .atc-pop__when-open { display: none; }
.atc-pop__brand[open] > .atc-pop__summary .atc-pop__when-open { display: inline; }
.atc-pop__brand[open] > .atc-pop__summary .atc-pop__when-closed { display: none; }
.atc-pop__shop { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 7px 9px; border: 1px solid #e7c578; border-radius: 7px; background: #fff8e9; color: #725000; font-size: 14px; font-weight: 500; text-align: center; text-decoration: none; }
.atc-pop__shop:hover { background: #ffedc1; }
.atc-pop__detail { padding: 18px; border-top: 1px solid #ead7ac; background: #fcfcfd; }
.atc-pop__detail > h3 { font-size: 20px; line-height: 1.45; font-weight: 600; }
.atc-pop__caption { margin-top: 4px !important; color: var(--atc-pop-muted); font-size: 14px; line-height: 1.65; }
.atc-pop__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.atc-pop__metric { padding: 12px; border: 1px solid var(--atc-pop-line); border-radius: 9px; background: #fff; min-width: 0; }
.atc-pop__metric small { display: block; color: var(--atc-pop-muted); font-size: 13px; }
.atc-pop__metric strong { display: block; color: #1e2a3b; font-size: 23px; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.atc-pop__metric p { color: var(--atc-pop-muted); font-size: 13px; line-height: 1.5; }
.atc-pop__plot { padding: 10px 12px 8px; margin-top: 10px; border: 1px solid var(--atc-pop-line); border-radius: 10px; background: #fff; min-width: 0; }
.atc-pop__plot h4 { color: #23324a; font-size: 17px; font-weight: 500; line-height: 1.5; }
.atc-pop__chart { display: block; width: 100%; min-width: 0; margin-top: 4px; }
/* Empty hosts must keep their measurable width. With no SVG their height is zero. */
.atc-pop__svg { display: block; width: 100%; max-width: 100%; height: auto; overflow: visible; font-family: inherit; }
.atc-pop__axis-label { fill: #566273; font-size: 12px; font-weight: 400; }
.atc-pop__grid-line { stroke: #e6eaf0; stroke-width: 1; shape-rendering: crispEdges; }
.atc-pop__line { fill: none; stroke: #365a8c; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.atc-pop__line--rank { stroke: #98600a; }
.atc-pop__point { fill: #fff; stroke: #365a8c; stroke-width: 2; }
.atc-pop__point--rank { stroke: #98600a; }
.atc-pop__point-target { fill: transparent; cursor: pointer; outline: none; }
.atc-pop__point-target:focus-visible { fill: #326cac18; stroke: #326cac; stroke-width: 2; }
.atc-pop__selected { fill: #365a8c; }
.atc-pop__selected.atc-pop__point--rank { fill: #98600a; }
.atc-pop__readout { padding-top: 8px; min-height: 42px; border-top: 1px solid #eef0f4; color: #425169; font-size: 14px; line-height: 1.6; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.atc-pop__medals { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 14px; font-size: 14px; }
.atc-pop__medals > span { display: inline-flex; gap: 5px; align-items: center; padding: 5px 10px; border: 1px solid #dfd8c6; border-radius: 7px; background: #fffaf0; }
.atc-pop__history { margin-top: 14px; border: 1px solid var(--atc-pop-line); border-radius: 9px; background: #fff; }
.atc-pop__history > summary { min-height: 44px; padding: 10px 12px; color: #3b4d63; font-size: 15px; font-weight: 500; }
.atc-pop__table-wrap { overflow-x: auto; overscroll-behavior-inline: contain; border-top: 1px solid var(--atc-pop-line); }
.atc-pop__table-wrap table { width: 100%; min-width: 550px; border-collapse: collapse; font-size: 14px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.atc-pop__table-wrap th, .atc-pop__table-wrap td { padding: 9px 12px; border-bottom: 1px solid #e9edf2; text-align: right; vertical-align: middle; white-space: nowrap; }
.atc-pop__table-wrap th { background: #f4f6f9; color: #445267; font-weight: 500; }
.atc-pop__table-wrap th:first-child, .atc-pop__table-wrap td:first-child { text-align: left; }
.atc-pop__table-wrap th small { display: block; color: var(--atc-pop-muted); font-size: 12px; font-weight: 400; }
.atc-pop__table-wrap tbody tr:last-child td { border-bottom: 0; }
.atc-pop__table-wrap caption { padding: 8px 12px; text-align: left; color: var(--atc-pop-muted); font-size: 13px; }
.atc-pop__method { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--atc-pop-line); border-radius: 10px; background: #fff; color: #4b596d; font-size: 14px; line-height: 1.75; }
.atc-pop__method > summary { color: #27354b; font-size: 16px; font-weight: 500; }
.atc-pop__method h2, .atc-pop__method h3 { margin-bottom: 6px; font-size: 18px; line-height: 1.5; }
.atc-pop__method p + p { margin-top: 8px; }
.atc-pop__method ul { padding-left: 22px; margin: 10px 0 0; }
.atc-pop__method li + li { margin-top: 6px; }
.atc-pop__related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.atc-pop__related a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 12px; border: 1px solid #d5dce6; border-radius: 8px; background: #fff; font-size: 14px; text-decoration: none; }
.atc-pop__empty { padding: 24px 18px; border: 1px dashed #cad2dd; border-radius: 10px; color: #586577; background: #fff; text-align: center; }
.atc-pop__detail > .atc-pop__shop { margin-top: 12px; }
.atc-pop > .atc-pop__shop { margin-top: 16px; }

@container atc-pop-content (max-width: 780px) {
  .atc-pop__summary { grid-template-columns: 38px minmax(110px, 1fr) 102px 103px; gap: 6px 10px; padding: 12px; }
  .atc-pop__rank { grid-column: 1; grid-row: 1 / span 2; }
  .atc-pop__identity { grid-column: 2; grid-row: 1 / span 2; }
  .atc-pop__views { grid-column: 3; grid-row: 1 / span 2; }
  .atc-pop__movement { grid-column: 4; grid-row: 1; font-size: 13px; }
  .atc-pop__summary-action { grid-column: 2; grid-row: 3; }
  .atc-pop__shop { grid-column: 4; grid-row: 2 / span 2; }
  .atc-pop__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .atc-pop { padding: 16px 18px 30px; }
  .atc-pop__layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .atc-pop__content { grid-row: 1; }
  .atc-pop__aside { grid-row: 2; justify-self: center; display: none;}
  .atc-pop__summary { grid-template-columns: 38px minmax(100px, 1fr) 102px 103px; gap: 6px 10px; padding: 12px; }
  .atc-pop__rank { grid-column: 1; grid-row: 1 / span 2; }
  .atc-pop__identity { grid-column: 2; grid-row: 1 / span 2; }
  .atc-pop__views { grid-column: 3; grid-row: 1 / span 2; }
  .atc-pop__movement { grid-column: 4; grid-row: 1; font-size: 13px; }
  .atc-pop__summary-action { grid-column: 2; grid-row: 3; }
  .atc-pop__shop { grid-column: 4; grid-row: 2 / span 2; }
  .atc-pop__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container atc-pop-content (max-width: 490px) {
  .atc-pop__summary { grid-template-columns: 32px minmax(0, 1fr) 95px; padding: 12px 10px; gap: 6px 8px; }
  .atc-pop__rank { grid-column: 1; grid-row: 1; align-self: start; margin-top: 2px; font-size: 19px; }
  .atc-pop__identity { grid-column: 2; grid-row: 1; }
  .atc-pop__views { grid-column: 3; grid-row: 1; align-items: flex-end; text-align: right; }
  .atc-pop__views strong { font-size: 20px; }
  .atc-pop__movement { grid-column: 2; grid-row: 2; }
  .atc-pop__summary-action { grid-column: 2; grid-row: 3; }
  .atc-pop__shop { grid-column: 3; grid-row: 2 / span 2; min-height: 44px; padding: 7px 5px; font-size: 14px; }
  .atc-pop__logo { width: 90px; height: 28px; }
}
@media (max-width: 600px) {
  .atc-pop { padding: 12px 12px 26px; font-size: 16px; }
  .atc-pop__hero { padding: 18px 16px; margin-bottom: 12px; border-radius: 12px; }
  .atc-pop__hero h1 { font-size: 24px; line-height: 1.4; }
  .atc-pop__hero > p { font-size: 16px; line-height: 1.6; }
  .atc-pop__crumb { font-size: 13px; margin-bottom: 12px; }
  .atc-pop__eyebrow { font-size: 13px; }
  .atc-pop__hero-meta { gap: 5px 12px; }
  .atc-pop__toolbar { padding: 12px; }
  .atc-pop__filters { gap: 9px; }
  .atc-pop__filters label { flex-basis: 135px; }
  .atc-pop__filters .atc-pop__button { width: 100%; }
  .atc-pop__section-head h2 { font-size: 21px; }
  .atc-pop__summary { grid-template-columns: 32px minmax(0, 1fr) 95px; padding: 12px 10px; gap: 6px 8px; }
  .atc-pop__rank { grid-column: 1; grid-row: 1; align-self: start; margin-top: 2px; font-size: 19px; }
  .atc-pop__identity { grid-column: 2; grid-row: 1; }
  .atc-pop__views { grid-column: 3; grid-row: 1; align-items: flex-end; text-align: right; }
  .atc-pop__views strong { font-size: 20px; }
  .atc-pop__movement { grid-column: 2; grid-row: 2; }
  .atc-pop__summary-action { grid-column: 2; grid-row: 3; }
  .atc-pop__shop { grid-column: 3; grid-row: 2 / span 2; min-height: 44px; padding: 7px 5px; font-size: 14px; }
  .atc-pop__logo { width: 90px; height: 28px; }
  .atc-pop__detail { padding: 14px 10px; }
  .atc-pop__detail > h3 { font-size: 19px; }
  .atc-pop__metric { padding: 10px; }
  .atc-pop__metric strong { font-size: 22px; }
  .atc-pop__plot { padding: 10px 8px 8px; }
  .atc-pop__method { padding: 13px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .atc-pop *, .atc-pop *::before, .atc-pop *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Weekly dashboard v20260922-weekly-1. Append after the supplied styles.
 * Scope is restricted to this page. Arrows/text and dashed marks carry meaning
 * independently of color. Do not change the shared menu/footer/advertising CSS.
 */
.atc-pop--weekly .atc-pop__period-strip { display:flex; justify-content:space-between; gap:12px; padding:14px 16px; border:1px solid var(--atc-pop-line); border-radius:10px; background:#fff; }
.atc-pop--weekly .atc-pop__period-strip strong { font-size:17px; font-weight:600; }
.atc-pop--weekly .atc-pop__period-strip p, .atc-pop--weekly .atc-pop__fresh { font-size:13px; color:var(--atc-pop-muted); }
.atc-pop--weekly .atc-pop__fresh { text-align:right; font-variant-numeric:tabular-nums; }
.atc-pop--weekly .atc-pop__fresh small { display:block; font-size:12px; }
.atc-pop--weekly .atc-pop__basis-note { margin:8px 0 !important; font-size:13px; }
.atc-pop--weekly .atc-pop__refreshbar { display:flex; align-items:center; flex-wrap:wrap; gap:7px 10px; margin:10px 0 16px; color:var(--atc-pop-muted); font-size:12px; }
.atc-pop--weekly .atc-pop__refresh { min-height:40px; border:1px solid #ccd5e0; border-radius:7px; background:#fff; color:#273d59; padding:6px 12px; font-size:13px; }
.atc-pop--weekly .atc-pop__refresh:disabled { opacity:.65; cursor:wait; }
.atc-pop--weekly .atc-pop__summary { grid-template-columns:38px minmax(120px,1fr) minmax(190px,1.45fr) 112px; align-items:start; gap:12px; padding:16px; }
.atc-pop--weekly .atc-pop__summary > .atc-pop__rank { grid-column:1; grid-row:1; align-self:start; margin-top:2px; }
.atc-pop--weekly .atc-pop__summary > .atc-pop__identity { grid-column:2; grid-row:1; }
.atc-pop--weekly .atc-pop__summary > .atc-pop__views { grid-column:3; grid-row:1; text-align:left; align-items:flex-start; }
.atc-pop--weekly .atc-pop__summary > .atc-pop__actions { grid-column:4; grid-row:1; }
.atc-pop--weekly .atc-pop__actions { display:flex; flex-direction:column; align-items:stretch; justify-content:center; gap:12px; padding-top:7px; }
.atc-pop--weekly .atc-pop__summary-action { justify-content:center; }
.atc-pop--weekly .atc-pop__actions .atc-pop__shop { min-height:44px; padding:8px 6px; }
.atc-pop--weekly .atc-pop__identity .atc-pop__movement { font-size:12px; color:var(--atc-pop-muted); margin-top:5px; }
.atc-pop--weekly .atc-pop__views strong { font-size:25px; line-height:1.4; font-weight:600; }
.atc-pop--weekly .atc-pop__views strong > span { font-size:13px; font-weight:400; }
.atc-pop--weekly .atc-pop__views .atc-pop__metric-label { font-size:13px; color:#35485f; }
.atc-pop--weekly .atc-pop__views small { font-size:12px; }
.atc-pop--weekly .atc-pop__delta { display:block; margin-top:6px; font-size:13px; font-weight:500; line-height:1.55; }
.atc-pop--weekly .atc-pop__delta[data-direction="up"] { color:#244f7c; }
.atc-pop--weekly .atc-pop__delta[data-direction="down"] { color:#865023; }
.atc-pop--weekly .atc-pop__delta[data-direction="neutral"] { color:#586577; }
.atc-pop--weekly .atc-pop__metrics { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.atc-pop--weekly .atc-pop__metric strong { font-size:21px; }
.atc-pop--weekly .atc-pop__metric p { margin-top:5px; }
.atc-pop--weekly .atc-pop__plot { padding:14px 12px 10px; margin-top:16px; }
.atc-pop--weekly .atc-pop__plot-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; }
.atc-pop--weekly .atc-pop__plot h4 { font-size:17px; }
.atc-pop--weekly .atc-pop__chart-tabs { display:flex; flex-wrap:wrap; gap:5px; }
.atc-pop--weekly .atc-pop__chart-tabs button { min-height:40px; border:1px solid #cbd5e0; border-radius:7px; padding:6px 9px; color:#435874; background:#fff; font-size:13px; }
.atc-pop--weekly .atc-pop__chart-tabs button[aria-pressed="true"] { color:#fff; background:#2f517b; border-color:#2f517b; font-weight:500; }
.atc-pop--weekly .atc-pop__chart { display:block !important; min-width:0; width:100%; min-height:190px; padding:4px 0; color:#596474; font-size:14px; }
.atc-pop--weekly .atc-pop__chart-fallback { padding:24px 8px; }
.atc-pop--weekly .atc-pop__svg { display:block !important; width:100% !important; max-width:100%; min-height:180px; font-family:Kanit,"Noto Sans Thai",Tahoma,sans-serif; }
.atc-pop--weekly .atc-pop__legend { margin:2px 0 8px; color:var(--atc-pop-muted); font-size:12px; }
.atc-pop--weekly .atc-pop__readout { min-height:60px; font-size:13px; }
.atc-pop--weekly .atc-pop__archive-note, .atc-pop--weekly .atc-pop__medals { padding:0 12px 12px; }
.atc-pop--weekly .atc-pop__table-wrap { max-width:100%; }
.atc-pop--weekly .atc-pop__table-wrap td small { display:block; font-size:12px; }
.atc-pop--weekly .atc-pop__adjustment-note { font-size:12px; margin:10px 0 !important; }
.atc-pop--weekly .atc-pop__method { font-size:13px; }
.atc-pop--weekly .atc-pop__method > summary { min-height:32px; }
.atc-pop--weekly .atc-pop__method > p { margin-top:10px; }
@container atc-pop-content (max-width:690px) {
  .atc-pop--weekly .atc-pop__summary { grid-template-columns:34px minmax(120px,1fr) minmax(180px,1.2fr); gap:10px; padding:14px; }
  .atc-pop--weekly .atc-pop__summary > .atc-pop__actions { grid-column:2 / -1; grid-row:2; flex-direction:row; justify-content:space-between; align-items:center; padding-top:2px; }
  .atc-pop--weekly .atc-pop__actions .atc-pop__shop { min-width:140px; }
  .atc-pop--weekly .atc-pop__metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .atc-pop--weekly .atc-pop__metric:last-child { grid-column:1 / -1; }
}
@media (max-width:760px) {
  .atc-pop--weekly .atc-pop__period-strip { flex-direction:column; }
  .atc-pop--weekly .atc-pop__fresh { text-align:left; }
}
@container atc-pop-content (max-width:470px) {
  .atc-pop--weekly .atc-pop__summary { grid-template-columns:34px minmax(0,1fr); gap:10px; padding:14px; }
  .atc-pop--weekly .atc-pop__summary > .atc-pop__rank { grid-column:1; grid-row:1; }
  .atc-pop--weekly .atc-pop__summary > .atc-pop__identity { grid-column:2; grid-row:1; }
  .atc-pop--weekly .atc-pop__summary > .atc-pop__views { grid-column:1 / -1; grid-row:2; padding:10px 0; border-top:1px solid #edf0f4; border-bottom:1px solid #edf0f4; }
  .atc-pop--weekly .atc-pop__summary > .atc-pop__actions { grid-column:1 / -1; grid-row:3; }
  .atc-pop--weekly .atc-pop__detail { padding:14px 10px; }
  .atc-pop--weekly .atc-pop__metric strong { font-size:20px; }
}
/* Media fallback for browsers without container queries. */
@media (max-width:540px) {
  .atc-pop--weekly .atc-pop__summary { grid-template-columns:34px minmax(0,1fr); gap:10px; padding:14px; }
  .atc-pop--weekly .atc-pop__summary > .atc-pop__rank { grid-column:1; grid-row:1; }
  .atc-pop--weekly .atc-pop__summary > .atc-pop__identity { grid-column:2; grid-row:1; }
  .atc-pop--weekly .atc-pop__summary > .atc-pop__views { grid-column:1 / -1; grid-row:2; padding:10px 0; border-top:1px solid #edf0f4; border-bottom:1px solid #edf0f4; }
  .atc-pop--weekly .atc-pop__summary > .atc-pop__actions { grid-column:1 / -1; grid-row:3; flex-direction:row; justify-content:space-between; align-items:center; }
  .atc-pop--weekly .atc-pop__actions .atc-pop__shop { min-width:140px; }
  .atc-pop--weekly .atc-pop__metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .atc-pop--weekly .atc-pop__metric:last-child { grid-column:1 / -1; }
}
/* Popular Tire mobile layout 2026-09-23 */
@media (max-width: 600px) {
  .atc-pop--weekly .atc-pop__filters {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 10px;
  }
  .atc-pop--weekly .atc-pop__filters label { min-width: 0; font-size: 14px; }
  .atc-pop--weekly .atc-pop__filters select { min-width: 0; font-size: 16px; }
  .atc-pop--weekly .atc-pop__filters .atc-pop__button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .atc-pop--weekly .atc-pop__period-strip { padding: 12px; gap: 6px; }
  .atc-pop--weekly .atc-pop__period-strip strong { font-size: 16px; }
  .atc-pop--weekly .atc-pop__fresh {
    padding-top: 6px;
    border-top: 1px solid #edf0f4;
  }
  .atc-pop--weekly .atc-pop__section-head { margin-top: 14px; }
  .atc-pop--weekly .atc-pop__section-head > span { font-size: 13px; }
  .atc-pop--weekly .atc-pop__list { gap: 10px; }
  .atc-pop--weekly .atc-pop__brand { border-radius: 12px; }

  .atc-pop--weekly .atc-pop__summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) max-content;
    align-items: center;
    gap: 7px 10px;
    padding: 12px;
  }
  .atc-pop--weekly .atc-pop__summary > .atc-pop__rank {
    grid-column: 1;
    grid-row: 1;
    width: 38px;
    min-height: 42px;
    margin: 0;
  }
  .atc-pop--weekly .atc-pop__summary > .atc-pop__identity {
    grid-column: 2;
    grid-row: 1;
    gap: 1px;
  }
  .atc-pop--weekly .atc-pop__logo { width: 92px; height: 26px; }
  .atc-pop--weekly .atc-pop__brand-name {
    font-size: 16px;
    font-weight: 600;
  }
  .atc-pop--weekly .atc-pop__identity .atc-pop__country,
  .atc-pop--weekly .atc-pop__identity .atc-pop__movement {
    display: none;
  }

  .atc-pop--weekly .atc-pop__summary > .atc-pop__views {
    display: contents;
  }
  .atc-pop--weekly .atc-pop__views > small { display: none; }
  .atc-pop--weekly .atc-pop__views strong {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    font-size: 22px;
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
  }
  .atc-pop--weekly .atc-pop__views strong > span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
  }
  .atc-pop--weekly .atc-pop__views .atc-pop__delta {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
    margin: 1px 0 0;
    padding: 4px 8px;
    border-radius: 6px;
    background: #eef3f9;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .atc-pop--weekly .atc-pop__views
  .atc-pop__delta[data-direction="down"] {
    background: #fff3e8;
  }
  .atc-pop--weekly .atc-pop__views
  .atc-pop__delta[data-direction="neutral"] {
    background: #f1f2f4;
  }
  .atc-pop--weekly .atc-pop__views > .atc-pop__compare-note {
    display: block;
    grid-column: 2 / -1;
    grid-row: 3;
    color: #596474;
    font-size: 11px;
    line-height: 1.35;
  }

  .atc-pop--weekly .atc-pop__summary > .atc-pop__actions {
    grid-column: 1 / -1;
    grid-row: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding-top: 9px;
    border-top: 1px solid #edf0f4;
  }
  .atc-pop--weekly .atc-pop__summary-action {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    border: 1px solid #d8dfe9;
    border-radius: 7px;
    color: #364f70;
    background: #f7f9fc;
  }
  .atc-pop--weekly .atc-pop__actions .atc-pop__shop {
    min-width: 0;
    min-height: 44px;
    padding: 7px 5px;
    font-size: 14px;
  }

  .atc-pop--weekly .atc-pop__detail { padding: 14px 12px; }
  .atc-pop--weekly .atc-pop__metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .atc-pop--weekly .atc-pop__metric:last-child { grid-column: auto; }
  .atc-pop--weekly .atc-pop__plot { padding: 12px 10px 10px; }
  .atc-pop--weekly .atc-pop__plot-head { display: block; }
  .atc-pop--weekly .atc-pop__chart-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 9px;
  }
  .atc-pop--weekly .atc-pop__chart-tabs button {
    padding: 6px 4px;
    font-size: 13px;
  }
  .atc-pop--weekly .atc-pop__detail > .atc-pop__shop {
    display: flex;
    width: 100%;
  }

  .atc-pop--weekly
  .atc-pop__history[data-section="weekly-table"] .atc-pop__table-wrap,
  .atc-pop--weekly
  .atc-pop__history[data-section="monthly"] .atc-pop__table-wrap {
    overflow: visible;
    padding: 8px;
    border-top: 0;
  }
  .atc-pop--weekly
  .atc-pop__history[data-section="weekly-table"] table,
  .atc-pop--weekly
  .atc-pop__history[data-section="monthly"] table {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .atc-pop--weekly
  .atc-pop__history[data-section="weekly-table"] thead,
  .atc-pop--weekly
  .atc-pop__history[data-section="monthly"] thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }
  .atc-pop--weekly
  .atc-pop__history[data-section="weekly-table"] tbody,
  .atc-pop--weekly
  .atc-pop__history[data-section="monthly"] tbody {
    display: grid;
    gap: 8px;
  }
  .atc-pop--weekly
  .atc-pop__history[data-section="weekly-table"] tr,
  .atc-pop--weekly
  .atc-pop__history[data-section="monthly"] tr {
    display: block;
    padding: 8px 10px;
    border: 1px solid #e2e7ee;
    border-radius: 8px;
    background: #fff;
  }
  .atc-pop--weekly
  .atc-pop__history[data-section="weekly-table"] th[scope="row"],
  .atc-pop--weekly
  .atc-pop__history[data-section="monthly"] th[scope="row"] {
    display: block;
    padding: 3px 0 7px;
    border-bottom: 1px solid #e9edf2;
    text-align: left;
    white-space: normal;
    font-weight: 600;
  }
  .atc-pop--weekly
  .atc-pop__history[data-section="weekly-table"] td,
  .atc-pop--weekly
  .atc-pop__history[data-section="monthly"] td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0 2px;
    border: 0;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .atc-pop--weekly .atc-pop__history td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: #596474;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
  }
  .atc-pop--weekly .atc-pop__history .atc-pop__cell-value {
    display: block;
    flex: 1 1 58%;
    min-width: 0;
    text-align: right;
  }
  .atc-pop--weekly
  .atc-pop__history[data-section="weekly-table"] caption {
    display: block;
    padding: 2px 2px 10px;
    white-space: normal;
  }
  .atc-pop--weekly .atc-pop__related {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .atc-pop--weekly .atc-pop__related a {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 359px) {
  .atc-pop--weekly .atc-pop__summary {
    grid-template-columns: 34px minmax(0, 1fr) max-content;
    gap: 6px;
    padding: 10px;
  }
  .atc-pop--weekly .atc-pop__summary > .atc-pop__rank {
    width: 34px;
    min-height: 40px;
  }
  .atc-pop--weekly .atc-pop__logo { width: 78px; }
  .atc-pop--weekly .atc-pop__brand-name { font-size: 14px; }
  .atc-pop--weekly .atc-pop__views strong { font-size: 20px; }
  .atc-pop--weekly .atc-pop__actions .atc-pop__shop {
    font-size: 13px;
  }
}
/* Mobile polish v2: reset old button grid positions */
@media (max-width: 600px) {
  .atc-pop--weekly .atc-pop__section-head {
    display: block;
    margin-bottom: 10px;
  }
  .atc-pop--weekly .atc-pop__section-head h2 {
    font-size: 21px;
    line-height: 1.35;
  }
  .atc-pop--weekly .atc-pop__section-head > span {
    display: block;
    margin-top: 3px;
  }
  .atc-pop--weekly .atc-pop__summary {
    row-gap: 6px;
  }

  .atc-pop--weekly .atc-pop__summary > .atc-pop__actions {
    grid-column: 1 / -1;
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    justify-content: stretch;
    align-items: stretch;
    gap: 8px;
    margin: 2px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid #edf0f4;
  }

  .atc-pop--weekly .atc-pop__actions > .atc-pop__summary-action,
  .atc-pop--weekly .atc-pop__actions > .atc-pop__shop {
    grid-column: auto;
    grid-row: auto;
    display: inline-flex;
    width: 100%;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
  }

  .atc-pop--weekly .atc-pop__summary-action::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: -4px 0 0 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    flex: 0 0 auto;
  }

  .atc-pop--weekly .atc-pop__brand[open] >
  .atc-pop__summary .atc-pop__summary-action::after {
    content: "";
    margin-top: 4px;
    transform: rotate(225deg);
  }
}
/* Mobile hierarchy v3 */
@media (max-width: 600px) {
  .atc-pop--weekly .atc-pop__summary {
    grid-template-columns: 38px minmax(0, 1fr) minmax(96px, 112px);
    column-gap: 10px;
    row-gap: 4px;
  }

  .atc-pop--weekly .atc-pop__summary > .atc-pop__rank,
  .atc-pop--weekly .atc-pop__summary > .atc-pop__identity {
    grid-row: 1 / span 2;
    align-self: center;
  }

  .atc-pop--weekly .atc-pop__brand-name {
    font-size: 17px;
    font-weight: 700;
  }

  .atc-pop--weekly .atc-pop__views > .atc-pop__metric-label {
    display: block;
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    color: #596474;
    font-size: 11px;
    line-height: 1.25;
    text-align: right;
    white-space: normal;
  }

  .atc-pop--weekly .atc-pop__views strong {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    font-size: 22px;
    line-height: 1.2;
  }

  .atc-pop--weekly .atc-pop__views strong > span {
    display: inline;
    margin-left: 2px;
    font-size: 12px;
  }

  .atc-pop--weekly .atc-pop__views .atc-pop__delta {
    grid-row: 3;
  }

  .atc-pop--weekly .atc-pop__views > .atc-pop__compare-note {
    grid-row: 4;
  }

  .atc-pop--weekly .atc-pop__summary > .atc-pop__actions {
    gap: 8px;
    margin-top: 1px;
    padding-top: 7px;
  }

  .atc-pop--weekly .atc-pop__actions > .atc-pop__summary-action,
  .atc-pop--weekly .atc-pop__actions > .atc-pop__shop {
    height: 44px;
    min-height: 44px;
    padding: 0 5px;
    font-size: 13px;
    line-height: 1.2;
  }

  .atc-pop--weekly .atc-pop__actions > .atc-pop__summary-action {
    border-color: transparent;
    background: transparent;
    color: #50617a;
    font-weight: 500;
  }

  .atc-pop--weekly .atc-pop__actions > .atc-pop__shop {
    border-color: #e9d5a7;
    background: #fffbf3;
    color: #725000;
    font-weight: 500;
  }
}

@media (max-width: 359px) {
  .atc-pop--weekly .atc-pop__summary {
    grid-template-columns: 34px minmax(0, 1fr) minmax(88px, 104px);
    column-gap: 6px;
  }

  .atc-pop--weekly .atc-pop__brand-name { font-size: 15px; }
  .atc-pop--weekly .atc-pop__views strong { font-size: 20px; }
  .atc-pop--weekly .atc-pop__actions > .atc-pop__shop {
    font-size: 12px;
  }
}
/* Show period and data read time on mobile cards */
@media (max-width: 600px) {
  .atc-pop--weekly .atc-pop__views > .atc-pop__range-note {
    display: block;
    grid-column: 2 / -1;
    grid-row: 3;
    justify-self: start;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .atc-pop--weekly .atc-pop__views .atc-pop__delta {
    grid-row: 4;
  }

  .atc-pop--weekly .atc-pop__views > .atc-pop__compare-note {
    grid-row: 5;
  }
}