/**
 * Linen Theme - Pico CSS (Light + Dark)
 *
 * Restrained, warm-neutral theme with:
 * - Cream/parchment surfaces, near-black ink text (light) / warm-charcoal
 *   surfaces, near-white ink text (dark)
 * - Two type families only: IBM Plex Serif (body), IBM Plex Mono (labels/meta)
 * - Sage-green primary, terracotta secondary/danger, amber accent/warning --
 *   same roles in both modes, values swap via the custom properties below
 * - Dark variant: see the
 *   @media (prefers-color-scheme: dark) block at the end of this file for
 *   the palette and the reasoning behind each override.
 */

:root {
    --brand-primary: #3f7d62;
    --brand-accent: #9a6a2f;
    --brand-danger: #8a3a32;
    --text-muted: #6d7074;
    --text-muted-2: #4d5054;
    --surface: #faf9f6;
    --surface-muted: #ebeae7;
    --text-color: #1a1c1e;
    --border-color: #dcdbd7;
    --shadow-color: rgba(26, 28, 30, 0.08);

    --card-dark-bg: #22252a;
    --card-light-bg: #faf9f6;
    --text-light: #f4f4f1;
    --text-dark: #1a1c1e;

    --btn-cta-color: var(--brand-primary);
    --btn-cta-hover: #35654f;

    --card-padding: 1.25rem;
    --card-border-radius: 0.75rem;

    --font-body: 'IBM Plex Serif', Georgia, serif;
    --font-meta: 'IBM Plex Mono', 'Courier New', monospace;
}

/* Nothing here ever set a bare heading color, so h1-h6 fell through to Pico's own default
   heading color rule (which has its own, different, dark-mode value) --
   invisible in light mode because Pico's light default happens to be
   close to our --text-color by coincidence, but wrong in dark mode where
   the two diverge. Confirmed in-browser: before this rule, .home-hero h1
   rendered rgb(240,241,243) (Pico's own dark heading color) instead of
   this theme's rgb(242,240,236) (--text-color) under prefers-color-
   scheme: dark. Every page with a theme-set heading color (.home-hero h1
   etc) already overrides this by selector specificity, so it's additive,
   not a behavior change for those. */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

/* Same shape of bug, same fix, for form controls: Pico styles input/
   select/textarea against ITS OWN --pico-background-color/--pico-color/
   --pico-border-color custom properties, which Pico redefines under its
   own bundled dark-mode media query -- entirely independent of this
   theme's --surface/--text-color/--border-color. Nothing here ever set
   these on the bare elements, so every plain form control fell through
   to Pico's own dark palette instead of linen's -- the same bug reported
   against Studies/focused/create-form.php's #topic-search. Confirmed
   in-browser before this rule: login's email input rendered
   Pico's rgb(224,227,231) on rgb(28,33,44), not this theme's colors at
   all, light or dark. */
input, select, textarea {
    background-color: var(--surface);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* Disabled state -- the focused-times form's read-only Awake/Asleep
   rows are the case this covers: with no rule of our own,
   these fell through to the browser's/Pico's native disabled-input
   gray, which reads as flatly wrong against a dark surface (a pale
   solid box, not a muted variant of the theme). --surface-muted +
   --text-muted already exist for exactly this "present but
   de-emphasized" role elsewhere in the theme; reused here instead of
   inventing a fourth gray. opacity reset to 1 since these two variables
   already carry the de-emphasis -- Pico's own opacity dimming on top
   would double it up. */
input:disabled,
input[disabled],
select:disabled,
select[disabled],
textarea:disabled,
textarea[disabled] {
    background-color: var(--surface-muted);
    color: var(--text-muted);
    border-color: var(--border-color);
    /* !important: Pico's own disabled selector --
       input:not([type=submit],[type=button],[type=reset])[disabled] --
       out-specifies a plain input[disabled] (its :not() carries an
       attribute selector of its own), so opacity:.5 wins the cascade
       even though the color properties above, which Pico does not
       contest here, apply fine unqualified. */
    opacity: 1 !important;
}

body {
    background-color: #e9e6e0;
    background-image: url('/Assets/img/linen-texture-body.jpg');
    background-repeat: repeat;
    color: var(--text-color);
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    flex: 1;
    padding: 1.5rem 0 3rem;
}

.main-content {
    padding-top: 1.5rem;
}

body > header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

body > footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

/* Matches Pico's own .container breakpoint steps exactly, so the header/
   footer band uses the same width as the page's body content (which gets
   Pico's .container class) instead of a narrower, unrelated fixed cap. */
container {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 576px) {
    container { max-width: 510px; padding-right: 0; padding-left: 0; }
}

@media (min-width: 768px) {
    container { max-width: 700px; }
}

@media (min-width: 1024px) {
    container { max-width: 950px; }
}

@media (min-width: 1280px) {
    container { max-width: 1200px; }
}

@media (min-width: 1536px) {
    container { max-width: 1450px; }
}

brand {
    display: block;
    font-weight: 600;
}

brand > a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

brand > a > span {
    font-family: var(--font-meta);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    line-height: 1.3;
}

brand > a > logo {
    display: flex;
    align-items: center;
    color: var(--brand-primary);
}

brand > a > logo svg {
    height: 64px;
    width: auto;
}

brand > a > name {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.01em;
}

menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

menu > a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.35rem 0.65rem;
    border-radius: 0.4rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

menu > a:hover {
    background-color: var(--surface-muted);
}

menu > a.active {
    color: var(--brand-primary);
    font-weight: 600;
}

header nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

header nav > menu {
    margin-left: auto;
}

footer container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer p {
    margin: 0;
    color: var(--text-muted);
}

toolbar {
    display: block;
    padding: 1rem 0;
}

article[role="alert"] {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    margin-bottom: 0.75rem;
}

article.success {
    background-color: #cfded6;
    border-color: var(--brand-primary);
    color: #23412f;
}

article.danger {
    background-color: #e3cdbd;
    border-color: var(--brand-danger);
    color: #5c2721;
}

article.warning {
    background-color: #efe7de;
    border-color: var(--brand-accent);
    color: #5c451f;
}

article.info {
    background-color: #f3f8f5;
    border-color: var(--brand-primary);
    color: #23412f;
}

/* .notification (div-based Bulma alert, e.g. Studies/list.php's empty state)
   -- same gap as .tag and article[role=alert] had: not styled in this theme,
   or in original/crgslst (only ml-theme.css has it). Reuses the exact
   article.success/danger/warning/info palette above for visual consistency
   between the two alert markup styles the app has ended up with. */
.notification {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--surface-muted);
    margin-bottom: 0.75rem;
}

.notification.is-success { background-color: #cfded6; border-color: var(--brand-primary); color: #23412f; }
.notification.is-danger  { background-color: #e3cdbd; border-color: var(--brand-danger); color: #5c2721; }
.notification.is-warning { background-color: #efe7de; border-color: var(--brand-accent); color: #5c451f; }
.notification.is-info    { background-color: #f3f8f5; border-color: var(--brand-primary); color: #23412f; }
.notification.is-light   { background-color: var(--surface); }

.notification a {
    color: inherit;
    text-decoration: underline;
}

.card,
article.card,
article.box,
div.box,
article.box {
    background-color: var(--card-light-bg);
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.tag,
div.tag {
    background-color: var(--surface-muted);
    color: var(--text-color);
    font-family: var(--font-meta);
    border-radius: 0.35rem;
    display: inline-block;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

/* Tag color modifiers -- not ported to any theme originally (grep the other
   three: none of them style .tag.is-success/.is-danger/etc either, so a
   status tag has always rendered as plain grey everywhere). Adding them here
   rather than leaving the gap, since the profile page's Menu tab and any
   other .tag.is-* usage should read as intended under linen. */
.tag.is-success {
    background-color: rgba(63, 125, 98, 0.14);
    color: var(--brand-primary);
}

.tag.is-danger {
    background-color: rgba(138, 58, 50, 0.12);
    color: var(--brand-danger);
}

.tag.is-warning {
    background-color: rgba(154, 106, 47, 0.14);
    color: var(--brand-accent);
}

.tag.is-info {
    background-color: rgba(29, 78, 137, 0.1);
    color: #1d4e89;
}

:is(button,[role=button]),
[role=button] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--surface);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

:is(button,[role=button]).is-light {
    background-color: var(--surface);
}

/* Narrower column for single-purpose pages (auth confirmations, password
   forms) that should read as a form, not a full-width article. */
.container-narrow {
    max-width: 540px;
    margin-inline: auto;
    padding-inline: 1rem;
}

/* Solid accent band for a page's closing call-to-action. */
section.cta-band {
    background-color: var(--brand-primary);
    color: var(--text-light);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
}
section.cta-band :is(h1, h2, h3, h4, h5, h6, p) {
    color: inherit;
}

:is(button,[role=button]).is-primary{
    background-color: var(--btn-cta-color);
    border-color: var(--btn-cta-color);
    color: #faf9f6;
}

:is(button,[role=button]).is-primary:hover{
    background-color: var(--btn-cta-hover);
    border-color: var(--btn-cta-hover);
}

/* No distinct blue/info accent in this palette -- info reuses the sage system. */
:is(button,[role=button]).is-info {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #faf9f6;
}

:is(button,[role=button]).is-success {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #faf9f6;
}

:is(button,[role=button]).is-warning {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #faf9f6;
}

:is(button,[role=button]).is-danger {
    background-color: var(--brand-danger);
    border-color: var(--brand-danger);
    color: #faf9f6;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-actions.is-centered {
    justify-content: center;
}

.form-actions button,
.form-actions :is(button,[role=button]),
.form-actions [role=button] {
    width: auto;
}

.schedule-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.schedule-actions button,
.schedule-actions :is(button,[role=button]) {
    width: auto;
    display: inline-block;
}

.schedule-actions button[type="submit"],
.schedule-actions form,
.schedule-actions :is(button,[role=button]).is-danger {
    width: auto;
    display: inline-block;
}

.notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.notification-actions a,
.notification-actions button,
.notification-actions form {
    width: auto;
    display: inline-block;
}

.card-footer-item form button,
.card-footer-item :is(button,[role=button]) {
    width: auto;
    display: inline-block;
}

.icon-48 {
    font-size: 48px;
}

.cta-text-full {
    display: inline;
}

.cta-text-short {
    display: none;
}

@media (max-width: 768px) {
    brand > a > span {
        display: none;
    }

    /* Narrow header: keep brand + menu on one row (not stacked) so the
       header stays only as tall as the logo needs -- menu items shrink
       to fit their own text instead of stretching into half-width tiles,
       staying right-aligned via header nav > menu's existing
       margin-left: auto. */
    header nav > menu > a {
        padding: 0.4rem 0.55rem;
        font-size: 0.85rem;
    }

    footer container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-text-full {
        display: none;
    }

    .cta-text-short {
        display: inline;
    }
}

@media (max-width: 480px) {
    body > header {
        padding: 0.5rem 0;
    }

    header container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    header nav {
        gap: 0.5rem;
    }

    brand > a {
        gap: 0.5rem;
    }

    brand > a > logo svg {
        height: 40px;
    }

    brand > a > name {
        font-size: 0.95rem;
    }

    header nav > menu {
        gap: 0.3rem;
    }

    header nav > menu > a {
        padding: 0.32rem 0.4rem;
        font-size: 0.78rem;
    }

    footer container {
        align-items: center;
        text-align: center;
    }
}

/* Delete Study Button - Right Aligned on Study Cards */
.delete-study-btn {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background-color: var(--brand-danger);
    color: #faf9f6;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-study-btn:hover {
    background-color: #713029;
    transform: scale(1.1);
}

.delete-study-btn:active {
    transform: scale(0.95);
}

/* Profile Tabs -- underline nav, matching the mockups' "Studies / Profile /
   Sign out" header nav treatment instead of a button grid. Shared markup
   (App/Presentation/User/view.php has no theme-specific variant), so this
   reskins the same .profile-tabs-list the other themes use their own way. */
.tabs.profile-tabs {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.75rem;
}

.profile-tabs-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1.75rem;
    padding: 0 0 0.9rem;
    margin: 0;
    list-style: none;
    background: none;
    justify-content: flex-start;
}

.profile-tabs-list li {
    list-style: none;
    background: none;
    padding: 0;
    margin: 0;
}

.profile-tabs-list li a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    text-decoration: none;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    min-height: 0;
    box-shadow: none;
    background: none;
    color: var(--text-muted);
    transform: none;
    transition: color 0.15s ease;
}

.profile-tabs-list li a .icon {
    display: none;
}

.profile-tabs-list li a:hover {
    background: none;
    border-color: transparent;
    box-shadow: none;
    transform: none;
    color: var(--text-color);
}

.profile-tabs-list li.is-active a {
    position: relative;
    background: none;
    box-shadow: none;
    transform: none;
    color: var(--text-color);
    font-weight: 600;
}

.profile-tabs-list li.is-active a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.95rem;
    height: 2px;
    background: var(--text-color);
}

.profile-tabs-list li.is-active a:hover {
    color: var(--text-color);
}

/* Field label/value pairs inside each tab pane */
.tab-content label {
    display: block;
    font-family: var(--font-meta);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 1.25rem 0 0.35rem;
}

.tab-content label:first-child {
    margin-top: 0;
}

@media (max-width: 480px) {
    .profile-tabs-list {
        gap: 1.1rem;
    }
}

/* Spacing scale, anchored to --pico-spacing so it tracks the theme.
   Only classes actually referenced in App/Presentation/Public/Pages are defined --
   see original-theme.css for the full accounting of which 15 are in use. */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: calc(var(--pico-spacing) * 0.25); }
.mb-2 { margin-bottom: calc(var(--pico-spacing) * 0.5); }
.mb-3 { margin-bottom: calc(var(--pico-spacing) * 0.75); }
.mb-4 { margin-bottom: var(--pico-spacing); }
.mb-5 { margin-bottom: calc(var(--pico-spacing) * 1.5); }
.mb-6 { margin-bottom: calc(var(--pico-spacing) * 3); }
.mt-2 { margin-top: calc(var(--pico-spacing) * 0.5); }
.mt-3 { margin-top: calc(var(--pico-spacing) * 0.75); }
.mt-4 { margin-top: var(--pico-spacing); }
.mt-5 { margin-top: calc(var(--pico-spacing) * 1.5); }
.mt-6 { margin-top: calc(var(--pico-spacing) * 3); }

.mr-3 { margin-right: calc(var(--pico-spacing) * 0.75); }

.my-5 {
    margin-top: calc(var(--pico-spacing) * 1.5);
    margin-bottom: calc(var(--pico-spacing) * 1.5);
}

.has-text-centered { text-align: center; }

.hoverable tbody tr:hover td,
.hoverable tbody tr:hover th {
    background-color: var(--pico-card-sectioning-background-color);
}

/* Button size modifiers, sized against Pico's own form-element spacing
   so they track the theme rather than hardcoding padding. */
:is(button,[role=button]).is-small,
.form-actions.is-small :is(button,[role=button]) {
    padding: calc(var(--pico-form-element-spacing-vertical) * 0.55)
             calc(var(--pico-form-element-spacing-horizontal) * 0.55);
    font-size: 0.85em;
}

:is(button,[role=button]).is-large {
    padding: calc(var(--pico-form-element-spacing-vertical) * 1.35)
             calc(var(--pico-form-element-spacing-horizontal) * 1.35);
    font-size: 1.15em;
}

/* ===================================================================
   Home page (Public/Pages/home.html) -- "Quiet Software" hero, dashboard
   preview, and roadmap. Scoped to this theme only: the other three themes
   render the same markup unstyled/stacked rather than picking up a look
   that was never designed for them (same tradeoff the old .hero class
   already made -- see THEMES.md; that one was ml-only, this one linen-only).
   =================================================================== */

.home-eyebrow {
    font-family: var(--font-meta);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
}

.home-hero h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.home-badge {
    display: inline-flex;
    margin-top: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-weight: 500;
}

.home-preview {
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.home-preview-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.home-preview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.home-preview-new {
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
}

.home-study-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.home-study-row-last {
    border-bottom: none;
}

.home-ring {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: conic-gradient(var(--text-color) calc(var(--pct) * 3.6deg), var(--border-color) 0);
    display: flex;
}

.home-ring::after {
    content: "";
    width: 28px;
    height: 28px;
    margin: auto;
    border-radius: 999px;
    background: var(--surface);
}

.home-study-name {
    font-weight: 500;
}

.home-study-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.home-study-pct {
    font-family: var(--font-meta);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: auto;
}

.study-detail-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-meta);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.study-detail-type {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    color: var(--text-muted-2);
}

.study-detail-status {
    color: var(--brand-primary);
}

.study-today-actions button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.study-today-card {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface);
    padding: 1.75rem 2rem;
}

.study-today-card blockquote {
    font-family: var(--font-body);
    font-size: 1.4rem;
    line-height: 1.55;
    margin: 1rem 0 0;
    max-width: 40rem;
}

.study-today-actions {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.study-today-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-shrink: 0;
    margin-left: auto;
}

.study-today-actions .is-primary[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.study-sent-list {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
}

.study-sent-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 120px;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    align-items: baseline;
    font-size: 0.9rem;
}

.study-sent-row:last-child {
    border-bottom: none;
}

.study-sent-date {
    font-family: var(--font-meta);
    font-size: 0.8rem;
    color: var(--text-muted-2);
}

.study-sent-status {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted-2);
}

.studies-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 900px) {
    .studies-dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Stacked layout only: a divider between the studies column and the
       sidebar (Next up / Delivery / Joint studies), since side-by-side
       columns already read as separate without one. */
    .studies-sidebar {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 2px solid #9a958c;
    }
}

.studies-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.studies-sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
}

.studies-sidebar-eyebrow {
    font-family: var(--font-meta);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.studies-sidebar-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
}

.studies-sidebar-actions a {
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    color: inherit;
}

.studies-delivery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.studies-delivery-row + .studies-delivery-row {
    border-top: 1px solid var(--border-color);
}

.studies-delivery-status {
    font-family: var(--font-meta);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.studies-sidebar-card-muted {
    background: var(--surface-muted);
}

.studies-sidebar-card-muted p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted-2);
    margin: 0.5rem 0 0;
}

.studies-sidebar-card-muted a {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
}

.studies-row {
    position: relative;
}

.studies-row-delete {
    position: absolute;
    top: 0.9rem;
    right: 1.1rem;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 999px;
}

.studies-row-delete:hover {
    background: var(--surface-muted);
    color: var(--brand-danger);
}

.studies-paused-card {
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 0.9rem;
}

.studies-paused-title {
    font-weight: 600;
}

.studies-paused-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.studies-paused-actions {
    display: flex;
    gap: 0.6rem;
    flex: none;
}

.studies-paused-actions a {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.2;
    text-decoration: none;
    color: inherit;
}

.home-preview-verse {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
}

.home-preview-verse blockquote {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
}

.home-verse-ref {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.6rem 0 0;
}

.home-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.home-section-muted {
    background-color: rgba(0, 0, 0, 0.1);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.home-section-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2.5rem;
}

.home-section-grid h2 {
    margin: 0;
}

.home-section-grid > div:first-child > p {
    color: var(--text-muted);
}

.home-study-type {
    border-top: 2px solid var(--text-color);
    padding-top: 0.9rem;
}

.home-study-type-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.home-roadmap-row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 170px;
    gap: 1.25rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    align-items: baseline;
}

.home-roadmap-row-last {
    border-bottom: 1px solid var(--border-color);
}

.home-roadmap-status {
    font-family: var(--font-meta);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.home-status-live {
    color: var(--brand-primary);
}

.home-status-pending {
    color: var(--brand-accent);
}

.home-closing {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.home-closing h2 {
    margin: 0 0 0.4rem;
}

.home-closing p {
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 900px) {
    .home-hero,
    .home-section-grid,
    .home-roadmap-row {
        grid-template-columns: 1fr;
    }
}


/* Features page */
.feat-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 3.5rem;
    align-items: end;
    padding: 3.5rem 0 3rem;
    border-bottom: 1px solid var(--border-color);
}

.feat-hero h1 {
    margin: 0.9rem 0 0;
    max-width: 640px;
}

.feat-hero > p {
    margin: 0;
    color: var(--text-muted-2);
}

.feat-meta {
    font-family: var(--font-meta);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.feat-delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.feat-delivery-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.6rem;
}

.feat-delivery-card-accent {
    background: var(--surface-muted);
}

.feat-delivery-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.feat-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--brand-primary);
    display: inline-block;
}

.feat-dot-accent {
    background: var(--brand-accent);
}

.feat-dot-neutral {
    background: var(--text-muted);
}

.feat-delivery-status {
    font-family: var(--font-meta);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.feat-delivery-status-accent {
    color: var(--brand-accent);
}

.feat-delivery-status-neutral {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .feat-hero,
    .feat-delivery-grid {
        grid-template-columns: 1fr;
    }
}


/* Auth pages: login / signup */
.auth-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    min-height: 560px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-panel {
    background: var(--surface-muted);
    border-right: 1px solid var(--border-color);
    padding: 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
}

.auth-panel-verse {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.55;
    max-width: 26rem;
}

.auth-panel-verse-ref {
    margin: 1rem 0 0;
    font-family: var(--font-meta);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.auth-panel-tagline {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-form-panel {
    padding: 2.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-toggle {
    display: inline-flex;
    background: var(--surface-muted);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    align-self: flex-start;
    font-size: 0.85rem;
}

.auth-toggle span,
.auth-toggle a {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    color: var(--text-muted-2);
}

.auth-toggle-active {
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-color) !important;
    font-weight: 500;
}

.auth-form-panel h1 {
    margin: 1.4rem 0 0;
}

.auth-form-subhead {
    margin: 0.4rem 0 0;
    color: var(--text-muted-2);
}

.auth-form {
    margin-top: 1.6rem;
}

.auth-form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.auth-form-footnote {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted-2);
}

@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* ============================================================
   Create-study wizard (Studies/focused/create-form.php)
   ============================================================ */
.wizard-section .container { max-width: 900px; }

.wizard-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.wizard-breadcrumb a { color: var(--text-muted); }

.wizard-steps {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a7a49d;
    font-size: 0.85rem;
}
.wizard-step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: #a7a49d;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.wizard-step.is-active { color: var(--text-color); }
.wizard-step.is-active .wizard-step-circle {
    background: var(--text-color);
    border-color: var(--text-color);
    color: var(--surface);
}
.wizard-step.is-done { color: var(--text-color); }
.wizard-step.is-done .wizard-step-circle {
    border-color: var(--text-color);
    color: var(--text-color);
}
.wizard-step.is-clickable {
    cursor: pointer;
}
.wizard-step.is-clickable:hover .wizard-step-circle {
    border-color: var(--text-color);
}
.wizard-step-line {
    width: 2.5rem;
    height: 1px;
    background: var(--border-color);
}

.wizard-h1 {
    font-size: 1.9rem;
    margin: 0 0 0.5rem;
    color: var(--text-color);
}
.wizard-subhead {
    color: var(--text-muted);
    margin: 0 0 1.75rem;
}

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

/* ---- Step 1: type cards ---- */
.wizard-type-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.wizard-type-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background: var(--surface);
    transition: border-color 0.15s ease;
}
.wizard-type-card:hover { border-color: #b9b6ae; }
.wizard-type-card.is-selected {
    border-color: var(--text-color);
    border-width: 2px;
    padding: calc(1.25rem - 1px) calc(1.5rem - 1px);
}
.wizard-type-card.is-disabled { opacity: 0.5; cursor: not-allowed; }
.wizard-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.wizard-type-radio {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    border: 1.5px solid #a7a49d;
    flex-shrink: 0;
    position: relative;
}
.wizard-type-card.is-selected .wizard-type-radio {
    border-color: var(--text-color);
    border-width: 5px;
}
.wizard-type-title {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}
.wizard-type-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.wizard-type-examples {
    font-family: var(--font-meta);
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--surface-muted);
    padding: 0.6rem 0.9rem;
    border-radius: 7px;
    line-height: 1.5;
    text-align: left;
}

/* ---- Shared step layout (content + sidebar) ---- */
.wizard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.75rem;
    align-items: start;
    margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
    .wizard-layout { grid-template-columns: minmax(0, 1fr); }
}
.wizard-sidebar { position: sticky; top: 1.5rem; }
.wizard-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.9rem;
    font-size: 0.9rem;
}
.wizard-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.wizard-summary-row span:first-child { color: var(--text-muted); }
.wizard-summary-row span:last-child {
    text-align: right;
    font-family: var(--font-meta);
    font-size: 0.82rem;
}

/* ---- Step 2: content search ---- */
.wizard-search-row { margin-bottom: 0.75rem; }
.wizard-search-control { position: relative; }
.wizard-search-input { width: 100%; }
.wizard-often-chosen {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.wizard-often-chosen-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}
.wizard-chip {
    border: 1px solid var(--border-color);
    background: var(--surface);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--text-color);
}
.wizard-chip:hover { border-color: #b9b6ae; background: var(--surface-muted); }
.wizard-results-box { border: 1px solid var(--border-color); margin-bottom: 0.75rem; }

/* ---- Step 3: pace cards + schedule fields ---- */
.wizard-pace-cards-wrap {
    position: relative;
}
.wizard-pace-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
@media (max-width: 720px) {
    .wizard-pace-cards { grid-template-columns: minmax(0, 1fr); }
}
/* Literate-UI overlay for a disabled control block -- reuses the
   article.danger/.notification.is-danger palette (muted red) already
   established elsewhere in this theme, rather than a new color, so a
   "this is locked" panel reads consistently across the app. Covers the
   cards rather than replacing them so the pre-checked state underneath
   stays visible through the dimming .wizard-pace-card.is-disabled applies. */
.wizard-pace-lock {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--brand-danger);
    border-radius: 10px;
    background-color: #e3cdbd;
    color: #5c2721;
    font-weight: 600;
}
.wizard-pace-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    cursor: pointer;
    background: var(--surface);
    position: relative;
}
.wizard-pace-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.wizard-pace-card.is-selected {
    border-color: var(--text-color);
    border-width: 2px;
    padding: calc(1.1rem - 1px) calc(1.2rem - 1px);
}
.wizard-pace-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: var(--surface-muted);
}
.wizard-pace-title { font-weight: 600; color: var(--text-color); }
.wizard-pace-desc { font-size: 0.85rem; color: var(--text-muted); }

.wizard-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
    .wizard-field-row { grid-template-columns: minmax(0, 1fr); }
}
.wizard-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.wizard-field select {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    padding: 0.55rem 0.7rem;
    background: var(--surface);
    color: var(--text-color);
    font-family: inherit;
}
.wizard-field select:disabled { opacity: 0.6; cursor: not-allowed; }
.wizard-title-field { margin-top: 1.5rem; }

.wizard-delivery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.6rem;
}
.wizard-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-color);
}
.wizard-delivery-tag {
    font-family: var(--font-meta);
    font-size: 0.72rem;
    color: #3f7d5c;
    letter-spacing: 0.03em;
}
.wizard-delivery-tag-muted { color: #a7823f; }

/* ---- Step 4: review ---- */
.wizard-review-table {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.wizard-review-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
}
.wizard-review-row:last-child { border-bottom: none; }
.wizard-review-label { color: var(--text-muted); font-size: 0.9rem; }
.wizard-review-value {
    font-family: var(--font-meta);
    font-size: 0.85rem;
    color: var(--text-color);
}
.wizard-review-change { font-size: 0.85rem; }

/* ---- Shared actions row ---- */
.wizard-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1rem;
}
.wizard-btn-primary {
    background: var(--text-color);
    color: var(--surface);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    cursor: pointer;
}
.wizard-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.wizard-btn-link { color: var(--text-muted); font-size: 0.9rem; }

/* ===================================================================
   DARK THEME (auto) -- prefers-color-scheme
   Built from scratch -- linen had no dark variant before this (see the
   file header comment above, now stale as of this block).

   Root cause of the original defect: nothing pinned color-scheme or
   data-theme, so on a dark-mode device Pico auto-
   switched every BARE/unstyled element (headings, form inputs) to ITS
   OWN dark palette, while every element this theme actually styles
   stayed on linen's light-only colors -- illegible in both directions
   depending on the element.

   This block covers both halves of that: the :root custom-property
   overrides reach every rule already written against var(), which is
   the majority of the file (including the --text-muted/--text-muted-2/
   --brand-danger promotions made alongside this block, replacing what
   used to be literal hex on ~40 declarations). The explicit per-
   selector overrides below reach the remainder -- semantic state
   triads and a handful of one-off accents that don't route through a
   shared variable. `color-scheme: dark` on :root is the direct fix for
   a bare <input> picking up the browser's own near-black default -- it
   tells native form-control rendering to use
   dark-appropriate defaults instead of pure light-mode assumptions.
   =================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --brand-primary: #5fa383;
        --brand-accent: #c99a52;
        --brand-danger: #c1554a;
        --text-muted: #9a9da2;
        --text-muted-2: #c2c4c7;
        --surface: #221f1b;
        --surface-muted: #2c2925;
        --text-color: #f2f0ec;
        --border-color: #423f39;
        --shadow-color: rgba(0, 0, 0, 0.35);
        --card-light-bg: #221f1b;
        --btn-cta-hover: #4a8a6c;
    }

    /* Body's own bg sits a shade darker than --surface, mirroring the
       light-mode relationship (header/footer/cards on the lighter
       --surface, the page itself on a slightly darker linen tone).
       Drops the light parchment texture image outright rather than
       trying to blend it -- painted for a cream surface, reads as pale
       static over a dark one. A proper dark texture asset is Phase 13
       cosmetic-pass territory, not this fix. */
    body {
        background-color: #1a1815;
        background-image: none;
    }

    /* Semantic state colors -- article[role=alert] / .notification
       triads. Borders already track var(--brand-primary/--brand-accent/
       --brand-danger) via the light-mode promotion above; only the
       bg/text pairs need dark equivalents. Light mode gives info a
       very slightly paler bg than success (#f3f8f5 vs #cfded6) -- that
       distinction is collapsed to one shared dark tone here as not
       worth a second near-identical value. */
    article.success,
    article.info,
    .notification.is-success,
    .notification.is-info {
        background-color: #16261d;
        color: #b7d9c4;
    }

    article.danger,
    .notification.is-danger {
        background-color: #2e1815;
        color: #e8b9b0;
    }

    article.warning,
    .notification.is-warning {
        background-color: #2c2313;
        color: #ecd6a3;
    }

    /* .tag.is-* rgba tints hardcode the light-mode brand rgb() triples
       directly, so they don't move with the var() overrides above --
       given fresh dark tints here. .tag.is-info's blue is a one-off
       (not part of the brand palette in either mode); reuses crgslst's
       dark-mode link-blue for cross-theme consistency rather than
       inventing a fourth blue. */
    .tag.is-success { background-color: rgba(95, 163, 131, 0.18); }
    .tag.is-danger  { background-color: rgba(193, 85, 74, 0.16); }
    .tag.is-warning { background-color: rgba(201, 154, 82, 0.16); }
    .tag.is-info {
        background-color: rgba(110, 168, 254, 0.12);
        color: #6ea8fe;
    }

    /* Delete-study button: base bg already tracks var(--brand-danger);
       only its own darker hover shade (not shared elsewhere) needs one. */
    .delete-study-btn:hover {
        background-color: #a8453b;
    }

    /* Wizard: inactive-step / disabled-radio tertiary muted tone (3
       uses, not worth a shared var for), and the two hover-border tones
       (2 uses each). */
    .wizard-step,
    .wizard-step-circle {
        color: #7a776d;
    }

    .wizard-type-radio {
        border-color: #7a776d;
    }

    .wizard-type-card:hover,
    .wizard-chip:hover {
        border-color: #5a564c;
    }

    /* wizard-pace-lock reuses the danger triad verbatim (border already
       tracks var(--brand-danger) via the light-mode promotion). */
    .wizard-pace-lock {
        background-color: #2e1815;
        color: #e8b9b0;
    }

    /* wizard-delivery-tag(-muted): close-but-not-identical to the brand
       sage/amber, reusing those dark values directly rather than adding
       two more single-use variables. */
    .wizard-delivery-tag { color: #5fa383; }
    .wizard-delivery-tag-muted { color: #c99a52; }

    /* Mobile studies-sidebar divider, inside the existing max-width:
       900px query -- an independent media condition, so this still
       wins on source order for a phone in dark mode. Longhand overrides
       only the color component of that rule's `border-top` shorthand. */
    .studies-sidebar {
        border-top-color: #4a473f;
    }

    /* Home page's muted section band: a light black-tint overlay reads
       as near-invisible once the page itself is already dark -- flipped
       to a faint white lift instead, same purpose (visually separate
       the band from the surrounding sections). */
    .home-section-muted {
        background-color: rgba(255, 255, 255, 0.05);
    }
}
