/* Homepage directory. Shared canvas and surface live in styles.css. */
.home-page .page-shell,
.home-page .site-footer {
  --text: #eee8dd;
  --muted: #bdb5a8;
  --ash: #aaa294;
  --gold: #bc9c67;
  --gold-soft: #dfc390;
  --line: rgba(207, 184, 144, .22);
  --home-line-strong: rgba(207, 184, 144, .36);
  --home-line-soft: rgba(238, 232, 221, .08);
  color: var(--text);
}
.home-page .home-hero { min-height: 0; padding: 0 var(--surface-inset); }
.home-page .countdown-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 9px 0;
  border: 0;
  background-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .78) 30%, rgba(0, 0, 0, .78) 70%, #000), url("./assets/diablo-boss-hero.png");
  background-position: center, center 47%;
  background-size: cover, max(110%, 858px) auto;
  background-repeat: no-repeat;
}
.home-page .countdown-stage__main { grid-column: 2; display: flex; align-items: center; gap: 14px; text-shadow: 0 1px 3px #000; }
.home-page .countdown-stage__label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.home-page .countdown-stage__label strong { color: #ffb078; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.home-page #season-status { color: #f8a350; font-size: 11px; }
.home-page .countdown-clock { flex-wrap: nowrap; align-items: baseline; justify-content: center; gap: 12px; min-width: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-page .countdown-clock span { display: inline-flex; align-items: baseline; gap: 3px; font-size: 11px; color: #efa568; }
.home-page .countdown-clock strong { color: #ff963f; font: 600 22px/1.15 var(--font-body); text-shadow: 0 1px 3px #000, 0 0 12px rgba(240, 101, 16, .24); }
.home-page .countdown-clock__plus { color: #f6a24b; align-self: center; margin: 0; font-size: 15px; line-height: 1; }
.home-page .countdown-clock__plus[hidden] { display: none; }
.home-season-note { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 0; color: var(--ash); font-size: 11px; white-space: nowrap; }
.home-season-note a { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; color: var(--muted); font-size: 12px; }
.home-content { margin: 0 auto; padding-bottom: 12px; }
.home-index { display: flex; flex-wrap: wrap; gap: 0 28px; border-block: 1px solid var(--home-line-soft); }
.home-index a { display: flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; color: var(--muted); font-size: var(--text-secondary); }
.home-index a:hover { color: var(--text); border-bottom-color: var(--gold); }
.home-section { min-width: 0; padding: 26px 0; scroll-margin-top: 20px; }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.home-content h2 { margin: 0; color: var(--text); font: 600 22px/1.45 var(--font-display); letter-spacing: -.025em; }
.home-section-heading > p { margin: 0; color: var(--ash); font-size: var(--text-secondary); }
.home-section-heading > div > p { margin: 6px 0 0; color: var(--muted); font-size: var(--text-body); line-height: 1.75; }
.home-content h3 { margin: 0; color: var(--text); font: 600 16px/1.6 var(--font-body); word-break: keep-all; overflow-wrap: anywhere; }
.home-content h3, .home-content h3 > a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-content h3 > a { width: 100%; color: inherit; }
.home-content h3 span { color: var(--ash); font-size: 15px; font-weight: 400; }
.home-more { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--gold-soft); font-size: var(--text-secondary); }
.home-discovery { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; }
.home-database { min-width: 0; }
.home-database__heading { display: block; position: relative; min-height: 142px; overflow: hidden; background: #000; }
.home-database__heading > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .85; }
.home-database__heading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.08)); }
.home-database__heading > div { position: relative; z-index: 1; padding: 30px 20px; }
.home-kicker { color: var(--gold); font-size: 11px; letter-spacing: .12em; }
.home-database__heading h3 { margin-top: 8px; justify-content: flex-start; gap: 20px; font-family: var(--font-display); font-size: 26px; }
.home-database > p, .home-destination p { margin: 12px 0; color: var(--muted); font-size: var(--text-body); line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.home-search { display: grid; grid-template-columns: 94px minmax(0, 1fr) auto; gap: 6px; }
.home-search :is(select,input,button) { min-width: 0; min-height: 42px; margin: 0; border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; font: 400 13px/1.5 var(--font-body); }
.home-search :is(select,input) { width: 100%; background: #1c1a16; color: var(--text); color-scheme: dark; }
.home-search input::placeholder { color: var(--ash); }
.home-search button { background: var(--gold-soft); color: #211c14; font-weight: 600; cursor: pointer; }
.home-search button:hover { background: #eee0c3; }
.home-text-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; }
.home-text-links a { display: flex; align-items: center; min-height: 32px; color: var(--gold-soft); font-size: var(--text-secondary); }
.home-finding { display: grid; align-content: space-between; gap: 20px; }
.home-destination { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; }
.home-destination + .home-destination { padding-top: 20px; border-top: 1px solid var(--home-line-soft); }
.home-destination__image { display: block; min-height: 122px; overflow: hidden; background: #000; }
.home-destination__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-destination p { margin: 6px 0 0; }
.home-destination .home-text-links { gap: 0 16px; margin-top: 6px; }
/* Tool banners and the compact reading directory follow the preserved item hub. */
.home-tool-banners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 18px; scroll-margin-top: 20px; }
.home-tool-banner { position: relative; display: flex; align-items: center; min-width: 0; min-height: 106px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.home-tool-banner__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.home-tool-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.66) 55%, rgba(0,0,0,.1)); pointer-events: none; }
.home-tool-banner--skills .home-tool-banner__image { object-position: 62% center; }
.home-tool-banner--counter .home-tool-banner__image { object-position: 80% center; }
.home-tool-banner__content { position: relative; z-index: 1; width: 100%; padding: 6px 14px; }
.home-tool-banner h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; line-height: 1.3; }
.home-tool-banner h2 span { color: var(--gold-soft); font: 400 18px var(--font-body); }
.home-tool-banner p { margin: 2px 0 0; color: var(--muted); font-size: var(--text-secondary); line-height: 1.4; }
.home-tool-banner .home-text-links { gap: 0 12px; margin-top: 2px; max-width: 360px; }
.home-tool-banner .home-text-links a { min-height: 22px; line-height: 1.5; }
.home-tool-banner__main { display: block; }
.home-tool-banner__main:hover h2, .home-tool-banner--counter:hover h2 { color: var(--gold-soft); }
.home-tool-banner__action { display: inline-block; margin-top: 6px; color: var(--gold-soft); font-size: var(--text-secondary); line-height: 1.5; }
.home-editorial { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; border-top: 1px solid var(--home-line-strong); }
.home-editorial > * { min-width: 0; }
.home-editorial .home-section { padding: 16px 0; }
.home-editorial .home-section-heading, #recommended .home-section-heading { gap: 4px 12px; margin-bottom: 10px; }
.home-editorial h2, #recommended h2 { font-size: 20px; }
.home-knowledge { scroll-margin-top: 20px; }
.home-knowledge-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 6px; border-bottom: 1px solid var(--line); }
.home-knowledge-tab { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 38px; padding: 6px 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: var(--text-secondary); line-height: 1.5; text-align: center; word-break: keep-all; }
.home-knowledge-tab:hover { color: var(--text); }
.home-knowledge-tab[aria-selected="true"] { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }
.home-knowledge-group { min-width: 0; scroll-margin-top: 20px; }
.home-knowledge-group[hidden] { display: none; }
.home-knowledge-group ul { margin: 4px 0 0; padding: 0; list-style: none; }
.home-knowledge-group li + li { border-top: 1px solid var(--home-line-soft); }
.home-knowledge-group li a { display: block; min-height: 32px; padding: 6px 0; color: var(--muted); font-size: var(--text-secondary); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.home-knowledge-group li a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.home-knowledge-more { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 32px; margin-top: 6px; border: 1px solid var(--line); border-radius: 2px; color: var(--gold-soft); font-size: var(--text-secondary); }
.home-knowledge-more:hover { color: var(--text); background: rgba(238, 232, 221, .04); }
#home-gambling { border-left: 1px solid var(--home-line-soft); padding-left: 20px; }
.home-gambling-links { margin: 0; padding: 0; list-style: none; }
.home-gambling-links li + li { border-top: 1px solid var(--home-line-soft); }
.home-gambling-links a { display: block; padding: 7px 0; }
.home-gambling-links li:first-child a { padding-top: 0; }
.home-gambling-links strong { display: block; color: var(--text); font-size: 15px; font-weight: 500; }
.home-gambling-links span { display: block; margin-top: 2px; color: var(--ash); font-size: var(--text-secondary); line-height: 1.6; }
.home-gambling-links a:hover strong { color: var(--gold-soft); }
#home-builds { padding: 14px 0 18px; border-top: 1px solid var(--home-line-strong); }
#home-builds .home-section-heading { margin-bottom: 10px; }
#home-builds h2 { font-size: 20px; }
.home-classes { display: grid; grid-template-columns: repeat(8, minmax(72px, 1fr)); gap: 12px; overflow-x: auto; margin: -4px; padding: 4px; }
.home-class { display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; text-align: center; }
.home-class img { display: block; width: 100%; max-width: 92px; height: auto; aspect-ratio: 1; object-fit: contain; }
.home-class strong { color: var(--text); font-size: var(--text-secondary); font-weight: 500; white-space: nowrap; }
.home-class > span { color: var(--ash); font-size: 11px; line-height: 1.5; }
.home-class:hover strong { color: var(--gold-soft); }
.home-content :is(a,input,select,button):focus-visible, .home-hero a:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 2px; }
.home-text-links a:hover, .home-more:hover, .home-season-note a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
#recommended { padding: 16px 0; border-top: 1px solid var(--home-line-strong); }
.home-fallback { color: var(--muted); font-size: var(--text-body); }
.home-fallback a { text-decoration: underline; }
.home-videos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.home-video { min-width: 0; }
.home-video__thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #1c1a16; }
.home-video__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-video__thumb span { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 26px; height: 26px; background: rgba(20,19,16,.85); color: #eee8dd; font-size: 11px; }
.home-video strong { display: -webkit-box; margin-top: 9px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--text); font-size: var(--text-body); font-weight: 500; line-height: 1.65; }
.home-video p { margin: 4px 0 0; color: var(--ash); font-size: var(--text-secondary); }
.home-video:hover strong { color: var(--gold-soft); }
.home-page .countdown-clock strong { font-size: var(--text-data); }
@media (max-width: 900px) {
  .home-page > .page-jump { position: static; inset: auto; display: flex; justify-content: center; width: auto; margin: 0 20px 20px; }
  .home-season-start { display: none; }
  .home-discovery { gap: 22px; }
  .home-destination { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .home-editorial { gap: 18px; }
  #home-gambling { padding-left: 14px; }
}
@media (max-width: 760px) {
  .home-page #season-status { display: none; }
  .home-page .countdown-stage__main { gap: 10px; }
  .home-discovery { grid-template-columns: 1fr; gap: 22px; }
  .home-database__heading { min-height: 132px; }
  .home-finding { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .home-destination { display: block; }
  .home-destination__image { min-height: 0; height: 84px; margin-bottom: 10px; }
  .home-destination + .home-destination { padding-top: 0; border-top: 0; }
  .home-tool-banners { grid-template-columns: 1fr; gap: 10px; padding-bottom: 16px; }
  .home-tool-banner { min-height: 88px; }
  .home-tool-banner__content { padding: 3px 14px; }
  .home-editorial { grid-template-columns: 1fr; gap: 0; }
  #home-gambling { padding-left: 0; border-left: 0; border-top: 1px solid var(--home-line-strong); }
  .home-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .home-page .countdown-stage { min-height: 46px; padding-block: 6px; }
  .home-page .countdown-stage__main { gap: 7px; }
  .home-page .countdown-stage__label strong { font-size: 11px; }
  .home-page .countdown-clock { gap: 5px; }
  .home-page .countdown-clock span { gap: 2px; font-size: 9px; }
  .home-page .countdown-clock__plus { font-size: 12px; }
  .home-season-note a { min-width: 28px; font-size: 11px; }
  .home-patch-label__detail { display: none; }
  .home-index { gap: 0 16px; }
  .home-index a { min-height: 38px; }
  .home-section { padding: 22px 0; }
  .home-section-heading { gap: 6px 12px; margin-bottom: 16px; }
  .home-content h2 { font-size: 20px; }
  .home-search { grid-template-columns: 83px minmax(0, 1fr) auto; gap: 5px; }
  .home-search :is(select,input,button) { padding-inline: 7px; }
  .home-finding { grid-template-columns: 1fr; gap: 16px; }
  .home-destination { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .home-destination__image { height: 100%; min-height: 110px; margin: 0; }
  .home-destination + .home-destination { padding-top: 16px; border-top: 1px solid var(--home-line-soft); }
  .home-knowledge-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-tool-banner h2 { font-size: 18px; }
  .home-class img { max-width: 72px; }
  .home-videos { gap: 18px 14px; }
}
@media (max-width: 360px) {
  .home-page .countdown-stage__main { gap: 5px; }
  .home-page .countdown-clock { gap: 3px; }
  .home-patch-label { display: none; }
  .home-season-note a { min-width: 24px; font-size: 16px; }
}
