@layer responsive {
.gate-xl{--xl-ink:#193c31;--xl-muted:#496353;--xl-accent:#245b42;--xl-line:#ceddce;--xl-paper:#fffefa;--xl-tint:#eef5e9;max-width:1010px;margin:0 auto 54px;color:var(--xl-ink);min-width:0}
.gate-xl :focus-visible{outline:3px solid #377458;outline-offset:3px}
.gate-xl a{text-underline-offset:.23em}
.gate-xl p{line-height:1.6}
.gate-xl-pattern,.gate-xl-subject-intro,.gate-xl[data-gate-xl="revision"],.gate-xl[data-gate-xl="archive"],.gate-xl[data-gate-xl="practice"],.gate-xl[data-gate-xl="legacy"]{padding:clamp(17px,4vw,33px);border:1px solid var(--xl-line);border-radius:20px;background:linear-gradient(132deg,var(--xl-tint),#f9faf2)}
.gate-xl-heading p,.gate-xl-lead,.gate-xl-card p{color:var(--xl-muted);margin:0}
.gate-xl-heading p:last-child{margin-top:.45rem}
.gate-xl .gate-xl-kicker{font-size:.76rem;font-weight:750;letter-spacing:.085em;text-transform:uppercase;color:#3c604a;line-height:1.45}
.gate-xl-heading-title{display:block;font-size:clamp(1.35rem,3vw,1.8rem);line-height:1.23;font-weight:750;margin-top:.25rem}
.gate-xl-pattern dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:1.2rem 0 0}
.gate-xl-pattern dl div{display:flex;flex-direction:column;justify-content:space-between;gap:5px;background:var(--xl-paper);border:1px solid var(--xl-line);border-radius:13px;padding:.75rem}
.gate-xl-pattern dt{font-size:.88rem;font-weight:700;line-height:1.36}
.gate-xl-pattern dd{font-size:clamp(1.06rem,3vw,1.4rem);font-weight:750;line-height:1.25;margin:0;font-variant-numeric:tabular-nums}
.gate-xl-group{margin:1.65rem 0}
.gate-xl h2{font-size:clamp(1.4rem,3vw,1.8rem);line-height:1.2;margin:0 0 .55rem}
.gate-xl .gate-xl-lead{margin-bottom:.9rem}
.gate-xl-cards,.gate-xl-mode-nav ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0;padding:0;list-style:none}
.gate-xl-required,.gate-xl-mode-nav ul{grid-template-columns:repeat(2,minmax(0,1fr))}
.gate-xl-card{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;background:var(--xl-paper);border:1px solid var(--xl-line);border-radius:16px;padding:1rem 1.05rem;min-width:0;color:var(--xl-ink);text-decoration:none;box-shadow:0 5px 15px #173e320a}
.gate-xl-card:hover,.gate-xl-mode-nav a:hover,.gate-xl-section-nav a:hover,.gate-xl-action:hover{border-color:#649078;background:#eef5ea}
.gate-xl-card-code{font-size:.75rem;font-weight:750;color:var(--xl-muted)}
.gate-xl-card h3{font-size:1.13rem;font-weight:750;margin:0}
.gate-xl-card p{font-size:.87rem;margin-bottom:.3rem}
.gate-xl-card-link{display:flex;align-items:center;gap:.2rem;margin-top:auto;font-size:.83rem;font-weight:750;color:var(--xl-accent);text-decoration:underline}
.gate-xl-card-link .icon{width:15px;height:15px}
.gate-xl-card-icon{display:grid;place-items:center;width:39px;height:39px;color:var(--xl-accent);margin-bottom:.2rem}
.gate-xl-card-icon svg{width:39px;height:39px}
.gate-xl-subject-intro>p{margin :.5rem 0 0}
.gate-xl-mode-nav{margin:1rem 0 1.5rem}
.gate-xl-mode-nav a,.gate-xl-action{display:flex;gap:.35rem;min-height:44px;background:var(--xl-paper);border:1px solid var(--xl-line);border-radius:11px;padding:.65rem .8rem;color:var(--xl-ink);text-decoration:none}
.gate-xl-mode-nav a{width:100%;height:100%;flex-direction:column}
.gate-xl-mode-nav a strong{font-weight:750}
.gate-xl-mode-nav a span{font-size:.85rem;line-height:1.5;color:var(--xl-muted)}
.gate-xl-section-nav ol,.gate-xl-topics{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.gate-xl-section-nav a,.gate-xl-topics li{display:flex;align-items:center;gap:.75rem;min-height:52px;min-width:0;padding:.6rem .75rem;border:1px solid var(--xl-line);border-radius:11px;background:var(--xl-paper);color:inherit;text-decoration:none}
.gate-xl-section-name{display:flex;min-width:0;flex:1;flex-direction:column;line-height:1.32;overflow-wrap:anywhere}
.gate-xl-section-name strong{font-weight:700}
.gate-xl-section-name span{color:var(--xl-muted);font-size:.78rem;margin-top:.2rem}
.gate-xl-section-number,.gate-xl-topic-number{flex:none;display:grid;place-items:center;min-width:2.1rem;min-height:2rem;border:1px solid var(--xl-line);border-radius:8px;background:var(--xl-tint);font-size:.78rem;font-weight:750;color:var(--xl-accent);font-variant-numeric:tabular-nums}
.gate-xl-chevron{color:var(--xl-accent);font-size:1.45rem;line-height:1}
.gate-xl-section-meta,.gate-xl-resources,.gate-xl-section-pager{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem 1rem}
.gate-xl-section-meta{justify-content:space-between;gap:.35rem .8rem;margin-bottom:1rem}
.gate-xl-section-meta p{margin:0}
.gate-xl-source{font-size:.9rem;font-weight:700;text-decoration:underline;color:var(--xl-accent);overflow-wrap:anywhere}
.gate-xl-resources{margin:1rem 0 0}
.gate-xl-action{align-items:center;font-size:.88rem;font-weight:750;overflow-wrap:anywhere}
.gate-xl-topic-index{padding:.7rem .85rem;background:var(--xl-tint);border:1px solid var(--xl-line);border-radius:12px}
.gate-xl-topic-index summary{display:list-item;min-height:44px;line-height:44px;font-weight:750;cursor:pointer}
.gate-xl-topic-index ol{padding-inline-start:1.5rem;margin:.2rem 0}
.gate-xl-topic-index a{display:block;min-height:44px;padding:.5rem 0;color:var(--xl-accent);overflow-wrap:anywhere}
.gate-xl-topics li{align-items:center;scroll-margin-top:6rem}
.gate-xl-topics li:target{background:#e4f0e4;outline:2px solid #4a785e;outline-offset:2px}
.gate-xl-topics li>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
.gate-xl-permalink{display:grid;flex:none;place-items:center;min-height:44px;min-width:44px;margin-left:auto;color:var(--xl-accent);border-radius:7px;font-weight:750;text-decoration:underline}
.gate-xl-section-pager{margin:1.7rem 0 0}
@media(max-width:760px){.gate-xl-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:470px){
 .gate-xl-pattern dl div{padding:.53rem}
 .gate-xl-cards,.gate-xl-mode-nav ul{grid-template-columns:minmax(0,1fr)}
 .gate-xl-card{padding:.82rem;row-gap:.26rem}
 .gate-xl-card-icon{width:32px;height:32px}
 .gate-xl-card-icon svg{width:32px;height:32px}
 .gate-xl-section-nav a,.gate-xl-topics li{gap:.55rem;padding:.55rem}
 .gate-xl-section-pager a{width:100%}
}
}

.gate-xl-topic-icon{flex:none;display:grid;place-items:center}
.gate-xl-topic-icon .directory-icon{width:30px;height:30px;min-width:30px;margin:0;border-radius:7px}
.gate-xl-topic-icon svg{width:18px;height:18px}
