/* Page headings follow the image-tools baseline across host and iframe. */
:root { --treepix-page-heading-size:20px; }
.treepix-section-tabs { --treepix-section-tab-gap:31px; display:flex; align-items:center; gap:var(--treepix-section-tab-gap); font-synthesis:none; -webkit-font-smoothing:antialiased; }
.treepix-section-tabs .treepix-section-tab[role="tab"],
#page-history .download-type-tab[role="tab"],
#view-home #page-credits .page-title { font-family:Inter,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif; font-size:18px; line-height:normal; letter-spacing:0; }
#view-home #page-credits .page-title,
#page-history .download-type-tab[role="tab"],
.page-tabs.treepix-section-tabs .treepix-section-tab[role="tab"] { font-size:var(--treepix-page-heading-size,20px); }
.treepix-section-tabs .treepix-section-tab[role="tab"],
#page-history .download-type-tab[role="tab"] { appearance:none; display:flex; align-items:center; gap:9px; padding:10px 0; border:0; border-radius:0; background:none; box-shadow:none; color:#a0a6a1; cursor:pointer; font-weight:550; white-space:nowrap; transition:color .22s; }
.treepix-section-tabs .treepix-section-tab[role="tab"]:hover,
#page-history .download-type-tab[role="tab"]:hover { color:#45594d; }
.treepix-section-tabs .treepix-section-tab[role="tab"][aria-selected="true"],
#page-history .download-type-tab[role="tab"][aria-selected="true"],
#view-home #page-credits .page-title { color:#1e2923; font-weight:680; }
.treepix-section-tabs .treepix-section-tab[role="tab"]:focus-visible,
#page-history .download-type-tab[role="tab"]:focus-visible { outline:2px solid #087f61; outline-offset:5px; }
.dark .treepix-section-tabs .treepix-section-tab[role="tab"],
.dark #page-history .download-type-tab[role="tab"] { color:#919b94; }
.dark .treepix-section-tabs .treepix-section-tab[role="tab"]:hover,
.dark .treepix-section-tabs .treepix-section-tab[role="tab"][aria-selected="true"],
.dark #page-history .download-type-tab[role="tab"]:hover,
.dark #page-history .download-type-tab[role="tab"][aria-selected="true"],
.dark #view-home #page-credits .page-title { color:#f5f5f7; }
#page-history .download-type-tabs.treepix-section-tabs { display:flex; gap:var(--treepix-section-tab-gap); padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
#page-history .download-type-tab[role="tab"] { height:auto; }
.treepix-section-tabs:has(.treepix-section-count) { --treepix-section-tab-gap:22px; }
.treepix-section-tabs .treepix-section-tab:has(> .treepix-section-count) { gap:5px; }
.treepix-section-tabs .treepix-section-count {
  align-self:flex-end; display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; margin:0 0 1px; padding:2px 4px; border-radius:8px;
  font-size:10px; font-weight:500; line-height:1.2; letter-spacing:0;
  color:#68766f; background:rgba(91,117,103,.09);
}
.dark .treepix-section-tabs .treepix-section-count { color:#a4ada7; background:rgba(145,162,152,.12); }
@media(max-width:760px) { .treepix-section-tabs { --treepix-section-tab-gap:22px; } }
@media(max-width:640px) { .treepix-section-tabs:has(.treepix-section-count) { --treepix-section-tab-gap:14px; } }
@media(prefers-reduced-motion:reduce) { #page-history .download-type-tab[role="tab"] { transition:none; } }
