/* Warm paper remains visible without scripts; ink lives only on the free background. */
.portal-edition.edition-system .portal-gateway{position:relative;isolation:isolate;overflow:hidden;padding-top:54px;padding-bottom:64px;border-top:1px solid #cccccc;background:#f5f5f5 url('assets/gateway-paper.svg') center/400px 400px repeat;--gateway-x:52%;--gateway-y:45%;color:#333333}
.portal-edition.edition-system .portal-gateway:before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 12% 5%,#ffffff99 0,transparent 57%),linear-gradient(135deg,#ffffff30,transparent 50%,#cccccc1a)}
.portal-edition.edition-system .portal-gateway:after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse 290px 230px at var(--gateway-x) var(--gateway-y),#ffffff77,transparent 78%)}
.portal-edition .ink-trail{display:block;position:absolute;inset:0;z-index:1;width:100%;height:100%;pointer-events:none}
.portal-edition.edition-system .portal-gateway-heading,.portal-edition.edition-system .portal-grid{position:relative;z-index:2}
.portal-edition.edition-system .portal-gateway-heading{margin-bottom:30px}
.portal-edition.edition-system .portal-gateway-heading h2{color:#333333}
.portal-edition.edition-system .portal-gateway-heading p{color:#666666}
.portal-edition.edition-system .portal-gateway .portal-tile{border-color:#cccccc;box-shadow:0 4px 16px #33333310}
.portal-edition.edition-system .portal-gateway .portal-tile:hover,.portal-edition.edition-system .portal-gateway .portal-tile:focus-visible{border-color:#999999;box-shadow:0 12px 25px #33333320}
@media(hover:hover) and (pointer:fine){.portal-edition .portal-gateway.ink-writing{cursor:url('assets/pen-cursor-precision.svg') 8 40,crosshair}.portal-edition .portal-gateway :is(a,button,summary){cursor:pointer}}
@media(max-width:800px){.portal-edition.edition-system .portal-gateway{padding-top:39px;padding-bottom:45px}.portal-edition.edition-system .portal-gateway-heading{margin-bottom:28px}}
@media(max-width:550px){.portal-edition.edition-system .portal-gateway{padding-top:35px;padding-bottom:38px}.portal-edition.edition-system .portal-gateway:after{background:none}}
@media(hover:none),(pointer:coarse){.portal-edition .ink-trail{display:none}}
.motion-paused .portal-gateway.ink-writing{cursor:auto}.motion-paused .ink-trail{display:none}.motion-paused .portal-gateway:after{background:none}
@media(prefers-reduced-motion:reduce){.portal-edition .portal-gateway.ink-writing{cursor:auto}.portal-edition .ink-trail{display:none}.portal-edition .portal-gateway:after{background:none}}
@media(forced-colors:active){.portal-edition.edition-system .portal-gateway{background:Canvas;color:CanvasText}.portal-edition .portal-gateway:before,.portal-edition .portal-gateway:after,.portal-edition .ink-trail{display:none}.portal-edition.edition-system .portal-gateway-heading h2,.portal-edition.edition-system .portal-gateway-heading p{color:CanvasText}}
@media print{.ink-trail{display:none!important}.portal-edition.edition-system .portal-gateway{background:#ffffff}}
