/* brand site chrome. Brand values come from wg-tokens.css; this file only lays out the site. */
.skip { position: absolute; left: -100vw; } .skip:focus { left: 1rem; top: 1rem; z-index: 3; background: var(--wg-raised); padding: 0.5rem 1rem; }
.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.5rem; background: var(--wg-raised); border-bottom: var(--wg-hairline) solid var(--wg-line); }
.brand { color: var(--wg-head); display: inline-flex; } .brand svg { height: 1.5rem; width: auto; }
.version { color: var(--wg-quiet); font-size: var(--wg-size-small); }
.theme:hover { background: var(--wg-interact); color: var(--wg-on-interact); border-color: var(--wg-interact); }
.copy:hover { background: var(--wg-interact); color: var(--wg-on-interact); }
.theme { margin-left: auto; font: 600 0.875rem var(--wg-font-body); color: var(--wg-ink); background: transparent; border: var(--wg-hairline) solid var(--wg-line); border-radius: var(--wg-radius); padding: 0.375rem 0.75rem; cursor: pointer; }
.shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); }
.side { position: sticky; top: 4.25rem; align-self: start; max-height: calc(100vh - 5.25rem); overflow-y: auto; margin: 1rem 0 1rem 1rem; padding: 1.5rem 1.25rem; background: var(--wg-raised); border: var(--wg-hairline) solid var(--wg-line); border-radius: var(--wg-radius); }
.side ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.375rem; }
.side a { color: var(--wg-ink); text-decoration: none; display: block; padding: 0.25rem 0.5rem; border-radius: var(--wg-radius); }
.side a:hover { background: var(--wg-interact); color: var(--wg-on-interact); } .side a[aria-current] { background: var(--wg-selected, var(--wg-ground)); font-weight: 600; }
.side-group { font-weight: 600; color: var(--wg-quiet); font-size: var(--wg-size-small); margin: 0 0 0.25rem 0.5rem; }
main { padding: 4rem clamp(1.5rem, 5vw, 5rem) 8rem; min-width: 0; max-width: 72rem; }
.lead { font-size: 1.2rem; line-height: 1.75rem; }
.preview-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.preview { background-color: var(--wg-ground); color: var(--wg-ink); border: var(--wg-hairline) solid var(--wg-line); border-radius: var(--wg-radius); padding: var(--wg-space-pad); display: grid; gap: var(--wg-space-stack); align-content: start; min-width: 0; }
.preview .wg-note { margin: 0; }
.spec-head { font-family: var(--wg-font-display); font-weight: var(--wg-heading-weight); color: var(--wg-head); margin: 0; }
.swatches { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.swatch { display: flex; gap: 1rem; align-items: flex-start; background: var(--wg-raised); border: var(--wg-hairline) solid var(--wg-line); border-radius: var(--wg-radius); padding: 0.75rem; }
.swatch > span:last-child { display: grid; gap: 0.125rem; min-width: 0; } .swatch small { line-height: 1.25rem; }
.chip { flex: none; width: 3rem; height: 3rem; border-radius: var(--wg-radius); border: var(--wg-hairline) solid var(--wg-line); }
.chip.small { display: inline-block; width: 1rem; height: 1rem; vertical-align: -0.2em; }
.copy { font: inherit; font-size: var(--wg-size-small); color: var(--wg-link); background: none; border: 0; padding: 0; cursor: copy; text-decoration: underline; text-underline-offset: 0.2em; justify-self: start; }
details.wg-card summary { cursor: pointer; } details.wg-card + details.wg-card { margin-top: 0; }
.logo-art { color: var(--wg-head); min-height: 6rem; display: grid; place-items: center start; } .logo-art svg { max-height: 5rem; width: auto; max-width: 100%; }
pre.rules { white-space: pre-wrap; max-height: 32rem; }
.said { position: fixed; bottom: 1rem; right: 1rem; margin: 0; background: var(--wg-action); color: var(--wg-on-action); border-radius: var(--wg-radius); padding: 0.5rem 1rem; opacity: 0; pointer-events: none; }
.said.on { opacity: 1; }
.layout { display: grid; gap: 0.5rem; }
.layout-frame { position: relative; overflow: hidden; border: var(--wg-hairline) solid var(--wg-line); border-radius: var(--wg-radius); background: var(--wg-inset); }
.layout-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; }
@media (max-width: 52rem) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; margin: 1rem 1rem 0; padding: 1rem; }
  .side ul { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin-bottom: 0.75rem; }
}
