* { box-sizing: border-box; }
html { background: #090711; scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.6; background: radial-gradient(ellipse at 76% 9%, #23113b 0, transparent 44%), #090711; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; background: transparent; border: 1px solid var(--dtq-border); padding: .6rem .85rem; font: inherit; }
button:hover { background: #ffffff0b; border-color: #a47be1; }
.skip { position: absolute; top: -100px; background: #211235; padding: 1rem; z-index: 9; }
.skip:focus { top: 1rem; }
.template-header, main, footer { width: min(var(--dtq-content), 100%); margin-inline: auto; padding-inline: var(--dtq-gutter); }
.template-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; min-height: 90px; border-bottom: 1px solid var(--dtq-border); }
.template-brand { display: flex; align-items: center; gap: .7rem; font-size: 1.4rem; letter-spacing: -.06em; }
.template-brand span { color: #ae7bff; font-size: 2rem; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
nav > a { padding: .6rem .3rem; }
.template-hero { padding-block: clamp(3rem, 7vw, 6rem) 2.5rem; max-width: 900px; }
.template-kicker { color: #bb98ff; margin: 0 0 .7rem; letter-spacing: .08em; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.065em; line-height: 1.08; margin: .6rem 0 1.4rem; font-weight: 600; }
.template-hero > p:not(.template-kicker) { font-size: 1.25rem; color: var(--dtq-muted); max-width: 700px; }
.template-pill { display: inline-block; border: 1px solid var(--dtq-border); border-radius: 100px; padding: .4rem .85rem; margin-top: .5rem; }
.template-grid { padding-bottom: 3rem; }
.template-card { padding: 1.5rem; display: flex; flex-direction: column; border: 1px solid; min-height: 270px; }
.template-number { color: #b99adf; }
.template-card h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -.035em; margin: 1.3rem 0 .7rem; }
.template-card p { color: var(--dtq-muted); margin: 0 0 1.5rem; }
.template-card button { margin-top: auto; text-align: left; display: flex; justify-content: space-between; gap: .7rem; }
.template-foundation { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; border-top: 1px solid var(--dtq-border); padding-block: 3rem; }
.template-foundation h2 { font-size: 2rem; line-height: 1.2; letter-spacing: -.04em; margin-top: 0; }
.template-foundation p, dt { color: var(--dtq-muted); }
dl { margin: 0; } dl > div { border-bottom: 1px solid var(--dtq-border); padding: .7rem 0; } dd { margin: .2rem 0 0; }
footer { border-top: 1px solid var(--dtq-border); padding-block: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--dtq-muted); }
#search-area { margin-bottom: 2rem; } #search-area label { display: block; margin-bottom: .5rem; }
input[type="search"], select { font: inherit; background: #171124; color: var(--dtq-text); padding: .75rem; border: 1px solid var(--dtq-border); width: 100%; }
.template-settings { position: fixed; right: 1rem; top: 6rem; z-index: 5; width: min(360px, calc(100% - 2rem)); background: #151021f5; border: 1px solid var(--dtq-border); border-radius: 16px; padding: 1.25rem; box-shadow: 0 20px 100px #0009; }
.template-settings label { display: block; margin: 1rem 0 .5rem; }
.template-settings p { color: var(--dtq-muted); margin-bottom: 0; }
.template-dialog-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.template-dialog-title h2 { font-size: 1.4rem; margin: 0; }
.template-dialog-title button { padding: .2rem .65rem; font-size: 1.5rem; }
dialog { color: var(--dtq-text); background: #181123; border: 1px solid var(--dtq-border); border-radius: 16px; max-width: min(600px, calc(100% - 2rem)); padding: 1.5rem; font-family: var(--dtq-font); }
dialog::backdrop { background: #000b; }
[hidden] { display: none !important; }
@media (max-width: 700px) { .template-header { padding-block: 1rem; } .template-foundation { grid-template-columns: 1fr; gap: 1rem; } .template-hero { padding-top: 3rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.template-descendants { padding-bottom: 3rem; } .template-descendants ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 1rem; } .template-descendants li { border: 1px solid var(--dtq-border); border-radius: var(--dtq-radius); padding: 1rem; } .template-descendants li span { display: block; color: var(--dtq-muted); margin-top: .4rem; }
