/* 홈의 떠 있는 머리줄. 학습 앱의 탭은 이 줄 바깥에 둔다. */
:root { --voca-service-row: 76px; --voca-footer-height: 60px; }
.voca-header {
  box-sizing: border-box; position: sticky; top: calc(10px + env(safe-area-inset-top)); z-index: 80;
  display: flex; align-items: center; gap: .375rem; width: min(1180px, calc(100% - 20px));
  height: 56px; margin: 10px auto; padding: 0 8px 0 12px; border-radius: 999px;
  color: var(--ink, #191919); background: color-mix(in srgb, var(--paper-hi, white) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 0 0 1px rgb(25 25 25 / .06), 0 10px 30px -16px rgb(42 42 42 / .3);
  font: 400 14px/1.2 var(--sans, system-ui, sans-serif);
}
html:not(.aio):has(> body > .voca-header) { scroll-padding-top: calc(var(--voca-service-row) + env(safe-area-inset-top)); }
.voca-header voca-menu { display: contents; }
.voca-identity, .voca-services { display: flex; align-items: center; }
.voca-identity { flex: none; gap: 4px; }
.voca-header a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; color: inherit; text-decoration: none; white-space: nowrap; }
.voca-identity img { display: block; object-fit: contain; }
.voca-identity a:not(:last-child) { width: 40px; }
.voca-identity a:not(:last-child) img { width: 28px; height: 28px; border-radius: 6px; }
.voca-identity a:last-child img { width: auto; height: 21px; }
.voca-services {
  flex: 1 1 auto; min-inline-size: 0; max-inline-size: 40rem; margin-inline: auto;
  justify-content: space-evenly; gap: clamp(.25rem, .75vw, .625rem);
}
.voca-services a {
  flex: none; padding-inline: clamp(.25rem, 1vw, .75rem); font: inherit; text-align: center;
}
.voca-header .voca-account {
  position: relative; flex: none; inline-size: 40px; block-size: 40px;
  padding: 0; border: 1px solid rgb(25 25 25 / .12); font-size: 0;
}
.voca-account::before, .voca-account::after { content: ''; position: absolute; left: 50%; translate: -50%; border: 1.5px solid currentColor; }
.voca-account::before { top: calc(50% - 9px); width: 7px; height: 7px; border-radius: 50%; }
.voca-account::after { top: calc(50% + 1px); width: 14px; height: 7px; border-bottom: 0; border-radius: 8px 8px 0 0; }
.voca-header .nav-link { padding: 0 .75rem; font: inherit; }
.voca-header a:is(:hover, [aria-current]) { background: rgb(25 25 25 / .06); }
.voca-header a:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
@media (max-width: 720px) {
  .voca-header { gap: clamp(.25rem, 1.25vw, .625rem); padding-inline: clamp(.5rem, 3vw, 1rem); }
  .voca-identity { gap: 0; }
  .voca-identity a:not(:last-child) { width: 32px; }
  .voca-identity a:not(:last-child) img { width: 24px; height: 24px; }
  .voca-identity a:last-child img { height: 18px; }
  .voca-services {
    gap: clamp(.25rem, 1.6vw, .75rem);
    overflow-x: auto; scrollbar-width: none;
  }
  .voca-services a { min-height: 44px; padding-inline: .25rem; font-size: clamp(.875rem, 4vw, 1rem); font-weight: 700; }
  .voca-services a:focus-visible { outline-offset: -2px; }
  .voca-header .nav-link { padding-inline: .5rem; }
}
@media (max-width: 480px) {
  .voca-header .dev-palette-trigger { margin-inline: 0; padding-inline: 0; width: 24px; }
}
@media (max-width: 440px) {
  .voca-header { width: calc(100% - 12px); }
  .voca-identity a:not(:last-child) { width: 24px; }
  .voca-identity a:last-child img { height: 16px; }
  .voca-services { font-family: system-ui, sans-serif; }
  .voca-services:lang(en) { font-family: Arial, sans-serif; letter-spacing: -.03em; }
  .voca-services a { min-inline-size: 28px; padding-inline: .125rem; }
}
@media (max-width: 359px) {
  .voca-header { gap: .25rem; padding-inline: .5rem; }
  .voca-identity a + a:last-child img { height: 14px; }
  .voca-services { gap: .25rem; }
  .voca-services a { padding-inline: .0625rem; }
  .voca-services:lang(en) a { font-size: .8125rem; }
}
.voca-footer-nav {
  position: fixed; inset: auto 0 0; z-index: 10; box-sizing: border-box;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 8rem); justify-content: center;
  height: calc(var(--voca-footer-height) + env(safe-area-inset-bottom));
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  border-top: 1px solid var(--rule); background: var(--paper-hi);
}
.voca-footer-nav a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--soft); font: 400 .8125rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
}
.voca-footer-nav svg {
  display: block; width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.voca-footer-nav a[aria-current] { color: var(--ink); font-weight: 700; }
.voca-footer-nav a[aria-current]::after {
  content: ""; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 2px; background: currentColor;
}
.voca-footer-nav a:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
@media (hover: hover) { .voca-footer-nav a:hover { background: var(--paper-deep); } }
@media print { .voca-header, .voca-footer-nav { display: none; } }
