.hg-gate-heading{display:flex;align-items:center;gap:22px;margin:28px 0 22px}
.hg-gateway-grid .hg-gate-heading .hg-icon{flex:0 0 64px;width:64px;height:64px;margin:0}
.hg-gateway-grid .hg-gate-heading h3{margin:0;font-size:28px;line-height:1.2}
.get-editor{background:#e8eeed;color:#193346;padding:16px 20px;margin:0 0 26px;border:1px solid #91a7b4;font:12px/1.5 Inter,Arial,sans-serif;text-align:left}
.get-editor[hidden],.get-edit-toggle[hidden]{display:none}
.get-editor-top,.get-editor-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.get-editor-top{justify-content:space-between;margin-bottom:12px}
.get-editor button,.get-edit-toggle{font-size:12px;padding:7px 12px}
.get-editor select{padding:8px;max-width:100%;font-size:12px}
.get-editor-status{min-width:95px;text-align:center}
.get-editor p{font-size:12px;margin:10px 0 0}
.get-edit-toggle{display:block;margin:0 0 22px auto}
.get-text-active{outline:1px dashed #bd944b;outline-offset:5px}
@media(max-width:700px){.hg-gate-heading{gap:14px}.hg-gateway-grid .hg-gate-heading .hg-icon{flex-basis:48px;width:48px;height:48px}.hg-gateway-grid .hg-gate-heading h3{font-size:25px}.get-editor-controls label{width:100%}}
.hg-gateways .hg-centered{margin-bottom:40px}
.hg-player-emphasis{color:#d8b477;font-weight:inherit}
/* Separate dialogue cards, with a physical lift toward the visitor. */
.hg-gateway-grid{gap:26px;border:0;perspective:1100px}
.hg-gateway-grid article{position:relative;border:1px solid #8298a46b;border-radius:20px;box-shadow:0 10px 22px #02091230;transform:translateZ(0);transition:transform .26s ease,box-shadow .26s ease,border-color .26s ease;display:flex;flex-direction:column;min-width:0}
.hg-gateway-grid article>.hp-button{align-self:flex-start;margin-top:auto}
.hg-gateway-grid .hg-gate-heading{min-height:102px}
.hg-gateway-grid .hg-gate-heading h3{position:relative}
.hg-gate-heading h3:before{content:'▸';position:absolute;left:-21px;top:.12em;color:#d8b477;font:20px/1 Georgia,serif;opacity:0;transform:translateX(-7px);transition:opacity .2s ease,transform .2s ease}
.hg-print-gate .hg-gate-heading h3:before{color:#876321}
.hg-gateway-grid article:focus-within{z-index:2;transform:translateY(-10px) translateZ(28px);border-color:#d8b477;box-shadow:0 24px 42px #02091280,0 0 0 1px #d8b47770}
.hg-gateway-grid article:focus-within h3:before{opacity:1;transform:translateX(0)}
@media(hover:hover) and (pointer:fine){
 .hg-gateway-grid article:hover{z-index:3;transform:translateY(-10px) translateZ(28px);border-color:#d8b477;box-shadow:0 24px 42px #02091280,0 0 0 1px #d8b47770}
 .hg-gateway-grid article:hover h3:before{opacity:1;transform:translateX(0)}
}
.hg-dialogue-review{display:flex;align-items:center;gap:9px;margin-top:26px;padding-top:15px;border-top:1px solid #8097a650;font:11px/1.5 Inter,Arial,sans-serif}
.hg-dialogue-review>span{margin-right:auto}
.hg-dialogue-review button{border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit;min-width:34px;min-height:34px;padding:4px 8px;font-size:17px}
.hg-dialogue-review output{min-width:32px;text-align:center}
@media(max-width:640px){.hg-gateway-grid{gap:22px}.hg-gateway-grid article{border-radius:16px}.hg-gateway-grid .hg-gate-heading{min-height:90px}.hg-gateway-grid article:focus-within{transform:translateY(-4px)}.hg-dialogue-review{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.hg-gateway-grid article,.hg-gate-heading h3:before{transition:none}.hg-gateway-grid article:hover,.hg-gateway-grid article:focus-within{transform:none}}
/* A two-card hand: overlapping edges, inset borders and independent review controls. */
.hg-gateways .hg-centered{margin-bottom:68px}
.hg-gateway-grid{width:calc(100% - 64px);margin:0 auto 28px;gap:0;isolation:isolate}
.hg-gateway-grid article{--card-angle:-3deg;--card-offset:18px;transform-origin:50% 90%;transform:translateX(var(--card-offset)) rotate(var(--card-angle));padding:38px 44px 32px;box-shadow:0 15px 30px #02091280;z-index:1}
.hg-gateway-grid .hg-order-gate{--card-angle:3deg;--card-offset:-18px;z-index:2}
.hg-gateway-grid article:before{content:'';position:absolute;inset:10px;border:1px solid #8e744950;border-radius:13px;pointer-events:none}
.hg-gateway-grid .hg-order-gate:before{border-color:#d8b47740}
.hg-gateway-grid article>p{min-height:108px;max-width:none;line-height:1.75;font-style:italic}
.hg-gateway-grid .hg-route-number{line-height:1.6;min-height:32px}
.hg-gateway-grid .hg-gate-heading{min-height:110px;margin:16px 0 20px}
.hg-gateway-grid article:focus-within{z-index:4;transform:translateX(var(--card-offset)) translateY(-18px) translateZ(36px) rotate(0deg)}
@media(hover:hover) and (pointer:fine){.hg-gateway-grid article:hover{z-index:5;transform:translateX(var(--card-offset)) translateY(-18px) translateZ(36px) rotate(0deg)}}
.hg-dialogue-review{display:grid;grid-template-columns:1fr auto;gap:8px 12px;position:relative}
.hg-dialogue-review label{grid-column:1/-1;font-size:10px;letter-spacing:.06em}
.hg-dialogue-review select{width:100%;min-width:0;padding:7px 5px;border:1px solid currentColor;border-radius:5px;background:transparent;color:inherit;font:11px/1.5 Inter,Arial,sans-serif}
.hg-dialogue-review option{background:#e8eeed;color:#193346}
.hg-dialogue-cycle{display:flex;gap:7px;align-items:center}
@media(max-width:950px){.hg-gateway-grid{width:calc(100% - 30px)}.hg-gateway-grid article{padding:30px 32px}.hg-dialogue-review{grid-template-columns:1fr}.hg-dialogue-cycle{justify-content:flex-end}}
@media(max-width:640px){
 .hg-gateways .hg-centered{margin-bottom:44px}
 .hg-gateway-grid{width:calc(100% - 18px);margin-bottom:16px}
 .hg-gateway-grid article{--card-angle:-1.5deg;--card-offset:0px;padding:28px 30px 32px}
 .hg-gateway-grid .hg-order-gate{--card-angle:1.5deg;--card-offset:0px;margin-top:-8px}
 .hg-gateway-grid .hg-gate-heading{min-height:96px}
 .hg-gateway-grid article>p{min-height:0}
 .hg-gateway-grid article:focus-within{transform:translateY(-5px) rotate(0deg)}
}
@media(prefers-reduced-motion:reduce){.hg-gateway-grid article:hover,.hg-gateway-grid article:focus-within{transform:translateX(var(--card-offset)) rotate(var(--card-angle))}}
/* Compact approved cards: no review UI or reserved copy-height gaps. */
.hg-materials-link{display:inline-flex;align-items:center;gap:10px;align-self:flex-start;margin-top:14px;font:500 11px/1.5 Inter,Arial,sans-serif;color:#25475b;text-decoration:none;min-height:24px}
.hg-materials-link:hover{text-decoration:underline;text-underline-offset:4px}
.hg-materials-link:focus-visible{outline:2px solid #76541d;outline-offset:4px}
.hg-gateway-grid article{padding:30px 42px}
.hg-gateway-grid .hg-route-number{min-height:0}
.hg-gateway-grid .hg-gate-heading{min-height:72px;margin:16px 0}
.hg-gateway-grid article>p{min-height:0;margin-bottom:22px}
@media(max-width:950px){.hg-gateway-grid article{padding:28px 32px}}
@media(max-width:640px){.hg-gateway-grid article{padding:26px 30px}.hg-gateway-grid .hg-gate-heading{min-height:72px}}
