/*
 * Copyright (C) 2026 Jiaxing Hu <gahing@gahingwoo.com>
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License version 2 as published by the
 * Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, see <https://www.gnu.org/licenses/>.
 */
/* Site rules on top of PatternFly 6 (assets/patternfly/). PatternFly does the
   components; this file sets the few things a content site needs that a
   product console does not: document scrolling, lighter headings, key/value
   rows with hairlines, and print. Keep it short.

   Copied from mabc-ws, which adapts gahingwoo.com; the rail, the About dialog
   and its credit badge follow gahingwoo.com. */

/* Roxora's colours in place of PatternFly's blue and grey. Only palette
   steps that PatternFly's semantic tokens point at are replaced, so every
   component follows; status colours (warning, danger, success, info) stay
   PatternFly's. The colours come from the mark: #5FD4A8, #2E7A68, #1F4740
   and the near-black #12171A. Contrast as WCAG 2 computes it:

   Light theme
     page ground #EEF4F1 (mint grey), cards white; borders tinted to match.
     links and brand UI (radios, selected toggles, nav bar) #2E7A68:
       5.12:1 on white, 4.60:1 on the page ground; hover #1F5F50 7.47:1.
     primary buttons and step numbers: bright #5FD4A8 with #12171A text,
       9.86:1 (hover #7ADDB7 11.05:1, pressed #4FC79A 8.57:1).
   Dark theme
     page ground #12171A, cards #1C2527, hover #263133; borders tinted.
     links, brand UI, primary buttons #5FD4A8: 9.86:1 on the ground,
       8.54:1 on a card; button text #12171A 9.86:1; hover #8FE2C3. */
:root {
  --pf-t--global--color--brand--100: #3a957e;
  --pf-t--global--color--brand--200: #2e7a68;
  --pf-t--global--color--brand--300: #1f5f50;
  --pf-t--global--color--brand--400: #1f4740;
  --pf-t--global--color--brand--500: #163530;
  --pf-t--global--color--brand--subtle--100: #e3f4ee;
  --pf-t--global--color--brand--subtle--200: #c2e9da;
  --pf-t--global--color--brand--subtle--300: #3a957e;
  --pf-t--global--color--brand--subtle--400: #2e7a68;
  --pf-t--global--focus-ring--color--100: #2e7a68;
  --pf-t--global--focus-ring--color--200: #1f5f50;
  --pf-t--global--text--color--link--100: #2e7a68;
  --pf-t--global--text--color--link--200: #1f5f50;
  --pf-t--global--text--color--link--250: #1f4740;
  --pf-t--global--background--color--200: #eef4f1;
  --pf-t--global--background--color--300: #dce8e3;
  --pf-t--global--border--color--50: #d3e0db;
  --pf-t--global--border--color--100: #bccec7;
  --pf-t--global--border--color--200: #9db3ab;
  --pf-t--global--border--color--300: #85a098;
  --pf-t--global--border--color--400: #4d6660;

  --pf-t--global--dark--color--brand--100: #5fd4a8;
  --pf-t--global--dark--color--brand--200: #8fe2c3;
  --pf-t--global--dark--color--brand--300: #c4f0df;
  --pf-t--global--dark--color--brand--subtle--100: #1f4740;
  --pf-t--global--dark--color--brand--subtle--200: #2e7a68;
  --pf-t--global--dark--color--brand--subtle--300: #5fd4a8;
  --pf-t--global--dark--focus-ring--color--100: #5fd4a8;
  --pf-t--global--dark--text--color--link--100: #5fd4a8;
  --pf-t--global--dark--text--color--link--200: #8fe2c3;
  --pf-t--global--dark--background--color--100: #12171a;
  --pf-t--global--dark--background--color--200: #1c2527;
  --pf-t--global--dark--background--color--300: #263133;
  --pf-t--global--dark--border--color--50: #2e3b3a;
  --pf-t--global--dark--border--color--100: #3e504c;
  --pf-t--global--dark--border--color--200: #8fa39d;
  --pf-t--global--dark--border--color--300: #b9c8c3;

  /* The bright green, for what should catch the eye first. */
  --roxora-accent: #5fd4a8;
  --roxora-accent--hover: #7addb7;
  --roxora-accent--clicked: #4fc79a;
  --roxora-on-accent: #12171a;
}
:root.pf-v6-theme-dark {
  --roxora-accent--hover: #8fe2c3;
  --roxora-accent--clicked: #c4f0df;
}
/* Primary buttons take the bright green with near-black text in both
   themes, at every size. :root raises the rule above the button's own,
   which a bundler may place after this file. */
:root .pf-v6-c-button, :root .pf-v6-c-button.pf-m-display-lg {
  --pf-v6-c-button--m-primary--BackgroundColor: var(--roxora-accent);
  --pf-v6-c-button--m-primary--Color: var(--roxora-on-accent);
  --pf-v6-c-button--m-primary--hover--BackgroundColor: var(--roxora-accent--hover);
  --pf-v6-c-button--m-primary--hover--Color: var(--roxora-on-accent);
  --pf-v6-c-button--m-primary--m-clicked--BackgroundColor: var(--roxora-accent--clicked);
  --pf-v6-c-button--m-primary--m-clicked--Color: var(--roxora-on-accent);
}

/* Red Hat Display ships as a variable font covering 300..900, but PatternFly
   only declares 600..800. Declare the full range so headings can be light. */
@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 300 900;
  font-display: fallback;
  src: url("patternfly/assets/fonts/RedHatDisplay/RedHatDisplayVF.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 300 700;
  font-display: fallback;
  src: url("patternfly/assets/fonts/RedHatText/RedHatTextVF.woff2") format("woff2-variations");
}

/* The handful of utility and flex classes the markup uses, so the 184 KB
   addons file and the 80 KB flex layout stay out of the bundle. */
.pf-v6-u-text-color-subtle { color: var(--pf-t--global--text--color--subtle); }
.pf-v6-u-mt-xs { margin-block-start: var(--pf-t--global--spacer--xs); }
.pf-v6-u-mt-lg { margin-block-start: var(--pf-t--global--spacer--lg); }
.pf-v6-u-mb-lg { margin-block-end: var(--pf-t--global--spacer--lg); }
.pf-v6-u-mb-xl { margin-block-end: var(--pf-t--global--spacer--xl); }
/* Utilities the markup uses, so PatternFly's 184 KB addons file stays out.
   The flex layout itself is bundled, so there is no stub for it here. */
.pf-v6-u-font-weight-bold { font-weight: var(--pf-t--global--font--weight--body--bold); }
.pf-v6-u-font-size-lg { font-size: var(--pf-t--global--font--size--body--lg); }

/* PatternFly's own app shell, which is what Cockpit runs: the page is one
   viewport tall, the masthead and the sidebar stay put, and only the content
   area scrolls. Nothing to override; this file only keeps the document from
   scrolling behind it. */
html, body { height: 100%; overflow: hidden; }

/* ---- masthead: stacked identity on the left, quiet links on the right ---- */
.brand { display: block; text-decoration: none; line-height: 1.25; }
.brand .brand-name { display: block; font-weight: 600; color: var(--pf-t--global--text--color--regular); overflow-wrap: anywhere; }
.brand .brand-sub { display: block; font-size: var(--pf-t--global--font--size--body--sm); color: var(--pf-t--global--text--color--subtle); }
.brand:hover { text-decoration: none; }
/* This church has a lockup rather than a name set in type. Its wordmark is a
   warm brown that does not carry on the dark theme's ground, so a second file
   with a white wordmark is swapped in; the mark stays the same in both. */
/* The lockup is shorter than the row it sits in, so it centres rather than
   sitting against the top of it, and the link shrinks to the image instead of
   leaving a run of dead space to its right. */
/* The mark, then the name set in the site's own heading face. The supplied
   lockup puts the name in a warm brown that is the only brown anywhere here and
   sits badly next to the interface's blue; its mark is 96% of the lockup's
   height while the name is 58%, so at any size that fits the bar the name reads
   smaller than the navigation beside it. Setting the name as text fixes both,
   and drops the second image the dark theme needed. */
.brand { display: flex; align-items: center; gap: var(--pf-t--global--spacer--sm); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .brand-mark { height: 1.75rem; width: auto; }
.brand-name {
  font-family: var(--pf-t--global--font--family--heading);
  font-size: var(--pf-t--global--font--size--heading--sm);
  color: var(--pf-t--global--text--color--regular);
  white-space: nowrap;
}
.brand:hover .brand-name { color: var(--pf-t--global--text--color--link--hover); }
.foot-brand { margin-bottom: var(--pf-t--global--spacer--sm); }
.brand:hover .brand-name { color: var(--pf-t--global--text--color--link--hover); }
.pf-v6-c-masthead__content { display: flex; align-items: center; justify-content: flex-end; gap: var(--pf-t--global--spacer--md); flex-wrap: wrap; }
.pf-v6-c-masthead { position: relative; }
.theme-toggle .icon-sun { display: none; }
html.pf-v6-theme-dark .theme-toggle .icon-sun { display: inline-block; }
html.pf-v6-theme-dark .theme-toggle .icon-moon { display: none; }

/* Width, the Cockpit way: a sidebar of navigation on the left, and the
   content sheet takes the rest of the screen. Cards, tables and rows stretch
   with it; runs of prose stop at 789px, the Red Hat Design System's
   seven-column limit, inside PatternFly's 20 to 100 characters a line. */
.pf-v6-c-page { --pf-v6-c-page--section--m-limit-width--MaxWidth: none; }
.pf-v6-c-page__main-section.pf-m-limit-width > .pf-v6-c-page__main-body { width: 100%; }
/* Jumping to a section animates rather than teleports. Anchors are ordinary
   links, so this is the platform's own scrolling, switched off for readers
   who ask for less motion. */
.pf-v6-c-page__main { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .pf-v6-c-page__main { scroll-behavior: auto; } }

/* A page of records or of a CV is read, not scanned like a dashboard, so its
   column stops at 58rem. That leaves a card about 864px wide inside, which is
   the 789px measure for the paragraph plus room for the status at its right.
   The overview is a dashboard and fills the screen. */
.doc-page { --pf-v6-c-page--section--m-limit-width--MaxWidth: 76rem; }
/* The column sits in the middle of the sheet on a wide screen, rail or no
   rail, as mabc-ws's home page does. */
.doc-page .pf-v6-c-page__main-section.pf-m-limit-width > .pf-v6-c-page__main-body { margin-inline: auto; }

/* The first section sits 16px below the top of the sheet by default, which
   crowds the page title against the masthead. Give it room to breathe, and
   the same at the foot so the last card is not flush with the edge. */
.pf-v6-c-page__main > .pf-v6-c-page__main-section:first-child { --pf-v6-c-page__main-section--PaddingBlockStart: var(--pf-t--global--spacer--2xl); }
.pf-v6-c-page__main > .pf-v6-c-page__main-section:last-child { --pf-v6-c-page__main-section--PaddingBlockEnd: var(--pf-t--global--spacer--2xl); }
/* The rail is sticky inside that padding, so hold it clear of the top edge. */
@media (min-width: 75rem) { .page-rail { top: var(--pf-t--global--spacer--md); } }

/* The current-section marker is a border on each item, so it jumps from one
   to the next. Where the rail spies on a scroll container, one marker slides
   instead: the per-item border is switched off through the component's own
   variable and this bar takes its colour and width from the same tokens. */
.pf-v6-c-jump-links__list { position: relative; }
.rail-marker {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: var(--pf-t--global--border--width--extra-strong);
  height: 0;
  border-radius: var(--pf-t--global--border--radius--small);
  background: var(--pf-t--global--border--color--brand--default);
  opacity: 0;
  transition: transform var(--pf-t--global--motion--duration--sm, 0.2s) var(--pf-t--global--motion--timing-function--default, ease),
              height var(--pf-t--global--motion--duration--sm, 0.2s) var(--pf-t--global--motion--timing-function--default, ease),
              opacity var(--pf-t--global--motion--duration--sm, 0.2s) linear;
}
.rail-marker.is-on { opacity: 1; }
.has-rail-marker .pf-v6-c-jump-links__item.pf-m-current > .pf-v6-c-jump-links__link {
  --pf-v6-c-jump-links__item--m-current__link--before--BorderInlineStartWidth: 0;
}
@media (prefers-reduced-motion: reduce) { .rail-marker { transition: none; } }

/* Moving between the three pages is a cross-document view transition, a
   browser feature: where it is supported the content fades between pages and
   the masthead and sidebar, named here so the browser matches them across
   documents, stay where they are. Where it is not, the link is an ordinary
   navigation. */
@view-transition { navigation: auto; }
.pf-v6-c-masthead { view-transition-name: masthead; }
.pf-v6-c-page__sidebar { view-transition-name: sidebar; }
.pf-v6-c-page__main { view-transition-name: main; }

/* PatternFly grows the current item's bar in when the item changes. Here every
   item is its own page, so the change is a navigation: the sidebar is shown
   as the new page draws it rather than cross-faded from the old one, and the
   new page grows its bar in from nothing, with the component's own duration
   and easing, while the head script marks the arrival. */
::view-transition-old(sidebar) { display: none; }
::view-transition-new(sidebar) { animation: none; }
.nav-accent-enter .pf-v6-c-nav__item:has(> .pf-v6-c-nav__link.pf-m-current)::before {
  animation: nav-accent-in var(--pf-v6-c-nav__item--current--accent--TransitionDuration)
    var(--pf-v6-c-nav__item--accent--TransitionTimingFunction) both;
}
@keyframes nav-accent-in { from { scale: 1 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* The sidebar lies over the content below xl, so PatternFly's backdrop dims
   what is behind it. The component sits at the lg layer, above the sidebar's
   own sm layer, and the content container sits at xs, the same layer the
   backdrop would fall back to; it goes just under the sidebar instead, which
   puts it over the content and under the panel. It fades with the panel. */
.site-backdrop {
  --pf-v6-c-backdrop--ZIndex: calc(var(--pf-t--global--z-index--sm) - 1);
  opacity: 0;
  transition: opacity var(--pf-t--global--motion--duration--fade--default, 0.2s) var(--pf-t--global--motion--timing-function--decelerate, ease);
}
.site-backdrop.is-on { opacity: 1; }
/* A drag on the dimmed area does nothing rather than scrolling the page
   behind the panel. Taking the document out of the scroll entirely would
   strand the sticky masthead, which needs a scrollable document to stick to. */
.site-backdrop { touch-action: none; overscroll-behavior: contain; }
@media (min-width: 75rem) { .site-backdrop { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .site-backdrop { transition: none; } }

/* Dialogs (About this site) fade in and their box drifts up a little
   as it arrives; site.js holds [hidden] off until the fade out has run. */
.site-dialog {
  opacity: 0;
  transition: opacity var(--pf-t--global--motion--duration--fade--default, 0.2s) var(--pf-t--global--motion--timing-function--accelerate, ease-in);
}
.site-dialog.is-open {
  opacity: 1;
  transition-timing-function: var(--pf-t--global--motion--timing-function--decelerate, ease-out);
}
.site-dialog :is(.pf-v6-c-about-modal-box, .pf-v6-c-modal-box) {
  translate: 0 -0.75rem;
  transition: translate var(--pf-t--global--motion--duration--fade--default, 0.2s) var(--pf-t--global--motion--timing-function--decelerate, ease-out);
}
.site-dialog.is-open :is(.pf-v6-c-about-modal-box, .pf-v6-c-modal-box) { translate: 0 0; }

/* The hamburger morph runs at the icon default, which reads as a flick on a
   phone where the panel beside it takes a slide-in to arrive. Give it the
   slide's duration so the two finish together. */
@media (max-width: 74.99rem) {
  .pf-v6-c-button.pf-m-hamburger { --pf-v6-c-button--hamburger-icon--TransitionDuration: var(--pf-t--global--motion--duration--slide-in--default); }
}

/* Below xl the page scrolls as a document rather than inside the shell. The
   shell keeps the masthead and sidebar in place on a large screen, but on a
   phone it costs the browser's own gestures, pull to refresh among them,
   because those need the document itself to be the thing that scrolls. The
   masthead stays put by being sticky, which leaves those gestures alone. */
@media (max-width: 74.99rem) {
  html, body { height: auto; min-height: 100%; overflow: visible; }
  html { scroll-behavior: smooth; }
  .pf-v6-c-page { height: auto; min-height: 100dvh; }
  .pf-v6-c-page__main-container, .pf-v6-c-page__main { height: auto; max-height: none; overflow: visible; }
  .pf-v6-c-masthead { position: sticky; top: 0; z-index: var(--pf-t--global--z-index--md); }
  /* With the document scrolling, the panel would otherwise sit at the top of
     it and be gone once the reader has scrolled; it is pinned to the viewport
     under the masthead instead, which is where a drawer belongs. */
  .pf-v6-c-page__sidebar { position: fixed; inset-block-start: var(--masthead-h, 4.5rem); inset-block-end: 0; height: auto; }
}
@media (max-width: 74.99rem) and (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* A link that leaves the site says so before it is clicked. The glyph is
   PatternFly's external-link icon, drawn through a mask so it takes the
   link's own colour in either theme. It also serves as the warning that the
   accessibility guidance asks for wherever a link opens a new tab.
   On a nav link and on a button the glyph hangs off the label, never off the
   element itself: PatternFly draws the button's border with the button's own
   ::after, and the sidebar needs the marker pushed to the end of the row. Both
   exclusions live in this selector rather than in a later "content: none",
   because :where() keeps them from raising specificity and a rule that has to
   out-specify this one to switch the glyph off is a rule that will quietly
   stop working the next time this selector grows. */
a[href^="http"]:not(:where([href^="https://roxora-os.github.io"], .pf-v6-c-button, .pf-v6-c-nav__link))::after,
.pf-v6-c-nav__link[href^="http"]:not([href^="https://roxora-os.github.io"]) .pf-v6-c-nav__link-text::after,
a.pf-v6-c-button[href^="http"]:not([href^="https://roxora-os.github.io"]) .pf-v6-c-button__text::after {
  /* A word joiner as its content and inline rather than inline-block, so
     the glyph never wraps onto a line of its own away from the link's last
     word. The glyph is the mask, drawn at the end of the padding. */
  content: "\2060";
  display: inline;
  padding-inline-start: 1.02em;
  background-color: currentColor;
  opacity: 0.75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M30 21v7.5c0 .827-.673 1.5-1.5 1.5h-25c-.827 0-1.5-.673-1.5-1.5v-25C2 2.673 2.673 2 3.5 2H11a1 1 0 1 1 0 2H4v24h24v-7a1 1 0 1 1 2 0ZM28.5 2H18a1 1 0 1 0 0 2h8.586L13.293 17.293a.999.999 0 1 0 1.414 1.414L28 5.414V14a1 1 0 1 0 2 0V3.5c0-.827-.673-1.5-1.5-1.5Z'/%3E%3C/svg%3E") no-repeat right center / 0.72em 0.72em;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M30 21v7.5c0 .827-.673 1.5-1.5 1.5h-25c-.827 0-1.5-.673-1.5-1.5v-25C2 2.673 2.673 2 3.5 2H11a1 1 0 1 1 0 2H4v24h24v-7a1 1 0 1 1 2 0ZM28.5 2H18a1 1 0 1 0 0 2h8.586L13.293 17.293a.999.999 0 1 0 1.414 1.414L28 5.414V14a1 1 0 1 0 2 0V3.5c0-.827-.673-1.5-1.5-1.5Z'/%3E%3C/svg%3E") no-repeat right center / 0.72em 0.72em;
}
/* A mailto link leaves the page too, but for a compose window rather than a
   website, so it carries an envelope rather than the arrow: the same warning,
   the truthful symbol. */
a[href^="mailto:"]:not(:where(.pf-v6-c-nav__link))::after,
.pf-v6-c-nav__link[href^="mailto:"] .pf-v6-c-nav__link-text::after {
  /* A word joiner as its content and inline rather than inline-block, so
     the glyph never wraps onto a line of its own away from the link's last
     word. The glyph is the mask, drawn at the end of the padding. */
  content: "\2060";
  display: inline;
  padding-inline-start: 1.02em;
  background-color: currentColor;
  opacity: 0.75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M29.5 5h-27C1.673 5 1 5.673 1 6.5v19c0 .827.673 1.5 1.5 1.5h27c.827 0 1.5-.673 1.5-1.5v-19c0-.827-.673-1.5-1.5-1.5ZM3 8.238 10.762 16 3 23.762V8.238Zm16.382 7.143h-.001v.001l-3.38 3.38-3.38-3.38v-.001h-.001L4.238 7h23.524l-8.38 8.381ZM12 17.238l3.027 3.027c.26.26.605.403.973.403s.713-.143.973-.403L20 17.238 27.762 25H4.238L12 17.238ZM21.238 16 29 8.238v15.524L21.238 16Z'/%3E%3C/svg%3E") no-repeat right center / 0.72em 0.72em;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M29.5 5h-27C1.673 5 1 5.673 1 6.5v19c0 .827.673 1.5 1.5 1.5h27c.827 0 1.5-.673 1.5-1.5v-19c0-.827-.673-1.5-1.5-1.5ZM3 8.238 10.762 16 3 23.762V8.238Zm16.382 7.143h-.001v.001l-3.38 3.38-3.38-3.38v-.001h-.001L4.238 7h23.524l-8.38 8.381ZM12 17.238l3.027 3.027c.26.26.605.403.973.403s.713-.143.973-.403L20 17.238 27.762 25H4.238L12 17.238ZM21.238 16 29 8.238v15.524L21.238 16Z'/%3E%3C/svg%3E") no-repeat right center / 0.72em 0.72em;
}

/* In the sidebar the markers line up down the right edge rather than trailing
   labels of different lengths. The label takes the row and the marker is
   pushed to its end, which also keeps it on the same line: on the link itself
   it would become a row of its own above the label.
   Not on the masthead's own controls, nor in print, where the address is
   already spelled out and the glyph would be noise. */
.pf-v6-c-nav__link-text { display: flex; align-items: center; width: 100%; }
.pf-v6-c-nav__link-text::after { margin-inline-start: auto !important; }

/* Not on the masthead's own controls, nor in print, where the address is
   already spelled out and the glyph would be noise. Nor on the badge, which
   is an image: the marker had nowhere to sit beside it and dropped onto a
   line of its own underneath. */
.pf-v6-c-masthead a::after { content: none; }
@media print { a::after { content: none !important; } }

/* The masthead stays on one row at every width. PatternFly stacks it below xl,
   which on a phone spends a second row on a lone hamburger with the identity
   above it; patternfly.org keeps its own masthead to a single compact row and
   this follows it. One row needs about 400px for all four controls, so under
   PF's sm breakpoint the Give button steps aside; the sidebar carries Give in
   its own navigation, which is where a thumb is already going.

   Nothing here enlarges a tap target. That was tried and reverted: 56px rows
   at 16px are what Apple and Material ask for, but patternfly.org itself runs
   37px rows at 14px on a phone, and the enlarged version stopped looking like
   PatternFly. The design system's density is the design, so it is left alone. */
@media (max-width: 35.99rem) {
  .masthead-give { display: none; }
  /* With the search icon in the row too, four controls and the name come to
     13px more than a 375px screen holds. The page-chrome inset is the cheapest
     thing to give up. */
  .pf-v6-c-masthead { --pf-v6-c-masthead--PaddingInline: var(--pf-t--global--spacer--md); }
  /* Four controls plus the name need every pixel of a 375px row. The gaps
     around the identity each come down one step, which frees the 24px the
     utility end was short of, and it stops wrapping: PatternFly only holds it
     to one line from md, and by then there is room to spare anyway. */
  .pf-v6-c-masthead__main {
    margin-inline-end: var(--pf-t--global--spacer--sm);
    column-gap: var(--pf-t--global--spacer--sm);
  }
  .pf-v6-c-masthead__content {
    gap: var(--pf-t--global--spacer--sm);
    flex-wrap: nowrap;
  }
}

/* ---- search ----
   patternfly.org keeps a search in its masthead: an icon that expands into an
   input. Cockpit's sidebar box filters a list of nav options, which is a
   different job. The index is generated from the pages by
   tools/build_search.py and fetched the first time the box is used. */
.pf-v6-c-masthead__content { position: relative; min-width: 0; }
.site-search .pf-v6-c-text-input-group__text-input { min-width: 0; }
/* Collapsed, PatternFly hides the close button with max-width:0 and
   visibility:hidden but sets no overflow, so the button inside still sticks
   out of its zero-width item and widens the page. Harmless in a roomy
   masthead; here it was 10px of horizontal scroll on a phone. */
.site-search:not(.pf-m-expanded) .pf-v6-c-input-group__item.pf-m-search-action { overflow: hidden; }
/* PatternFly's input group is width:100% by design; collapsed, this one is a
   single icon, so it takes only its own width and sits beside the theme
   toggle instead of stretching across the row. */
.site-search { width: auto; flex: 0 0 auto; min-width: 0; }
/* The width cannot be a percentage now that the containing block is the slot
   the collapsed icon occupies; it is measured against the viewport instead. */
.site-search.pf-m-expanded { width: min(26rem, calc(100vw - 6rem)); }
@media (min-width: 48rem) {
  .pf-v6-c-masthead__content { flex-wrap: nowrap; }
  }

/* Collapsed, the search is one icon in the row. Expanded, it lifts out of the
   flex row and lies over the utility links instead of competing with them for
   space, so opening it can never reflow the masthead or crowd the brand. It
   hangs off the right edge of the slot it occupies while collapsed, so the
   button under the pointer does not move as the icon changes. */
.search-slot { position: relative; display: flex; flex: 0 0 auto; }
.site-search.pf-m-expanded {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 0;
  z-index: 2;
}
.site-search.pf-m-expanded .pf-v6-c-input-group__item.pf-m-search-input { --pf-v6-c-input-group__item--m-search-text-input--MaxWidth: 100%; }
.search-results {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + var(--pf-t--global--spacer--sm));
  z-index: var(--pf-t--global--z-index--md);
  width: min(30rem, calc(100vw - 2 * var(--pf-t--global--spacer--md)));
  max-height: min(70dvh, 34rem);
  overflow-y: auto;
  box-shadow: var(--pf-t--global--box-shadow--md);
}
/* Results are read, not scanned as labels, so they wrap; the snippet is held
   to two lines so one long entry cannot crowd out the rest. */
.search-results .pf-v6-c-menu__item-text { display: block; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.search-results .pf-v6-c-menu__item { align-items: start; }
.search-result-page { display: block; font-size: var(--pf-t--global--font--size--body--sm); color: var(--pf-t--global--text--color--subtle); }
.search-result-snippet { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--pf-t--global--font--size--body--sm); color: var(--pf-t--global--text--color--subtle); margin-block-start: 2px; }
/* Below md the field is nearly the width of the screen, so the results are
   not hung off its right edge: they span the viewport under the masthead,
   which is the only way they fit. */
@media (max-width: 47.99rem) {
  .search-results {
    position: fixed;
    inset-inline: var(--pf-t--global--spacer--md);
    top: calc(var(--masthead-h, 4.5rem) + var(--pf-t--global--spacer--xs));
    width: auto;
  }
}
.search-results mark { background: var(--pf-t--global--color--nonstatus--yellow--default, #f0ab00); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-empty { padding: var(--pf-t--global--spacer--md); font-size: var(--pf-t--global--font--size--body--sm); color: var(--pf-t--global--text--color--subtle); }
@media print { .site-search, .search-results { display: none !important; } }

/* ---- on this page ----
   The pattern patternfly.org uses for its own documentation: the site's
   navigation on the left, the sections of this page on the right. From xl the
   rail is a plain sticky list beside the content; below that the grid is one
   column and PatternFly's expandable variant turns the same list into a
   toggle above the content. */
.page-rail { margin-bottom: var(--pf-t--global--spacer--md); }
.page-rail .pf-v6-c-jump-links__label { font-family: var(--pf-t--global--font--family--heading); color: var(--pf-t--global--text--color--subtle); }
.page-rail .pf-v6-c-jump-links__toggle .pf-v6-c-button { padding-inline-start: 0; }

/* Each jump link is a Button, and a Button is built to centre its label and
   never wrap it. In a 15rem rail that is wrong twice over: the labels that
   fit sit flush left while the two that do not fit overflow the rail on both
   sides. Take the three button assumptions back. */
.page-rail .pf-v6-c-jump-links__link .pf-v6-c-button {
  --pf-v6-c-button--JustifyContent: flex-start;
  text-align: start;
  white-space: normal;
}
@media (max-width: 74.99rem) {
  .page-rail .pf-v6-c-jump-links:not(.pf-m-expanded) .pf-v6-c-jump-links__list { display: none; }
}
@media (min-width: 75rem) {
  .with-rail .pf-v6-c-page__main-body:has(> .page-rail) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15rem;
    column-gap: var(--pf-t--global--spacer--xl);
    align-items: start;
  }
  .page-content { grid-column: 1; grid-row: 1; min-width: 0; }
  .page-rail {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 0;
    margin-bottom: 0;
    max-height: calc(100dvh - var(--pf-t--global--spacer--3xl));
    overflow-y: auto;
  }
}
/* Prose stops at 789px, as on gahingwoo.com's evidence page; tables and
   code blocks in the same card take the card's full width. */
.card-text, .kv .pf-v6-c-description-list__description,
.pf-v6-c-card__body .pf-v6-c-content > :is(p, h3, h4, blockquote),
.pf-v6-c-card__body .pf-v6-c-content > :is(ul, ol):not(:has(.pf-v6-c-code-block)),
.pf-v6-c-card__body .pf-v6-c-content li > p { max-width: 789px; }

/* ---- page head: title, inline subtitle, one action ---- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--pf-t--global--spacer--md); flex-wrap: wrap; margin-bottom: var(--pf-t--global--spacer--xl); }
.page-title { font-family: var(--pf-t--global--font--family--heading); font-weight: 400; font-size: 1.75rem; line-height: 1.25; margin: 0; }
.page-title .subtitle { font-family: var(--pf-t--global--font--family--body); font-size: 1.125rem; font-weight: 400; color: var(--pf-t--global--text--color--subtle); margin-inline-start: var(--pf-t--global--spacer--md); }
/* A line under the title, such as when the page's data was read. */
.page-head:has(.page-note) { align-items: flex-start; }
.page-note { margin: var(--pf-t--global--spacer--xs) 0 0 0; font-size: var(--pf-t--global--font--size--body--default); color: var(--pf-t--global--text--color--subtle); }
@media (max-width: 640px) { .page-title .subtitle { display: block; margin-inline-start: 0; margin-top: 2px; } }

/* ---- cards ---- */
.pf-v6-l-gallery { --pf-v6-l-gallery--GridTemplateColumns--min: min(100%, 25rem); }
.pf-v6-c-card { --pf-v6-c-card--first-child--PaddingBlockStart: var(--pf-t--global--spacer--xl); --pf-v6-c-card--child--PaddingInlineStart: var(--pf-t--global--spacer--xl); --pf-v6-c-card--child--PaddingInlineEnd: var(--pf-t--global--spacer--xl); --pf-v6-c-card--last-child--PaddingBlockEnd: var(--pf-t--global--spacer--xl); }
.pf-v6-c-card__title-text { font-weight: 400; font-size: 1.375rem; line-height: 1.3; }
.pf-v6-c-card__body { font-size: 1rem; line-height: 1.5; }
.pf-v6-c-card__footer { font-size: 1rem; }
.card-text p { margin: 0 0 var(--pf-t--global--spacer--md) 0; }
.card-text p:last-child { margin-bottom: 0; }

/* Key/value rows with hairlines, as Cockpit lays out system information. */
.kv { --pf-v6-c-description-list--RowGap: 0; --pf-v6-c-description-list--m-horizontal__term--width: minmax(0, 11rem); }
.kv .pf-v6-c-description-list__group { padding-block: 0.625rem; border-bottom: 1px solid var(--pf-t--global--border--color--default); }
.kv .pf-v6-c-description-list__group:first-child { padding-top: 0; }
.kv .pf-v6-c-description-list__group:last-child { border-bottom: 0; padding-bottom: 0; }
.kv .pf-v6-c-description-list__term .pf-v6-c-description-list__text { font-weight: 400; overflow-wrap: normal; }
.kv .pf-v6-c-description-list__text { font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
/* The quiet second line under an entry: when it meets, who to ask. It belongs
   to the caption, not to whatever is holding it, so it is not scoped to the
   description lists it started in; an accordion panel needs it too. */
.meta { display: block; color: var(--pf-t--global--text--color--subtle); font-size: var(--pf-t--global--font--size--body--default); margin-top: 2px; }

/* ---- section heading on long pages ---- */
.section-title { font-family: var(--pf-t--global--font--family--heading); font-weight: 400; font-size: 1.375rem; margin: 0 0 var(--pf-t--global--spacer--md) 0; }
.section-title .count { color: var(--pf-t--global--text--color--subtle); font-size: 1rem; margin-inline-start: var(--pf-t--global--spacer--sm); }

/* ---- sidebar ----
   PatternFly's page sidebar: always open from xl, slid in by the hamburger
   below that. The section list of the current page lives here, as Cockpit
   keeps its System and Tools groups. */
.pf-v6-c-page__sidebar-body { padding-block-start: var(--pf-t--global--spacer--md); }
.pf-v6-c-nav__section-title { font-family: var(--pf-t--global--font--family--heading); }
@media print { .pf-v6-c-page__sidebar, .page-rail { display: none !important; } }


/* The space between one group of content and the next has its own token. The
   spacers guidance is explicit that a layout gap takes the semantic token
   rather than a global spacer. */
.section { margin-top: var(--pf-t--global--spacer--gap--group-to-group--vertical--default); }

/* ---- footer ----
   The link columns and the copyright row, as gahingwoo.com lays them out: a
   grid inside the footer's own page section on the secondary surface, and
   the copyright on a section of its own below it. */
.site-footer, .foot-legal {
  background: var(--pf-t--global--background--color--secondary--default);
  font-size: var(--pf-t--global--font--size--body--sm);
  color: var(--pf-t--global--text--color--subtle);
}
.site-footer { padding-block-start: var(--pf-t--global--spacer--2xl); }
.foot-legal { padding-block-start: 0; }
.foot-title {
  font-family: var(--pf-t--global--font--family--heading);
  font-weight: 500;
  color: var(--pf-t--global--text--color--regular);
  margin: 0 0 var(--pf-t--global--spacer--sm) 0;
}
.site-footer nav { display: flex; flex-direction: column; gap: var(--pf-t--global--spacer--xs); }
/* The footer does not colour its links, and a footer link is navigation
   rather than a citation, so it carries neither the link colour nor the
   leaves-the-site glyph that a reference in the content does. */
.site-footer a, .foot-legal a { color: inherit; }
.site-footer a::after, .foot-legal a::after { content: none !important; }
.foot-about { margin: var(--pf-t--global--spacer--sm) 0 var(--pf-t--global--spacer--md) 0; }
/* The address runs at the same line height as the line above it. */
.site-footer address { font-style: normal; }
.foot-legal .pf-v6-c-page__main-body {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--pf-t--global--spacer--xs) var(--pf-t--global--spacer--lg);
  padding-block-start: var(--pf-t--global--spacer--md);
}
/* The rule belongs to the columns of links, not to the identity block on
   the right, so from lg it stops a quarter of a gutter before the fourth
   column, as on gahingwoo.com. Below lg it spans the width. */
.foot-legal .pf-v6-c-page__main-body::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  border-block-start: 1px solid var(--pf-t--global--border--color--default);
}
@media (min-width: 62rem) {
  .foot-legal .pf-v6-c-page__main-body::before {
    inline-size: calc(75% - 0.25 * var(--pf-t--global--spacer--md));
  }
}

/* The content panel runs the full height of the window and the footer sits
   at its foot, however short the page. PatternFly starts the panel at the
   top and lets it end where its content ends (align-self: start), which on
   a short page left the footer floating halfway up with bare page below. */
.pf-v6-c-page {
  --pf-v6-c-page__main-container--AlignSelf: stretch;
  /* The sheet is the first section rather than the panel behind it, so it
     can end in rounded corners above the footer. */
  --pf-v6-c-page__main-container--BackgroundColor: transparent;
}
.pf-v6-c-page__main-container > .pf-v6-c-page__main { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.pf-v6-c-page__main > .pf-v6-c-page__main-section { flex-shrink: 0; }
.pf-v6-c-page__main > .pf-v6-c-page__main-section:first-child {
  flex-grow: 1;
  /* The sheet ends with the panel's own rounded corners, and the footer
     lies on the page ground below it. */
  border-end-start-radius: var(--pf-v6-c-page__main-container--BorderRadius);
  border-end-end-radius: var(--pf-v6-c-page__main-container--BorderRadius);
}
/* The panel's 4px border is drawn in the primary surface colour, so around
   the footer's secondary surface it showed as a frame, plainly so in the
   dark theme. Without it the footer is the page ground from edge to edge. */
.pf-v6-c-page {
  --pf-v6-c-page__main-container--BorderBlockStartWidth: 0px;
  --pf-v6-c-page__main-container--BorderBlockEndWidth: 0px;
  --pf-v6-c-page__main-container--BorderInlineStartWidth: 0px;
  --pf-v6-c-page__main-container--BorderInlineEndWidth: 0px;
}

/* Back to top: PatternFly positions this inside a scrolling container; the
   page scrolls as a document, so it is fixed to the viewport instead, at the
   normal button size rather than the component's compact one. */
.pf-v6-c-back-to-top {
  position: fixed;
  inset-inline-end: var(--pf-t--global--spacer--lg);
  inset-block-end: var(--pf-t--global--spacer--xl);
  /* The page's main container sits at z-index xs; the button must be above it. */
  z-index: var(--pf-t--global--z-index--lg);
  --pf-v6-c-back-to-top--c-button--FontSize: var(--pf-t--global--font--size--body--default);
  --pf-v6-c-back-to-top--c-button--PaddingBlockStart: var(--pf-t--global--spacer--sm);
  --pf-v6-c-back-to-top--c-button--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
  --pf-v6-c-back-to-top--c-button--PaddingInlineStart: var(--pf-t--global--spacer--md);
  --pf-v6-c-back-to-top--c-button--PaddingInlineEnd: var(--pf-t--global--spacer--md);
  --pf-v6-c-back-to-top--c-button--BoxShadow: var(--pf-t--global--box-shadow--md);
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media print {
  /* The app shell is one viewport tall with its own scroller; printing needs
     the whole document to flow, so undo the shell here. */
  html, body { background: #fff !important; height: auto !important; overflow: visible !important; }
  .pf-v6-c-masthead, .theme-toggle, .no-print, .pf-v6-c-back-to-top, .pf-v6-c-skip-to-content { display: none !important; }
  .pf-v6-c-page, .pf-v6-c-page__main-container, .pf-v6-c-page__main { display: block; height: auto; min-height: 0; background: #fff; }
  .pf-v6-c-page__main-section { background: #fff; padding: 0; border-radius: 0; }
}

/* An email address has no break opportunity inside it, so one long enough
   makes the whole page wider than a narrow phone rather than wrapping. Let
   links break mid-word as a last resort; ordinary link text still breaks at
   its spaces first, so this only shows up where it is needed. */
.pf-v6-c-card__body a, .pf-v6-c-card__footer a, .site-footer a,
.pf-v6-c-about-modal-box a { overflow-wrap: anywhere; }

/* A button that has to sit in a run of links and read as one of them. */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.2em;
}
.link-button:hover { text-decoration-style: solid; }

/* ---- about this site ----
   PatternFly's about modal box, which is the component this exact content is
   for: a product's name, a list of facts about it, and a closing line. */
.about-backdrop .pf-v6-c-about-modal-box {
  /* The artwork PatternFly leaves the right-hand column for, shipped in the
     package. It is grey at low opacity rather than a fixed colour, so one file
     serves both themes. */
  --pf-v6-c-about-modal-box--BackgroundImage: url("/assets/patternfly/assets/images/pf-background.svg");
  --pf-v6-c-about-modal-box--BackgroundPosition: bottom right;
  /* The component fixes the box at 47.625rem tall from lg, sized for a
     product's about box. This one takes the height its rows ask for, and the
     viewport caps it. */
  --pf-v6-c-about-modal-box--Height: auto;
  --pf-v6-c-about-modal-box--lg--Height: auto;
  border-radius: var(--pf-t--global--border--radius--large);
  width: min(64rem, calc(100vw - 2 * var(--pf-t--global--spacer--lg)));
  max-height: calc(100dvh - 2 * var(--pf-t--global--spacer--lg));
  overflow: auto;
}
/* The brand slot carries the wordmark rather than a logo. One element, and the
   stylesheet picks which of the two files it draws: a hidden <img> is fetched
   anyway, so a pair of them would cost every visitor both downloads to show
   one. */
.credit-badge { display: block; width: 11.25rem; height: auto; }
.credit-badge__mark { fill: #9472db; }
.credit-badge__label,
.credit-badge__name { font-family: var(--pf-t--global--font--family--mono); }
.credit-badge__label { font-size: 20px; font-weight: 500; letter-spacing: 0.5px; fill: var(--pf-t--global--text--color--subtle); }
.credit-badge__name { font-size: 38px; font-weight: 800; letter-spacing: -0.5px; fill: var(--pf-t--global--text--color--regular); }
/* On a near-black surface the badge's own purple and its near-white wordmark
   both glow. The mark takes a dimmer purple and the wordmark drops to the
   subtle text colour, so a credit line reads as a credit line rather than as
   the brightest thing in the dialog. */
html.pf-v6-theme-dark .credit-badge__mark { fill: #8b73c9; }
html.pf-v6-theme-dark .credit-badge__name { fill: var(--pf-t--global--text--color--subtle); }
html.pf-v6-theme-dark .credit-badge__label { fill: var(--pf-t--global--text--color--subtle); opacity: 0.7; }
/* Every group in this component is its own grid, so a term column given a
   minmax() is resolved per row: the row holding a long URL squeezes its own
   term column and that row's value starts further along than the rest. A fixed
   width lines them all up, and the value wraps instead. */
.about-backdrop .pf-v6-c-description-list {
  --pf-v6-c-description-list--m-horizontal__term--width: 10rem;
  --pf-v6-c-description-list--RowGap: var(--pf-t--global--spacer--md);
}
.about-backdrop .pf-v6-c-description-list__description a { overflow-wrap: anywhere; }

/* ---- Roxora ----
   What this site adds to the shell above: the wordmark and the pages
   generated from the build repository. */

/* The wordmark, as roxora-os/design sets it: "roxora" in lower case, Space
   Grotesk Bold (SIL Open Font License, assets/fonts/SpaceGrotesk-OFL.txt).
   Only the Latin bold is shipped; it is used for these six letters alone. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}
.brand-name.wordmark { font-family: "Space Grotesk", var(--pf-t--global--font--family--heading); font-weight: 700; font-size: 1.375rem; line-height: 1; }

/* Card text runs at the card body's 1rem, the size the key/value rows use,
   rather than Content's own smaller default. */
.pf-v6-c-card__body .pf-v6-c-content { --pf-v6-c-content--FontSize: 1rem; }

/* A checksum is one unbroken run of 64 characters; it breaks anywhere rather
   than widening a phone screen. Inline code takes PatternFly's mono face. */
code:not(.pf-v6-c-code-block__code) { font-family: var(--pf-t--global--font--family--mono); font-size: 0.875em; }
.hash { overflow-wrap: anywhere; word-break: break-all; }
.pf-v6-c-content code { overflow-wrap: anywhere; }
/* A code block never wraps a command in the middle: a long line scrolls
   sideways inside the block instead. */
.pf-v6-c-code-block {
  margin-block: var(--pf-t--global--spacer--md);
  /* PatternFly sets code blocks in its xs size, 12px, two steps under the
     14px of inline code beside them; both take the body size here. */
  --pf-v6-c-code-block__pre--FontSize: var(--pf-t--global--font--size--body--default);
}
/* Commands wrap instead of scrolling, so a long one (the install script's
   URL, a sha256sum line) is never cut off at the card's edge. */
.pf-v6-c-code-block__pre { overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-v6-c-code-block__code { white-space: pre-wrap; overflow-wrap: anywhere; }

.pf-v6-c-card .pf-v6-c-table { --pf-v6-c-table--BackgroundColor: transparent; }
/* The table's own cell padding steps in from the card's edge; the first and
   last columns line up with the card's text instead. Stacked below md, each
   row is inset by the page-chrome spacer, which inside a card pushes the
   values 24px in from the heading above them; the card already insets them. */
.pf-v6-c-card .pf-v6-c-table {
  --pf-v6-c-table--cell--first-last-child--PaddingInline: 0;
  --pf-v6-c-table__tr--responsive--PaddingInlineStart: 0px;
  --pf-v6-c-table__tr--responsive--PaddingInlineEnd: 0px;
}
@media (min-width: 48rem) {
  /* One table per vendor, and several per section in the docs; fixed layout
     with set widths on the short columns keeps the columns of tables in one
     card lined up. */
  .boards-table, .doc-table { table-layout: fixed; }
  /* PatternFly truncates header cells to a 1px maximum and lets the table
     size them; here the header row sets the column widths. */
  .doc-table .pf-v6-c-table__th { --pf-v6-c-table--cell--MaxWidth: none; --pf-v6-c-table--cell--MinWidth: 0; }
  .doc-table .doc-col-s { width: 7rem; }
  .doc-table .doc-col-m { width: 11rem; }
}
/* A board maker's name sits a step above its table rather than on its rule. */
.boards-table { margin-block-start: var(--pf-t--global--spacer--sm); }
/* A table in a document keeps apart from the text as a paragraph does; a
   code block that ends a list item adds no space of its own under it. */
.pf-v6-c-content > .doc-table { margin-block: var(--pf-t--global--spacer--md); }
.pf-v6-c-content li > .pf-v6-c-code-block:last-child { margin-block-end: 0; }
/* Subheadings inside a card (a board maker, Phase 1) at the regular weight
   the card and page titles use, as on gahingwoo.com. */
.pf-v6-c-card__body .pf-v6-c-content :is(h3, h4) { font-weight: 400; }
/* Names that read as one thing (roxora-os/build, CM5-IO) stay on one line. */
.nowrap { white-space: nowrap; }

/* The page grid sizes its column to the content's widest unbreakable run;
   a wide docs table pushed a phone page to 597px although its wrapper
   scrolls. The shell's flex items may shrink below their content instead. */
.pf-v6-c-page__main-container, .pf-v6-c-page__main, .pf-v6-c-page__main-section,
.page-content, .pf-v6-c-page__main-body { min-width: 0; }
.page-title { min-width: 0; overflow-wrap: anywhere; }
/* Roxora Imager's packages for one platform, one under the other. */
.pkg-list { display: flex; flex-direction: column; gap: var(--pf-t--global--spacer--sm); }

/* ---- choose step by step ----
   The pages below follow Roxora Imager: ask for one thing at a time and
   show one answer, with the rest folded away. Everything is laid out for a
   phone first; the wider layouts are added from md. */

/* What needs JavaScript is not shown without it, and the other way round.
   The script in each page's head sets the class before the first paint. */
html:not(.js) .js-only { display: none !important; }
html.js .nojs-only { display: none !important; }
/* PatternFly's components set their own display, which would show an
   element that carries the hidden attribute. */
[hidden] { display: none !important; }
/* A card that is hidden takes the space around it along. */
.section:has(> .pf-v6-c-card[hidden]), html:not(.js) .section.js-only { display: none; }

/* On a phone a card's 32px insets cost a sixth of the screen. */
@media (max-width: 35.99rem) {
  .pf-v6-c-card {
    --pf-v6-c-card--first-child--PaddingBlockStart: var(--pf-t--global--spacer--lg);
    --pf-v6-c-card--child--PaddingInlineStart: var(--pf-t--global--spacer--md);
    --pf-v6-c-card--child--PaddingInlineEnd: var(--pf-t--global--spacer--md);
    --pf-v6-c-card--last-child--PaddingBlockEnd: var(--pf-t--global--spacer--lg);
  }
  .pf-v6-c-page__main > .pf-v6-c-page__main-section:first-child { --pf-v6-c-page__main-section--PaddingBlockStart: var(--pf-t--global--spacer--lg); }
  .page-head { margin-bottom: var(--pf-t--global--spacer--lg); }
}

/* Room between the last card and the end of the sheet. */
.page-content { padding-block-end: var(--pf-t--global--spacer--lg); }

/* A line of introduction under the page title or at the top of a card. */
.page-lead { max-width: 789px; margin: 0 0 var(--pf-t--global--spacer--md) 0; }

/* A label sits on the text's line, not on its baseline. */
.pf-v6-c-label { vertical-align: middle; }
.meta .pf-v6-c-label + .pf-v6-c-label { margin-inline-start: var(--pf-t--global--spacer--xs); }

/* Folded sections: the browser's own details element, drawn as
   PatternFly's expandable section, in rows divided by hairlines. */
.fold { border-block-end: 1px solid var(--pf-t--global--border--color--default); }
.folds > .fold:first-child { border-block-start: 1px solid var(--pf-t--global--border--color--default); }
.folds > .fold:last-child { border-block-end: 0; }
.pf-v6-c-content + .fold { margin-block-start: var(--pf-t--global--spacer--md); border-block-start: 1px solid var(--pf-t--global--border--color--default); border-block-end: 0; }
.fold__toggle {
  display: flex;
  align-items: center;
  gap: var(--pf-t--global--spacer--md);
  min-height: 3rem;
  padding-block: var(--pf-t--global--spacer--sm);
  cursor: pointer;
  list-style: none;
}
.fold__toggle::-webkit-details-marker { display: none; }
.fold__toggle:hover .fold__icon { color: var(--pf-t--global--text--color--regular); }
.fold__icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--pf-t--global--icon--color--subtle, var(--pf-t--global--text--color--subtle));
  rotate: -90deg;
  transition: rotate var(--pf-t--global--motion--duration--sm, 0.2s) var(--pf-t--global--motion--timing-function--default, ease);
}
.fold[open] > .fold__toggle .fold__icon { rotate: 0deg; }
.fold__text { flex: 1 1 auto; min-width: 0; }
.fold__meta { display: block; color: var(--pf-t--global--text--color--subtle); }
@media (min-width: 36rem) { .fold__meta { display: inline; margin-inline-start: var(--pf-t--global--spacer--md); } }
.fold__body { padding-block: var(--pf-t--global--spacer--xs) var(--pf-t--global--spacer--lg); }
.fold:last-child > .fold__body { padding-block-end: 0; }
.folds + .pf-v6-c-content { margin-block-start: var(--pf-t--global--spacer--lg); }
@media (min-width: 48rem) {
  /* The body lines up with the heading's text, past the caret. */
  .fold__body { padding-inline-start: calc(1em + var(--pf-t--global--spacer--md)); }
}

/* A code block with a Copy button in its corner. */
.copy-block { position: relative; }
.copy-block > .pf-v6-c-button { position: absolute; inset-block-start: var(--pf-t--global--spacer--sm); inset-inline-end: var(--pf-t--global--spacer--sm); }
html.js .copy-block .pf-v6-c-code-block__pre { padding-inline-end: 5rem; }
.copied-note { margin-inline-start: var(--pf-t--global--spacer--sm); font-size: var(--pf-t--global--font--size--body--sm); color: var(--pf-t--global--text--color--subtle); }
.copy-block .copied-note { position: absolute; inset-block-start: calc(var(--pf-t--global--spacer--sm) + 2.25rem); inset-inline-end: var(--pf-t--global--spacer--sm); }
/* A checksum with its copy button: the 64 characters wrap. */
.pf-v6-c-clipboard-copy.pf-m-inline { white-space: normal; padding-inline: 0; background: none; }
.pf-v6-c-clipboard-copy.pf-m-inline .pf-v6-c-clipboard-copy__text { overflow-wrap: anywhere; word-break: break-all; font-size: 0.875em; }

/* ---- Download: the chooser ---- */
.chooser { counter-reset: step; }
.chooser > .section:first-child { margin-top: 0; }
/* The step's number, as the wizard of the imager draws it. A step that is
   not shown is not counted. */
.chooser-step .pf-v6-c-card__title-text::before, .home-step .pf-v6-c-card__title-text::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  margin-inline-end: var(--pf-t--global--spacer--md);
  border-radius: 50%;
  background: var(--roxora-accent);
  color: var(--roxora-on-accent);
  font-family: var(--pf-t--global--font--family--body);
  font-size: var(--pf-t--global--font--size--body--sm);
  font-weight: 500;
  vertical-align: 0.15em;
}
.chooser-step .pf-v6-c-card__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pf-t--global--spacer--xs) var(--pf-t--global--spacer--md); }
.chooser-step .pf-v6-c-card__title-text { display: flex; align-items: center; }
.step-lead { margin: 0 0 var(--pf-t--global--spacer--md) 0; color: var(--pf-t--global--text--color--subtle); }
/* Once the board is chosen its step is one line: the board, and Change.
   On a phone the board's name goes under the heading. */
.step-summary, .step-change { display: none; }
.is-collapsed > .pf-v6-c-card__title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-block-end: var(--pf-v6-c-card--first-child--PaddingBlockStart); }
.is-collapsed .step-summary { display: block; grid-column: 1 / -1; grid-row: 2; min-width: 0; padding-inline-start: calc(1.75rem + var(--pf-t--global--spacer--md)); color: var(--pf-t--global--text--color--subtle); }
.is-collapsed .step-change { display: inline-flex; grid-column: 2; grid-row: 1; }
.is-collapsed > .pf-v6-c-card__body { display: none; }
@media (min-width: 36rem) {
  .is-collapsed > .pf-v6-c-card__title { grid-template-columns: auto minmax(0, 1fr) auto; }
  .is-collapsed .step-summary { grid-column: 2; grid-row: 1; padding-inline-start: 0; }
  .is-collapsed .step-change { grid-column: 3; }
}

.board-search { max-width: 36rem; margin-block-end: var(--pf-t--global--spacer--md); }
.board-search .pf-v6-c-text-input-group__text-input { min-height: 2.75rem; }
.board-pick { display: grid; gap: var(--pf-t--global--spacer--md); }
.vendor-select select { min-height: 2.75rem; }
.vendor-list { display: none; }
.vendor-list .pf-v6-c-simple-list__item-link { display: flex; justify-content: space-between; gap: var(--pf-t--global--spacer--md); cursor: pointer; }
.vendor-count { color: var(--pf-t--global--text--color--subtle); font-variant-numeric: tabular-nums; }
.board-table-wrap { min-width: 0; }
/* Without JavaScript there is nothing to filter with: the list takes the
   whole width. */
html:not(.js) .board-pick { display: block; }
.board-filter .fold[hidden] { display: none; }
.board-table .pf-m-clickable { cursor: pointer; }
.board-table .pf-v6-c-table__check { width: 2.5rem; }
.board-table .board-name { width: 42%; font-weight: 500; }
.board-table .board-soc { font-weight: 400; }
.board-table :is(td, th) { vertical-align: top; }
.board-table .meta { margin-top: var(--pf-t--global--spacer--xs); }
/* The SoC has a column of its own where there is room for one. */
.board-table .board-soc-col { display: none; }
@media (min-width: 36rem) {
  .board-table .board-soc-col { display: table-cell; }
  .board-name .board-soc { display: none; }
}
@media (min-width: 48rem) {
  .board-pick { grid-template-columns: 13rem minmax(0, 1fr); gap: var(--pf-t--global--spacer--lg); align-items: start; }
  .vendor-select { display: none; }
  .vendor-list { display: block; padding-inline-end: var(--pf-t--global--spacer--md); border-inline-end: 1px solid var(--pf-t--global--border--color--default); }
}

/* Step 2: one row per choice, its name beside the buttons from sm. */
.choice { display: grid; gap: var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--md); padding-block: var(--pf-t--global--spacer--sm); }
.choice__label { font-weight: 500; }
.choice .pf-v6-c-toggle-group { flex-wrap: wrap; row-gap: var(--pf-t--global--spacer--xs); }
.choice .pf-v6-c-toggle-group__button { min-height: 2.75rem; align-items: center; }
.choice .meta { margin-top: var(--pf-t--global--spacer--sm); max-width: 789px; }
@media (max-width: 35.99rem) {
  /* Three buttons side by side on a phone: tighter insets, not a second row. */
  .choice .pf-v6-c-toggle-group { --pf-v6-c-toggle-group__button--PaddingInlineStart: var(--pf-t--global--spacer--sm); --pf-v6-c-toggle-group__button--PaddingInlineEnd: var(--pf-t--global--spacer--sm); }
}
@media (min-width: 36rem) {
  .choice { grid-template-columns: 6rem minmax(0, 1fr); align-items: start; }
  .choice__label { padding-block-start: 0.625rem; }
}
@media (min-width: 48rem) {
  .choice .pf-v6-c-toggle-group__button { min-height: 2.25rem; }
  .choice__label { padding-block-start: 0.375rem; }
}

/* Step 3: the file. */
.result-name { margin: 0; font-family: var(--pf-t--global--font--family--heading); font-size: 1.25rem; line-height: 1.3; }
.result-sub { margin: var(--pf-t--global--spacer--xs) 0 0 0; }
.result-labels { display: inline-flex; flex-wrap: wrap; gap: var(--pf-t--global--spacer--xs); margin-inline-start: var(--pf-t--global--spacer--xs); vertical-align: middle; }
.result > .meta { max-width: 789px; margin-block-start: var(--pf-t--global--spacer--xs); }
.result .pf-v6-c-alert { margin-block-start: var(--pf-t--global--spacer--md); }
.result .pf-v6-c-alert p + p { margin-block-start: var(--pf-t--global--spacer--sm); }
.hash-line { font-size: var(--pf-t--global--font--size--body--sm); }
.result-action { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--md); margin-block: var(--pf-t--global--spacer--lg); }
.result-size { color: var(--pf-t--global--text--color--subtle); }
/* An image in parts: the parts to download and the command that joins them. */
.result-parts { max-width: 789px; margin-block-end: var(--pf-t--global--spacer--lg); }
.result-parts > p { margin-block: var(--pf-t--global--spacer--sm); }
.parts-list { margin: 0; padding-inline-start: var(--pf-t--global--spacer--lg); }
.parts-list li + li { margin-block-start: var(--pf-t--global--spacer--sm); }
/* A link to the file itself starts a download and leaves no page, so it
   does not carry the glyph of a link that goes elsewhere. */
a.download-link:not(.pf-v6-c-button)::after, a.download-link .pf-v6-c-button__text::after { content: none !important; }
@media (max-width: 35.99rem) {
  .result-action .pf-v6-c-button { width: 100%; justify-content: center; }
}

/* Every file of a release. From md the columns are fixed, so a file name
   or a checksum wraps inside its own. */
.files-about { margin: 0 0 var(--pf-t--global--spacer--md) 0; }
@media (min-width: 62rem) {
  .files-table { table-layout: fixed; }
  .files-table th:nth-child(1) { width: 26%; }
  .files-table th:nth-child(3) { width: 6.5rem; }
  .files-table td:nth-child(3) { white-space: nowrap; }
}
/* Stacked, a label keeps its own width in the value's column. */
.pf-v6-c-table td > .pf-v6-c-label { justify-self: start; }
/* Without JavaScript the list of files is the page, so it comes first. */
.after-chooser { display: flex; flex-direction: column; }
html:not(.js) .after-chooser > .files-section { order: -1; }
.files-table .pf-v6-c-table__th { --pf-v6-c-table--cell--MaxWidth: none; --pf-v6-c-table--cell--MinWidth: 0; }
.files-table .meta.hash { font-family: var(--pf-t--global--font--family--mono); font-size: var(--pf-t--global--font--size--body--sm); }
/* A row the address names (an old link to one image) is marked. */
.files-table tr:target { background: var(--pf-t--global--background--color--primary--hover); }

/* ---- Home: a landing page ----
   No sidebar on a wide screen and no page head: a Hero (PatternFly's
   component for home and product landing pages), then one page section per
   part, all in the same 76rem column as the other pages' content. */
.landing { --pf-v6-c-page--section--m-limit-width--MaxWidth: 76rem; }
.landing .pf-v6-c-page__main-section.pf-m-limit-width > .pf-v6-c-page__main-body { margin-inline: auto; }
/* The footer keeps to the same column, so on a wide screen its edges line
   up with the content's rather than with the window's. */
.landing > :is(.site-footer, .foot-legal) > .pf-v6-c-page__main-body { box-sizing: border-box; width: 100%; max-width: 76rem; margin-inline: auto; }
.landing > .pf-v6-c-page__main-section.landing-sheet { --pf-v6-c-page__main-section--PaddingBlockStart: var(--pf-t--global--spacer--xl); --pf-v6-c-page__main-section--PaddingBlockEnd: var(--pf-t--global--spacer--3xl); }
.landing-part + .landing-part { margin-block-start: var(--pf-t--global--spacer--2xl); }
.landing-part--hero + .landing-part { margin-block-start: var(--pf-t--global--spacer--lg); }

/* The Hero is a band of the mark's greens, deep green into the near-black,
   in both themes, with the large mark of the Facet wallpaper at the right
   as the Hero guidelines place it (dropped on a phone, where the text
   needs the whole width). Inside it the text is light and the links and
   outlines are the bright green, so the band reads the same in either
   theme. Contrast on #1F4740, its lightest point: text white 10.33:1,
   subtle text #C4D3CE 6.67:1, links #5FD4A8 5.64:1. */
.landing-hero {
  --pf-v6-c-hero--BackgroundColor: #12171a;
  --pf-v6-c-hero--gradient--stop-1--light: #1f4740;
  --pf-v6-c-hero--gradient--stop-2--light: #173530;
  --pf-v6-c-hero--gradient--stop-3--light: #12171a;
  --pf-v6-c-hero--gradient--stop-1--dark: #1f4740;
  --pf-v6-c-hero--gradient--stop-2--dark: #173530;
  --pf-v6-c-hero--gradient--stop-3--dark: #12171a;
  --pf-v6-c-hero--BackgroundImage--light: url("/assets/brand/hero-facet.svg");
  --pf-v6-c-hero--BackgroundImage--dark: url("/assets/brand/hero-facet.svg");
  --pf-v6-c-hero--BorderColor: #1f4740;
  --pf-v6-c-hero--PaddingInlineStart: var(--pf-t--global--spacer--lg);
  --pf-v6-c-hero--PaddingInlineEnd: var(--pf-t--global--spacer--lg);
  --pf-v6-c-hero--PaddingBlockStart: var(--pf-t--global--spacer--xl);
  --pf-v6-c-hero--PaddingBlockEnd: var(--pf-t--global--spacer--xl);
  --pf-v6-c-hero--BorderStartEndRadius: var(--pf-t--global--border--radius--large);
  --pf-v6-c-hero--BorderEndStartRadius: var(--pf-t--global--border--radius--large);
  --pf-v6-c-hero__body--MaxWidth: 100%;
  --pf-t--global--text--color--regular: #ffffff;
  --pf-t--global--text--color--subtle: #c4d3ce;
  --pf-t--global--text--color--link--default: #5fd4a8;
  --pf-t--global--text--color--link--hover: #8fe2c3;
  --pf-t--global--focus-ring--color--default: #5fd4a8;
  color: var(--pf-t--global--text--color--regular);
}
.landing-hero .pf-v6-c-button, .landing-hero .pf-v6-c-button.pf-m-display-lg {
  --pf-v6-c-button--m-secondary--Color: #5fd4a8;
  --pf-v6-c-button--m-secondary--BorderColor: #5fd4a8;
  --pf-v6-c-button--m-secondary--hover--Color: #8fe2c3;
  --pf-v6-c-button--m-secondary--hover--BorderColor: #8fe2c3;
  --pf-v6-c-button--m-secondary--m-clicked--Color: #c4f0df;
  --pf-v6-c-button--m-secondary--m-clicked--BorderColor: #c4f0df;
}
@media (max-width: 47.99rem) {
  .landing-hero { --pf-v6-c-hero--BackgroundImage--light: none; --pf-v6-c-hero--BackgroundImage--dark: none; }
}
@media (min-width: 48rem) {
  .landing-hero {
    --pf-v6-c-hero--PaddingInlineStart: var(--pf-t--global--spacer--3xl);
    --pf-v6-c-hero--PaddingInlineEnd: var(--pf-t--global--spacer--3xl);
    --pf-v6-c-hero--PaddingBlockStart: var(--pf-t--global--spacer--3xl);
    --pf-v6-c-hero--PaddingBlockEnd: var(--pf-t--global--spacer--3xl);
    --pf-v6-c-hero--BorderStartEndRadius: 48px;
    --pf-v6-c-hero--BorderEndStartRadius: 48px;
    --pf-v6-c-hero__body--MaxWidth: 70%;
  }
}
.landing-hero__title { margin: 0; font-weight: 400; }
/* Measurements from the Hero guidelines: 16px from the headline to the
   text, 32px to the actions, 16px between the actions. */
.landing-hero__text { margin: var(--pf-t--global--spacer--md) 0 0 0; max-width: 40rem; font-size: var(--pf-t--global--font--size--body--lg); line-height: 1.6; }
.landing-hero__actions { display: flex; flex-wrap: wrap; gap: var(--pf-t--global--spacer--md); margin-block-start: var(--pf-t--global--spacer--xl); }
@media (max-width: 35.99rem) {
  .landing-hero__actions .pf-v6-c-button { width: 100%; justify-content: center; }
}

/* A section's name, with the link to the page that has the rest at the
   other end of the row. */
.landing-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--lg); margin-block-end: var(--pf-t--global--spacer--lg); }
.landing-head .pf-v6-c-title { margin: 0; font-weight: 400; }

/* The newest release: terms over values, side by side from md. */
/* Four short values: two to a row on a phone, all four from a tablet up. */
.home-release {
  --pf-v6-c-description-list--RowGap: var(--pf-t--global--spacer--lg);
  --pf-v6-c-description-list--ColumnGap: var(--pf-t--global--spacer--lg);
  --pf-v6-c-description-list--m-auto-fit--GridTemplateColumns--min: 7.5rem;
}
.home-release .pf-v6-c-description-list__text { font-size: 1rem; }

/* Boards: clickable cards of one height in each row. */
.board-card .pf-v6-c-card__footer { color: var(--pf-t--global--text--color--subtle); }

/* Install: three cards numbered like the Download chooser's steps. */
.home-steps { counter-reset: step; }
.home-step .pf-v6-c-card__title { display: flex; align-items: center; }

/* ---- Boards: one row per board ---- */
.board-row > .fold__toggle { min-height: 4rem; padding-block: var(--pf-t--global--spacer--md); }
.board-row .fold__text { display: grid; gap: 2px var(--pf-t--global--spacer--lg); align-items: center; }
.board-row__name { font-family: var(--pf-t--global--font--family--heading); font-size: 1.125rem; }
.board-row__meta, .board-row__images { color: var(--pf-t--global--text--color--subtle); }
@media (min-width: 48rem) {
  .board-row .fold__text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .board-row__name { grid-column: 1; grid-row: 1; }
  .board-row__meta { grid-column: 1; grid-row: 2; }
  .board-row__images { grid-column: 2; grid-row: 1 / span 2; }
}
.board-images { max-width: 48rem; }
.board-note { max-width: 789px; margin: var(--pf-t--global--spacer--md) 0; }
.board-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pf-t--global--spacer--md) var(--pf-t--global--spacer--lg); }

/* ---- Roxora Imager ---- */
.imager-icon { display: block; width: 4rem; height: 4rem; margin-block-end: var(--pf-t--global--spacer--md); }
/* The icon is a near-black tile on the Hero's near-black: a hairline on
   the tile's own edge keeps its shape there. */
.imager-icon { border-radius: 16px; outline: 1px solid rgba(255, 255, 255, 0.24); outline-offset: -4px; }
.imager-sums + .pf-v6-c-code-block { margin-block-start: var(--pf-t--global--spacer--sm); }
/* Under the actions: what the button downloads, the version, the notes. */
.landing-hero__meta { margin: var(--pf-t--global--spacer--md) 0 0 0; color: var(--pf-t--global--text--color--subtle); }
.landing-hero__meta .pf-v6-c-label { vertical-align: 0.1em; }
/* The picture across the column, what it does in three cards under it. */
.imager-about { display: grid; gap: var(--pf-t--global--spacer--lg); }
.imager-figure { margin: 0; }
.imager-shot { display: block; width: 100%; height: auto; border: 1px solid var(--pf-t--global--border--color--default); border-radius: var(--pf-t--global--border--radius--medium); }
.imager-shot--dark, html.pf-v6-theme-dark .imager-shot--light { display: none; }
html.pf-v6-theme-dark .imager-shot--dark { display: block; }
.imager-features { display: grid; gap: var(--pf-t--global--spacer--md); }
@media (min-width: 48rem) { .imager-features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.imager-feature .pf-v6-c-card__title-text { font-size: 1.125rem; }
/* Every package: a card per system, a group per processor, a line per file. */
.imager-files { --pf-v6-c-description-list--RowGap: var(--pf-t--global--spacer--md); }
.imager-file { display: block; }
.imager-file .meta-inline, .imager-sums { color: var(--pf-t--global--text--color--subtle); }
.imager-file .meta-inline { white-space: nowrap; }
.imager-sums { margin: var(--pf-t--global--spacer--md) 0 0 0; overflow-wrap: anywhere; }

/* Below xl the masthead is sticky and lies over the top of the page: what
   the address names stops under it, not behind it. */
@media (max-width: 74.99rem) {
  :target, .fold[id] { scroll-margin-top: calc(var(--masthead-h, 4.5rem) + var(--pf-t--global--spacer--md)); }
}
