/* Wide screens (1025px and more): finishing touches for a laptop or desktop, matched to css/touch.css for phones and
   tablets. Loaded on every page right after paper.css (seo.app_tags), for wide screens only; every rule starts with
   html:root so it outranks style.css and the pages' own <style> blocks whatever order they load in. Colours stay the
   paper ones (paper.css) and no page changes its order or words.

   Measured at 1440 x 900 (28 Nov 2026): tab rows spread three or four labels over 1,300px with the open one boxed and
   the rest as bare words, and left one or three tabs alone on a second row (Officials 7 + 3, Budgets 3 + 1); cards gave
   no sign that they could be clicked; the language button's orange glow pulled the eye from the page; and the "Jump
   to" links landed their heading under the menu bar that stays at the top. */

@media (min-width: 1025px) {
  /* the menu bar that stays at the top while the page scrolls is 68px tall: a jump to a part of the page (the section
     pages' "Jump to" row, a link to #heading) lands just under it, not behind it */
  html:root { --jw-head: 76px; }
  html:root :target, html:root .lp h2[id] { scroll-margin-top: calc(var(--jw-head) + 12px); }

  /* the page's scrollbar in the paper's own colours */
  html:root { scrollbar-color: var(--paper-strong) var(--bg-deep); }

  /* the language menu keeps its gold, without the orange glow round it */
  html:root .main-header .lang-select { box-shadow: 0 1px 2px rgba(120, 72, 0, 0.18), 0 4px 12px -6px rgba(217, 119, 6, 0.45); }
  html:root .main-header .lang-select:hover { filter: none; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.28), 0 4px 12px -6px rgba(217, 119, 6, 0.5); }

  /* Tab rows (the big tabs paper.css draws): every choice reads as a button of its own, its words in the middle of it,
     and the rows are full, so no tab is left alone on a row: up to five share one row; six and nine go three to a row,
     seven and eight four to a row, ten five to a row; the last row's tabs share its width */
  html:root :is(.tier-nav, .sub-nav-tabs, .page-tabs, .lu-levels, .jb-levels, .ws-nav-tabs, .exp-cat-tabs, .ps-tabs) {
    display: flex !important; flex-wrap: wrap; gap: 6px; }
  html:root :is(.tier-btn, .sub-nav-btn, .page-tab, .lu-level, .jb-level, .ws-nav-tab, .exp-cat-tab, .ps-tab) {
    flex: 1 1 0; justify-content: center; text-align: center;
    background: color-mix(in srgb, var(--paper-band, #efe7dc) 55%, transparent) !important; }
  html:root :is(.ws-nav-tab, .exp-cat-tab) .tab-badge { margin-left: 2px; }
  html:root :is(.tier-nav, .sub-nav-tabs, .page-tabs, .lu-levels, .jb-levels, .ws-nav-tabs, .exp-cat-tabs, .ps-tabs):is(
    :has(> :nth-child(6):last-child), :has(> :nth-child(9):last-child)) > * { flex: 1 1 calc(33.333% - 4px); }
  html:root :is(.tier-nav, .sub-nav-tabs, .page-tabs, .lu-levels, .jb-levels, .ws-nav-tabs, .exp-cat-tabs, .ps-tabs):is(
    :has(> :nth-child(7):last-child), :has(> :nth-child(8):last-child)) > * { flex: 1 1 calc(25% - 4.5px); }
  html:root :is(.tier-nav, .sub-nav-tabs, .page-tabs, .lu-levels, .jb-levels, .ws-nav-tabs, .exp-cat-tabs, .ps-tabs):has(> :nth-child(10)) > * {
    flex: 1 1 calc(20% - 4.8px); }

  /* a figure tile or card holds its number on one line where it fits */
  html:root :is(.lg-tile, .ws-kpi-card, .exp-kpi-card, .kpi-card) { min-width: 0; }
}

/* With a mouse: what can be clicked says so when the pointer is on it, as cards in an app do: it rises a little and
   its shadow grows; a row in a table is marked under the pointer, so a long row is easy to follow */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  html:root :is(a.lp-card, .tm-card, a.lp-learn-link, a.ob-card, .lp-hub-fold, .jb-list > .jb-card, a.upsc-strip) {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
  html:root :is(a.lp-card, .tm-card, a.lp-learn-link, a.ob-card):hover {
    transform: translateY(-2px); border-color: var(--paper-strong) !important;
    box-shadow: 0 2px 4px rgba(40, 34, 24, 0.06), 0 16px 32px -18px rgba(40, 34, 24, 0.34) !important; }
  html:root :is(.lp-hub-fold, .jb-list > .jb-card):hover { border-color: var(--paper-strong) !important;
    box-shadow: 0 2px 4px rgba(40, 34, 24, 0.05), 0 12px 26px -18px rgba(40, 34, 24, 0.30) !important; }
  html:root a.lp-card .lp-card-go { display: inline-block; transition: transform 0.18s ease; }
  html:root a.lp-card:hover .lp-card-go { transform: translateX(3px); }
  html:root .app-container table tbody tr:hover > :is(td, th) { background-color: color-mix(in srgb, var(--paper-sage) 6%, transparent); }
  html:root :is(.tier-btn, .sub-nav-btn, .page-tab, .lu-level, .jb-level, .ws-nav-tab, .exp-cat-tab, .ps-tab):not(.active):not([aria-selected="true"]):hover {
    background: var(--paper-sage-soft) !important; }
}
html:root[data-theme="dark"] :is(a.lp-card, .tm-card, a.lp-learn-link, a.ob-card):hover { box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.7) !important; }
@media (prefers-reduced-motion: reduce) {
  html:root :is(a.lp-card, .tm-card, a.lp-learn-link, a.ob-card):hover { transform: none; }
}
