/* feature-page-directory.css - page-specific styles split from feature-page.css
   (WO-MDT-1313-002). Loaded only by: games-directory, help, tools.
   Rules keep their original cascade order relative to the core sheet:
   this file loads immediately after feature-page.css. */


/* ---- directory pages, help, tables ------------------------------------------- */
.dt-dir-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.dt-dir-search input { width: 100%; max-width: 560px; padding: 12px 16px 12px 44px; border-radius: 12px; border: 1px solid #cfc6ba; font-size: 16px; background: #fff; }
.dt-dir-tools .dt-dir-search input { padding-left: 16px; }

.dt-dir-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--m2-muted); pointer-events: none; }

.dt-dir-search input:focus-visible { outline: 2px solid var(--m2-primary); outline-offset: 2px; border-color: var(--m2-primary); }

.dt-dir-filters { display: flex; flex-wrap: wrap; gap: 8px; }

.dt-dir-count { font-size: .875rem; line-height: 21px; min-height: 21px; color: var(--m2-muted); margin: 0; }

.dt-dir-heading { font-size: 1.375rem; margin: 28px 0 12px; }

/* r3132: the tools and games directory presentations spread out
   (Ben, 2026-11-23 21:43); the cards themselves are untouched. */
.dt-dir-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

.dt-dir-item a, .dt-dir-item .dt-dir-static { display: block; padding: 12px 14px; border: 1px solid var(--m2-hair); border-radius: 12px; color: inherit; background: #fff; }

.dt-dir-item a { position: relative; isolation: isolate; --hv-ring: var(--m2-primary); text-decoration: none; transition: transform var(--m-dur-fast) var(--m2-ease); }

.dt-dir-item a:active { transform: scale(.98); }

.dt-dir-item strong { display: block; font-size: .9375rem; margin-bottom: 2px; }

.dt-dir-item span { display: block; font-size: .8125rem; color: var(--m2-muted); }

.dt-dir-item em { display: block; font-style: normal; font-size: .75rem; color: var(--m2-ember-ink); margin-top: 4px; }

.dt-dir-empty { margin-top: 8px; padding: 34px 26px; border: 1px dashed #cfc6ba; border-radius: 16px; background: #fff; text-align: center; }

.dt-dir-empty[hidden] { display: none; }

.dt-dir-empty-title { margin: 0 0 6px; font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; }

.dt-dir-empty p { margin: 0 auto 18px; max-width: 46ch; color: var(--m2-muted); }

.dt-dir-searchbar { position: sticky; top: 64px; z-index: 15; display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; padding: 10px 0; background: var(--m2-paper); border-bottom: 1px solid var(--m2-hair); }

.dt-dir-searchbar .dt-dir-search { position: relative; display: block; width: 100%; max-width: 560px; }

.dt-dir-searchbar .dt-dir-search input { width: 100%; min-height: 44px; padding: 10px 52px 10px 44px; }

.dt-dir-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--m2-muted); cursor: pointer; }

.dt-dir-clear[hidden] { display: none; }

.dt-dir-clear:hover { background: rgba(20,18,16,.06); color: var(--m2-ink); }

.dt-dir-clear svg { width: 18px; height: 18px; }

.dt-dir-searchbar .dt-dir-count { min-height: 21px; line-height: 21px; }

.no-js .dt-dir-searchbar { position: static; }

.no-js .dt-dir-searchbar .dt-dir-search, .no-js .dt-dir-filters { display: none; }

.dt-dir-searchbar .dt-dir-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* WO-MDT-AG-001 (2026-11-18): inside an ambient-canvas section, the chrome
   lift rule .dt-has-canvas > :not(.dt-band-canvas) (specificity 0-2-0) beats
   the plain .dt-dir-searchbar rule (0-1-0) and demotes this bar from sticky
   to relative. The orphaned top: 64px then acts as a visual offset, dragging
   the painted bar 64px down over the A-Z nav below it: the search field's
   bottom 15px and the whole results count end up covered, at rest and
   scrolled. Restate the sticky contract at 0-3-0 so the lift cannot demote
   it; z-index 15 is the bar's own value, keeping it above the canvas and
   above the list scrolling under it while stuck. */
.dt-section.dt-has-canvas > .dt-dir-searchbar { position: sticky; z-index: 15; }

.dt-az-group:focus { outline: none; }

.dt-az-group:focus-visible { outline: 2px solid var(--m2-primary); outline-offset: 6px; border-radius: 12px; }

.dt-az { position: relative; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; padding: 0; }

.dt-az a { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-height: 44px; border: 1px solid #cfc6ba; border-radius: 10px; background: #fff; text-decoration: none; font-size: .875rem; font-weight: 700; line-height: 1; color: var(--m2-ink); }

.dt-az a:hover { border-color: var(--m2-primary); color: var(--m2-primary); }

.dt-az a.is-empty, .dt-az a[aria-disabled="true"] { opacity: .34; pointer-events: none; cursor: default; }

.dt-az-count { font-size: .75rem; font-weight: 700; color: var(--m2-ember-ink); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: left; }

.dt-az-group[hidden] { display: none; }

.dt-az-group { scroll-margin-top: 180px; }

.dt-az-heading { display: flex; align-items: baseline; gap: 10px; margin: 34px 0 12px; font-size: 1.55rem; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }

.dt-az-group-count { font: 600 .8125rem/1 var(--m2-sans); color: var(--m2-muted); }

@media (max-width: 760px) {
  .dt-az { display: flex; flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 2px 20px 4px; scrollbar-width: none; gap: 6px; }
  .dt-az::-webkit-scrollbar { display: none; }
  .dt-az a { flex: 0 0 44px; }
  .dt-az a { scroll-snap-align: start; }
  /* Edge fade cue: the strip scrolls, so the chip at the right edge fades out. Static, no animation. Padding keeps the first and last chip clear of the fade. */
  .dt-az { scroll-snap-type: x proximity; scroll-padding-inline: 20px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%); }
  .dt-az { padding-right: 28px; }
}

.dt-dir-enter, .dt-count-swap { animation: dt-rise var(--m-dur) var(--m2-ease) both; animation-delay: calc(min(var(--dt-i, 0), 2) * var(--m-stagger) * 0.8); }

.dt-help-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }

.dt-help-index a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border: 1px solid var(--m2-hair); border-radius: 10px; text-decoration: none; font-size: .875rem; font-weight: 600; color: var(--m2-ink, #18181b); background: #fff; transition: transform var(--m-dur-fast) var(--m2-ease), border-color var(--m-dur-fast) var(--m2-ease), background-color var(--m-dur-fast) var(--m2-ease); }

.dt-help-index a:active { transform: scale(0.98); }

.dt-help-index a[aria-current='location'] { background: #fff6f0; border-color: var(--m2-ember, #e05326); color: var(--m2-ink, #18181b); font-weight: 700; box-shadow: inset 3px 0 0 var(--m2-ember, #e05326), inset 0 0 0 1px rgba(255, 255, 255, 0.9); }

.dt-help-article { scroll-margin-top: 80px; margin-bottom: 16px; padding: 18px; border: 1px solid var(--m2-hair); border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 10px 24px -20px rgba(24, 24, 27, 0.14); }

.dt-help-article[data-current='true'] { border-color: rgba(224, 83, 38, 0.42); box-shadow: inset 3px 0 0 var(--m2-ember, #e05326), inset 0 0 0 1px rgba(255, 255, 255, 0.92), 0 14px 28px -20px rgba(24, 24, 27, 0.18); }

.dt-help-article h3 { margin: 0 0 8px; font-size: 1.0625rem; }

.dt-help-article p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--m2-muted); }
.dt-dir-item a::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; background: var(--hv-bg, transparent); border: 1px solid var(--hv-ring, transparent); transition: opacity var(--m-dur-fast) var(--m2-ease); }
.dt-dir-item a:hover::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {

  .dt-dir-item a:hover { transform: translateY(-1px); }
}