/* Plan 07c: read-only banner on org `github` repo pages (custom/body_inner_pre.tmpl). Tokens from theme-gtahub.css (THEME §1).
 * THEME.md has no banner/notice component: this draft borrows §1 (--surface fill, decorative --border line),
 * §2 Small (14px; --text-body instead of --muted for readability), §3 Links + Focus, §4 spacing scale. Pending the user's sign-off. */
.gt-ro-banner {
  background: var(--gh-surface, #1f1f38);
  border-bottom: 1px solid var(--gh-border, #3d3b63); /* decorative only (THEME §1 rules) */
  color: var(--gh-text-body, #e5ddff);
  font-size: 14px;
  line-height: 1.45;
  /* Sticky (user, D27 follow-up): stays in view at every width. z-index 9 sits above Forgejo's own sticky diff headers (8)
   * and below every dropdown/menu/modal/tooltip (11+), so those open over it. */
  position: sticky;
  top: 0;
  z-index: 9;
}
/* Horizontal geometry copies Forgejo's `.page-content .ui.container` (1280px, --page-margin-x each side), so the text
 * lines up with the repo header and content at every width, instead of THEME §4's 1200px / 16-24-32 gutters. */
.gt-ro-banner__inner {
  width: 1280px;
  max-width: calc(100% - 2 * var(--page-margin-x, 32px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.gt-ro-banner__owner { color: var(--gh-muted, #9d97c4); }
.gt-ro-banner a { color: var(--gh-accent, #e9639b); text-decoration: none; }
.gt-ro-banner a:hover { color: var(--gh-accent-hover, #f285b5); text-decoration: underline; }
.gt-ro-banner a:focus-visible { outline: 2px solid var(--gh-accent, #e9639b); outline-offset: 3px; }

/* Forgejo's own sticky bits (PR "Files changed") and #anchor jumps start below the banner. --gt-ro-h is the banner's
 * height, kept current by the script in body_inner_pre.tmpl; this file only loads on org `github` repo pages. */
html { scroll-padding-top: calc(var(--gt-ro-h, 0px) + 8px); }
.repository .diff-detail-box { top: var(--gt-ro-h, 0px); }
.repository .ui.attached.header.diff-file-header.sticky-2nd-row { top: calc(44px + var(--gt-ro-h, 0px)); }
#diff-file-tree { top: calc(47px + var(--gt-ro-h, 0px)); }
