/* The same primary navigation on tool, converter, guide and utility pages. */
body { --home-header-height:60px; }
body .site-header.header { display:flex; align-items:center; height:60px; min-height:60px; max-width:none; padding:0 28px; gap:30px; background:#fff; border-bottom:1px solid var(--line); position:relative; z-index:20; flex-wrap:nowrap; }
body .site-header .brand { flex:none; font-size:18px; gap:10px; letter-spacing:-.7px; }
body .site-header .brand-mark { width:30px; height:30px; border-radius:9px; background:var(--ink); }
body .site-header .brand-light { color:var(--muted); }
body .site-header .main-nav { display:flex; align-items:center; justify-content:center; gap:3px; margin:0; padding:4px; width:auto; border:1px solid #e9eceb; border-radius:10px; background:#f8faf9; }
body .site-header .main-nav>a { position:relative; display:flex; align-items:center; justify-content:center; min-height:32px; padding:5px 17px; font-size:12px; line-height:1.4; font-weight:550; color:#656b69; text-decoration:none; border-radius:7px; white-space:nowrap; }
body .site-header .main-nav>a::after { content:none; }
body .site-header .main-nav>a:hover { color:var(--ink); background:#eef2f0; }
body .site-header .main-nav>a:is([aria-current=page],.is-active) { color:#0f665a; background:var(--soft-blue); box-shadow:inset 0 -2px 0 #0f766e; font-weight:650; }
body .site-header .nav-guides { margin-left:auto; position:relative; flex:none; }
body .site-header .nav-guides summary { display:flex; align-items:center; gap:7px; cursor:pointer; list-style:none; padding:8px 10px; font-size:12px; font-weight:550; color:#555e5b; border-radius:7px; }
body .site-header .nav-guides summary::-webkit-details-marker { display:none; }
body .site-header .nav-guides summary .icon { width:14px; height:14px; transition:transform .15s; }
body .site-header .nav-guides[open] summary .icon { transform:rotate(180deg); }
body .site-header .nav-guides:is([open],[data-active]) summary { background:var(--soft-blue); color:var(--blue); }
body .site-header .nav-guides summary:hover { background:#f3f6f4; }
body .site-header .nav-guides>div { position:absolute; top:calc(100% + 12px); right:0; width:284px; padding:9px; background:white; border:1px solid var(--line); border-radius:12px; box-shadow:0 14px 40px #182b231a; z-index:30; }
.nav-menu-label { display:block; padding:9px 10px 7px; color:var(--muted); font:10px var(--mono); letter-spacing:1px; }
body .site-header .nav-guides a { display:grid; grid-template-columns:1fr 18px; padding:10px; gap:2px 12px; border-radius:7px; text-decoration:none; }
body .site-header .nav-guides a strong { font-size:12px; font-weight:600; }
body .site-header .nav-guides a small { grid-column:1; font-size:11px; color:var(--muted); }
body .site-header .nav-guides a .icon { grid-column:2; grid-row:1/3; align-self:center; width:16px; height:16px; color:var(--muted); }
body .site-header .nav-guides a:hover,body .site-header .nav-guides a[aria-current=page] { background:var(--soft-blue); color:var(--blue); }
.home-page { --home-header-height:60px; }
.home-first-screen>.studio>.studio-heading { display:flex; min-height:48px; height:48px; flex:0 0 48px; width:100%; padding:7px 24px; gap:12px; border-bottom:1px solid var(--line); background:white; }
.studio-heading .editor-project { padding-left:0; border-left:0; }
.studio-heading .editor-project .studio-document { display:flex; }
.studio-heading .editor-project .document-icon { display:flex; }
.studio-heading .editor-project .studio-document strong { max-width:320px; font-size:12px; }
.studio-heading .editor-export { margin-left:0; }
/* Give format-conversion content room below the compact global header. */
.converter-content { padding-top:32px; }
.converter-content>.breadcrumbs { padding-top:0; margin-bottom:0; }
.converter-content>.hero { padding-top:36px; padding-bottom:48px; }
@media(max-width:760px) {
  .converter-content { padding-top:24px; }
  .converter-content>.hero { padding-top:28px; padding-bottom:32px; }
  body,body.home-page { --home-header-height:104px; }
  body .site-header.header { height:104px; min-height:104px; padding:10px 16px 8px; display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:32px 42px; column-gap:10px; row-gap:8px; }
  body .site-header .brand { font-size:17px; gap:8px; }
  body .site-header .brand-mark { width:28px; height:28px; }
  body .site-header .main-nav { grid-row:2; grid-column:1/-1; width:100%; display:flex; padding:3px; gap:3px; margin:0; }
  body .site-header .main-nav>a { flex:1; padding:6px 8px; min-height:32px; font-size:12px; }
  body .site-header .nav-guides { grid-row:1; grid-column:2; margin:0; }
  body .site-header .nav-guides summary { padding:6px; font-size:11px; }
  body .site-header .nav-guides>div { top:calc(100% + 9px); max-width:calc(100vw - 32px); }
  .home-first-screen { height:auto; min-height:calc(100svh - var(--home-header-height)); }
  .home-first-screen .studio { min-height:calc(100svh - var(--home-header-height)); }
  .home-first-screen>.studio>.studio-heading { padding:7px 16px; gap:8px; }
  .studio-heading .editor-project { display:block; flex:1; min-width:0; }
  .studio-heading .editor-project .studio-document strong { max-width:150px; }
  .studio-heading .editor-project .document-icon { display:none; }
  .studio-heading .editor-state-label { display:none; }
  .studio-heading .editor-history { display:flex; }
  .studio-heading .editor-history .toolbar-button { font-size:11px; padding:5px 8px; }
  .studio-heading .editor-export { margin-left:auto; }
}
@media(prefers-reduced-motion:reduce) { body .site-header .nav-guides summary .icon { transition:none; } }

body .site-header .guides-navigation{display:flex;align-items:center;margin-left:auto;flex:none}
body .site-header .guides-navigation .nav-guides{margin-left:0}
body .site-header .guides-navigation .nav-guides summary{min-height:38px;padding:8px 13px;gap:7px;font:600 13px/1.4 var(--body);border-radius:9px;white-space:nowrap}
body .site-header .nav-guides summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
@media(max-width:760px){body .site-header .guides-navigation{grid-row:1;grid-column:2;margin:0}body .site-header .guides-navigation .nav-guides summary{min-height:33px;padding:6px 9px;font-size:12px}}
