/* Home-only desktop columns; the existing mobile surface remains unchanged. */
.home-right-sidebar{display:none}
/* Only this directory surface owns the desktop columns. */
.front-main .home-directory-main{display:contents}
.front-main .home-directory-main>.category{background:transparent;border-radius:0;padding:0;margin-left:0;margin-right:0}
.front-main .home-directory-main>.category:last-child{margin-bottom:0}
@media(min-width:1101px){
 html .front-main .front-content>.navigation-surface.home-directory-columns{display:grid;grid-template-columns:minmax(0,1fr) 195px;gap:0;align-items:stretch;padding:0;background:transparent;border-radius:14px;min-width:0;margin-left:7px;margin-right:7px}
 .front-main .home-directory-columns>.home-directory-main{display:flow-root;min-width:0;padding:30px 30px 15px;border-radius:14px 0 0 14px;background:var(--surface)}
 .home-directory-columns>.home-right-sidebar{display:block;min-width:0;align-self:stretch}
 .home-sidebar-inner{position:sticky;top:var(--home-sidebar-top,80px);min-width:0}
 .home-right-sidebar .home-widget{background:#fff;border:0;border-radius:10px;box-shadow:none;margin:0 0 20px;min-width:0;overflow:hidden;color:#282a2d;font-size:14px;line-height:1.5}
 .home-right-sidebar .home-widget:last-child{margin-bottom:0}
 .home-widget-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 12px;min-height:52px}
 .home-widget-heading h2{font-size:15px!important;font-weight:600;margin:0;color:inherit!important;line-height:22px}
 .home-ranking-tabs{display:flex;justify-content:center;align-items:center;gap:14px;position:relative;padding:15px 12px 0;height:43px;margin-bottom:7px;isolation:isolate}
 .home-ranking-tabs button{position:relative;z-index:1;background:transparent;border:0;padding:0 4px;height:28px;color:#283593;font-size:14px;line-height:24px;font-weight:700;cursor:pointer;outline-offset:3px}
 .home-tab-marker{position:absolute;left:0;top:30px;width:0;height:13px;background:linear-gradient(to right,transparent,#f6dc3e);border-radius:3px;transform:skewX(-15deg);transition:left .25s ease,width .25s ease;z-index:0;pointer-events:none}
 .home-rank-list{display:flex;flex-direction:column;gap:4px;padding:0 20px 17px}
 .home-rank-list[hidden]{display:none!important}
 .home-rank-item{display:flex;align-items:center;position:relative;gap:8px;border:0;border-radius:8px;padding:7px 12px;margin:0;text-decoration:none;color:#282a2d;min-width:0;line-height:21px;transition:color .3s ease,background-color .3s ease}
 .home-rank-item:nth-child(odd){background:#f7f8f9}
 .home-rank-item:nth-child(even){background:#fff}
 .home-rank-logo{position:relative;display:grid;place-items:center;flex:0 0 16px;width:16px;height:16px;overflow:hidden;border-radius:2px;font-size:12px;color:#283593}
 .home-rank-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}
 .home-rank-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:400}
 .home-rank-arrow{width:12px;height:12px;flex:0 0 12px;stroke:currentColor;stroke-width:2;fill:none;opacity:0;transform:translateX(-4px);transition:opacity .3s,transform .3s}
 .home-rank-item:hover{color:#283593}
 .home-rank-item:hover .home-rank-arrow{opacity:1;transform:translateX(0)}
 .home-rank-item:hover .home-rank-logo{animation:home-logo-jump 1.2s ease 1}
 .home-rank-empty{padding:20px 0;text-align:center;color:#888;margin:0}
 .home-image-refresh{display:grid;place-items:center;width:25px;height:25px;border:0;background:transparent;color:#888;cursor:pointer;padding:3px;border-radius:4px;transition:color .2s,background .2s}
 .home-image-refresh svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .home-image-refresh:hover{color:#283593;background:#f1f2f3}
 .home-image-categories{display:flex;flex-wrap:wrap;gap:5px;padding:0 16px 12px}
 .home-image-categories button{border:0;border-radius:4px;background:#f1f2f3;color:#888;font-size:11px;padding:4px 6px;line-height:17px;cursor:pointer;transition:color .2s,background-color .2s}
 .home-image-categories button[aria-pressed="true"],.home-image-categories button:hover{color:#283593;background:#edf0fa}
 .home-image-frame{position:relative;aspect-ratio:3/4;overflow:hidden;background:#f1f2f3;margin:0 15px 15px;border-radius:8px;isolation:isolate}
 .home-image-frame>img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .3s ease,transform .45s ease}
 .home-image-frame>img[hidden]{display:none}
 .home-image-frame[aria-busy="true"]>img{opacity:.45}
 .home-image-status{position:absolute;inset:0;display:grid;place-items:center;padding:12px;font-size:12px;color:#888;text-align:center;pointer-events:none}
 .home-image-status[hidden]{display:none}
 .home-image-next{position:absolute;bottom:0;left:0;right:0;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:0;padding:9px;background:linear-gradient(transparent,rgba(0,0,0,.6));color:#fff;font-size:12px;cursor:pointer;opacity:0;transform:translateY(100%);transition:opacity .25s,transform .25s}
 .home-image-next svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8}
 .home-image-frame:hover .home-image-next,.home-image-frame:focus-within .home-image-next{opacity:1;transform:translateY(0)}
 .home-image-frame:hover>img{transform:scale(1.035)}
 .home-speak-actions{padding:0 20px 20px}
 .home-speak-button{position:relative;display:block;padding:10px 5px;margin-top:10px;background:#07c160;color:#fff!important;text-decoration:none;text-align:center;font-weight:600;font-size:13px;line-height:20px;border-radius:10px;transition:transform .25s ease,background-color .25s ease}
 .home-speak-button:first-child{margin-top:0}
 .home-speak-button:hover{background:#07c160;transform:none}
 
 html[data-theme="dark"] .home-right-sidebar .home-widget{background:#303234;color:#b8b8b8}
 html[data-theme="dark"] .home-ranking-tabs button{color:#888}
 html[data-theme="dark"] .home-tab-marker{background:linear-gradient(to right,transparent,#283593)}
 html[data-theme="dark"] .home-rank-item{background:transparent;color:#b8b8b8}
 html[data-theme="dark"] .home-rank-item:nth-child(odd){background:#303234}
 html[data-theme="dark"] .home-rank-item:hover{color:#e6c977}
 html[data-theme="dark"] .home-rank-logo img{background:#303234}
 html[data-theme="dark"] .home-image-categories button,html[data-theme="dark"] .home-image-frame{background:#292b2d;color:#888}
 html[data-theme="dark"] .home-image-categories button[aria-pressed="true"],html[data-theme="dark"] .home-image-categories button:hover{color:#e6c977;background:#3c3d34}
 html[data-theme="dark"] .home-image-refresh:hover{color:#e6c977;background:#383a3c}
 html.immersive-mode .home-directory-columns>.home-right-sidebar{display:none!important}
 @keyframes home-logo-jump{0%,100%{transform:translateY(0)}20%{transform:translateY(-5px)}40%{transform:translateY(0)}60%{transform:translateY(-3px)}80%{transform:translateY(0)}}
}
@media(min-width:1300px){html .front-main .front-content>.navigation-surface.home-directory-columns{grid-template-columns:minmax(0,1fr) 225px;margin-left:27px;margin-right:27px}}
@media(prefers-reduced-motion:reduce){.home-right-sidebar *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(min-width:1101px){.home-right-sidebar .home-ranking{border-top-left-radius:0}.home-speak .home-widget-heading{padding:20px 20px 15px;min-height:54px}.home-speak-button{font-size:14px;line-height:20px}.home-widget{margin-bottom:16px}}

@media(min-width:1101px){
 .home-right-sidebar .home-widget{margin-bottom:16px}
 .home-right-sidebar .home-random{background:#fff}
 .home-random .home-widget-heading h2{color:#6a3f00!important}
 html[data-theme="dark"] .home-right-sidebar .home-random{background:linear-gradient(to right bottom,#50452e,#2d2e2f 40%)}
 html[data-theme="dark"] .home-random .home-widget-heading h2{color:#e6c977!important}
}

@media(min-width:1101px){
 .home-sidebar-inner{padding:15px;border-left:1px solid #a4aab6;background:#b1b8c6;border-radius:0 18px 18px 0}
 html[data-theme="dark"] .home-sidebar-inner{background:#1f2123;border-left-color:transparent}
}

@media(min-width:1101px){html[data-theme="dark"] .home-right-sidebar .home-ranking{background:#2c2e2f}}

/* The reference container caps at 1900px including its side gutters. */
@media(min-width:1101px){
 html .front-main .front-content>.navigation-surface.home-directory-columns,
 html .front-main .front-content:has(>.home-directory-columns)>.front-community{
  --home-directory-gutter:40px;
  --home-directory-width:min(calc(100vw - var(--home-rail-width,110px) - 2 * var(--home-directory-gutter)),calc(1900px - 2 * var(--home-directory-gutter)));
  position:relative;left:50%;right:auto;transform:none;width:var(--home-directory-width);max-width:none;
  margin-left:calc(var(--home-directory-width) / -2);margin-right:0;
 }
}
@media(min-width:1300px){html .front-main .front-content>.navigation-surface.home-directory-columns,html .front-main .front-content:has(>.home-directory-columns)>.front-community{--home-directory-gutter:60px}}
.home-image-toolbar,.home-lightbox-toolbar{display:flex;align-items:center;gap:8px;padding:12px 15px;position:relative;z-index:3}
.home-category-picker{position:relative;min-width:0;margin-right:auto}
.home-category-toggle{display:flex;align-items:center;gap:4px;border:0;border-radius:6px;padding:6px 8px;background:rgba(255,255,255,.65);color:#6a3f00;font-size:12px;line-height:20px;cursor:pointer}
.home-category-toggle svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.7;fill:none}
.home-category-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:10;min-width:160px;padding:7px;display:grid;grid-template-columns:1fr 1fr;gap:4px;border-radius:10px;background:var(--surface,#fff);border:1px solid var(--line,#eee);box-shadow:0 5px 20px #0002}
.home-category-menu[hidden]{display:none!important}
.home-category-menu button{border:0;background:transparent;color:var(--text,#282a2d);padding:8px;border-radius:6px;font-size:12px;cursor:pointer;white-space:nowrap}
.home-category-menu button:hover,.home-category-menu button[aria-pressed="true"]{background:var(--surface-2,#f1f2f3);color:var(--brand,#283593)}
.home-right-sidebar .home-random{overflow:visible}
.home-image-frame{cursor:zoom-in}
html[data-theme="dark"] .home-category-toggle{background:#363738;color:#e6c977}
.home-image-lightbox{position:fixed;inset:0;width:min(94vw,1200px);height:min(92dvh,1000px);max-width:94vw;max-height:92dvh;padding:0;border:1px solid #ffffff20;border-radius:14px;background:#181a1d;color:#fff;overflow:visible;box-sizing:border-box;zoom:1!important}
.home-image-lightbox[open]{display:flex;flex-direction:column}
.home-image-lightbox::backdrop{background:rgba(0,0,0,.82)}
.home-lightbox-toolbar{flex:none;padding:12px 16px;border-bottom:1px solid #ffffff18}
.home-image-lightbox .home-category-toggle{background:#30343a;color:#fff;font-size:14px}
.home-image-lightbox .home-category-menu{background:#282b30;border-color:#454951}
.home-image-lightbox .home-category-menu button{color:#eee}
.home-image-lightbox .home-category-menu button:hover,.home-image-lightbox .home-category-menu button[aria-pressed="true"]{background:#3d424c;color:#fff}
.home-lightbox-close,.home-image-lightbox .home-image-refresh{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:7px;border:0;border-radius:7px;background:#30343a;color:#fff;cursor:pointer}
.home-lightbox-close svg,.home-image-lightbox .home-image-refresh svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
.home-lightbox-close:hover,.home-image-lightbox .home-image-refresh:hover{background:#444a54}
.home-lightbox-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:12px}
.home-lightbox-stage>img{display:block;width:100%;height:100%;object-fit:contain}
.home-lightbox-stage[aria-busy="true"]>img{opacity:.45}
.home-lightbox-status{flex:none;margin:0;padding:10px;text-align:center;font-size:13px;color:#ccc}
.home-lightbox-status[hidden]{display:none}
html:has(.home-image-lightbox[open]){overflow:hidden}

/* V392 image spacing, plain category selector, and a separate back-to-top gutter. */
.home-right-sidebar .home-random{padding-bottom:15px}
.home-right-sidebar .home-random>.home-image-frame{margin-bottom:0}
.home-right-sidebar .home-category-toggle,.home-image-lightbox .home-category-toggle,
html[data-theme="dark"] .home-category-toggle{background:transparent;border:0;box-shadow:none;border-radius:0;font-size:14px;font-weight:700;padding-left:0;padding-right:0}
@media(min-width:1101px){
 html:has(.home-directory-columns) .front-back-top{zoom:1!important;width:32px;height:32px;min-width:32px;right:var(--home-back-top-right,4px)!important}
}
@media(min-width:1300px){html:has(.home-directory-columns) .front-back-top{width:40px;height:40px;min-width:40px;right:var(--home-back-top-right,10px)!important}}

/* Match the article component's green text highlighter. */
.home-category-highlight{position:relative;z-index:0;isolation:isolate;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.home-category-highlight::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:40%;opacity:.7;z-index:-1;background:#95ff88;pointer-events:none}
html[data-theme="dark"] .home-category-highlight{color:#fff}
html[data-theme="dark"] .home-category-highlight::after{background:#283593}

/* Today hot list replaces the random-image widget, desktop only. */
.home-right-sidebar .home-hot{background:var(--surface,#fff);color:var(--text,#282a2d)}
.home-hot .home-widget-heading{padding:15px 15px 9px;min-height:46px}
.home-hot-refresh{display:grid;place-items:center;width:26px;height:26px;padding:4px;border:0;border-radius:6px;background:transparent;color:var(--muted,#737985);cursor:pointer}
.home-hot-refresh svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-hot-refresh:hover{color:var(--brand);background:var(--surface-2,#f7f8f9)}
.home-hot-refresh:disabled{opacity:.4;cursor:wait}
.home-hot-picker{display:flex;align-items:center;gap:8px;padding:0 15px 9px;color:var(--muted);font-size:11px}
.home-hot-picker select{flex:1;min-width:0;width:100%;border:1px solid var(--line,#e5e7eb);border-radius:7px;padding:5px 7px;background:var(--surface-2,#f7f8f9);color:var(--text,#282a2d);font:inherit;font-size:12px;cursor:pointer}
.home-hot-list{list-style:none;margin:0;padding:0 10px 6px}
.home-hot-list li{margin:0;padding:0;min-width:0}
.home-hot-list a{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:9px 5px;border-radius:6px;color:inherit;font-size:12px;line-height:1.65;text-decoration:none;transition:background-color .15s,color .15s}
.home-hot-list a:hover{background:var(--surface-2,#f7f8f9);color:var(--brand)}
.home-hot-number{display:grid;place-items:center;flex:0 0 17px;height:17px;margin-top:1px;border-radius:4px;background:var(--surface-2,#f3f4f6);color:var(--muted,#9ca3af);font:600 10px/1 Arial,sans-serif}
.home-hot-list li:nth-child(1) .home-hot-number{background:#ef4444;color:#fff}
.home-hot-list li:nth-child(2) .home-hot-number{background:#f97316;color:#fff}
.home-hot-list li:nth-child(3) .home-hot-number{background:#eab308;color:#fff}
.home-hot-text{display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-hot-status{padding:4px 15px 10px;margin:0;color:var(--muted);font-size:11px;line-height:1.7}
.home-hot-status[hidden]{display:none}
.home-hot-footer{display:flex;justify-content:space-between;gap:6px;padding:9px 15px 12px;font-size:10px;color:var(--muted);border-top:1px solid var(--line,#eee)}
.home-hot-footer a{color:inherit;text-decoration:none}.home-hot-footer a:hover{color:var(--brand)}
