/* Compact front-page layout. Loaded only on the home page. */
.home .hero.home-hero{padding:32px 0 40px}
.home-hero__top{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);align-items:center;gap:24px;margin-bottom:28px}
.home .home-hero .hero__title{font-size:clamp(30px,3.05vw,42px);line-height:1.12;margin:0 0 12px}
.home .home-hero .hero__lede{font-size:16px;line-height:1.5;margin:0}
.home-hero__search{min-width:0}
.home .home-hero .search{gap:6px;padding:5px 6px 5px 10px;min-width:0}
.home .home-hero .search input{font-size:15px;padding:8px 2px}
.home .home-hero .search select{font-size:11px;max-width:134px;padding:8px}
.home .home-hero .search .btn{font-size:13px;padding:9px 13px;min-height:42px}
.home-hero__reviews{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:24px;align-items:stretch}
.home-hero__reviews--single{grid-template-columns:minmax(0,1fr)}
.home-hero__pick,.home-hero__latest{min-width:0;transform:none;background:var(--paper)}
.home-hero__pick>.window__body,.home-hero__latest>.window__body{padding:20px}
.home-pick__intro{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.home-pick__intro .appicon{width:64px;height:64px;font-size:24px;flex:none}
.home-pick__details{flex:1;min-width:0}
.home .home-pick__details h2{font-size:29px;font-weight:800;line-height:1.15;margin-bottom:10px}
.home-pick__details h2 .ver{font:12px var(--f-mono);color:var(--ink-3);margin-left:8px;white-space:nowrap}
.home-pick__badges{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.home-pick__badges .lic{font-size:10px;padding:4px 8px;min-height:24px;display:inline-flex;align-items:center}
.home-pick__badges .app__platforms{list-style:none;display:flex;align-items:center;gap:8px;margin:0;padding:0}
.home-pick__badges .app__platforms svg{width:18px;height:18px}
.home-pick__score{display:flex;align-items:center;justify-content:center;flex-direction:column;width:74px;height:74px;flex:none;border:2px solid var(--ink);border-radius:50%;background:var(--yellow);line-height:1.1}
.home-pick__score b{font-size:29px}.home-pick__score small{font:12px var(--f-mono)}
.home-pick__excerpt{font-size:16px;line-height:1.5;margin:0 0 16px}
.home-pick__quote{font-family:var(--f-display);font-size:18px;font-style:italic;line-height:1.4;border-left:3px solid var(--accent);padding-left:12px;margin:18px 0}
.home-pick__actions{display:flex;gap:12px;flex-wrap:wrap}
.home-pick__actions .btn{flex:1;min-height:44px}
.home-hero__latest{display:flex;flex-direction:column}
.home-hero__latest>.window__body{display:flex;flex-direction:column;flex:1}
.home-latest__list{list-style:none;margin:0;padding:0;flex:1}
.home-latest__list>li{display:flex;align-items:flex-start;gap:12px;padding:16px 0;border-bottom:2px dashed var(--paper-3)}
.home-latest__list>li:first-child{padding-top:0}
.home-latest__list>li:last-child{border-bottom:0}
.home-latest__list .appicon{width:40px;height:40px;font-size:18px;flex:none}
.home-latest__details{min-width:0;flex:1}
.home-latest__details h3{font-size:19px;line-height:1.2;margin:0 0 3px}
.home-latest__meta .ver{font:10.5px var(--f-mono);color:var(--ink-3)}
.home-latest__details p{font-size:14px;line-height:1.45;margin:5px 0 6px}
.home-latest__details .link{font-size:12px}
.home-latest__score{display:flex;align-items:center;flex-direction:column;flex:none;min-width:35px;line-height:1.2}
.home-latest__score b{font-size:24px}.home-latest__score small{font:11px var(--f-mono);color:var(--ink-3)}
.home-latest__all{align-self:flex-end;margin-top:10px}
@media(max-width:1060px){.home-hero__top{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.home-hero__reviews{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.home-pick__intro{gap:10px}.home .home-pick__details h2{font-size:25px}.home-pick__intro .appicon{width:48px;height:48px}.home-pick__score{width:60px;height:60px}}
@media(max-width:860px){.home-hero__top,.home-hero__reviews{grid-template-columns:minmax(0,1fr)}.home .home-hero .hero__copy{max-width:none}.home .home-hero .hero__title{font-size:36px}}
@media(max-width:600px){.home .hero.home-hero{padding:24px 0 32px}.home .home-hero .hero__title{font-size:30px}.home .home-hero .search{flex-wrap:wrap}.home .home-hero .search input{flex-basis:calc(100% - 40px)}.home .home-hero .search select{flex:1;max-width:none;border-left:0;border-top:2px dotted var(--ink-3)}.home .home-hero .search .btn{flex:none}.home-hero__pick>.window__body,.home-hero__latest>.window__body{padding:16px}.home .home-pick__details h2{font-size:23px}.home-pick__score{width:50px;height:50px}.home-pick__score b{font-size:23px}.home-pick__intro{flex-wrap:wrap}.home-pick__details{flex-basis:calc(100% - 64px)}.home-pick__score{margin-left:auto}.home-latest__list .appicon{width:34px;height:34px}.home-latest__list>li{gap:10px}.home-latest__details h3{font-size:18px}}
.home .section{padding:24px 0}
.home .section__head{margin-bottom:26px}
.home .section h2{font-size:clamp(30px,3.6vw,44px);line-height:1.12}
.home .kicker{margin-bottom:10px}
.home .cats{gap:14px}
.home .dir-tools{margin-bottom:16px}
.home .cat b{font-size:20px;line-height:1.2}
/* For developers: the text column is centred against the SUBMIT.TXT checklist (unchanged) in two
   equal columns, with a tight bar gap and little space above the lead or under the button. */
.home .authors{padding-top:16px;padding-bottom:24px}
.home .authors__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center}
.home .authors__grid>div:first-child{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.home .authors .btn{margin-top:16px}

.home .link,.home .pick h3 a{
  color:inherit;text-decoration:none;border-bottom:0;
  background-image:linear-gradient(var(--accent),var(--accent));background-repeat:no-repeat;
  background-position:0 100%;background-size:100% 2px;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;padding-bottom:3px;
}
.home .link:hover,.home .link:focus-visible,
.home .pick h3 a:hover,.home .pick h3 a:focus-visible{
  color:inherit;text-decoration:none;animation:home-link-underline .25s ease-out both;
}
@keyframes home-link-underline{
  0%,15%{background-size:0 2px}
  100%{background-size:100% 2px}
}
@media (prefers-reduced-motion:reduce){
  .home .link,.home .pick h3 a{animation:none}
}

@media (max-width:1060px){
  .home .hero__copy{max-width:720px}
  .home .authors__grid{grid-template-columns:minmax(0,1fr);gap:24px}
}
@media (max-width:600px){
  .home .section{padding:16px 0}
  .home .section__head{margin-bottom:20px}
  .home .cats{gap:12px}
  .home .authors{padding-top:12px;padding-bottom:20px}
}

.home-hero__pick{display:flex;flex-direction:column}
.home-hero__pick>.window__body{display:flex;flex-direction:column;flex:1}
.home-pick__actions{margin-top:auto}

@media(max-width:600px){
  .home .home-hero .search{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center}
  .home .home-hero .search__icon{grid-column:1;grid-row:1;margin:0;width:22px;height:22px}
  .home .home-hero .search input[type="search"]{grid-column:2/-1;grid-row:1;width:100%}
  .home .home-hero .search select{grid-column:1/3;grid-row:2;width:100%;min-width:0}
  .home .home-hero .search .btn{grid-column:3;grid-row:2}
  .home-pick__intro{flex-wrap:nowrap;align-items:flex-start}
  .home-pick__details{flex-basis:0}
  .home .home-pick__details h2{font-size:21px}
}

.home-latest__details{line-height:1.3}
.home-latest__details h3{font-size:18px}
/* Version line with the listing's platform icons right after it (template-parts/platform-icons). */
/* The item rows are <li>s too, so only direct children of the list get the row padding and dashed
   rule (.home-latest__list>li): the icon <li>s stay plain. Icons at the normal 18px. */
.home-latest__meta{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;line-height:1.3}
.home-latest__meta .ver{display:inline-flex;align-items:center;min-height:18px}
.home-latest__meta .app__platforms{display:flex;align-items:center;gap:8px;list-style:none;margin:0;padding:0}
.home-latest__meta .app__platforms li{display:flex;align-items:center;padding:0;border:0;margin:0}
.home-latest__meta .app__platforms li::before,.home-latest__meta .app__platforms li::after{content:none}
.home-latest__meta .app__platforms svg{display:block;width:18px;height:18px}
.home-latest__details p{font-size:13px;line-height:1.4;margin:4px 0 6px}
/* Small text links keep a 44px tap area from an invisible ::before, so the line box stays tight. */
.home-latest__details .link,.home-search-advanced{position:relative;display:inline-block;line-height:1.3;padding-bottom:2px;background-position:0 100%}
:is(.home-latest__details .link,.home-search-advanced)::before{content:"";position:absolute;left:-4px;right:-4px;top:50%;height:44px;transform:translateY(-50%)}
.home-latest__list>li{padding:14px 0}

/* Scheduled editorial picks occupy the same stable grid slot during rotation. */
.home-picks{min-width:0;display:flex;flex-direction:column}
.home-picks__slides{display:grid;gap:20px;flex:1;min-width:0}
.home-picks.is-enhanced .home-picks__slides{gap:0}
.home-picks.is-enhanced [data-editor-pick]{grid-area:1/1;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .25s ease}
.home-picks.is-enhanced [data-editor-pick].is-active{visibility:visible;opacity:1;pointer-events:auto}
.home-picks__controls{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:14px;font:12px var(--f-mono)}
.home-picks__controls[hidden]{display:none}
.home-picks__controls .btn{min-height:44px;padding:7px 12px}
@media(prefers-reduced-motion:reduce){.home-picks.is-enhanced [data-editor-pick]{transition:none}}

/* Latest-review overlaps rotate in pages of four, independently of the lead pick. */
.home-latest__pages{display:grid;gap:20px;flex:1;min-width:0}
.home-hero__latest.is-enhanced .home-latest__pages{gap:0}
.home-hero__latest.is-enhanced [data-latest-page]{grid-area:1/1;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .25s ease}
.home-hero__latest.is-enhanced [data-latest-page].is-active{visibility:visible;opacity:1;pointer-events:auto}
@media(prefers-reduced-motion:reduce){.home-hero__latest.is-enhanced [data-latest-page]{transition:none}}

.home-hero__latest .home-picks__controls{margin:0 0 16px}

/* Home-only review screenshot gallery and compact filmstrip. */
.home-gallery{min-width:0}
.home-gallery__stage{position:relative;border:2px solid var(--ink);border-radius:3px;background:var(--white);overflow:hidden;touch-action:pan-y}
.home-gallery__slide{margin:0;height:300px;animation:home-gallery-reveal .3s ease}
.home-gallery__slide[hidden]{display:none}
.home-gallery__slide img{display:block;width:100%;height:100%;object-fit:contain}
.home-gallery__arrow{position:absolute;top:0;bottom:0;width:38px;border:0;border-radius:0;background:rgba(20,19,16,.22);color:#fff;font-size:36px;cursor:pointer;transition:background .2s}
.home-gallery__arrow:hover,.home-gallery__arrow:focus-visible{background:rgba(20,19,16,.6);color:#fff}
.home-gallery__arrow--prev{left:0}.home-gallery__arrow--next{right:0}
.home-gallery__toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0;font:11px var(--f-mono)}
.home-gallery__toolbar button{background:transparent;border:0;padding:4px;color:var(--ink);font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.home-gallery__filmstrip{position:relative;display:flex;gap:8px;overflow-x:auto;padding:3px 2px 8px;scrollbar-width:thin;overscroll-behavior-x:contain}
.home-gallery__filmstrip button{flex:0 0 76px;height:52px;padding:3px;border:2px solid var(--paper-3);border-radius:3px;background:var(--white);cursor:pointer}
.home-gallery__filmstrip button[aria-pressed="true"]{border-color:var(--accent);--sp-component-shadow:0 0 0 1px var(--accent);box-shadow:var(--sp-component-shadow)}
.home-gallery__filmstrip img{width:100%;height:100%;object-fit:contain;display:block}
.home-gallery [hidden]{display:none}
.home-gallery button:focus-visible,.home-gallery__stage:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.home-gallery__empty{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:var(--paper-2);border:2px solid var(--ink);font-family:var(--f-display);font-size:24px}
@keyframes home-gallery-reveal{from{opacity:.3}to{opacity:1}}
@media(max-width:600px){.home-gallery__slide{height:210px}.home-gallery__filmstrip button{flex-basis:64px;height:46px}.home-gallery__arrow{width:32px}}
@media(prefers-reduced-motion:reduce){.home-gallery__slide{animation:none}.home-gallery__arrow{transition:none}}

.home-gallery__zoom{display:block;width:100%;height:100%;cursor:grab;user-select:none;-webkit-user-drag:none}
.home-gallery__zoom img{pointer-events:none;user-select:none;-webkit-user-drag:none}
.home-gallery__stage.is-grabbing,.home-gallery__stage.is-grabbing .home-gallery__zoom{cursor:grabbing}

/* Search and review windows share the same column boundaries. */
.home .home-pick__actions{align-items:center;gap:10px}
.home .home-pick__actions>.btn{flex:0 1 auto;padding-inline:18px}
.home .home-pick__actions .home-picks__controls{margin:0 0 0 auto;flex-wrap:nowrap;gap:8px}
.home .home-pick__actions .home-picks__controls .btn{flex:none;min-width:34px;padding:7px 8px}
.home-pick__actions [data-pick-count]{white-space:nowrap}
.home-gallery__slide{animation:none}
.home-gallery__stage.is-dragging>.home-gallery__slide{transform:translateX(var(--drag,0px));will-change:transform}
.home-gallery__stage>.home-gallery__neighbor{position:absolute;left:0;top:0;width:100%;pointer-events:none;transform:translateX(calc(var(--side) * 100% + var(--drag,0px)))}
.home-gallery__stage.is-dragging>.home-gallery__neighbor{transform:translateX(calc(var(--side) * 100% + var(--drag,0px)))}
.home-gallery__stage.is-sliding>.home-gallery__slide{transition:transform .25s ease}
@media(max-width:600px){.home .home-pick__actions>.btn{padding-inline:10px}.home .home-pick__actions{gap:8px}.home .home-pick__actions .home-picks__controls{gap:5px}}
@media(prefers-reduced-motion:reduce){.home-gallery__stage.is-sliding>.home-gallery__slide{transition:none}}

/* One persistent editorial window, with content-driven animated height. */
.home-picks.has-shared-frame{align-self:start}
.has-shared-frame .home-picks__slides{display:block}
.home-pick-frame{width:100%}
.home-pick-viewport{position:relative;overflow:hidden;transition:height .3s ease}
.home-pick-panel{position:absolute;top:0;left:0;width:100%;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .2s ease}
.home-pick-panel.is-active{visibility:visible;opacity:1;pointer-events:auto}
.home-pick-frame .home-pick__actions{margin-top:16px}
@media(prefers-reduced-motion:reduce){.home-pick-viewport,.home-pick-panel{transition:none}}

.home-search-advanced{margin-top:12px;padding-right:8px;font:12px var(--f-mono)}
.home .home-hero #hero-search{display:flex;flex-wrap:nowrap}
.home .home-hero #hero-search input{flex:1;min-width:0;width:100%;flex-basis:auto}
.home .home-hero #hero-search .search__icon{flex:none}
.home .home-hero #hero-search .btn{flex:none}

/* Thumbnail dragging is independent of main-image navigation. */
.home-gallery__filmstrip{touch-action:auto}
.home-gallery__filmstrip.is-scrollable,.home-gallery__filmstrip.is-scrollable button{cursor:grab}
.home-gallery__filmstrip.is-grabbing,.home-gallery__filmstrip.is-grabbing button{cursor:grabbing}
.home-gallery__filmstrip img{pointer-events:none;user-select:none;-webkit-user-drag:none}

/* "Head to head": the newest comparisons, three across. */
.h2h__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;list-style:none;margin:0;padding:0}
.h2h__item{background:var(--white);border:2px solid var(--ink);border-radius:var(--radius);padding:20px 22px;box-shadow:var(--shadow-hard-sm)}
.h2h__icons{display:flex;gap:6px;margin-bottom:12px}
.h2h__item h3{font-size:22px;line-height:1.2;margin:0 0 8px}
.h2h__item h3 a{text-decoration:none}
.h2h__item p{color:var(--ink-2);font-size:15px;margin:0}
@media(max-width:860px){.h2h__list{grid-template-columns:minmax(0,1fr)}}

/* "From the blog" sits on the paper background like the other sections. Its cards use the same
   2px ink border, paper fill and flat rest state as the category boxes and directory rows. */
.home .blog-home .post-grid .review{background:var(--paper);border:2px solid var(--ink);--sp-component-shadow:none;box-shadow:none}
/* Series window (theme.css): flat at rest here too, like the cards beside it. */
.home .blog-home .series-window{--sp-component-shadow:none;box-shadow:none}

/* Submit block: the lead line under the section bar replaces the old display heading. */
.authors__lead{margin:0;font-family:var(--f-sans);font-size:clamp(21px,2.2vw,26px);font-weight:700;line-height:1.2;letter-spacing:-.01em}
.authors__lead em{font-weight:400;color:var(--accent-ink)}
.home .authors .section-bar{margin-bottom:16px}
.home .authors__grid .section__lede{margin:8px 0 0}
