* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: var(--fs-body)/1.6 var(--mono); }
.top { min-height: 44px; padding: 10px 14px; border-bottom: .5px solid var(--line); display: flex; align-items: center; }
.site-nav { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.site-nav a { color: var(--green); font-size: var(--fs-nav); }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--gold); }
main { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 80px; }
.intro { max-width: 760px; margin-bottom: 28px; }
h1 { margin: 0 0 8px; color: var(--gold); font-size: 24px; font-weight: 500; }
.lead { max-width: 72ch; margin: 0; color: var(--green); }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); display: flex; flex-direction: column; }
.tile:not(.tile-family):hover,
.tile:not(.tile-family):focus-within,
.tile-family:has(> .tile-main:hover),
.tile-family:has(> .tile-main:focus-visible) {
  border-color: var(--gold-bd);
  box-shadow: 0 0 18px -12px var(--gold);
}
.tile:not(.tile-family):hover h2,
.tile:not(.tile-family):focus-within h2,
.tile-family > .tile-main:hover h2,
.tile-family > .tile-main:focus-visible h2 { color: var(--gold); }
.tile-main { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; padding: 20px; color: inherit; }
.tile-main:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.tile h2 { margin: 0; color: var(--purple); font-size: 17px; font-weight: 500; }
.tile-visual { display: grid; place-items: center; height: 128px; margin: 14px 0; }
.tile-visual img { width: auto; height: 112px; max-width: 82%; object-fit: contain; }
.tile-visual svg { width: 104px; height: 104px; }
.tile p { margin: 0 0 22px; color: var(--muted); }
.tile-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 20px 18px; position: relative; z-index: 2; }
.tile-actions a { padding: 3px 8px; border: .5px solid var(--purple-bd); border-radius: 999px; color: var(--purple); font-size: var(--fs-small); text-decoration: none; }
.tile-actions a:hover, .tile-actions a:focus-visible { color: var(--gold); border-color: var(--gold-bd); }
.tile-main:hover + .tile-actions .default-link,
.tile-main:focus-visible + .tile-actions .default-link { color: var(--gold); border-color: var(--gold-bd); }
.tile-family > .tile-main {
  min-height: 178px;
  flex: 1 1 auto;
  padding-bottom: 12px;
}
.tile-family > .tile-main .tile-visual { height: 88px; margin: 8px 0; }
.tile-family > .tile-main .tile-visual img { height: 82px; }
.tile-family > .tile-main p { margin-bottom: 0; }
.subtile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}
.subtile {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
  min-height: 70px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-sunken);
  color: inherit;
}
.subtile:hover,
.subtile:focus-visible {
  border-color: var(--gold-bd);
  box-shadow: 0 0 14px -10px var(--gold);
}
.subtile:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.subtile-visual { display: grid; width: 38px; height: 38px; place-items: center; }
.subtile-visual svg { width: 36px; height: 36px; }
.subtile strong { color: var(--purple); font-size: var(--fs-small); font-weight: 500; }
.subtile:hover strong,
.subtile:focus-visible strong { color: var(--gold); }
.tile.pending { border-style: dashed; }
.tile.pending h2 { color: var(--muted); }
.doc-link { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 5px; background: #252725; color: var(--muted); opacity: .88; }
.doc-link:hover, .doc-link:focus-visible { color: var(--gold); border-color: var(--gold-bd); opacity: 1; }
.doc-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.boundary { margin-top: 20px; color: var(--dim); font-size: var(--fs-small); }
.progress-note { max-width: 820px; margin-top: 34px; padding-top: 20px; border-top: .5px solid var(--line); }
.progress-note h2 { margin: 0 0 8px; color: var(--purple); font-size: 17px; font-weight: 500; }
.progress-note p { margin: 8px 0 0; color: var(--muted); }
.progress-note a { color: var(--purple); }
.progress-note a:hover, .progress-note a:focus-visible { color: var(--gold); }
.skip { position: fixed; left: 8px; top: -80px; z-index: 10000; padding: 8px; background: var(--panel); }
.skip:focus { top: 8px; }
@media (max-width: 820px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { main { padding-top: 36px; } .tile-grid { grid-template-columns: 1fr; } .site-nav { gap: 12px; } }
