.home-page { padding-block: 24px 64px; }
.home-featured--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 26%); gap: 16px; }
.home-featured--split .hero-stage { height: 100%; }
.shop-hero { position: relative; overflow: hidden; border-radius: 5px; background: var(--paper); box-shadow: var(--shadow-surface); }
.hero-stage { display: grid; touch-action: pan-y pinch-zoom; }
.hero-slide { position: relative; isolation: isolate; grid-area: 1 / 1; display: flex; align-items: center; min-height: 346px; color: var(--ink); }
.hero-slide[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-carousel-ready] .hero-slide:not([hidden]) { animation: hero-reveal .28s ease-out; }
  @keyframes hero-reveal { from { opacity: .72; } to { opacity: 1; } }
}
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide:has(.hero-image):has(.hero-copy)::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / 94%) 0%, rgb(255 255 255 / 86%) 34%, rgb(255 255 255 / 34%) 62%, transparent 84%);
  backdrop-filter: blur(3px);
  mask-image: linear-gradient(90deg, #000 32%, transparent 84%);
}
.hero-copy { width: min(65%, 710px); padding: 36px clamp(28px, 5vw, 66px); overflow-wrap: anywhere; }
.shop-hero:has(.hero-controls:not([hidden])) .hero-copy { padding-bottom: 68px; }
.hero-copy::before { content: ''; display: block; width: 40px; height: 3px; margin-bottom: 16px; background: var(--accent); }
.hero-title { font-size: 52px; font-weight: 750; line-height: 1.18; letter-spacing: 0; }
.hero-copy p { max-width: 34em; color: var(--muted); font-size: 17px; white-space: pre-line; }
.hero-title + p { margin-top: 10px; }
.hero-button { background: var(--accent-ink); color: #fff; max-width: 100%; }
.hero-copy :is(.hero-title, p) + .hero-button { margin-top: 22px; }
.hero-button:hover { background: color-mix(in srgb, var(--accent-ink) 80%, var(--ink)); }
.hero-controls { --hero-control-size: 44px; position: absolute; inset: auto 8px 10px; display: flex; justify-content: center; pointer-events: none; }
.hero-control-bar {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 2px 3px;
  pointer-events: auto;
  color: #fff;
  background: rgb(24 28 36 / 64%);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgb(17 22 30 / 22%);
}
.hero-control, .hero-dot { appearance: none; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-control { display: grid; place-items: center; flex: none; width: var(--hero-control-size); height: var(--hero-control-size); border-radius: 50%; }
.hero-control-icon { display: block; width: 20px; height: 20px; }
.hero-control:is(:active, :focus-visible) { background: rgb(255 255 255 / 16%); }
.hero-dots { position: relative; display: flex; min-width: 0; max-width: min(46vw, 430px); height: var(--hero-control-size); overflow: auto hidden; scrollbar-width: none; }
.hero-dot { position: relative; display: grid; place-items: center; flex: 0 0 26px; height: 100%; }
.hero-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / 65%); }
.hero-dot[aria-current="true"]::before { width: 13px; border-radius: 4px; background: #fff; }
.hero-controls :is(.hero-control, .hero-dot):focus-visible { outline-color: #fff; outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) {
  .hero-controls { --hero-control-size: 36px; opacity: 0; }
  .shop-hero:is(:hover, :has(:focus-visible)) .hero-controls { opacity: 1; }
  .shop-hero:not(:hover, :has(:focus-visible)) .hero-control-bar { pointer-events: none; }
  .hero-control:hover { background: rgb(255 255 255 / 16%); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-controls { transition: opacity 160ms ease-out; }
}
.home-notice {
  --notice-accent: color-mix(in srgb, var(--accent) 58%, var(--ink));
  min-width: 0;
  padding: 0 16px 12px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-surface);
}
.home-notice-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 57px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.home-notice-heading h2 { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 18px; font-weight: 750; }
.home-notice-heading h2::before { content: ''; flex: 0 0 3px; height: 17px; border-radius: 2px; background: var(--accent); }
.home-notice-heading h2 img { flex: none; object-fit: contain; }
.home-notice-heading h2 span, .home-notice-title > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-notice-more { display: inline-flex; align-items: center; flex: none; gap: 3px; font-size: 12px; font-weight: 700; color: var(--notice-accent); }
.home-notice-more svg { width: 13px; height: 13px; }
.home-notice-items { margin: 0; padding: 0; list-style: none; }
.home-notice-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); }
.home-notice-item:last-child { border-bottom-color: transparent; }
.home-notice-title { min-width: 0; padding-block: 10px; font-size: 14px; font-weight: 650; }
a.home-notice-title:is(:hover, :focus-visible) { color: var(--notice-accent); text-decoration: none; }
.home-notice-item time { padding: 2px 5px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-notice-item .home-notice-current { border-radius: var(--control-radius); background: var(--tint); color: var(--notice-accent); font-weight: 750; }
.home-notice-empty { padding: 18px 0; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .home-featured--split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  a.home-notice-title { transition: color var(--quick); }
  a.home-notice-title > span, .home-notice-more svg { transition: transform var(--quick); }
  a.home-notice-title:is(:hover, :focus-visible) > span, .home-notice-more:is(:hover, :focus-visible) svg { transform: translateX(3px); }
}
.home-quick-nav, .home-categories { display: grid; gap: 11px; margin: 17px 0 0; }
.home-quick-nav { grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)); }
.home-categories { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); padding: 0; list-style: none; }
.home-categories li { display: flex; min-width: 0; }
.home-quick-link, .home-category { min-width: 0; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-control); overflow-wrap: anywhere; }
.home-quick-link { display: grid; grid-auto-rows: max-content; align-content: center; justify-items: center; gap: 7px; min-height: 83px; padding: 11px; font-size: 14px; font-weight: 700; text-align: center; }
.home-category { --icon-size: 42px; display: grid; grid-template-columns: var(--icon-size) minmax(0, 1fr); align-items: center; flex: 1; gap: 12px; min-height: 72px; padding: 10px 13px; }
.home-quick-link img { flex: none; object-fit: contain; }
.home-category-icon { display: grid; place-items: center; width: var(--icon-size); height: var(--icon-size); overflow: hidden; border-radius: 6px; color: var(--accent-ink); background: var(--tint); }
.home-category-icon img { width: 100%; height: 100%; object-fit: contain; }
.home-category-icon svg { display: block; width: 22px; height: 22px; }
.home-category-copy { min-width: 0; }
.home-category-copy strong { display: block; font-size: 14px; line-height: 1.4; }
.home-category-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
a.home-category:focus-visible { outline-offset: 2px; }
.home-quick-link:hover, a.home-category:hover { background: var(--tint); box-shadow: var(--shadow-hover); }

.home-category-products { display: grid; gap: 28px; margin-top: 26px; }
.category-product-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.category-product-heading > div { min-width: 0; flex: 1; border-inline-start: 3px solid var(--accent); padding-inline-start: 10px; overflow-wrap: anywhere; }
.category-product-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; letter-spacing: 0; }
.category-product-icon { flex: none; width: 26px; height: 26px; border-radius: var(--control-radius); object-fit: contain; }
.category-product-more { display: inline-flex; flex: none; align-items: center; gap: 5px; min-height: 34px; padding: 5px 10px; border-radius: var(--control-radius); background: var(--tint); color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.category-product-more .lucide { flex: none; color: var(--accent-ink); }
.category-product-more:hover { background: color-mix(in srgb, var(--accent) 12%, var(--paper)); }
.category-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.category-product-card { min-width: 0; }
.category-product-body { display: grid; grid-template-columns: minmax(0, 96px) minmax(0, 1fr); align-items: center; gap: 12px; height: 100%; padding: 10px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-control); }
.category-product-body:has(a):is(:hover, :focus-within) { box-shadow: var(--shadow-hover); }
.category-product-cover { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--control-radius); background: var(--wash); }
.category-product-cover img { width: 100%; height: 100%; object-fit: cover; }
.category-product-cover .game-art { height: 100%; min-height: 0; }
.category-product-copy { display: grid; align-content: start; min-width: 0; gap: 4px; overflow-wrap: anywhere; }
.category-product-copy h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; font-size: 15px; letter-spacing: 0; -webkit-line-clamp: 2; }
.category-product-summary { color: var(--muted); font-size: 13px; }
.category-product-meta { display: flex; align-items: end; justify-content: space-between; gap: 5px 10px; }
.category-product-meta .price { font-size: 14px; }
.category-product-arrow { margin-inline-start: auto; color: var(--accent-ink); font-size: 15px; }
.home-category-products--rich .category-product-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: stretch; gap: 0; padding: 0; overflow: hidden; box-shadow: var(--shadow-surface); }
.home-category-products--rich .category-product-cover { aspect-ratio: 16 / 9; border-radius: 0; }
.home-category-products--rich .category-product-copy { grid-template-rows: auto 1fr auto; padding: 12px 13px; gap: 5px; }
.home-category-products--rich .category-product-meta { grid-row: 3; }
.home-category-products--rich .category-product-body:has(a):is(:hover, :focus-within) { box-shadow: var(--shadow-hover); }

.home-section { margin-top: clamp(30px, 3.8vw, 48px); }
.home-page > .empty-state { margin-top: 24px; }
.section-heading, .editorial-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.section-heading h2 { font-size: clamp(21px, 3vw, 28px); font-weight: 740; letter-spacing: -.025em; }
.section-heading p, .editorial-heading p { margin-top: 6px; color: var(--muted); }
.section-heading { align-items: center; }
.section-heading > div { min-width: 0; }
.home-section-title { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.home-section-icon { flex: none; width: 24px; height: 24px; object-fit: contain; }
.section-heading > a { flex-shrink: 0; font-size: 14px; }

.card-grid { --columns: 3; display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 16px; }
.card-grid.article-rows { --columns: 1; }
.home-mixed { --columns: 4; }
.content-card { min-width: 0; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-surface); transition: box-shadow var(--quick), transform var(--quick); }
.card-link, .product-card-body { display: flex; height: 100%; flex-direction: column; border-radius: inherit; }
.product-card, .category-product-body { position: relative; isolation: isolate; }
/* Extend only the detail link; category links stay above its hit area. */
.card-detail-link::after { position: absolute; z-index: 1; inset: 0; content: ""; }
.card-media { position: relative; overflow: hidden; border-radius: var(--control-radius) var(--control-radius) 0 0; background: var(--wash); }
.product-cover { aspect-ratio: 16 / 10; }
.article-cover { aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.game-art {
  --jacket: #b8c1ce;
  --edge: #7b8899;
  --label: #e1e5ed;
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--wash), #eef1f5);
}
.game-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(125deg, transparent 0 28px, #aab3c11c 28px 29px);
  mask-image: linear-gradient(110deg, transparent 24%, #000);
}
.art-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(54px, 27%, 120px);
  aspect-ratio: 1.18;
  transform: rotate(-7deg);
  border: 1px solid #9da8b6;
  border-radius: 3px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--edge) 45%, #fff), var(--edge));
  box-shadow: inset 0 -3px 0 #5e697a38, 1px 4px 0 #7b899d61, 3px 10px 13px #363f501c;
}
.art-tile::before {
  content: '';
  position: absolute;
  inset: 12% 12% 21%;
  border-radius: 2px;
  background: linear-gradient(145deg, var(--label) 0 36%, transparent 36% 39%, var(--label) 39% 43%, transparent 43%), linear-gradient(145deg, var(--jacket), var(--edge));
}
.art-tile::after { content: ''; position: absolute; left: 17%; bottom: 8%; width: 36%; height: 5%; background: repeating-linear-gradient(90deg, #e0e6f1b8 0 1px, transparent 1px 4px); }
.art-tile .gamepad-mark { justify-self: end; align-self: end; margin: 0 16% 28% 0; }
.card-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 15px 17px; }
.card-copy h3 { color: var(--ink); font-size: 16px; font-weight: 760; }
.card-recommendation { display: inline-flex; align-items: center; gap: 3px; margin-inline-end: .3em; padding: 2px 6px; border-radius: var(--control-radius); background: #ffd36d; color: #452700; font-size: 11px; font-weight: 750; line-height: 1.2; vertical-align: .1em; white-space: nowrap; }
.card-recommendation svg { flex: none; width: 1em; height: 1em; fill: currentColor; }
.card-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--muted); font-size: 13px; }
.product-card .card-summary, .product-list-card .card-summary, .category-product-summary { display: block; overflow: hidden; -webkit-line-clamp: unset; white-space: nowrap; text-overflow: ellipsis; }
.card-copy time { color: var(--accent-ink); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
:is(.product-card, .product-list-card) .card-bottom, .category-product-meta { flex-wrap: wrap; }
:is(.product-card, .product-list-card) .card-bottom .price, .category-product-meta .price { max-width: 100%; overflow-wrap: anywhere; }
.card-category-tags { display: flex; flex-wrap: wrap; align-self: center; justify-content: flex-end; gap: 4px; min-width: 0; margin-inline-start: auto; }
.card-category-tag { max-width: 100%; padding: 2px 8px; border-radius: 999px; background: #e7f2f4; color: #245664; font-size: 12px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
:is(.product-card, .category-product-body) a.card-category-tag { position: relative; z-index: 2; }
a.card-category-tag:is(:hover, :focus-visible) {
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
}
@supports (color: contrast-color(white)) {
  a.card-category-tag:is(:hover, :focus-visible) { color: contrast-color(var(--accent)); }
}
@media (prefers-reduced-motion: no-preference) {
  a.card-category-tag { transition: background-color var(--quick), color var(--quick), transform var(--quick), box-shadow var(--quick); }
  a.card-category-tag:is(:hover, :focus-visible) { transform: scale(1.05); box-shadow: var(--shadow-control); }
}
.card-arrow { align-self: end; margin-inline-start: auto; color: var(--accent-ink); font-weight: 750; }
.article-card .card-arrow { margin-top: auto; }
.article-card .card-copy, .list-card .card-copy { padding: 18px; }
:is(.list-card, .article-list-card) > :is(.content-field, .prose) { padding: 0 18px 18px; }
.list-card h3 a:hover { color: var(--accent-ink); text-decoration: underline; }

.article-list-row { display: grid; grid-template-columns: clamp(76px, 26%, 208px) minmax(0, 1fr); align-items: start; gap: 18px; padding: 16px; }
.article-list-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--control-radius); background: var(--wash); }
.article-list-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-list-copy { align-self: center; padding: 0; }
.article-list-copy h3 { font-size: 17px; }
.article-list-copy h3 a:hover { color: var(--accent-ink); text-decoration: none; }
.article-list-badges { display: flex; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.article-list-category, .article-list-tag { max-width: 100%; padding: 2px 8px; border: 1px solid transparent; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.article-list-category { border-radius: var(--control-radius); background: #e7f2f4; color: #245664; font-weight: 650; }
.article-list-tag { border-color: color-mix(in srgb, var(--muted) 35%, var(--paper)); border-radius: 999px; color: var(--muted); }
.article-list-dates { display: flex; flex-wrap: wrap; gap: 3px 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.article-list-dates > span, .reading-dates > span { display: inline-flex; flex-wrap: wrap; gap: 0 4px; }
.article-list-dates time { color: inherit; font-size: inherit; font-weight: inherit; white-space: nowrap; }

.shop-list-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 22px; }
.shop-list-layout.with-filters { grid-template-columns: minmax(165px, 212px) minmax(0, 1fr); }
.nav-group[open] > summary::after { transform: rotate(225deg); }
.filter-title { padding: 15px 16px 10px; font-size: 15px; font-weight: 750; }
.filter-list { min-width: 0; padding: 0 9px 10px; }
.filter-tree { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.filter-tree-item { position: relative; min-width: 0; }
.filter-tree-item > a { display: flex; align-items: center; min-height: 41px; overflow-wrap: anywhere; }
.filter-tree-item.has-children > a { padding-inline-end: 40px; }
.filter-branch > summary { position: absolute; inset-block-start: 1px; inset-inline-end: 2px; display: grid; place-items: center; width: 36px; height: 39px; list-style: none; border-radius: var(--control-radius); color: var(--muted); cursor: pointer; transition: color var(--quick); }
.filter-branch > summary::-webkit-details-marker { display: none; }
.filter-branch > summary::before { grid-area: 1 / 1; width: 30px; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, var(--paper)); content: ""; opacity: 0; transform: scale(.8); transition: opacity var(--quick), transform var(--quick); }
.filter-branch > summary:is(:hover, :focus-visible) { color: var(--accent-ink); }
.filter-branch > summary:is(:hover, :focus-visible)::before { opacity: 1; transform: scale(1); }
.filter-branch > summary:focus-visible { outline-offset: -2px; }
.filter-branch > summary svg { position: relative; grid-area: 1 / 1; transition: transform var(--quick); }
.filter-branch[open] > summary svg { transform: rotate(90deg); }
.filter-branch > .filter-tree { margin: 4px 0 2px 12px; padding-inline-start: 6px; border-inline-start: 1px solid color-mix(in srgb, var(--muted) 22%, transparent); }
.filter-branch .filter-branch .filter-branch > .filter-tree { margin-inline-start: 0; }
.filter-list a, .category-chips a { padding: 9px 10px; border-radius: var(--control-radius); color: var(--muted); }
.filter-list a { padding-inline-start: 13px; border-inline-start: 3px solid transparent; }
.filter-list [aria-current] { border-inline-start-color: var(--accent-ink); }
.filter-list a:hover, .filter-list [aria-current], .category-chips a:hover, .category-chips [aria-current] { background: var(--tint); color: var(--accent-ink); }
.filter-list [aria-current], .category-chips [aria-current] { font-weight: 750; }
.filter-empty { display: block; padding: 4px 7px 8px; color: var(--muted); font-size: 13px; }
.listing-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 11px 22px; margin-bottom: 16px; padding: 12px 16px; }
.listing-toolbar-title { flex: 1 1 120px; min-width: 0; }
.listing-toolbar h1 { font-size: 23px; font-weight: 750; }
.listing-toolbar .result-count { margin-top: 2px; }
.listing-description { margin: -2px 0 16px; color: var(--muted); }
.listing-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; max-width: 100%; }
.listing-controls select, .listing-search, .listing-dropdown-trigger {
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--muted) 24%, transparent);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.listing-controls select { max-width: min(180px, 100%); padding-inline: 9px; font: inherit; font-size: 14px; cursor: pointer; }
.listing-dropdown { position: relative; flex: 0 1 var(--listing-trigger-width); width: var(--listing-trigger-width); min-width: 0; max-width: 100%; font-size: 14px; }
.listing-dropdown--category { --listing-trigger-width: 156px; --listing-panel-width: 252px; }
.listing-dropdown--sort { --listing-trigger-width: 124px; --listing-panel-width: 172px; }
.listing-dropdown[open] { z-index: 2; }
.listing-dropdown-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  list-style: none;
  cursor: pointer;
}
.listing-dropdown-trigger::-webkit-details-marker { display: none; }
.listing-dropdown-trigger:hover, .listing-dropdown[open] > .listing-dropdown-trigger { border-color: color-mix(in srgb, var(--accent) 52%, var(--paper)); }
.listing-dropdown[open] > .listing-dropdown-trigger { background: var(--tint); color: var(--accent-ink); }
.listing-dropdown-trigger > svg { color: var(--muted); transform: rotate(90deg); transition: transform var(--quick); }
.listing-dropdown[open] > .listing-dropdown-trigger > svg { color: inherit; transform: rotate(-90deg); }
.listing-dropdown-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-dropdown-panel {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-start: var(--listing-panel-shift, 0px);
  width: min(var(--listing-panel-width), calc(100vw - 24px));
  max-height: min(360px, var(--listing-panel-height, 52vh));
  padding: 5px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border: 1px solid color-mix(in srgb, var(--muted) 20%, transparent);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: var(--shadow-raised);
}
.listing-dropdown[data-open-above] > .listing-dropdown-panel { inset-block: auto calc(100% + 6px); }
.listing-options { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.listing-category-row { display: flex; align-items: stretch; min-width: 0; }
.listing-choice, .listing-branch-toggle { border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; }
.listing-choice { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 6px; width: 100%; min-width: 0; min-height: 36px; padding: 6px 9px; text-align: start; line-height: 1.4; }
.listing-choice span { overflow-wrap: anywhere; }
.listing-choice svg { visibility: hidden; }
.listing-choice[aria-current="true"] { background: var(--tint); color: var(--accent-ink); font-weight: 700; }
.listing-choice[aria-current="true"] svg { visibility: visible; }
.listing-choice:hover, .listing-branch-toggle:hover { background: var(--wash); color: var(--accent-ink); }
.listing-choice[aria-current="true"]:hover { background: color-mix(in srgb, var(--accent) 11%, var(--paper)); }
.listing-dropdown--sort > .listing-dropdown-trigger { border-radius: 6px; font-weight: 600; }
.listing-dropdown--sort > .listing-dropdown-panel { padding: 6px; border-radius: 8px; }
.listing-dropdown--sort .listing-choice { padding-inline: 10px; border-radius: 5px; }
.listing-dropdown--sort .listing-choice[aria-current="true"] { color: var(--ink); }
.listing-dropdown--sort .listing-choice[aria-current="true"] > svg { color: var(--accent-ink); }
.listing-choice:focus-visible, .listing-branch-toggle:focus-visible { outline-offset: -2px; }
.listing-branch-toggle { display: grid; place-items: center; flex: 0 0 34px; min-height: 36px; padding: 0; color: var(--muted); }
.listing-branch-toggle svg { transition: transform var(--quick); }
.listing-branch-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.listing-subcategories { margin: 3px 0 2px 12px; padding-inline-start: 6px; border-inline-start: 1px solid color-mix(in srgb, var(--muted) 22%, transparent); }
.listing-subcategories .listing-subcategories .listing-subcategories { margin-inline-start: 0; padding-inline-start: 3px; }
.listing-search { display: grid; grid-template-columns: minmax(0, 1fr) 40px; width: 228px; max-width: 100%; }
.listing-search input { min-width: 0; width: 100%; padding: 0 10px; border: 0; border-radius: inherit; background: none; color: inherit; font: inherit; font-size: 14px; }
.listing-search input::placeholder { color: var(--muted); }
.listing-search button { display: grid; place-items: center; padding: 0; border: 0; border-inline-start: 1px solid color-mix(in srgb, var(--muted) 18%, transparent); border-radius: 0 var(--control-radius) var(--control-radius) 0; background: var(--tint); color: var(--accent-ink); cursor: pointer; }
.listing-search button:hover { background: color-mix(in srgb, var(--accent) 13%, var(--paper)); }
.listing-search button:focus-visible, .listing-search input:focus-visible { outline-offset: -2px; }
.editorial-heading h1 { font-size: clamp(26px, 3.1vw, 39px); font-weight: 740; letter-spacing: -.022em; }
.result-count { flex: none; color: var(--muted); font-size: 13px; }
.editorial-heading { padding-block: 12px; }
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.category-chips a { padding: 6px 12px; background: var(--paper); font-size: 14px; box-shadow: var(--shadow-control); }

.product-detail {
  --product-inset: 14px;
  --product-accent-text: color-mix(in srgb, var(--accent) 68%, #1b1722);
  --product-accent-fill: color-mix(in srgb, var(--accent) 15%, var(--paper));
}
.product-detail--store > :is(.product-overview, .product-info) { box-shadow: 0 0 9px rgb(27 33 45 / 11%); }
.product-overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 24px; padding: var(--product-inset); }
.gallery-main { position: relative; overflow: hidden; aspect-ratio: 16 / 11; border-radius: var(--radius); background: var(--wash); }
.gallery-preview { position: absolute; inset: 0; cursor: zoom-in; }
.gallery-preview:focus-visible { outline-offset: -4px; }
.gallery-preview > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery-outgoing { background: var(--wash); pointer-events: none; }
.gallery-tool { display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; padding: 0; border: 0; border-radius: var(--radius); background: rgb(15 18 24 / 76%); color: #fff; }
.gallery-tool svg { display: block; width: 20px; height: 20px; }
button.gallery-tool { cursor: pointer; }
.gallery-tool:hover { background: rgb(15 18 24 / 94%); }
.gallery-playback { position: absolute; inset-block-end: 8px; inset-inline-start: 8px; z-index: 1; }
.gallery-playback:not(:focus-visible) { clip-path: inset(50%); pointer-events: none; }
.gallery-playback:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gallery-viewer { position: fixed; inset: 0; width: min(1080px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px); margin: auto; padding: 0; border: 0; border-radius: 8px; background: #17191d; color: #fff; }
.gallery-viewer:not([open]) { display: none; }
.gallery-viewer::backdrop { background: rgb(8 10 14 / 78%); }
html:has(.gallery-viewer[open]) { overflow: hidden; }
.gallery-viewer-layout { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; block-size: min(820px, calc(100vh - 24px)); block-size: min(820px, calc(100dvh - 24px)); padding: 8px; }
.gallery-viewer-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; cursor: zoom-in; }
.gallery-viewer-stage[data-zoomed] { cursor: grab; }
.gallery-viewer-stage[data-dragging] { cursor: grabbing; }
.gallery-viewer-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.gallery-viewer-header { display: flex; justify-content: flex-end; }
.gallery-viewer-nav { display: flex; justify-content: center; align-items: center; gap: 8px; }
.gallery-viewer-index { min-inline-size: 4em; font-size: 14px; font-variant-numeric: tabular-nums; text-align: center; }
.gallery-viewer .gallery-tool { background: rgb(255 255 255 / 12%); }
.gallery-viewer .gallery-tool:hover { background: rgb(255 255 255 / 24%); }
.gallery-viewer .gallery-tool:focus-visible { outline-color: #fff; outline-offset: 2px; }
.gallery-main .art-tile { width: clamp(85px, 29%, 148px); }
.gallery-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.gallery-thumb { --thumb-size: 64px; position: relative; flex: none; width: var(--thumb-size); height: var(--thumb-size); overflow: hidden; border-radius: 2px; }
.gallery-thumb[aria-current]::after { content: '\2713' / ''; position: absolute; right: 2px; bottom: 2px; width: 15px; height: 15px; border-radius: 2px; text-align: center; font: bold 12px/15px system-ui, sans-serif; color: white; background: var(--accent-ink); }
.gallery-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.product-summary { padding-block: 3px 5px; }
.product-detail--store .product-summary { padding-block: 8px 10px; }
.product-summary h1 { font-size: 24px; font-weight: 600; letter-spacing: 0; }
.product-subtitle { margin-top: 9px; color: var(--muted); }
.price-band { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 15px; margin-top: 19px; padding: 13px 16px; border-radius: var(--control-radius); background: var(--tint); color: var(--accent-ink); }
.price-band .price { font-size: clamp(24px, 3vw, 34px); }
.overview-copy { margin-top: 16px; color: var(--muted); line-height: 1.75; }
.product-summary > .button { margin-top: 21px; }
.product-summary-content { display: grid; gap: 15px; margin-top: 10px; }
.product-meta, .product-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.product-meta { color: var(--muted); font-size: 13px; }
.product-category-tag, .product-recommended { max-width: 100%; padding: 2px 8px; border-radius: var(--control-radius); overflow-wrap: anywhere; }
.product-category-tag { background: var(--wash); }
a.product-category-tag:hover { background: var(--tint); color: var(--ink); }
.product-recommended { display: inline-flex; align-items: center; gap: 4px; background: var(--product-accent-fill); color: var(--ink); font-weight: 650; }
.product-recommended svg, .product-actions svg { flex: none; }
.product-recommended svg { width: 14px; height: 14px; color: var(--product-accent-text); fill: currentColor; }
.product-current-price { display: flex; align-items: center; min-block-size: 60px; padding: 12px 14px; border-radius: var(--radius); background: rgb(0 0 0 / 3.5%); }
.product-current-price .price {
  color: color-mix(in srgb, var(--accent) 75%, #000);
  color: oklch(from var(--accent) min(l, .65) c h);
  font-size: 26px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.product-summary-content .overview-copy { margin: 0; line-height: 1.6; }
.product-skus { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.product-skus legend { margin: 0 0 6px; padding: 0; font-weight: 650; }
.product-sku-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 112px), 1fr)); gap: 10px; inline-size: min(100%, 268px); }
.product-sku { position: relative; min-inline-size: 0; cursor: pointer; }
.product-sku span { display: grid; place-items: center; block-size: 100%; min-block-size: 42px; padding: 8px 12px; border: 1px solid transparent; border-radius: var(--control-radius); background: var(--paper); box-shadow: var(--shadow-control); text-align: center; overflow-wrap: anywhere; }
.product-sku input:checked + span { border-color: var(--accent); background: var(--product-accent-fill); box-shadow: none; }
.product-sku input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .product-sku span { transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
}
.product-actions { display: grid; grid-template-columns: minmax(86px, 1fr) minmax(0, 2.25fr); gap: 10px; }
.product-actions .button { min-inline-size: 0; min-block-size: 48px; gap: 8px; padding-inline: 12px; text-align: center; }
.product-actions .button:only-child,
.product-actions:has([data-product-purchase][hidden]) .product-download-button { grid-column: 1 / -1; }
.product-actions .button-primary {
  color: #fff;
  background-color: color-mix(in srgb, var(--accent) 60%, #000);
  background-color: oklch(from var(--accent) min(l, .55) c h);
  font-size: 16px;
  font-weight: 800;
}
.product-actions .button-primary:hover {
  background-color: color-mix(in srgb, var(--accent) 54%, #000);
  background-color: oklch(from var(--accent) clamp(0, l - .04, .51) c h);
}
.product-download-button { background: var(--wash); color: var(--ink); }
.product-download-button:hover { background: var(--tint); color: var(--accent-ink); }
.product-download-password { color: var(--muted); font-size: 13px; }
.product-tags { margin: 0; padding: 10px 0 0; border-top: 1px solid color-mix(in srgb, var(--muted) 22%, transparent); list-style: none; }
.product-tags li { max-width: 100%; padding: 3px 9px; border-radius: var(--radius); background: var(--tint); color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.product-tags li::before { content: '#' / ''; margin-inline-end: 4px; color: var(--product-accent-text); font-weight: 750; }
.product-info, .product-downloads { margin-top: 14px; }
.product-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px var(--product-inset) 0; }
.product-tabs a { min-height: 44px; padding: 10px 13px; border-radius: var(--control-radius); color: var(--muted); font-weight: 700; }
.product-tabs a:hover, .product-tabs [aria-selected="true"] { color: var(--accent-ink); background: var(--tint); }
.product-panel { padding: 10px var(--product-inset) var(--product-inset); }
.product-downloads h2 { margin-bottom: 10px; font-size: 18px; }
.spec-table > div { display: grid; grid-template-columns: minmax(84px, 1fr) minmax(0, 3fr); gap: 8px 15px; padding: 12px 15px; }
.spec-table > div:nth-child(odd) { background: var(--wash); }
.spec-table dt { color: var(--muted); }
.spec-table dd { font-weight: 650; }

.reading-article, .single-article { max-width: 960px; margin-inline: auto; padding: clamp(18px, 4vw, 42px); }
.reading-view > .breadcrumb, .single-view > .breadcrumb { max-width: 960px; margin-inline: auto; }
.reading-width { width: min(100%, 690px); margin-inline: auto; }
.reading-header h1 { font-size: 30px; font-weight: 740; letter-spacing: 0; text-align: center; }
.reading-dates { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 16px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.reading-dates time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.reading-header p, .single-heading p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.reading-cover, .single-cover { width: 100%; max-height: 440px; margin: 24px auto 0; border-radius: var(--radius); object-fit: cover; }
.reading-body { display: grid; gap: 24px; margin-top: 26px; }
.reading-return { margin-top: 27px; padding-top: 17px; }
.single-heading { padding: clamp(13px, 2.6vw, 24px); border-radius: var(--radius); background: var(--tint); }
.single-heading h1 { margin: 0; font-size: clamp(26px, 4vw, 42px); font-weight: 740; letter-spacing: -.022em; }

@media (max-width: 920px) {
  .category-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-list-layout.with-filters { grid-template-columns: minmax(148px, 165px) minmax(0, 1fr); }
  .home-mixed { --columns: 3; }
  .product-results { --columns: 2; }
  .hero-slide { min-height: 320px; }
  .hero-title { font-size: 42px; }
}
@media (max-width: 760px) {
  .reading-header h1 { font-size: 24px; }
  .home-page { padding-block: 15px 42px; }
  .shop-list-layout.with-filters, .product-overview { grid-template-columns: minmax(0, 1fr); }
  .shop-list-layout { gap: 13px; }
  .listing-controls { flex: 1 0 100%; justify-content: flex-start; }
  .listing-search { flex: 1 1 150px; }
  .card-grid { --columns: 2; gap: 12px; }
  .product-detail .gallery-main { max-height: 420px; }
  .product-overview { gap: 14px; }
}
@media (max-width: 560px) {
  .listing-toolbar { margin-bottom: 12px; padding: 11px 12px; }
  .listing-toolbar h1 { font-size: 21px; }
  .listing-choice, .listing-branch-toggle { min-height: 42px; }
  .listing-branch-toggle { flex-basis: 42px; }
  .category-product-heading h2 { font-size: 19px; }
  .home-category-products { gap: 22px; margin-top: 22px; }
  .home-category-products--compact .category-product-grid { grid-template-columns: minmax(0, 1fr); }
  .category-product-grid { gap: 9px; }
  .home-category-products--rich .category-product-copy { padding: 9px; }
  .hero-slide { min-height: 286px; }
  .hero-copy { width: 100%; padding: 26px 22px; }
  .hero-slide:has(.hero-image):has(.hero-copy)::after { background: linear-gradient(90deg, rgb(255 255 255 / 91%) 12%, rgb(255 255 255 / 76%) 55%, rgb(255 255 255 / 52%)); mask-image: none; backdrop-filter: blur(2px); }
  .hero-copy::before { width: 28px; margin-bottom: 11px; }
  .hero-title { font-size: 31px; }
  .hero-copy p { font-size: 15px; }
  .home-quick-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-categories { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
  .home-quick-nav, .home-categories { gap: 8px; }
  .home-quick-link { min-height: 68px; }
  .home-category { --icon-size: 34px; padding: 9px; gap: 9px; }
  .home-category-icon svg { width: 19px; height: 19px; }
  .browse-icon { flex-basis: 28px; width: 28px; height: 28px; }
  .home-section { margin-top: 24px; }
  .card-grid { gap: 9px; }
  .card-copy { padding: 10px; }
  .card-copy h3 { font-size: 15px; }
  :is(.card-bottom, .category-product-meta):has(.card-category-tags) { column-gap: 4px; }
  .card-category-tag { padding-inline: 5px; }
  .article-results, .home-articles { --columns: 1; }
  .article-list-row { gap: 10px; padding: 12px; }
  .article-list-row .article-list-copy { gap: 6px; padding: 0; }
  .article-list-copy h3 { font-size: 15px; }
  .product-detail { --product-inset: 10px; }
  .product-tabs { gap: 0 3px; }
  .product-tabs a { padding-inline: 8px; font-size: 14px; }
  .gallery-thumb { --thumb-size: 52px; }
}
@media (max-width: 340px) {
  .listing-dropdown--category { --listing-trigger-width: 136px; }
  .listing-dropdown--sort { --listing-trigger-width: 114px; }
  .shop-list-layout.with-filters .listing-search { flex-basis: 120px; min-width: 0; }
  .home-products { --columns: 1; }
  .product-results { grid-template-columns: minmax(0, 1fr); }
  .home-category-products--rich .category-product-grid { grid-template-columns: minmax(0, 1fr); }
}

.menu-toggle, .gallery-thumb, .pagination-pages > a, .filter-list a, .category-chips a, .product-tabs a {
  transition: color var(--quick), box-shadow var(--quick), background-color var(--quick), transform var(--quick);
}
@media (hover: hover) and (pointer: fine) {
  .content-card:has(a):hover, .category-chips a:hover { box-shadow: var(--shadow-hover); }
}
@media (prefers-reduced-motion: no-preference) {
  .content-card:has(a:active) { transform: translateY(1px); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .content-card:has(a):hover:not(:has(a:active)) { transform: translateY(-2px); }
  .card-media > img { transition: transform 220ms var(--ease-out); }
  .card-link:hover .card-media > img, .product-card:has(.card-detail-link:hover) .card-media > img { transform: scale(1.025); }
}
