[data-public-view-switch] {
  box-sizing: border-box;
  color: var(--public-ink, var(--ink, CanvasText));
  font: 500 14px/1.3 var(--font-family-sans, system-ui, sans-serif);
  padding: 12px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
[data-public-view-switch][hidden] {
  display: none;
}
[data-public-view-switch] a {
  color: inherit;
}
[data-public-view-switch] a:focus-visible {
  outline: 2px solid var(--public-focus-color, Highlight);
  outline-offset: 2px;
}
/* Floats bottom-right, above the page footer: the homepage footer row is 64 px tall (owner, 12 Nov 2026). */
.public-view-desktop {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(80px, calc(env(safe-area-inset-bottom) + 64px));
  z-index: 40;
  width: max-content;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--public-hairline-strong, var(--line, GrayText));
  border-radius: 999px;
  background: var(--public-ground, var(--ground, Canvas));
  box-shadow: var(--public-shadow-overlay, none);
}
.public-view-desktop > * {
  display: grid;
  min-height: 44px;
  min-width: 72px;
  place-items: center;
  border-radius: 999px;
  text-decoration: none;
}
.public-view-desktop > [aria-current="page"] {
  background: var(--public-action, var(--ink, CanvasText));
  color: var(--public-action-foreground, var(--public-ground, var(--ground, Canvas)));
}
.public-view-mobile {
  display: none;
}
/* In a page's own slot (the homepage footer row, owner 14 Nov 2026, Round 11) the switch sits in the row, in its
   height: it never floats, so it can't cover the logo ribbon or the footer. Targets stay at least 32 px. */
[data-public-view-slot] [data-public-view-switch] {
  padding: 0;
}
[data-public-view-slot] .public-view-desktop {
  position: static;
  box-shadow: none;
}
/* The host footer styles its own links (display, hover colour); the switch keeps its centred cells. */
[data-public-view-slot] .public-view-desktop > * {
  display: grid;
  place-items: center;
  min-height: 32px;
  min-width: 72px;
}
.public-agent-document article {
  overflow-wrap: anywhere;
}
.public-agent-document pre {
  overflow-x: auto;
}
.public-agent-source {
  font-size: 14px;
}
.public-agent-document main {
  padding-bottom: 24px;
}
@media (hover: hover) {
  .public-view-desktop a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
@media (max-width: 767px) {
  .public-view-desktop {
    display: none;
  }
  [data-public-view-switch] {
    padding-top: 0;
  }
  .public-view-mobile {
    display: flex;
    justify-content: center;
  }
  .public-view-mobile a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  /* In a page's footer slot a phone keeps the pill (Round 11: "it keeps its pill shape"), with 44 px targets. */
  [data-public-view-slot] .public-view-desktop {
    display: grid;
  }
  [data-public-view-slot] .public-view-desktop > * {
    min-height: 44px;
  }
  [data-public-view-slot] .public-view-mobile {
    display: none;
  }
}
