/* RemakeList theme inputs; structural shell stays in pinned v7 primitives. */
:root{--accent:#486143;--ds-container:1184px;--ds-gutter:clamp(16px,4vw,32px);--ds-header-height:84px;--ds-radius:8px}
.wrap{width:100%;max-width:var(--ds-container);padding-inline:var(--ds-gutter)}
@media(max-width:600px){html:has(body.mobile-scroll){height:100%;overflow:hidden}body.mobile-scroll{height:100dvh;overflow-y:auto;padding-bottom:0;scroll-padding-bottom:20px}body.mobile-scroll:has(.locale-suggestion){height:calc(100dvh - var(--remakelist-dock-space,180px));padding-bottom:0}}
/* Reference-led consumer styling; shared shell source remains byte-identical. */
:root{--accent:#25282b;--ds-accent:#25282b;--ds-ink:#25282b;--ds-muted:#878b90;--ds-surface:#fff;--ds-border:#e6e7e9;--ds-container:2048px;--ds-gutter:clamp(16px,2.5vw,50px);--ds-header-height:94px;--ds-radius:14px}
.ds-header{border:0}.site-brand{font-size:27px;letter-spacing:-1px}.site-brand b{width:42px;height:42px;border-radius:13px}.ds-header-inner{padding-block:18px}.ds-navigation>a{font-size:14px;color:#878b90}.ds-footer{margin-top:40px}.ds-footer-note{max-width:44rem}
@media(max-width:760px){.ds-header-inner{flex-wrap:nowrap;gap:12px;min-height:80px}.ds-header .ds-navigation{width:auto;justify-content:flex-end;gap:10px;flex-wrap:nowrap}.site-brand{font-size:22px}.site-brand b{width:32px;height:32px;font-size:15px}.ds-header .ds-navigation>a{display:none}}
@media(min-width:1400px){.facts>div{font-size:16px;padding-block:18px;grid-template-columns:110px minmax(0,1fr)}.detail-sidebar h1{font-size:34px}.visit-button{min-height:48px;font-size:16px}}

/* Consumer controls and metadata use a consistent capsule silhouette. */
.status-tag{border-radius:999px;padding:4px 9px}
.category-tag{background:#f2f3f4;color:#62676c}
.card-meta>span:first-child{margin-right:0}
.visit-button{border-radius:999px}
.visit-button:disabled,.visit-button:disabled:hover{background:var(--wash);color:#62676d!important;cursor:not-allowed}
.work-copy .product-context{font-size:13px;line-height:1.5;color:#878b90;margin:3px 0 7px}
.detail-product-context{font-size:15px;color:#878b90;margin:-5px 0 20px;line-height:1.5}
.cover-runtime{background:var(--wash)}.cover-runtime img{object-fit:cover}

/* Compact header and quiet, eased directory controls. */
:root{--ds-header-height:80px}
.ds-header-inner{padding-block:14px}
.ds-navigation>a{font-weight:400}
.directory{padding-top:8px}
.filter-strip{margin-bottom:16px}
.search-control{width:44px;overflow:hidden;transition:width 240ms cubic-bezier(.22,1,.36,1)}
.search-control:focus-within{outline:none}
.search-close:focus-visible,.search-toggle:focus-visible{outline:2px solid #92979c!important;outline-offset:-5px}
.categories{position:relative;isolation:isolate}
.categories a{position:relative;z-index:1;transition:color 180ms ease,background-color 180ms ease}
.categories:has(.category-indicator) a[aria-current]{background:transparent;box-shadow:none}
.category-indicator{position:absolute;left:0;top:4px;height:36px;background:#fff;border-radius:999px;box-shadow:0 2px 3px #0000000d;transition:transform 240ms cubic-bezier(.22,1,.36,1),width 240ms cubic-bezier(.22,1,.36,1);pointer-events:none;z-index:0}
#sort-menu:not([hidden]){animation:popover-enter 160ms cubic-bezier(.22,1,.36,1);transform-origin:top right}
@keyframes popover-enter{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.search-control,.category-indicator,.categories a{transition:none}#sort-menu:not([hidden]){animation:none}}

.work-copy .product-context{display:flex;align-items:center;gap:5px;font-size:12px;line-height:1.5}
.product-context strong{font-weight:500;color:#454a50}
.relation-icon{display:inline-block;width:14px;height:14px;flex:none;background:#8a8f95;mask:url('/assets/icons/alternative.svg') center/contain no-repeat}
.relation-recreate{mask-image:url('/assets/icons/recreate.svg')}

/* Quiet card boundaries, with motion confined to the cover. */
.work{border:1px solid #e8e9eb;border-radius:25px;padding:10px;background:#fff}
.work .card-preview,.work .cover{border-radius:17px}
.work .card-caption{padding:12px 4px 5px}
.work .cover img{transition:transform 280ms cubic-bezier(.22,1,.36,1);will-change:auto}
@media(hover:hover) and (pointer:fine){.work:hover .cover img{transform:scale(1.025)}}
.work:focus-within .cover img{transform:scale(1.025)}
.about-back{display:flex;max-width:820px;margin:16px auto 24px;font-size:14px;gap:6px}
.about-back .ui-icon{width:16px;height:16px}
.ds-footer{margin-top:32px}
.ds-footer-inner{display:grid;grid-template-columns:1fr auto;gap:4px 24px;padding-block:22px;align-items:center}
.ds-footer-inner>span:first-child{font-size:14px;font-weight:500;color:#4f545a}
.ds-footer-note{grid-column:1;grid-row:2;font-size:12px;line-height:1.6}
.ds-footer nav{grid-column:2;grid-row:1/3;gap:18px}
@media(max-width:600px){.work{padding:8px;border-radius:22px}.work .cover,.work .card-preview{border-radius:15px}.ds-footer-inner{grid-template-columns:1fr;gap:6px}.ds-footer nav{grid-column:1;grid-row:3}.about-back{margin-block:12px 20px}}
@media(prefers-reduced-motion:reduce){.work .cover img{transition:none}.work:hover .cover img,.work:focus-within .cover img{transform:none}}

/* Covers alone carry the frame; captions remain free of a card container. */
.work{padding:0;border:0;border-radius:0;background:transparent}
.work .card-preview{border:0;border-radius:25px}
.work .cover{border-radius:20px}
.work .card-caption{padding:13px 0 0}
.product-context{min-width:0;white-space:nowrap}
.product-context strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-brand b{font-size:0;display:grid;place-items:center}
.site-brand b::before{content:'';display:block;width:25px;height:25px;background:#fff;mask:url('/assets/icons/brand.svg') center/contain no-repeat}
@media(max-width:600px){.work{padding:0;border-radius:0}.work .card-preview{border-radius:20px}.work .cover{border-radius:15px}.site-brand b::before{width:21px;height:21px}}

/* Final card hierarchy and optically centered brand mark. */
.directory .work .card-caption{padding:8px 4px 0;align-items:flex-start}
.directory .work h2{font-size:16px;line-height:1.35;letter-spacing:-.2px}
.directory .work-copy .product-context{font-size:12px}
.status-tag,.tag,.cover figcaption{font-size:12px}
.directory .work .external-link{width:40px;height:40px;min-width:40px;margin:0}
.site-brand b{position:relative;display:block;font-size:0}
.site-brand b::before{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:26px;height:26px}
@media(max-width:600px){.site-brand b::before{width:22px;height:22px}}

/* Readable secondary text without changing the established type scale. */
:root{--muted:#686d73;--ds-muted:#686d73}
.ds-navigation>a,.categories a,.work-copy p,.work-copy .product-context,
.detail-product-context,.detail-body p,.facts dt,.back,.about p,
.ds-footer-note,.ds-footer nav,.sort-prefix,#sort-menu button{color:#686d73}
.category-tag,.license-tag{color:#5e6369}
.product-context strong{color:#454a50}
.usage-note{font-size:13px;line-height:1.5;color:#575d63;margin:0 0 10px}
.sources summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px}
.sources summary::before{content:'+';font-size:16px;color:var(--ink)}
.sources[open] summary::before{content:'−'}
.sources .source-date{font-size:12px;font-weight:400;color:#686d73}
/* Hints stay outside the scrolling nav, so they disappear at either edge. */
.category-control{position:relative;flex:1 1 0;min-width:80px;height:44px;border-radius:999px}
.filter-strip .category-control .categories{width:100%;min-width:0}
.category-control::before,.category-control::after{content:'';position:absolute;top:0;width:26px;height:44px;z-index:2;pointer-events:none;opacity:0;transition:opacity 160ms ease;border-radius:999px}
.category-control::before{left:0;background:linear-gradient(90deg,var(--wash) 35%,transparent)}
.category-control::after{right:0;background:linear-gradient(270deg,var(--wash) 35%,transparent)}
.category-control[data-overflow-start]::before,.category-control[data-overflow-end]::after{opacity:1}
@media(max-width:600px){.category-control{min-width:0;width:100%}.filter-strip:has(.search-control.is-open) .category-control{visibility:hidden;grid-column:1;grid-row:1}}
@media(prefers-reduced-motion:reduce){.category-control::before,.category-control::after{transition:none}}

.detail-actions{gap:10px}.detail-actions .usage-note{margin:0}
.related .work h2{font-size:16px;line-height:1.35;letter-spacing:-.2px}
.related .work .card-caption{padding:8px 4px 0;align-items:flex-start}
.related .work-copy .product-context{font-size:12px}
.related .work .external-link{width:40px;height:40px;min-width:40px;margin:0}

/* Community dialogs use the same quiet pills and type hierarchy as the directory. */
.community-actions{display:flex;align-items:center;gap:8px}.community-actions button{font-size:14px;font-weight:400;white-space:nowrap;min-height:40px;padding:8px 16px}.community-actions .sponsor-trigger{background:transparent;color:#686d73}.community-actions .submit-trigger{background:var(--ink);color:white;display:flex;gap:10px;align-items:center}.community-actions .submit-trigger:hover{background:#000}
.community-dialog{border:1px solid #e6e7e9;border-radius:24px;padding:0;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto;background:#fff;color:var(--ink);box-shadow:0 20px 80px #0003;overflow-y:auto;overscroll-behavior:contain}.community-dialog::backdrop{background:#16191b66;backdrop-filter:blur(6px)}.community-dialog[open]{animation:community-enter 200ms cubic-bezier(.22,1,.36,1)}.community-dialog-content{position:relative;padding:24px}.community-dialog h2{font-size:22px;font-weight:600;letter-spacing:-.5px;margin:0 40px 18px 0;line-height:1.3}.dialog-close{position:absolute;right:14px;top:14px;width:36px;height:36px;min-height:36px;padding:0;background:transparent;color:#686d73;font-size:25px;line-height:1}.dialog-close:hover{background:var(--wash)}.submission-guidelines{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:20px}.community-dialog p{line-height:1.6;font-size:14px;color:#575d63}.community-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}.community-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;color:#686d73}.community-wide{grid-column:1/-1}.field-hint{font-size:12px;color:#686d73;line-height:1.5}.community-field input,.community-field textarea,.community-field select,.submission-draft textarea{width:100%;border:1px solid transparent;background:#f4f4f5;border-radius:13px;padding:11px 12px;font:14px/1.5 Arial,Helvetica,sans-serif;min-height:44px;min-width:0;color:var(--ink)}.community-field textarea{resize:vertical;min-height:76px}.community-field input::placeholder{color:#72777d}.community-field :is(input,textarea,select):focus-visible{outline:2px solid #686d73;outline-offset:2px}.community-categories{border:0;padding:0;margin:0;min-width:0}.community-categories legend{font-size:13px;color:#686d73;margin-bottom:8px}.community-categories .field-hint{display:inline;margin-left:5px}.community-categories>div{display:flex;flex-wrap:wrap;gap:6px}.community-categories label{cursor:pointer;position:relative}.community-categories input{position:absolute;opacity:0;width:1px;height:1px}.community-categories label span{display:block;font-size:12px;border:1px solid #e6e7e9;border-radius:999px;padding:7px 10px;color:#575d63;background:#f4f4f5}.community-categories input:checked+span{background:var(--ink);color:#fff;border-color:var(--ink)}.community-categories input:focus-visible+span{outline:2px solid #686d73;outline-offset:2px}.community-dialog .community-note{font-size:12px;line-height:1.6;margin:14px 0;color:#686d73}.community-primary{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:46px;border-radius:999px;background:var(--ink);color:#fff;font-size:14px;padding:11px 16px}.community-primary:hover{color:#fff;background:#000}.community-feedback{font-size:12px!important;margin:8px 0 0!important;min-height:0}.community-feedback:empty{display:none}.sponsor-dialog{max-width:480px}.sponsor-contact{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:var(--wash);border-radius:15px;padding:10px 12px;margin:20px 0}.sponsor-contact>a{font-size:14px;overflow-wrap:anywhere;flex:1}.sponsor-contact button{font-size:12px;background:white;min-height:34px;padding:6px 12px}.draft-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.draft-actions button{font-size:12px}.submission-draft textarea{resize:vertical;font-size:12px}.community-open,.community-open body,.community-open body.mobile-scroll{overflow:hidden}
@keyframes community-enter{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:900px){.community-actions button{padding-inline:12px}.ds-navigation{gap:10px}}
@media(max-width:760px){.ds-header-inner{display:grid;grid-template-columns:1fr auto;gap:10px}.ds-header .ds-navigation{display:contents}.community-actions{grid-column:1/-1;grid-row:2;justify-content:flex-end}.public-language-menu{grid-column:2;grid-row:1}.community-actions .sponsor-trigger{padding-left:0;margin-right:auto;white-space:normal;text-align:left}.community-actions .submit-trigger{white-space:normal;max-width:58%;line-height:1.3;text-align:center}.community-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.community-dialog-content{padding:24px 20px}.community-dialog h2{font-size:20px}.community-grid{grid-template-columns:1fr;gap:14px}.community-wide{grid-column:auto}.community-categories .field-hint{display:inline;margin-left:5px}.dialog-close{right:10px;top:10px}}
@media(prefers-reduced-motion:reduce){.community-dialog[open]{animation:none}}

.field-caption{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.submission-guidelines .status-tag{background:var(--wash);color:#686d73;border-radius:999px;padding:6px 10px;font-size:12px}

/* Primary actions stay in the header; secondary navigation lives in the footer. */
.ds-footer nav{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}
.ds-footer .locale-options{inset-block-start:auto;inset-block-end:calc(100% + 8px);max-height:min(60dvh,440px);text-align:left}
.ds-footer .locale-options{display:flex;flex-direction:column;width:max-content;min-width:200px}
.ds-footer .locale-options a{display:flex;align-items:center;width:100%;flex:none;font-size:13px;white-space:nowrap}
.ds-footer .locale-trigger{font-size:12px!important;min-height:40px!important}
@media(max-width:760px){.ds-header-inner{display:flex;flex-wrap:wrap;gap:10px}.ds-header .ds-navigation{display:flex;margin-left:auto}.community-actions{grid-column:auto;grid-row:auto;justify-content:flex-end}.community-actions button{font-size:12px;padding:8px 12px}.community-actions .sponsor-trigger{margin-right:0;white-space:nowrap;padding-left:12px}.community-actions .submit-trigger{max-width:none;white-space:nowrap}.ds-footer .public-language-menu{grid-column:auto;grid-row:auto}}
@media(max-width:480px){.ds-header-inner{gap:8px}.ds-header .ds-navigation{width:100%;justify-content:flex-end}.community-actions{width:100%;justify-content:space-between}.ds-footer nav{gap:10px 18px}}

.status-unreleased{background:#fff0ef;color:#a32d2b}.status-unreleased .status-symbol{border:1px solid currentColor;border-radius:50%;width:11px;height:11px;position:relative}.status-unreleased .status-symbol:after{content:"";position:absolute;width:5px;height:1px;background:currentColor;top:4px;left:2px}.detail-status{margin:14px 0}

.status-unreleased .status-symbol::before{content:none}

.cover-contained{background:#1b2116}.cover-contained img{object-fit:contain}

/* Overlay rails never subtract from the page or dialog's content width. */
@media(scripting:enabled){html,body.mobile-scroll,.community-dialog,.locale-options{scrollbar-width:none}html::-webkit-scrollbar,body.mobile-scroll::-webkit-scrollbar,.community-dialog::-webkit-scrollbar,.locale-options::-webkit-scrollbar{display:none}}
.os-theme-dark{--os-size:10px;--os-padding-perpendicular:2px;--os-handle-bg:#73777c66;--os-handle-bg-hover:#73777c99;--os-handle-bg-active:#555a60bb;--os-handle-border-radius:99px}
html.community-open[data-overlayscrollbars-viewport],html.community-open body.mobile-scroll[data-overlayscrollbars-viewport]{overflow:hidden!important}
/* Preserve positioned popovers and top-layer dialogs when they are scroll hosts. */
.ds-footer .locale-options[data-overlayscrollbars]{position:absolute}
.community-dialog[data-overlayscrollbars]{position:fixed}

/* Content-derived ambient mat. Original screenshots remain separate and sharp. */
.cover.cover-themed{
  display:grid;place-items:center;isolation:isolate;
  padding:0;aspect-ratio:8/5;
  background:var(--cover-a,#b9bec5);
  background-image:
    radial-gradient(ellipse at 12% 15%,var(--cover-b) 0%,transparent 68%),
    radial-gradient(ellipse at 92% 100%,var(--cover-c) 0%,transparent 72%),
    linear-gradient(135deg,var(--cover-a),var(--cover-b));
}
@supports(background:linear-gradient(in oklab,red,blue)){
  .cover.cover-themed{background-image:
    radial-gradient(ellipse at 12% 15% in oklab,var(--cover-b) 0%,transparent 68%),
    radial-gradient(ellipse at 92% 100% in oklab,var(--cover-c) 0%,transparent 72%),
    linear-gradient(135deg in oklab,var(--cover-a),var(--cover-b))}
}
.cover.cover-themed img{
  position:absolute;inset:0;margin:auto;width:72%;height:72%;aspect-ratio:8/5;
  object-fit:cover;object-position:center;
  border-radius:8px;outline:1px solid rgba(0,0,0,.10);outline-offset:-1px;
  box-shadow:0 2px 5px #00000016,0 14px 30px -12px #00000065;
}
.cover.cover-themed.cover-contained img{width:auto;height:auto;max-width:72%;max-height:72%;aspect-ratio:auto;object-fit:contain}
.work .cover.cover-themed{border-radius:25px}
.cover-large.cover-themed{padding:0;border-radius:25px}
@media(max-width:600px){.work .cover.cover-themed{border-radius:20px}}
.work .card-preview{transition:transform 240ms cubic-bezier(.22,1,.36,1)}
.work:hover .cover.cover-themed img,.work:focus-within .cover.cover-themed img{transform:none;filter:none}
@media(hover:hover) and (pointer:fine){.work .card-preview:hover{transform:translateY(-2px) scale(1.015)}}
.work .card-preview:focus-visible{transform:translateY(-2px) scale(1.015)}
@media(prefers-reduced-motion:reduce){.work .card-preview{transition:none}.work .card-preview:hover,.work .card-preview:focus-visible{transform:none}}

/* Match PixOnDeck's compact language suggestion without changing locale behavior. */
.ds-locale-suggestion{inset:auto auto max(12px,env(safe-area-inset-bottom)) 50%;width:min(448px,calc(100vw - 32px));z-index:80}
.ds-locale-suggestion .locale-suggestion{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid #e6e7e9;border-radius:16px;background:rgba(255,255,255,.8);color:#25282b;box-shadow:0 25px 50px -12px #00000040;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.ds-locale-suggestion .locale-suggestion p{position:relative;display:flex;align-items:center;gap:10px;min-width:0;min-height:32px;margin:0;font-size:14px;font-weight:600;line-height:20px}
.ds-locale-suggestion .locale-suggestion p::before{content:'';flex:none;width:32px;height:32px;border-radius:12px;background:#f4f4f5 url('/assets/icons/locale-globe.svg') center/16px 16px no-repeat}
.ds-locale-suggestion .locale-suggestion a{align-self:flex-start;justify-content:center;min-height:32px;min-width:0;margin:0 0 0 42px;padding:8px 12px;border:0;border-radius:12px;background:#25282b;color:#fff;font-size:12px;font-weight:600;line-height:16px;box-shadow:0 1px 2px #0000000d;transition:background-color 150ms ease}
.ds-locale-suggestion .locale-suggestion a:hover{background:#111}
.ds-locale-suggestion .locale-suggestion button{inset:-1px -1px auto auto;display:flex;align-items:center;justify-content:center;transform:translate(50%,-50%);width:28px;height:28px;min-width:28px;min-height:28px;margin:0;padding:0;border:1px solid #e6e7e9;border-radius:50%;background:rgba(255,255,255,.9);color:#686d73;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:background-color 150ms ease,color 150ms ease}
.ds-locale-suggestion .locale-suggestion button::before{width:16px;height:16px}
.ds-locale-suggestion .locale-suggestion button:hover{background:#fff;color:#25282b}
@media(min-width:640px){.ds-locale-suggestion .locale-suggestion{flex-direction:row;align-items:center;padding:14px}.ds-locale-suggestion .locale-suggestion p{flex:1}.ds-locale-suggestion .locale-suggestion a{flex-shrink:0;align-self:center;margin:0;max-width:50%}}
@media(prefers-reduced-motion:reduce){.ds-locale-suggestion .locale-suggestion a,.ds-locale-suggestion .locale-suggestion button{transition:none}}

/* Access filters keep the existing category toolbar and card grid intact. */
.discovery-controls{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:stretch;margin:0 0 6px}
.discovery-results{height:auto;min-height:38px;margin-bottom:10px;color:#686d73;gap:12px}
.discovery-results button{min-height:34px;background:transparent;text-decoration:underline;text-underline-offset:3px;color:#686d73}
.discovery-summary dl{margin:0}
.discovery-summary dl>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:18px;padding:10px 0}
.discovery-summary dt{font-size:14px;color:#686d73}
.discovery-summary dd{margin:0;font-size:15px;line-height:1.7;overflow-wrap:anywhere}
.discovery-summary dd strong{font-weight:500;color:var(--ink)}
.detail-body .discovery-summary dd p{font-size:14px;margin:4px 0 0}
.detail-body .discovery-boundary{font-size:12px;margin-top:10px}
.detail-body .discovery-boundary a{font-size:12px;padding-top:0;min-height:0}
@media(max-width:600px){.discovery-controls{gap:8px}.discovery-summary dl>div{grid-template-columns:minmax(70px,28%) minmax(0,1fr);gap:12px}.discovery-summary dt{font-size:13px}}

/* Editorial collections reuse the directory's real covers and quiet card rhythm. */
.curation-page{padding-bottom:48px}.collections-index{padding-top:42px}.curation-heading{max-width:820px;margin:0 0 32px}.curation-heading h1,.guide-heading h1{font-size:clamp(28px,3.2vw,42px);font-weight:600;line-height:1.15;letter-spacing:-1px;margin:0 0 18px;overflow-wrap:anywhere}.curation-heading .eyebrow,.guide-heading .eyebrow{margin:0 0 10px}.curation-intro{color:#686d73;font-size:16px;line-height:1.75;margin:0 0 12px}.curation-audience{font-size:14px;line-height:1.7;color:#686d73;margin:12px 0}.curation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 22px}.collection-caption{padding:14px 4px 0}.collection-caption h2{font-size:22px;margin:0 0 8px;letter-spacing:-.4px}.collection-caption p,.collection-pick-note p{font-size:14px;line-height:1.7;color:#686d73;margin:0}.curation-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:13px;color:var(--ink);text-decoration:underline;text-underline-offset:4px}.curation-link .ui-icon{flex:none}.curation-directory-link{margin-top:2px}.collection-pick-note{margin:12px 4px 0;padding-top:12px;border-top:1px solid var(--line)}.collection-pick-note .curation-link{margin-top:3px}.curation-boundary{font-size:12px;line-height:1.7;color:#686d73;margin:30px 0 0;max-width:820px}.collection-page>.back,.guide-page>.back{margin-bottom:24px}
.guide-top{align-items:start}.guide-heading{min-width:0}.guide-heading h1{font-size:clamp(25px,2.3vw,34px)}.guide-heading .curation-intro{font-size:15px}.guide-body{max-width:900px;margin-top:32px}.guide-body section{padding:24px 0;border-bottom:1px solid var(--line)}.guide-body h2{font-size:23px;line-height:1.3;font-weight:600;letter-spacing:-.3px;margin:0 0 14px}.guide-body h3{font-size:17px;line-height:1.45;font-weight:600;margin:0 0 6px}.guide-body p{font-size:15px;line-height:1.8;color:#686d73;margin:6px 0;overflow-wrap:anywhere}.guide-steps ol{list-style:none;padding:0;margin:0}.guide-steps li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:14px;padding:14px 0}.guide-step-number{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--wash);font-size:13px;color:#686d73}.guide-sources ul{list-style:none;margin:8px 0;padding:0}.guide-sources a{display:inline-block;min-height:44px;padding:10px 0;font-size:13px;line-height:1.6;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}.guide-body .guide-checked,.guide-body .curation-boundary{font-size:12px}.guide-body .curation-boundary{margin-top:16px}.detail-body .guide-teaser .curation-link{display:inline-flex;padding-top:0;font-size:13px}
@media(max-width:760px){.guide-top{grid-template-columns:1fr}.guide-heading{margin-top:4px;max-width:680px}.guide-heading h1{font-size:28px}.guide-body{margin-top:12px}}
@media(max-width:600px){.collections-index{padding-top:26px}.curation-heading{margin-bottom:24px}.curation-heading h1{font-size:29px}.curation-grid{grid-template-columns:1fr;gap:28px}.curation-intro{font-size:15px}.collection-caption h2{font-size:21px}.guide-body h2{font-size:21px}.guide-steps li{gap:10px;grid-template-columns:30px minmax(0,1fr)}.guide-body section{padding:20px 0}}
.collection-shortcuts{display:flex;flex-wrap:wrap;gap:4px 18px;padding:6px 2px 2px;font-size:12px;line-height:1.5;color:#686d73}.collection-shortcuts a{min-height:32px;display:inline-flex;align-items:center;text-underline-offset:4px}.collection-shortcuts a:first-child{color:var(--ink);font-weight:600}.collection-shortcuts a:hover{text-decoration:underline}.collection-shortcuts[hidden]{display:none}

/* Comparison is a small optional layer over the existing catalog. */
/* Sorting and both discovery choices use the same pill and popover surface. */
.discovery-filter.choice-control{position:relative;display:block;flex:0 1 auto;width:auto;min-width:0;max-width:100%;height:44px;min-height:44px;margin:0;padding:4px;border:0;border-radius:99px;background:var(--wash)}
.choice-trigger,#sort{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0;height:36px;min-height:36px;margin:0;padding:6px 12px;border:0;border-radius:99px;background:#fff;color:var(--ink);font-size:13px;line-height:24px;white-space:nowrap}
.choice-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.choice-trigger .choice-prefix{flex-shrink:0;color:#686d73;font-size:12px}.choice-trigger>img,#sort>img{flex:none;margin-left:4px}.choice-trigger[aria-expanded=true]>img{transform:rotate(180deg)}
.choice-trigger:focus-visible,#sort:focus-visible{outline:2px solid #8a8f95;outline-offset:2px}
.choice-menu,#sort-menu{position:absolute;top:calc(100% + 8px);z-index:30;width:max-content;min-width:152px;max-width:calc(100vw - 40px);max-height:min(60vh,360px,var(--menu-height,360px));overflow-y:auto;overscroll-behavior:contain;padding:5px;background:#fff;border:0;border-radius:20px;box-shadow:0 5px 18px #25282b12;translate:var(--menu-shift,0px) 0}
.discovery-filter>.choice-menu{left:0;right:auto;transform-origin:top left}
.choice-menu[data-side=up],#sort-menu[data-side=up]{top:auto;bottom:calc(100% + 8px);transform-origin:bottom right}.discovery-filter>.choice-menu[data-side=up]{transform-origin:bottom left}
.choice-menu button,#sort-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:38px;padding:8px 12px;border:0;border-radius:15px;background:transparent;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:22px;color:#686d73}
.choice-menu button+button,#sort-menu button+button{margin-top:2px}
.choice-menu button:hover,.choice-menu button:focus-visible,#sort-menu button:hover,#sort-menu button:focus-visible{background:var(--wash)}
.choice-menu button:focus-visible,#sort-menu button:focus-visible{outline:2px solid #a1a5aa;outline-offset:-2px}
.choice-menu button img,#sort-menu button img{visibility:hidden;flex:none}
.choice-menu button[aria-checked=true],#sort-menu button[aria-checked=true]{color:var(--ink);background:#eceef0}
.choice-menu button[aria-checked=true] img,#sort-menu button[aria-checked=true] img{visibility:visible}
.choice-menu:not([hidden]){animation:popover-enter 160ms cubic-bezier(.22,1,.36,1)}
.file-requirements{margin-top:5px}.file-requirements>summary{width:fit-content;max-width:100%;min-height:32px;padding:4px 0;cursor:pointer;color:#686d73;font-size:13px;line-height:24px}.file-requirements>summary:focus-visible{outline:2px solid #8a8f95;outline-offset:2px;border-radius:5px}.file-requirements p{margin-top:4px}
@media(max-width:600px){.discovery-controls{align-items:flex-start;gap:8px}.discovery-filter.choice-control{flex:0 1 auto;max-width:100%}.choice-trigger{gap:6px}.choice-trigger .choice-prefix{font-size:12px}}
@media(prefers-reduced-motion:reduce){.choice-menu:not([hidden]){animation:none}}

/* Categories, search and compact choices share one desktop toolbar. */
.filter-strip{display:flex;flex-wrap:nowrap;gap:10px}
.filter-strip .category-control{flex:1 1 0;min-width:0;width:auto}
.filter-strip .categories a{padding-inline:14px}
.directory-choices{display:flex;align-items:center;gap:8px;flex:none;min-width:0;max-width:100%}
.directory-choices .discovery-controls{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;margin:0;min-width:0}
.directory-choices .discovery-filter.choice-control{flex:none;max-width:210px}
.directory-choices .choice-trigger{gap:6px;padding-inline:10px}
.directory-choices .choice-trigger>img{margin-left:0}
.filter-strip .directory-choices .sort-control{max-width:210px}
@media(min-width:741px) and (max-width:1000px){.filter-strip{gap:8px}.filter-strip .categories a{padding-inline:11px}.directory-choices,.directory-choices .discovery-controls{gap:6px}.directory-choices .discovery-filter.choice-control,.filter-strip .directory-choices .sort-control{max-width:172px}}
@media(max-width:740px){
 .filter-strip{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px}
 .filter-strip .category-control{width:100%;min-width:0}
 .directory-choices{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;width:100%;justify-content:flex-end}
 .directory-choices .discovery-controls{display:contents}
 .directory-choices .discovery-filter.choice-control,.filter-strip .directory-choices .sort-control{max-width:100%}
 .search-control.is-open{grid-column:1/-1;grid-row:1;width:100%;z-index:1}
 .filter-strip:has(.search-control.is-open) .category-control{visibility:hidden;grid-column:1;grid-row:1}
}

/* Tighten the directory rhythm; result totals remain available to assistive tech. */
.directory{padding-top:0}
.directory .filter-strip{margin-bottom:var(--rl-section-gap)}
.directory .discovery-results{height:auto;min-height:0;margin:0}
.directory .discovery-results:has(#clear-filters:not([hidden])){margin:-4px 0 12px}
/* Preserve full local labels; wrap whole controls when a translated toolbar is wider. */
@media(min-width:741px){
 .directory .filter-strip{flex-wrap:wrap}
 .filter-strip .category-control{flex:1 1 auto;min-width:max-content}
 .directory-choices{margin-left:auto}
}
@media(max-width:1000px){.filter-strip .categories a{padding-inline:8px}}

/* Section rhythm: one token owns header → banner → controls → cards. */
:root{--rl-section-gap:var(--ds-space-6)}
body:has(.directory) .ds-header-inner{min-height:0;padding-top:20px;padding-bottom:var(--rl-section-gap)}
@media(max-width:600px){:root{--rl-section-gap:var(--ds-space-4)}}

/* D2R setup guide: plain-language requirements within the existing detail shell. */
.detail-body .d2r-guide section{padding:24px 0;border-bottom:1px solid var(--line)}
.detail-body .d2r-guide .d2r-start{padding:22px 24px;border:1px solid var(--line);border-radius:16px;background:var(--wash)}
.d2r-guide h3{font-size:16px;line-height:1.5;margin:18px 0 8px;font-weight:600}
.d2r-guide ul,.d2r-guide ol{padding-left:22px;margin:10px 0 0}
.d2r-guide li{font-size:15px;line-height:1.8;color:#62676c;padding-left:4px;margin:10px 0;overflow-wrap:anywhere}
.d2r-guide .d2r-devices{margin:0 0 16px}
.d2r-devices>div{padding:14px 0;border-bottom:1px solid var(--line)}
.d2r-devices dt{font-size:15px;font-weight:600;margin-bottom:5px}
.d2r-devices dd{margin:0;font-size:15px;line-height:1.8;color:#62676c;overflow-wrap:anywhere}
.d2r-guide .d2r-steps li{padding:4px 0 8px 5px;margin:0}
.d2r-guide .d2r-steps h3{margin:4px 0;color:var(--ink)}
.d2r-guide .d2r-official ul{list-style:none;padding:0}
.d2r-guide .d2r-official li{padding:0;margin:0}
.detail-body .d2r-official a{padding:9px 0;min-height:44px;line-height:1.7}
.detail-body .d2r-guide .d2r-verification{font-size:12px;line-height:1.8;margin-top:18px}
@media(max-width:600px){.detail-body .d2r-guide .d2r-start{padding:18px 16px}.d2r-guide li,.d2r-devices dt,.d2r-devices dd{font-size:14px}.d2r-guide h3{font-size:15px}.detail-body .d2r-guide section{padding:20px 0}}

/* Crawlable collection paths share the existing quiet editorial link treatment. */
.collection-links{display:flex;flex-wrap:wrap;gap:4px 20px;list-style:none;padding:0;margin:0}.collection-links li{min-width:0;max-width:100%}.collection-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);font-size:14px;line-height:1.5;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}.detail-body .detail-collections{padding:12px 0 20px;margin:0 0 24px;border-bottom:1px solid var(--line)}.detail-body .detail-collections h2{font-size:16px;margin:0 0 4px}.detail-body .detail-collections a{font-size:14px;padding-top:0}

/* Scoped editorial guides use the existing detail typography and fact rows. */
.detail-guide ol{padding-left:22px;margin:10px 0 0}
.detail-guide li{font-size:16px;line-height:1.8;color:#62676c;margin:10px 0;padding-left:4px;overflow-wrap:anywhere}
.detail-guide-sources ul{list-style:none;margin:0;padding:0}.detail-guide-sources li{padding:0;margin:0}.detail-guide-sources a{padding:9px 0;line-height:1.7;overflow-wrap:anywhere}
@media(max-width:600px){.detail-guide li{font-size:15px}}
