/* Page CSS on top of PatternFly. Layout comes from PatternFly's Page, Wizard,
   Stack and Form; what is here is only what PatternFly has no option for. */
html, body { height: 100%; }

/* Masthead as in Maskrom Studio: its mark beside the name, kept on one line,
   and plain buttons with an icon at the far end. */
.pf-v6-c-masthead__logo { --pf-v6-c-masthead__logo--Width: auto; }
.brand { display: flex; align-items: center; gap: var(--pf-t--global--spacer--sm); text-decoration: none; }
.brand-mark { height: 1.75rem; width: auto; }
.brand-name { font-size: var(--pf-t--global--font--size--lg); color: var(--pf-t--global--text--color--regular); white-space: nowrap; }
.pf-v6-c-masthead__content.masthead-actions { justify-content: flex-end; align-items: center; gap: var(--pf-t--global--spacer--sm); }
/* Documentation and Releases leave at phone width, where they do not fit
   beside the name; the steps link to both. */
.masthead-link { display: none; }
@media (min-width: 48rem) { .masthead-link { display: inline-flex; } }
.pf-v6-c-masthead .pf-v6-c-button__text { white-space: nowrap; }

/* The wizard fills the page. PatternFly rules a line above it, which is for
   content above; with no notice there is none. */
#notices[hidden] + .pf-v6-c-page__main-wizard { --pf-v6-c-page__main-wizard--BorderBlockStartWidth: 0; }

/* Step content: regular-weight headings and a readable measure. */
.step { max-width: 72rem; }
.step[hidden] { display: none; }
.step .pf-v6-c-title { font-weight: var(--pf-t--global--font--weight--body--default); }
.muted { color: var(--pf-t--global--text--color--subtle); font-size: var(--pf-t--global--font--size--sm); }
.detail { font-family: var(--pf-t--global--font--family--mono); font-size: var(--pf-t--global--font--size--sm); word-break: break-all; }

/* The file row under "A file from this computer" lines up with the radio's label. */
.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pf-t--global--spacer--md); padding-inline-start: 1.375rem; }
.file-row[hidden] { display: none; }

/* The log scrolls inside its block instead of growing the page. */
.log .pf-v6-c-code-block__code { display: block; max-height: 18rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.log-dim { color: var(--pf-t--global--text--color--subtle); }
.log-warn { color: var(--pf-t--global--text--color--status--warning--default); }
.log-err { color: var(--pf-t--global--text--color--status--danger--default); }

/* The footer: what is still missing, above the buttons, as in Maskrom Studio. */
.footer-note { color: var(--pf-t--global--text--color--subtle); }
.footer-note:empty { display: none; }

[hidden] { display: none !important; }
:focus-visible { outline-color: var(--pf-t--global--focus-ring--color--default); }

/* The name sits on the buttons' centre line. */
.pf-v6-c-masthead__main { align-self: center; }
.brand-name { line-height: 1; display: block; }

/* Back is hidden on the first step, as in Maskrom Studio; its slot goes too. */
.pf-v6-c-action-list__item:has(> [hidden]) { display: none; }
