/* Mirrors the website's Brand, SiteHeader and SiteFooter; demo links stay local to its purpose. */
@font-face {
  font-family: Plex;
  src: url('/plex.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root { --header-height: 72px; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: #263b32;
  font-family: PocketContextWordmark, Arial, sans-serif; font-weight: 700;
  font-synthesis: none; font-size: 20px; letter-spacing: -0.6px; text-decoration: none;
}
.brand img { display: block; width: 34px; height: 34px; flex-shrink: 0; }
.brand:hover { text-decoration: underline; }
.brand:focus-visible { outline: 2px solid #2e493e; outline-offset: 5px; }
.brand.compact { font-size: 16px; }
.site-header { position: sticky; top: 0; z-index: 5; background: #f5f3ed; border-bottom: 1px solid #d7dcd1; }
.header-inner {
  width: 100%; max-width: 1192px; margin: auto; padding-inline: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-height);
}
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; margin-left: auto; }
.site-nav a { color: #263b32; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a:focus-visible, .footer-links a:focus-visible { outline: 2px solid #476e35; outline-offset: 5px; }
.source-link { display: inline-flex; align-items: center; min-height: 44px; }
.site-nav .nav-cta {
  display: inline-flex; align-items: center; gap: 16px; min-height: 44px;
  border: 1px solid #d7dcd1; padding: 11px 16px; border-radius: 5px; line-height: 1.4;
  white-space: nowrap;
}
.icon { flex-shrink: 0; }
.site-footer {
  width: 100%; max-width: 1192px; margin: auto; padding: 30px 40px;
  border-top: 1px solid #d7dcd1; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; font-family: Plex, Arial, sans-serif; line-height: 1.5;
}
.tagline, .footer-links { font-size: 11px; font-weight: 400; color: #677269; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; gap: 4px; color: inherit; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.skip { z-index: 6; }
@media (max-width: 900px) {
  .header-inner, .site-footer { padding-inline: 25px; }
  .header-inner { gap: 12px; }
  .site-nav { gap: 16px; }
  .site-nav .source-link { display: none; }
}
@media (max-width: 650px) {
  :root { --header-height: 64px; }
  .brand:not(.compact) { font-size: 17px; }
  .header-inner { gap: 10px; }
  /* The same repository remains accessible through the footer's GitHub link. */
  .site-nav .source-link { display: none; }
  .site-footer { flex-wrap: wrap; }
  .tagline { width: 100%; order: 3; }
}
@media (max-width: 380px) {
  .header-inner, .site-footer { padding-inline: 18px; }
  .site-nav .nav-cta { padding: 10px; gap: 6px; }
}

@font-face { font-family: PocketContextLanguage; src: url('/plex.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: PocketContextLanguage; src: url('/wordmark.woff2') format('woff2'); font-weight: 700; font-display: swap; }
.languages { display: flex; align-items: center; gap: 0; font: 14px/1.4 PocketContextLanguage, Arial, sans-serif; font-synthesis: none; }
.languages a { color: #263b32; min-width: 44px; min-height: 44px; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; text-underline-offset: auto; }
.languages a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; background: #e9ede2; border-radius: 4px; }
.languages a:hover { background: #e9ede2; }
.languages a:focus-visible { outline: 2px solid #476e35; outline-offset: -2px; }
.mobile-language-row { display: none; }
@media (max-width: 650px) {
  .desktop-language { display: none; }
  .mobile-language-row { display: flex; justify-content: flex-end; padding: 4px 25px; background: #f5f3ed; border-bottom: 1px solid #d7dcd1; }
  .site-nav .nav-cta { white-space: normal; }
}

@media (max-width: 380px) {
  .mobile-language-row { padding-inline: 18px; }
}
