/* The style page. It borrows the host page's tokens and buttons (../assets/host.css). */
body.stylepage { overflow: auto; height: auto; background: var(--sky); }
#page { max-width: 1280px; margin: 0 auto; padding: 18px 16px 80px; }
.top { text-align: center; padding: 10px 0 4px; }
.top .logo svg { width: min(92vw, 640px); height: auto; }
.top .tag { color: #fff; text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); letter-spacing: .08em; margin: 6px 0 12px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 12px; }
.toc a { background: var(--ink); color: #fff; padding: 6px 10px; text-decoration: none; font-size: 14px; border: 3px solid var(--ink); }
.toc a:hover, .toc a:focus-visible { background: var(--yellow); color: var(--ink); }
.sec, .board { margin-top: 30px; }
.sec > h2, .board > h2, section > h2 { margin: 0; font-size: 26px; letter-spacing: .05em; text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); }
.lead { margin: 4px 0 12px; max-width: 70ch; background: var(--ink); color: #fff; padding: 6px 10px; display: inline-block; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.tile, .cardtile { margin: 0; background: var(--panel); border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.tile canvas { display: block; width: 100%; height: auto; border-bottom: 4px solid var(--ink); background: var(--sky); }
.tile.wide { grid-column: span 2; }
@media (max-width: 620px) { .tile.wide { grid-column: span 1; } }
.tile.plain { padding: 12px; }
figcaption { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
figcaption b { font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
figcaption span { font-size: 13px; font-weight: 700; color: #33414f; }
.cardtile { display: flex; align-items: center; }
.cardtile canvas { width: 90px; height: 120px; flex: none; }
.swatch { background: var(--panel); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); padding: 8px; display: grid; grid-template-columns: 46px 1fr; gap: 0 10px; align-items: center; }
.swatch i { grid-row: span 3; width: 46px; height: 46px; border: 3px solid var(--ink); display: grid; place-items: center; font-style: normal; font-weight: 900; color: var(--ink); }
.swatch b { text-transform: uppercase; font-size: 14px; }
.swatch code { font: 700 12px ui-monospace, Menlo, monospace; }
.swatch span { font-size: 12px; font-weight: 700; color: #33414f; }
.swatch.small { grid-template-columns: 46px 1fr; }
.swatch.small i { grid-row: span 1; }
.typecv { grid-column: 1 / -1; width: 100%; height: auto; border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.bodytype { grid-column: 1 / -1; background: var(--panel); border: 4px solid var(--ink); padding: 10px 14px; margin: 0; }
.uirow { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.uirow .card { margin: 0; width: 260px; }
.capdemo { position: relative; background: var(--cream); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); padding: 7px 16px 7px 44px; font-weight: 800; }
.capdemo::before { content: ""; position: absolute; left: 12px; top: 50%; width: 22px; height: 18px; margin-top: -9px; background: var(--red); clip-path: polygon(0 30%, 40% 30%, 100% 0, 100% 100%, 40% 70%, 0 70%); }
.capdemo.live { position: sticky; top: 8px; z-index: 5; margin: 10px 0; min-height: 2.4em; }
.mixrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; background: var(--panel); border: 4px solid var(--ink); padding: 8px 12px; margin: 8px 0; }
.mixrow input { accent-color: var(--red); vertical-align: middle; }
.mixrow .btn { font-size: 13px; padding: 6px 10px; box-shadow: 0 3px 0 var(--ink); border-width: 3px; }
.board h3 { margin: 16px 0 6px; color: #fff; text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); text-transform: uppercase; letter-spacing: .05em; }
.board .grid { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 900; background: var(--panel); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); padding: 6px 10px; cursor: pointer; text-align: left; color: var(--ink); }
.chip:hover { background: var(--yellow); } .chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.chip:focus-visible { outline: 4px solid #fff; }
.chips.lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.chip b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.chip span { display: block; font-size: 13px; font-weight: 700; color: #33414f; }
.padmock { position: relative; background: var(--panel); border: 4px solid var(--ink); aspect-ratio: 800 / 380; max-width: 720px; margin: 0 auto; overflow: hidden; }
.pm-bar { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-bottom: 4px solid var(--ink); font-size: 14px; }
.pm-badge { background: #FCC318; border: 3px solid var(--ink); padding: 0 8px; } .pm-menu { margin-left: auto; border: 3px solid var(--ink); padding: 0 10px; }
.pm-me { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: var(--ink); color: #fff; padding: 4px 10px 4px 4px; font-size: 13px; }
.pm-me b { background: #FCC318; color: var(--ink); min-width: 30px; height: 30px; display: grid; place-items: center; font-size: 18px; } .pm-me i { width: 60px; height: 10px; background: var(--grass); } .pm-me span { color: var(--yellow); } .pm-me em { color: #9fd8ff; font-style: normal; } .pm-me u { background: var(--yellow); color: var(--ink); text-decoration: none; padding: 2px 6px; font-size: 11px; }
.pm-stick { position: absolute; left: 12%; top: 46%; width: 24%; aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--ink); background: rgba(14, 25, 38, .12); display: grid; place-items: center; }
.pm-stick i { width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.pm-btn { position: absolute; border-radius: 50%; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); display: grid; place-items: center; font-weight: 900; font-size: clamp(9px, 1.6vw, 15px); letter-spacing: .04em; aspect-ratio: 1; }
.pm-0 { right: 6%; bottom: 8%; width: 20%; } .pm-1 { right: 28%; bottom: 14%; width: 14%; } .pm-2 { right: 22%; bottom: 46%; width: 14%; } .pm-3 { right: 5%; bottom: 58%; width: 12%; }
.keys { border-collapse: collapse; width: 100%; font-size: 14px; } .keys th, .keys td { border: 3px solid var(--ink); padding: 5px 8px; text-align: left; } .keys th { background: var(--ink); color: #fff; }
.hints { margin: 0; padding-left: 20px; font-weight: 700; font-size: 14px; }
.tile iframe { width: 100%; aspect-ratio: 800 / 380; border: 4px solid var(--ink); background: var(--sky); }
