/* wgf-home-wh.css - Wowhead-parity home layout (lane B, 2026-11-23).
   Used by the site home, the retail home (home_wh_compose.py, baked) and the version homes
   (home_wh_version.py). One module vocabulary: .whm panel + .whm__bar/.whm__h header bar,
   .whg guide tiles, .wht today tiles, .whh__* page frame. Numbers follow
   _design_ref/WOWHEAD_PARITY_SPEC.md: 1720 container, main + 300 rail, 12px gutters,
   18px/500 module h2, 14px body, 34px rows, panel #181818 / table #202020 / border #303030.
   Tokens: the --wh-* set in static/css/_tokens.css (fallbacks are the same values).
   Bump home_wh_render.CSS_VERSION on any edit. */

/* page column: the shell's one --wh-maxw (1720 :has override removed 2026-11-23) */
.whh{--whh-gap:12px;font-family:var(--wh-font,"Open Sans",Arial,sans-serif);font-size:var(--wh-fs,14px);color:var(--wh-text,#bbb);max-width:100%;overflow-x:clip}
.whh *{box-sizing:border-box}
.whh__intro{padding:4px 0 10px}
.whh__h1{margin:0;font-size:22px;line-height:1.3;font-weight:600;color:var(--wh-heading,#fff);text-align:left}
.whh__sub{margin:2px 0 0;max-width:none;font-size:12px;line-height:1.5;color:var(--wh-muted,#888);text-align:left}
.whh__cols{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:var(--whh-gap);align-items:start}
.whh__main,.whh__side{min-width:0}
.whh__row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--whh-gap);align-items:start}
/* 20261123 visual pass: a row holding a single half-width module (home with no news yet) spans the full row instead of leaving a hole */
.whh__row>.whm--half:only-child{grid-column:1/-1}

/* module panel */
.whm{margin:0 0 var(--whh-gap);background:var(--wh-bar,#181818);border:1px solid var(--wh-border,#303030);border-radius:var(--wh-radius,4px);min-width:0}
.whm__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;padding:0 12px;background:var(--wh-panel,#202020);border-bottom:1px solid var(--wh-border,#303030)}
.whm__h{margin:0;padding:0;border:0;font-family:inherit;font-size:18px;line-height:34px;font-weight:500;color:var(--wh-heading,#fff);text-transform:none;letter-spacing:0}
.whm__more{flex:0 0 auto;font-size:12px;color:var(--wh-link,#ffd100);text-decoration:none}
.whm__more:hover{text-decoration:underline}
.whm__b{padding:8px;min-width:0}
.whm--bare{background:none;border:0}
.whm--bare>.whm__b{padding:0}

/* baked blocks moved inside a module: the module bar is the title, drop their frame chrome */
.whm:not(.whm--bare) .wgf-window__title:not(.hm-fah__title){display:none}
.whm .hm-sec{max-width:none;margin:0;padding:0}
.whm .wgf-window,.whm .hm-board{margin:0;border:0;background:none;box-shadow:none;border-radius:0}
.whm .wgf-window__body{padding:0}
.whm .hl-timer{margin:0}
.whm .hl-timer__body{padding:8px}
.whh__main>.hm-sec,.whh__side>.hm-sec{max-width:none;margin:0 0 var(--whh-gap);padding:8px 12px;background:var(--wh-bar,#181818);border:1px solid var(--wh-border,#303030)}
.whh__main>.hm-sec .hm-sec__title,.whh__main>.hm-sec .hm-sec__head h2{font-size:18px;font-weight:500;color:var(--wh-heading,#fff)}
.whh__main>.hm-sec .hm-sec__head{margin:0 0 6px;padding:0;border:0}

/* featured guide tiles */
.whg{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.whg__li{margin:0;min-width:0}
.whg__a{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:center;min-height:56px;padding:8px;background:var(--wh-panel,#202020);border:1px solid var(--wh-border,#303030);border-radius:var(--wh-radius,4px);color:var(--wh-text,#bbb);text-decoration:none}
.whg__a:hover,.whg__a:focus-visible{background:var(--wh-raise,#2a2a2a);outline:none}
.whg__i{grid-row:1/3;width:40px;height:40px;border:1px solid var(--wh-border,#303030);border-radius:2px}
.whg__t{font-size:14px;font-weight:700;line-height:1.25;color:var(--wh-link,#ffd100)}
.whg__d{font-size:12px;line-height:1.3;color:var(--wh-muted,#888)}
.whg__a:not(:has(.whg__i)){grid-template-columns:minmax(0,1fr)}

/* today tiles */
.wht{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 12px;margin:0;padding:0;list-style:none}
.wht__li{margin:0;min-width:0}
.wht__a{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:8px;min-height:var(--wh-row,34px);padding:4px 8px;background:var(--wh-panel,#202020);border-radius:2px;color:var(--wh-text,#bbb);text-decoration:none}
.wht__a:hover,.wht__a:focus-visible{background:var(--wh-raise,#2a2a2a);outline:none}
.wht__l{font-size:14px;font-weight:600;color:var(--wh-link,#ffd100)}
.wht__v{font-size:14px;color:var(--wh-heading,#fff)}
.wht__s{grid-column:1/-1;font-size:12px;line-height:1.3;color:var(--wh-muted,#888)}
.whh__today{display:grid;gap:8px}
.whh__today .hm-sec{margin:0;padding:0;border:0;background:none}
.whh__today .hm-sec__head{display:none}
.whh__today .hm-token-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 12px}
.whh__today .hm-facts__list,.whh__today .hm-facts{margin:0}
.whh__today .hm-ticker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 12px;margin:0}

/* featured news = the lead area: one big picture card (deck shown) + four picture cards beside it.
   Specificity is deliberately higher than wgf-home-news.css, which loads later inside its marker block. */
.whm--news .hm-news__grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;gap:12px}
.whm--news .hm-news__grid .hm-news__card{flex-direction:column;align-items:stretch;gap:0;min-height:0;grid-column:auto;grid-row:auto}
.whm--news .hm-news__grid .hm-news__media{flex:none;width:100%}
.whm--news .hm-news__grid .hm-news__body{padding:8px 10px}
.whm--news .hm-news__grid .hm-news__title{font-size:14px;font-weight:700;line-height:1.3}
.whm--news .hm-news__grid .hm-news__deck{display:none}
.whm--news .hm-news__grid .hm-news__card--lead{grid-column:1/3;grid-row:1/3}
.whm--news .hm-news__grid .hm-news__card--lead .hm-news__media{flex:1 1 auto;aspect-ratio:auto;min-height:220px}
.whm--news .hm-news__grid .hm-news__card--lead .hm-news__media img{position:absolute;inset:0;height:100%}
.whm--news .hm-news__grid .hm-news__card--lead .hm-news__body{padding:10px 14px}
.whm--news .hm-news__grid .hm-news__card--lead .hm-news__title{font-size:22px;line-height:1.25}
.whm--news .hm-news__grid .hm-news__card--lead .hm-news__deck{display:-webkit-box;margin-top:4px;font-size:13px;color:var(--wh-text,#bbb);-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.whm--news .hm-news__grid .hm-news__card:nth-child(n+6){display:none}
.whm--news .hp-head{display:none}

/* numbers strip: real values the page already carries */
.whs{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:0 0 10px;padding:0;list-style:none}
.whs__li{margin:0;min-width:0}
.whs__a{display:flex;flex-direction:column;gap:2px;height:100%;padding:8px 10px;background:var(--wh-panel,#202020);border:1px solid var(--wh-border,#303030);border-left:3px solid var(--wh-link,#ffd100);border-radius:2px;text-decoration:none}
.whs__a:hover,.whs__a:focus-visible{background:var(--wh-raise,#2a2a2a);outline:none}
.whs__v{font-size:20px;line-height:1.2;font-weight:700;color:var(--wh-heading,#fff);overflow-wrap:anywhere}
.whs__l{font-size:12px;font-weight:600;line-height:1.3;color:var(--wh-link,#ffd100)}
.whs__s{font-size:11px;line-height:1.3;color:var(--wh-muted,#888)}

/* recent news: thumbnail, category chip, title, excerpt, date. CSS only, so the baked rows
   (home_latest) keep their raw markup. Thumbnails are icons the home already loads. */
.whn{margin:0;padding:0;list-style:none}
.whn .wgf-news-feed__item{margin:0;border-bottom:1px solid var(--wh-border,#303030)}
.whn .wgf-news-feed__item:last-child{border-bottom:0}
.whn .wgf-news-feed__rowlink,.whn .wgf-news-feed__item:not(.wgf-news-feed__item--link){display:grid;grid-template-columns:48px minmax(0,1fr) auto;grid-template-areas:"th tg sd" "th bd sd";column-gap:10px;row-gap:1px;align-items:start;padding:8px 6px;text-decoration:none}
.whn .wgf-news-feed__rowlink:hover{background:var(--wh-raise,#2a2a2a)}
.whn .wgf-news-feed__rowlink::before,.whn .wgf-news-feed__item:not(.wgf-news-feed__item--link)::before{content:"";grid-area:th;width:48px;height:48px;border:1px solid var(--wh-border,#303030);border-radius:2px;background:#101010 url(/assets/icons/inv_scroll_06.jpg) center/cover no-repeat}
.whn :has(>.wgf-news-feed__tag--build)::before{background-image:url(/assets/icons/inv_misc_enggizmos_01.jpg)!important}
.whn :has(>.wgf-news-feed__tag--guide)::before{background-image:url(/assets/icons/inv_misc_book_09.jpg)!important}
.whn :has(>.wgf-news-feed__tag--update)::before{background-image:url(/assets/icons/inv_scroll_11.jpg)!important}
.whn .wgf-news-feed__tag{grid-area:tg;justify-self:start;padding:0 6px;font-size:11px;line-height:16px;text-transform:uppercase;letter-spacing:.04em;background:var(--wh-panel,#202020);border:1px solid var(--wh-border,#303030);border-radius:2px;color:var(--wh-muted,#888)}
.whn .wgf-news-feed__body{grid-area:bd;display:flex;flex-direction:column;min-width:0}
.whn .wgf-news-feed__text{font-size:14px;font-weight:700;line-height:1.3;color:var(--wh-link,#ffd100)}
.whn .wgf-news-feed__deck{display:-webkit-box;margin-top:1px;font-size:12px;line-height:1.4;color:var(--wh-muted,#888);-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.whn .wgf-news-feed__side{grid-area:sd;display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:12px;color:var(--wh-muted,#888);white-space:nowrap}

/* rail */
.whm--rail .whm__b{padding:6px}
/* the Forever AH board inside the narrow rail: its frame overlay covers the outer 4px, so the body
   needs side padding or the text runs under the frame edge (owner 2026-11-25); tabs stay full width */
.whm--rail .hm-fah .wgf-window__body{padding:0 10px 8px}
.whm--rail .hm-fah__tabs{margin:0 -10px 10px}
.whm--rail .hm-fah__pane-h{gap:.35em}
.whh__side img{max-width:100%;height:auto}
.whh__side .wgf-window__body,.whh__side .hm-fah{overflow-x:hidden}
/* Rail AH board: the 4-column table was 340px in a 286px rail, which gave two nested horizontal scrollbars. Fit it: one fluid pane, no level column. */
.whh__side .hm-fah__panes{grid-template-columns:minmax(0,1fr)}
.whh__side .hm-fah__pane,.whh__side .hm-fah__pane-h{width:auto;min-width:0;max-width:100%;box-sizing:border-box}
.whh__side .hm-fah__table{width:100%;min-width:0;table-layout:fixed}
.whh__side .hm-fah__table th:nth-child(2),.whh__side .hm-fah__table td.hm-fah__lvl{display:none}
.whh__side .hm-fah__table th,.whh__side .hm-fah__table td{padding-left:4px;padding-right:4px}
.whh__side .hm-fah__table th{font-size:11px;letter-spacing:0}
.whh__side .hm-fah__table th:nth-child(3),.whh__side .hm-fah__table td.hm-fah__qty{width:70px}
.whh__side .hm-fah__table th:nth-child(4),.whh__side .hm-fah__table td.hm-fah__buyout{width:78px}
/* Rail Database menu: the module bar is the heading, so the window frame art (corner and edge pseudo-elements) is off. */
.whm--menu .wgf-window::before,.whm--menu .wgf-window::after{display:none}
.whh__side .hm-gm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:0;padding:0;list-style:none}
.whh__side .hm-gm__label,.whh__side .hm-menu__rule{margin:6px 0 2px}
.whh__side .hm-sec{margin:0 0 var(--whh-gap)}
.whh__side .hm-trend{margin:0}
.whh__fold>summary{cursor:pointer;min-height:var(--wh-row,34px);line-height:34px;color:var(--wh-link,#ffd100)}
.whh__fold .hm-sec,.whh__fold .hm-bc{margin:0}

/* Wowhead drops the rail below ~1100px */
@media (max-width:1100px){
  .whh__cols{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){
  .whg{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wht,.whh__today .hm-token-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .whm--news .hm-news__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* phone: one column, no horizontal overflow */
@media (max-width:640px){
  .whh__row{grid-template-columns:minmax(0,1fr)}
  .whg{grid-template-columns:minmax(0,1fr)}
  .whm--news .hm-news__grid{grid-template-columns:minmax(0,1fr)}
  .whh__today .hm-ticker{grid-template-columns:minmax(0,1fr)}
  .whm__h{font-size:16px}
  .whh__h1{font-size:19px}
  .whm__b{padding:6px}
  .whh{overflow-wrap:anywhere}
}

/* upcoming dates (version homes) */
.whd{margin:0;padding:0;list-style:none}
.whd__li{display:block;padding:6px 4px;border-bottom:1px solid var(--wh-border,#303030);line-height:1.4}
.whd__li:last-child{border-bottom:0}
.whd__d{color:var(--wh-heading,#fff);font-weight:600}
.whd__s{color:var(--wh-muted,#888);font-size:12px}
.whh--version .wgf-vhome-panel,.whh--version .wgf-window{margin:0}
.whh--version .whh__main>.whm--bare{margin-bottom:var(--whh-gap)}
.whh--version .whh__sub .wgf-seo-lead{margin:0}

/* featured guides: three-up cards with a 56px icon thumbnail and the blurb */
.whg{grid-template-columns:repeat(3,minmax(0,1fr))}
.whg__a{grid-template-columns:56px minmax(0,1fr);column-gap:10px;min-height:72px;padding:8px 10px}
.whg__i{width:56px;height:56px}
.whg__d{font-size:12px}

/* rail: Countdowns lives here now (no half-width box with empty space under the timer) */
.whh__side .hl-timer{margin:0}
.whh__side .hl-timer__body{padding:6px;display:block}
.whh__side .hl-timer__count{margin:2px 0}
.whh__side .hl-steps{margin:6px 0 0;padding:0;list-style:none;display:grid;gap:3px}
.whh__side .hl-step{display:flex;gap:6px;min-width:0;font-size:12px}
.whh__side .hl-step span{min-width:0;overflow-wrap:anywhere}

/* phone folds (assets/wgf-home-fold.js closes them at 640px): the summary only shows on phones */
.whh__pf>.whh__pfs{display:none}
.whh__pf{margin:0 0 var(--whh-gap)}
.whh__side .whh__pf{margin:0}
.whh__side .whh__pf>.whm{margin-bottom:var(--whh-gap)}

@media (max-width:1100px){
  .whm--news .hm-news__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .whm--news .hm-news__grid .hm-news__card--lead{grid-column:1/-1;grid-row:auto}
  .whm--news .hm-news__grid .hm-news__card:nth-child(n+6){display:flex}
}
@media (max-width:900px){
  .whg{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .whg{grid-template-columns:minmax(0,1fr)}
  .whm--news .hm-news__grid .hm-news__card--lead .hm-news__title{font-size:18px}
  .whm--news .hm-news__grid .hm-news__card--lead .hm-news__media{min-height:0;aspect-ratio:16/9}
  .whm--news .hm-news__grid .hm-news__card:nth-child(n+5){display:none}
  .whm--news .hm-news__grid .hm-news__title{font-size:13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .whs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .whs__v{font-size:17px}
  .whn .wgf-news-feed__item:nth-child(n+7){display:none}
  .whn .wgf-news-feed__rowlink,.whn .wgf-news-feed__item:not(.wgf-news-feed__item--link){grid-template-columns:40px minmax(0,1fr);grid-template-areas:"th tg" "th bd" "sd sd"}
  .whn .wgf-news-feed__rowlink::before,.whn .wgf-news-feed__item:not(.wgf-news-feed__item--link)::before{width:40px;height:40px}
  .whn .wgf-news-feed__side{flex-direction:row;justify-content:space-between;align-items:center;margin-top:2px}
  .whh__pf>.whh__pfs{display:block;min-height:40px;line-height:40px;padding:0 12px;margin:0;font-size:16px;font-weight:500;color:var(--wh-heading,#fff);background:var(--wh-panel,#202020);border:1px solid var(--wh-border,#303030);border-radius:4px;cursor:pointer}
  .whh__pf[open]>.whh__pfs{border-radius:4px 4px 0 0}
  .whh__pf>.whm,.whh__pf>.hm-sec{margin-top:0}
  .whh__pf>.whm>.whm__bar{display:none}
  .whm--rail .whm__b{padding:6px}
  .whh__side{min-width:0}
}

/* 20261126 (deskshell): the site home reads as ONE main column + ONE right rail. Inside the main
   column the lead story spans two of three columns and two cards stack beside it (it was a 4-up
   grid: lead + two columns of cards + the 300px rail read as a third and fourth column). Cards
   after the third are hidden here (links stay in the DOM); phone / tablet rules above are
   unchanged. */
@media (min-width:1101px){
  .whm--news .hm-news__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .whm--news .hm-news__grid .hm-news__card--lead{grid-column:1/3;grid-row:1/3}
  .whm--news .hm-news__grid .hm-news__card:nth-child(n+4){display:none}
  .whm--news .hm-news__grid .hm-news__card--lead{display:flex}
}
