/* Utility classes */

.secondary {
    color: var(--text-light);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.heroicons {
    width: 1em;
    height: 1em;
    margin-top: -0.2em;
}

/* Rendered rich-text content (Lexxy). Scoped to --rendered so it does not
   restyle the live <lexxy-editor>, which also carries the .lexxy-content class. */

.lexxy-content--rendered {
    h2 {
        font-size: 1.35em;
        margin-bottom: 0.5em;
    }
}

/* Page specific styles */

body.home_index {
    grid-template-columns: 1fr min(45rem, 70%) min(15rem, 20%) 1fr;
    grid-template-areas:
        "topnav topnav topnav topnav"
        "header header header header"
        ". main sidebar ."
        "footer footer footer footer";

    > main {
        grid-area: main;
        padding-right: 1rem;
    }

    > aside {
        grid-area: sidebar;
        margin-left: 1rem;
    }

    .image-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, 50px);
        gap: 5px;
    }

    .soundcloud-embed {
        margin-top: 20px;
    }

    .published-at {
        color: var(--text-light);
    }

    .excerpt {
        margin: 0.3rem 0;
    }

    .workout-distance-chart.workout-charts {
        --workout-chart-color: var(--accent);
        --workout-chart-empty-color: color-mix(in srgb, var(--workout-chart-color) 7%, var(--bg));
        --workout-chart-empty-cell-color: color-mix(in srgb, var(--border) 18%, var(--bg));
        --workout-heatmap-high-color: light-dark(var(--workout-chart-color), var(--workout-chart-empty-color));
        --workout-heatmap-low-color: light-dark(var(--workout-chart-empty-color), var(--workout-chart-color));
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
        align-items: stretch;
        margin: 0 0 1.5rem;
        padding: 0 0 1.15rem;
        border-bottom: 1px solid color-mix(in srgb, var(--border) 45%, transparent);
    }

    .workout-chart-card {
        min-width: 0;
        background: var(--bg);
    }

    .workout-chart-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.875rem;
    }

    .workout-chart-title {
        display: flex;
        align-items: baseline;
        gap: 0.6rem;
        min-width: 0;
        color: var(--text-light);
        font-size: 0.75rem;
        font-weight: 650;
        letter-spacing: 0.06em;
        line-height: 1.15;
        text-transform: uppercase;
    }

    .workout-chart-year {
        color: var(--text);
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0;
        line-height: 1;
        text-transform: none;
    }

    .workout-distance-year-nav {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 0.375rem;
        color: var(--text-light);
        line-height: 1;
    }

    .workout-distance-year-control,
    .workout-distance-year-control:visited {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.75rem;
        height: 1.625rem;
        border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
        border-radius: 4px;
        color: var(--text-light);
        background: var(--bg);
        text-decoration: none;
        font-size: 0.85rem;
        transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
    }

    .workout-distance-year-control:hover {
        border-color: color-mix(in srgb, var(--border) 85%, var(--text-light));
        background: color-mix(in srgb, var(--border) 24%, transparent);
        color: var(--text);
    }

    .workout-distance-year-control.is-disabled {
        color: var(--text-light);
        opacity: 0.35;
    }

    .workout-running-bars-wrap {
        height: 4.875rem;
    }

    .workout-running-bars {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        align-items: end;
        height: 3.625rem;
        gap: 0.5rem;
        border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
    }

    .workout-distance-month {
        position: relative;
        min-width: 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        height: 100%;
    }

    .workout-distance-bar-fill {
        display: block;
        width: 100%;
        height: var(--workout-distance-bar-scale);
        border-radius: 1px 1px 0 0;
        background: var(--workout-chart-color);
        transition: background 150ms ease, transform 150ms ease;
    }

    .workout-distance-month:hover .workout-distance-bar-fill {
        background: color-mix(in srgb, var(--workout-chart-color) 86%, black);
    }

    .workout-distance-month::before {
        position: absolute;
        bottom: calc(100% + 0.375rem);
        left: 50%;
        z-index: 2;
        padding: 0.2rem 0.38rem;
        border-radius: 3px;
        background: var(--text);
        color: var(--bg);
        content: attr(data-label);
        font-size: 0.625rem;
        font-variant-numeric: tabular-nums;
        line-height: 1;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%);
        transition: opacity 120ms ease;
        white-space: nowrap;
    }

    .workout-distance-month:hover::before {
        opacity: 1;
    }

    .workout-running-axis {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .workout-running-axis span {
        overflow: hidden;
        color: var(--text-light);
        font-size: 0.625rem;
        letter-spacing: 0.02em;
        line-height: 1;
        text-align: center;
        text-overflow: clip;
        white-space: nowrap;
    }

    .workout-heatmap {
        --workout-heatmap-gap: 2px;
        display: flex;
        flex-direction: column;
        height: 4.875rem;
    }

    .workout-heatmap-months {
        display: grid;
        grid-template-columns: repeat(53, minmax(0, 1fr));
        height: 0.75rem;
        margin-bottom: 0.25rem;
        padding-left: calc(1.55rem + 0.5rem);
        column-gap: var(--workout-heatmap-gap);
        color: var(--text-light);
        font-size: 0.625rem;
        line-height: 1;
    }

    .workout-heatmap-months span {
        min-width: 0;
        overflow: hidden;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .workout-heatmap-body {
        display: flex;
        align-items: flex-start;
        min-width: 0;
    }

    .workout-heatmap-grid {
        display: grid;
        flex: 1 1 0;
        grid-template-columns: repeat(53, minmax(0, 1fr));
        grid-template-rows: repeat(7, minmax(0, 1fr));
        gap: var(--workout-heatmap-gap);
        min-width: 0;
        aspect-ratio: 53 / 7;
    }

    .workout-heatmap-cell {
        position: relative;
        min-width: 0;
        border-radius: 1.5px;
        background: var(--workout-chart-empty-cell-color);
        transition: outline 100ms ease;
    }

    .workout-heatmap-cell.is-level-1 {
        background: color-mix(in srgb, var(--workout-heatmap-high-color) 16%, var(--workout-heatmap-low-color));
    }

    .workout-heatmap-cell.is-level-2 {
        background: color-mix(in srgb, var(--workout-heatmap-high-color) 36%, var(--workout-heatmap-low-color));
    }

    .workout-heatmap-cell.is-level-3 {
        background: color-mix(in srgb, var(--workout-heatmap-high-color) 58%, var(--workout-heatmap-low-color));
    }

    .workout-heatmap-cell.is-level-4 {
        background: color-mix(in srgb, var(--workout-heatmap-high-color) 84%, var(--workout-heatmap-low-color));
    }

    .workout-heatmap-cell.is-future {
        background: transparent;
    }

    .workout-heatmap-cell.is-outside-year {
        visibility: hidden;
    }

    .workout-heatmap-cell:not(.is-outside-year):not(.is-future):hover {
        z-index: 2;
        outline: 1.5px solid var(--text);
        outline-offset: 1px;
    }

    @media (max-width: 52rem) {
        .workout-distance-chart.workout-charts {
            grid-template-columns: 1fr;
        }

        .workout-running-bars {
            height: 3.333rem;
        }
    }

    .activity-row {
        display: grid;
        grid-template-columns: 4.5rem minmax(0, 1fr);
        gap: 1.25rem;
        align-items: start;
        clear: both;
    }

    section.entry.activity {
        margin: 0;
        padding-bottom: 6px;
    }

    section.entry.activity:first-child {
        border-top: 0;
    }

    .activity-visual {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 4.5rem;
        height: 4.5rem;
        padding: 0.6rem;
        border-radius: var(--standard-border-radius);
        background: var(--accent-bg);
    }

    .activity-visual-icon {
        font-size: 1.45rem;
        line-height: 1;
    }

    .activity-body {
        min-width: 0;
    }

    .activity-heading {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 0.35rem 0.7rem;
        color: var(--text-light);
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .activity-heading h4 {
        margin: 0;
        color: var(--text);
        line-height: 1.15;
        letter-spacing: 0;
    }

    .activity-heading time {
        white-space: nowrap;
    }

    .activity-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 1.1rem;
        margin: 3px 0 0;
        padding: 0;
        color: var(--text-light);
        font-size: 0.75rem;
        line-height: 1.18;
    }

    .activity-stat {
        display: inline-flex;
        align-items: baseline;
        gap: 0.22rem;
        white-space: nowrap;
    }

    .activity-stat-measure {
        display: inline-flex;
        align-items: baseline;
        gap: 0.22rem;
        margin: 0;
    }

    .activity-stat-value {
        color: var(--text);
        font-family: var(--mono-font);
        font-size: 1.02em;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0;
    }

    .activity-stat-label,
    .activity-stat-unit {
        color: var(--text-light);
    }

    .activity-map {
        display: block;
        width: 100%;
        height: 100%;
        overflow: visible;

        .polyline {
            stroke: var(--accent);
            stroke-width: 2;
        }
    }

    .activity-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        margin-top: 9px;
    }

    .activity-metric {
        min-width: 0;
        margin: 0;
        overflow: visible;
    }

    .activity-metric-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.5rem;
        line-height: 1;
        margin: 0 0 0.25rem;
        color: inherit;
        font-size: inherit;
        text-align: left;
    }

    .activity-metric-label {
        margin: 0;
        color: var(--text-light);
        font-size: 0.72rem;
        font-weight: 650;
        letter-spacing: 0;
    }

    .activity-metric-value {
        color: var(--text);
        font-size: 0.78rem;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .activity-sparkline {
        display: block;
        width: 100%;
        height: 1.55rem;
        overflow: visible;
    }

    .activity-sparkline-baseline {
        stroke: var(--border);
        opacity: 0.45;
        stroke-width: 1;
        vector-effect: non-scaling-stroke;
    }

    .activity-sparkline-line {
        fill: none;
        stroke: var(--activity-sparkline-stroke, var(--accent));
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
        vector-effect: non-scaling-stroke;
    }

    .activity-sparkline-zone-1 {
        --activity-sparkline-stroke: #5ecdf7;
    }

    .activity-sparkline-zone-2 {
        --activity-sparkline-stroke: #5ddfc8;
    }

    .activity-sparkline-zone-3 {
        --activity-sparkline-stroke: #f5a24a;
    }

    .activity-sparkline-zone-4 {
        --activity-sparkline-stroke: #f25d5d;
    }

    .activity-sparkline-zone-5 {
        --activity-sparkline-stroke: #737cff;
    }

    @media (max-width: 720px) {
        grid-template-columns: 1fr min(90%, 70ch) 1fr;
        grid-template-areas:
            "topnav topnav topnav"
            "header header header"
            ". main ."
            ". sidebar ."
            "footer footer footer";

        > aside {
            margin-left: 0;
            margin-top: 2rem;
        }

        > main {
            padding-right: 0;
        }

        .activity-row {
            grid-template-columns: 3.6rem minmax(0, 1fr);
            gap: 0.85rem;
        }

        .activity-visual {
            width: 3.6rem;
            height: 3.6rem;
        }

        .activity-heading,
        .activity-stats {
            font-size: 0.95rem;
        }

        .workout-distance-chart-head {
            align-items: flex-start;
        }

        .workout-distance-title-group {
            width: 100%;
            justify-content: space-between;
        }

        .workout-distance-bars {
            gap: 0.22rem;
        }

        .workout-distance-bar-track {
            height: 6.25rem;
        }

        .workout-distance-month {
            grid-template-rows: 6.25rem auto;
        }

        .workout-distance-month-label {
            font-size: 0.62rem;
        }
    }
}

body.home_index.workouts_feed {
    grid-template-columns: 1fr min(60rem, 90%) 1fr;
    grid-template-areas:
        "topnav topnav topnav"
        "header header header"
        ". main ."
        "footer footer footer";

    > main {
        padding-right: 0;
    }

    > aside {
        display: none;
    }
}

body.posts_show,
body.entries_show {
    main {
        grid-column-start: 1;
        grid-column-end: -1;

        > article,
        > section,
        > turbo-frame {
            display: grid;
            grid-template-columns: 1fr min(50rem, 90%) 1fr;

            > * {
                grid-column-start: 2;
            }
        }

        *:first-child {
            margin-top: 0;
        }

        .hero-image {
            width: 100%;
            height: auto;
            border-radius: var(--standard-border-radius);
            margin-bottom: 1rem;
        }
    }

    section.related-posts,
    section.subscribe {
        background-color: var(--accent-bg);
        padding: 20px 0;
        margin: 30px 0;
    }

    section.subscribe {
        form {
            display: flex;
            margin-top: 15px;
            margin-bottom: 10px;
            gap: 15px;
        }

        input[type="email"] {
            flex: auto;
        }
    }
}

/* Section specific styles */

section.comments {
    padding-left: 0;
    padding-right: 0;

    /* Chromeless comment editor: the toolbar is suppressed via `toolbar: false`
       on the rich_text_area; this guards against any residual toolbar element. */
    lexxy-toolbar {
        display: none;
    }

    lexxy-editor {
        margin-bottom: 10px;
    }

    .comment {
        display: flex;
        margin-top: 30px;
        gap: 10px;

        .side {
            img {
                border-radius: 50%;
            }
        }

        .header {
            line-height: 1em;
        }

        .content {
            margin-top: 5px;
        }
    }
}

/* Lexxy toolbar in the blog theme. simple.css (blog/base.css) styles every
   <button> with `background-color: var(--accent)`, which paints Lexxy's
   transparent toolbar controls as solid accent blocks and renders their
   `fill: currentColor` icons near-invisible. Neutralize that bleed on the
   controls Lexxy leaves unstyled — the icon buttons and the bare format-dropdown
   menu items — while leaving Lexxy's deliberately-filled controls to its own
   higher-specificity rules: the link/unlink dialog actions (the only toolbar
   buttons carrying a `value=` attribute, so `:not([value])` spares them), the
   highlight swatches (inline background-color), and the active/pressed state.
   Icons use Lexxy's own `--lexxy-color-text` (dark ink) rather than the blog
   theme's `--text`: the toolbar sits on Lexxy's always-white editor canvas, so
   the blog's light `--text` would be illegible there in dark mode. The
   `:not([aria-pressed="true"])` guard leaves toggled buttons (Bold/Italic when
   the caret sits in formatted text) to Lexxy's selected-state fill — without it
   this reset's (0,2,1) specificity would beat Lexxy's pressed rule (0,2,0) and
   flatten the highlight. */
lexxy-toolbar .lexxy-editor__toolbar-button:not([value]):not([aria-pressed="true"]),
lexxy-toolbar .lexxy-editor__toolbar-dropdown-list button {
    background-color: transparent;
    border: 0;
    color: var(--lexxy-color-text);
}

lexxy-toolbar .lexxy-editor__toolbar-button:not([value]):not([aria-pressed="true"]):hover,
lexxy-toolbar .lexxy-editor__toolbar-dropdown-list button:hover {
    background-color: color-mix(in srgb, var(--accent) 14%, transparent);
}

lexxy-toolbar .lexxy-editor__toolbar-button:not([value]):focus-visible,
lexxy-toolbar .lexxy-editor__toolbar-dropdown-list button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.admin-fab-group {
    --admin-fab-divider: #e5e5e2;

    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1000;
    display: inline-flex;
    align-items: stretch;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #d4d4d1;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    overflow: hidden;
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;
    transition: border-color 120ms ease;
}

.admin-fab-group form {
    display: contents;
}

.admin-fab,
.admin-fab:visited,
.admin-fab-group .admin-fab-action,
.admin-fab-group .admin-fab-action:visited,
.admin-fab-group button.admin-fab-action {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    gap: 6px;
    margin: 0;
    padding: 5px 9px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: normal;
    background: transparent;
    color: #0f1115;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background-color 120ms ease;
}

.admin-fab-group > .admin-fab-action,
.admin-fab-group > form > .admin-fab-action {
    box-shadow: inset 1px 0 0 var(--admin-fab-divider);
}

.admin-fab .admin-fab-icon {
    flex-shrink: 0;
    color: #0f1115;
}

.admin-fab:hover,
.admin-fab-group .admin-fab-action:hover,
.admin-fab-group button.admin-fab-action:hover {
    background: #f5f5f4;
    color: #0f1115;
    text-decoration: none;
}

.admin-fab:focus-visible,
.admin-fab-group .admin-fab-action:focus-visible,
.admin-fab-group button.admin-fab-action:focus-visible {
    outline: none;
    background: #eef2ff;
}

.admin-fab-group:focus-within {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.admin-fab-group:hover {
    border-color: #b9b9b5;
}

section.actions {
    margin: 1rem 0;
}

/* Page specific styles */

/* Pictures controller */

body.pictures_show {
    grid-template-columns: 1fr min(82rem, 94vw) 1fr;

    .picture-description,
    .picture-media {
        width: 100%;
        margin-inline: auto;
    }

    .picture-description p {
        margin-top: 0;
    }

    .picture-media {
        margin-block-start: 0.75rem;
        overflow: visible;
    }

    .picture-media-content {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: min(82vh, 62rem);
        max-height: min(82dvh, 62rem);
        height: auto;
        margin-inline: auto;
        object-fit: contain;
    }
}

body.pictures_edit {
    .attachment {
        margin-bottom: 30px;
    }
}

/* Tag input (post editor) — chip/token field with popularity autocomplete */
.tag-input__field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: var(--standard-border-radius);
    background: var(--bg);
}

.tag-input__field:focus-within {
    border-color: var(--accent);
}

/* display:contents lets the chips flow inline with the combobox in the field row */
.tag-chips {
    display: contents;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.55rem;
    background: var(--accent-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* inline-flex centers the × glyph in a fixed 1.5rem (24px) box — also the
   click/touch target (meets WCAG 2.5.8). margin:0 defeats the base form-control
   rule's inherited margin-bottom:0.5rem (base.css), which otherwise shifts the
   glyph up within the centered chip row. */
.tag-chip__remove {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

/* Parent-scoped (0,3,0) so this beats the base `button:enabled:hover` rule
   (0,2,1), which would otherwise repaint an accent "oval" behind the glyph.
   Color-only affordance keeps it dark-mode safe; the base :focus-visible ring
   is left intact for keyboard users. */
.tag-chip .tag-chip__remove:hover {
    background: transparent;
    color: var(--accent);
}

.tag-chip--duplicate {
    animation: tag-chip-flash 0.45s ease;
}

@keyframes tag-chip-flash {
    0%, 100% { background: var(--accent-bg); }
    40% { background: var(--accent); color: var(--accent-text); }
}

.tag-combobox {
    position: relative;
    flex: 1 1 8rem;
    min-width: 8rem;
}

.tag-combobox__input {
    width: 100%;
    margin: 0;
    padding: 0.2rem;
    border: 0;
    background: transparent;
    color: var(--text);
}

.tag-combobox__input:focus {
    outline: none;
}

.tag-combobox__input:disabled {
    color: var(--text-light);
    background: transparent;
}

.tag-autocomplete {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    z-index: 50;
    width: 100%;
    min-width: 12rem;
    max-height: 16rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--standard-border-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.tag-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: var(--standard-border-radius);
    cursor: pointer;
}

.tag-option.is-active,
.tag-option:hover {
    background: var(--accent-bg);
}

.tag-option--loading {
    color: var(--text-light);
    cursor: default;
}

.tag-option__count {
    color: var(--text-light);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

/* Matched prefix: accent-tinted, not the browser default yellow (dark-mode safe).
   padding:0 overrides the base `mark` rule (base.css) whose 2px 5px padding would
   otherwise show as a gap after the bold (e.g. "pro ject" instead of "project"). */
.tag-option__match {
    padding: 0;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
}

.tag-option--create {
    color: var(--accent);
}

.tag-option__new {
    font-weight: 600;
}

.tag-input__notice {
    margin: 0.3rem 0 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Post editor form (new/edit). An authoring surface rendered in the public blog
   theme, styled from simple.css tokens. Scoped to the form's own `.post-form`
   class rather than a body class (cf. the `.tag-input` widget above): the
   create/update actions re-render this form on validation failure with body
   class `posts_create`/`posts_update`, so a `body.posts_new` scope would miss
   the error state — the one moment the form most needs to look right. */
.post-form__field {
    margin-bottom: 1.25rem;
}

.post-form__field > label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--text);
}

/* Full-width text controls for a consistent column. The tag-input widget owns
   its own internals, so exclude it; file and datetime inputs keep natural width. */
.post-form__field:not(.tag-input) input[type="text"],
.post-form__field:not(.tag-input) textarea {
    width: 100%;
}

.post-form__field textarea {
    min-height: 5rem;
}

.post-form__actions {
    margin-top: 1.5rem;
}

.post-form__nav {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.75rem;
    font-size: 0.9rem;
}

/* Neutral, informational error summary — simple.css has no error-red token and
   the dark palette would break a hardcoded red, so use the theme's accent-bg. */
.post-form__errors {
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    background: var(--accent-bg);
    border: 1px solid var(--border);
    border-radius: var(--standard-border-radius);
    color: var(--text);
}

.post-form__errors h2 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.post-form__errors ul {
    margin: 0;
    padding-left: 1.1rem;
}
