.pz-skip { position: absolute; inset: 0 auto auto 12px; z-index: 2; padding: 10px 14px; background: var(--bg-paper); color: var(--text-primary); transform: translateY(-120%); }
.pz-skip:focus { transform: translateY(0); }
.phase-content { min-width: 0; }
.phase-content:focus:not(:focus-visible) { outline: none; }
html[data-phase-shell-ready] .phase-content :is(.atlas-skip,.guide-reader__skip,.guide-skip-link) { display:none; }
.pz-header, .pz-footer, .pz-dialog { box-sizing: border-box; font-family: var(--phase-sans); }
.pz-header {
  position: sticky; inset-block-start: 0; z-index: 60;
  height: var(--phase-bar); color: var(--text-primary); background: #FAF6EC var(--article-tile) repeat 0 0 / 512px 512px;
  border-block-start: 3px solid var(--accent-ruby);
  border-block-end: 1px solid var(--border-hairline);
}
html[data-phase-theme="dark"] .pz-header { background: #17171C; }
.pz-bar, .pz-footer-inner {
  width: min(100% - clamp(24px,5vw,80px), 1440px); margin: 0 auto;
}
.pz-bar { display: flex; align-items: center; height: 100%; gap: clamp(16px,2vw,34px); }
.pz-header a, .pz-footer a { color: inherit; text-decoration: none; }
.pz-brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.pz-brand span { font: 400 clamp(20px,1.7vw,27px)/1 var(--phase-serif); letter-spacing: -.025em; }
.pz-brand img { width: 30px; height: 30px; }
.pz-actions, .pz-mega, .pz-header summary { display: flex; align-items: center; }
.pz-actions { margin-inline-start: auto; gap: 5px; }
.pz-mega { gap: clamp(8px,1.35vw,22px); }
.pz-header summary, .pz-footer summary { cursor: pointer; list-style: none; }
.pz-header summary::-webkit-details-marker, .pz-footer summary::-webkit-details-marker { display: none; }
.pz-header details { position: relative; }
.pz-header summary { min-height: 42px; gap: 6px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.pz-header summary::after, .pz-footer summary::after {
  content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor;
  border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg);
}
.pz-header details[open] > summary { color: var(--accent-shield); }
.pz-header button, .pz-dialog button {
  border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.pz-icon, html[data-phase-page] .pz-header .pz-icon { width: 20px; height: 20px; flex: none; }
.pz-header .pz-control, .pz-header .pz-search, .pz-header .pz-lang summary {
  display: inline-flex; min-height: 40px; min-width: 38px; align-items: center; justify-content: center;
}
.pz-header .pz-search {
  gap: 9px; padding: 0 10px; color: var(--text-primary); background: transparent; border: 1px solid var(--border-hairline);
  font-weight: 550; font-size: 13px;
}
.pz-search kbd { font: 11px var(--phase-mono); color: var(--text-muted); }
.pz-lang summary { padding: 0 4px; font-family: var(--phase-mono); }
.pz-header .pz-menu-trigger, .pz-header .pz-icon-sun { display: none; }
html[data-phase-theme="dark"] .pz-icon-moon { display: none; }
html[data-phase-theme="dark"] .pz-icon-sun { display: inline; }
.pz-dropdown {
  position: absolute; z-index: 1; inset-block-start: calc(100% + 4px); inset-inline-start: -12px;
  display: flex; gap: 26px; padding: 15px; min-width: 11rem; border: 1px solid var(--border-hairline);
  color: var(--text-primary); background: var(--bg-paper); box-shadow: 0 8px 24px #14141825;
}
.pz-dropdown > div, .pz-lang .pz-dropdown { display: grid; align-content: start; }
.pz-lang .pz-dropdown { inset-inline: auto 0; min-width: 9rem; }
.pz-dropdown strong { color: var(--text-muted); font-size: .77rem; margin: 0 .45rem .3rem; }
.pz-dropdown a, .pz-drawer-nav > a { display: block; padding: .55em .45em; white-space: nowrap; font-size: .91rem; }
.pz-dropdown a:is(:hover,:focus-visible) { background: var(--bg-parchment); color: var(--accent-shield); }
.pz-header :is(summary,button,a):focus-visible, .pz-footer :is(summary,a):focus-visible { outline-color: currentColor; outline-offset: 1px; }
.pz-dialog { width: min(34rem,calc(100% - 26px)); border: 1px solid var(--border-hairline); border-radius: 8px;
  padding: 20px; background: var(--bg-paper); color: var(--text-primary); margin: auto; }
.pz-dialog::backdrop { background: #141418ac; }
.pz-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 12px; }
.pz-dialog-heading h2 { font: 400 1.55rem var(--phase-serif); margin: 0; }
.pz-dialog-heading button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.pz-search-dialog form { display: flex; gap: 8px; flex-wrap: wrap; }
.pz-search-dialog input { flex: 1 1 160px; min-width: 0; min-height: 46px; padding: 8px 10px; color: inherit; background: var(--bg-paper); border: 1px solid var(--text-muted); border-radius: 4px; font: inherit; }
.pz-search-dialog [type="submit"] { display: flex; align-items: center; gap: 5px; padding: 8px 14px; color: #fff; background: #184898; }
.pz-drawer { margin: 0 0 0 auto; width: min(25rem,95%); height: 100dvh; max-height: 100dvh; border-radius: 0; }
.pz-drawer-nav > details { border-bottom: 1px solid var(--border-hairline); }
.pz-drawer .pz-dropdown { position: static; flex-direction: column; padding-top: 0; gap: 12px; box-shadow: none; border: none; }
.pz-drawer details[open] > summary { color: var(--accent-shield); }
.pz-footer { position: relative; background: #141418; color: #F3F1EC; border-top: 1px solid #C4902E; }
.pz-footer::after { content: ""; position: absolute; inset: -1px auto auto 0; width: min(110px,30%); height: 2px; background: #CC2030; pointer-events: none; }
.pz-footer-inner { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: clamp(20px,3vw,50px); padding: 40px 0; }
.pz-footer p { max-width: 32ch; line-height: 1.6; font-size: .9rem; color: #ccc9c3; margin: .8rem 0; }
.pz-footer h2 { color: #EBC268; font: 650 .95rem var(--phase-sans); margin: 0 0 .6rem; }
.pz-footer section a, .pz-foot-langs a { display: block; width: fit-content; padding: .3rem 0; font-size: .9rem; }
.pz-footer summary { display: flex; align-items: center; gap: 9px; min-height: 44px; }
.pz-footer a:hover { text-decoration: underline; }
@media (min-width: 1024px) and (max-width: 75rem) {
  .pz-bar { width: calc(100% - 32px); gap: 14px; }
  .pz-mega { gap: 10px; }
  .pz-actions { gap: 2px; }
  .pz-header .pz-search { gap: 6px; padding-inline: 8px; }
}
@media (width < 1024px) {
  .pz-header .pz-mega { display:none; }
  .pz-header .pz-menu-trigger { display: inline-flex; }
}
@media (max-width: 48rem) {
  .pz-bar { width: calc(100% - 20px); gap: 4px; }
  .pz-brand { gap: 5px; }
  .pz-brand img { width: 26px; height: 26px; }
  .pz-actions { gap: 1px; }
  .pz-header .pz-account, .pz-search :is(kbd,span) { display: none; }
  .pz-header .pz-control, .pz-header .pz-search, .pz-header .pz-lang summary { min-width: 38px; min-height: 44px; }
  .pz-header .pz-search { border: 0; background: transparent; padding: 0; }
  .pz-header .pz-search .pz-icon-search { width: 20px; height: 20px; }
  .pz-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 22px; padding-block: 28px; }
}
@media (max-width: 32rem) { .pz-footer-inner { grid-template-columns: 1fr; } }
