/***************************************
 * PAGE & SECTIONS (docs/ui-design-consistency-plan.md, phase 4, D8)
 *
 * Every page is one column: a white sheet (the <main>) on the gray canvas,
 * then the footer on the canvas. Inside the sheet: plain H1, content,
 * actions — no title strip, no line under the title. The column is wide
 * enough for the form (label + field) and keeps text lines readable.
 * Phones: the sheet runs edge to edge.
 ***************************************/

.jena-page {
    max-width: var(--jena-page-max-width);
    padding: var(--jena-space-xl) var(--jena-space-md) 0;
    margin-inline: auto;
}

.jena-page > main {
    padding: var(--jena-space-xl) var(--jena-space-xl) var(--jena-space-lg);
    background-color: var(--jena-color-bg-page-default);
    border: var(--jena-border-width-sm) var(--jena-border-style) var(--jena-color-border-neutral-subtle);
}

@media (width < 576px) {
    .jena-page {
        padding: 0;
    }

    .jena-page > main {
        padding: var(--jena-space-lg) var(--jena-space-md);
        border-inline: 0;
    }

    .jena-page > .jena-footer {
        padding-inline: var(--jena-space-md);
    }
}

/* Introductory paragraph under the page title */
.jena-lead {
    font-size: var(--jena-font-size-lg);
}

.jena-intro {
    margin-bottom: var(--jena-space-xl);
}

/* Page actions: left-aligned under the content */
.jena-action-buttons,
.jena-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--jena-space-md);
    align-items: center;
    margin-top: var(--jena-space-xl);
}

.jena-form-actions {
    flex-direction: column;
    align-items: flex-start;
}

.jena-form-actions .jena-note {
    align-self: stretch;
}

/*
 * Section heading (results page): the accent bar before the title, the same
 * marker as on the form panels (accordion.css) — D7 option B.
 */
.jena-section-heading {
    position: relative;
    padding-left: var(--jena-space-md);
    margin: 0 0 var(--jena-space-lg);
    line-height: var(--jena-line-height-tight);
}

.jena-section-heading::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--jena-accent-thickness);
    content: "";
    background: var(--jena-accent-fill);
}

/* Icon in a heading or panel title: plain, Jena blue, no box */
.jena-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin-inline-end: var(--jena-space-sm);
    color: var(--jena-color-text-brand-link);
}

/* -------------------------------------
 * Results
 * ------------------------------------- */

.jena-section-container {
    margin-bottom: var(--jena-space-lg);
}

.jena-sections-container {
    margin-bottom: var(--jena-space-xl);
}
