/* One responsive header/footer. Desktop labels stay on one line; smaller screens use the menu. */
#header.shell-header {position:sticky;top:0;z-index:20;background:var(--bg);border-bottom:1px solid var(--line);padding:0;}
.shell-announcement {padding:8px 16px;text-align:center;font:400 13px/1.5 Inter,Arial,sans-serif;letter-spacing:.06em;color:var(--soft,var(--muted));border-bottom:1px solid var(--line);}
.shell-inner {max-width:1360px;margin:0 auto;padding:10px 32px;gap:28px;min-width:0;}
.shell-inner .site-brand {margin-right:0;}
.shell-nav {display:flex;align-items:center;justify-content:space-between;gap:16px;flex:1;min-width:0;}
.shell-nav a {display:flex;align-items:center;min-height:48px;padding:2px 0;color:var(--ink);font:500 14px/1.6 Inter,Arial,sans-serif;text-decoration:none;white-space:nowrap;overflow-wrap:normal;border:0;border-bottom:2px solid transparent;background:transparent;}
.shell-nav a:hover,.shell-nav a[aria-current] {color:var(--acc,var(--accent));border-bottom-color:var(--acc,var(--accent));}
.shell-menu {display:none;min-height:44px;padding:8px 14px;border:1px solid var(--soft,var(--muted));border-radius:8px;background:var(--card);color:var(--ink);font:500 14px Inter,Arial,sans-serif;}
.shell-header :focus-visible,.shell-footer :focus-visible {outline:3px solid var(--ink);outline-offset:3px;}
footer.shell-footer {border-top:1px solid var(--line);padding:48px 32px 20px;background:var(--card);color:var(--ink);font:400 15px/1.65 Inter,Arial,sans-serif;}
.shell-footer-grid {max-width:1280px;margin:auto;display:grid;grid-template-columns:1.1fr .8fr 1.3fr;gap:48px;}
.shell-footer .site-brand {background:transparent;display:inline-block;margin-bottom:16px;}
.shell-footer p {font-size:15px;color:var(--soft,var(--muted));max-width:42ch;}
.shell-footer h2 {font:600 17px/1.4 Inter,Arial,sans-serif;margin:0 0 14px;letter-spacing:normal;}
.shell-footer-links a {display:block;width:fit-content;margin:8px 0;color:var(--ink);text-decoration:none;}
.shell-footer-links a:hover {text-decoration:underline;}
.newsletter-form label {display:block;font-size:14px;font-weight:500;margin:0 0 6px;}
.newsletter-form input {display:block;width:100%;padding:10px 12px;min-height:44px;background:var(--bg);color:var(--ink);border:1px solid var(--soft,var(--muted));border-radius:8px;font:400 15px Inter,Arial,sans-serif;margin:0 0 12px;}
.newsletter-form button {padding:10px 16px;min-height:44px;background:var(--acc,var(--accent));color:#fff;border:0;border-radius:8px;font:500 14px Inter,Arial,sans-serif;}
.shell-footer .newsletter-note {font-size:13px;margin:12px 0;}
.shell-footer .newsletter-status {font-size:14px;color:var(--ink);}
.newsletter-status:empty {margin:0;}
.shell-social {display:flex;flex-wrap:wrap;gap:16px;}
.shell-social a {color:var(--ink);}
.shell-footer-bottom {max-width:1280px;margin:32px auto 0;border-top:1px solid var(--line);padding-top:16px;}
.shell-footer-bottom p {max-width:none;font-size:13px;margin:0;}
@media(max-width:1200px) {
 .shell-inner {flex-wrap:wrap;gap:12px;}
 .shell-menu {display:block;margin-left:auto;}
 .shell-nav {display:none;flex-basis:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;}
 .shell-nav.open {display:grid;}
 .shell-nav a {white-space:normal;}
 .shell-footer-grid {grid-template-columns:1fr 1fr;gap:28px;}
 .shell-updates {grid-column:1/-1;max-width:520px;}
}
@media(max-width:600px) {
 .shell-inner {padding:10px 16px;}
 footer.shell-footer {padding:32px 16px 20px;}
 .shell-footer-grid {grid-template-columns:1fr;}
 .shell-updates {grid-column:auto;}
}

/* A single opacity crossfade: snapshots stay fixed, with no geometry animation. */
@view-transition {navigation:auto;}
.shell-header {view-transition-name:pantala-header;}
::view-transition-group(root),::view-transition-group(pantala-header) {animation:none;}
::view-transition-old(root) {animation:none;opacity:1;mix-blend-mode:normal;}
::view-transition-new(root) {animation:pantala-page-in 240ms cubic-bezier(.2,.6,.3,1) both;mix-blend-mode:normal;}
::view-transition-old(pantala-header) {animation:none;opacity:0;}
::view-transition-new(pantala-header) {animation:none;opacity:1;}
@keyframes pantala-page-in {from {opacity:0;}to {opacity:1;}}
@media(prefers-reduced-motion:reduce) {@view-transition {navigation:none;}}
