/*
 * The bridge between the older page bodies (app.css) and Ashfall (ashfall.css).
 *
 * Loaded third. Every rule here exists because an older body and an Ashfall
 * component share a class name, and Ashfall's rule would otherwise reshape the
 * older markup. When lanes D and E have moved a page to Ashfall markup, the
 * rule that served it can go; when the last one goes, so does this file.
 *
 * Nothing new belongs here. New bodies use the components in ashfall.css.
 */

/* Older bodies sit straight in <main> and keep app.css's page gutter. An
   Ashfall body brings its own (.wrap.page, or a full bleed band), so main
   adds none around it. */
.main:has(> .page, > .wrap.page, > .bleed, > .band, > .spot-h) { padding: 0; max-width: none; }
.main:not(:has(> .page, > .wrap.page, > .bleed, > .band, > .spot-h)) > .flash { width: auto; margin: 0 0 12px; }
.main:not(:has(> .page, > .wrap.page, > .bleed, > .band, > .spot-h)) > .wrap { padding: 0; max-width: none; }

/* A notice whose text sits straight inside it (no icon, no <p>) reads as a
   paragraph, not a row of flex items. */
.notice:not(:has(> .i)) { display: block; }

/* Buttons: a bare .btn is the older neutral button; .btn--sm stays small. */
.btn:not([class*="btn--"]) { background: var(--panel-2); border-color: var(--line-2); color: var(--ink); }
.btn:not([class*="btn--"]):hover { border-color: var(--accent); }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 0.875em; }
.btn--danger { border-color: color-mix(in oklch, var(--down) 50%, transparent); color: var(--down); background: color-mix(in oklch, var(--down) 10%, transparent); }
.btn--discord { color: #fff; }

/* Older cards keep their padding and their own heading row. */
.card:has(> .card-head, > .card-body) { display: block; }

/* Older labels were set in small caps weight; Ashfall sets none. */
table.data th, .stat-label, .nav-label { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* The older field had space under it, and its label was a block. */
.field:not(.form .field):not(.filters .field) { margin-bottom: 14px; }

/* An older empty state is text, not a stack of centred items. */
.empty:not(:has(> .i)) { display: block; }

/* The old app reached for underlines on hover everywhere; the chrome never. */
:where(.rail, .top, .strip, .foot, .sysbar) a:hover { text-decoration: none; }
