.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.header-desk { width: min(1320px, calc(100% - 64px)); margin: 0 auto; min-height: 112px; position: relative; display: flex; justify-content: center; align-items: center; }
.guide-name { display: flex; gap: 13px; align-items: center; text-decoration: none; padding: 12px 16px; z-index: 1; background: white; min-height: 64px; }
.guide-name strong { font-size: 20px; line-height: 1.3; font-weight: 650; letter-spacing: -.03em; display: block; }
.guide-subtitle { display: block; color: var(--muted-ink); font-size: 16px; line-height: 1.5; }
.guide-mark { width: 27px; height: 36px; border: 1px solid var(--slate); border-right: 7px solid var(--rose); position: relative; }
.guide-mark::after { content: ""; position: absolute; width: 13px; height: 1px; background: var(--cool-grey); left: 4px; top: 16px; }
.header-links { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; gap: 360px; }
.understanding-links, .preparation-links { display: flex; gap: 10px; pointer-events: auto; }
.header-links a { padding: 12px 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1.4; min-height: 48px; white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; }
.header-links a:hover { border-color: var(--rose); }
.header-links a[aria-current="page"] { border-color: var(--rose-ink); color: var(--rose-ink); }
.skip-reading { position: absolute; left: 16px; top: -100px; z-index: 5; background: var(--slate); color: white; padding: 14px 22px; font-size: 17px; min-height: 48px; }
.skip-reading:focus { top: 12px; }

@media (max-width: 1040px) {
  .header-desk { flex-direction: column; padding-top: 9px; width: calc(100% - 40px); }
  .guide-name { padding: 10px 0; }
  .header-links { position: static; width: 100%; gap: 24px; }
  .understanding-links, .preparation-links { gap: 14px; }
}

@media (max-width: 540px) {
  .header-desk { width: calc(100% - 24px); }
  .guide-name { gap: 11px; padding: 6px 0 9px; }
  .guide-name strong { font-size: 19px; }
  .header-links { gap: 8px; justify-content: space-between; }
  .understanding-links, .preparation-links { gap: 1px; }
  .header-links a { padding: 12px 5px; font-size: 16px; min-height: 52px; white-space: normal; text-align: center; }
  .guide-mark { width: 22px; height: 30px; }
  .guide-mark::after { width: 8px; top: 13px; }
}

@media print { .site-header, .skip-reading { display: none; } }
