/* Help One Save Two — dawn after night
   Soft but truthful hope from hopelessness.
   Distinct from Living the Poem (no dark literary gold / Merriweather). */

html.brand-recovery {
    --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
    --font-body: "Figtree", system-ui, -apple-system, sans-serif;
    --radius: 4px;
    /* Content + chrome share one wide rail; prose keeps its own measure below */
    --shell-width: 42rem;
    --shell-wide: 64rem;
    --shell-gutter: 1.25rem;
    color-scheme: light;

    /* Night floor → dawn air */
    --night: #141b26;
    --night-soft: #243044;
    --dawn: #f3ebe3;
    --dawn-deep: #e8d9cc;
    --hope: #b85f3f;
    --hope-soft: rgba(184, 95, 63, 0.16);
    --hope-deep: #8f452c;
    --mist: #4a5d72;
    --text: #141b26;
    --text-muted: #3a4556;
    --border: rgba(20, 27, 38, 0.22);
    --bg: var(--dawn);
    --bg-elevated: #faf6f1;
    --bg-soft: #ebe0d5;
    --accent: var(--hope);
    --accent-soft: var(--hope-soft);
    --accent-hover: var(--hope-deep);
    --link: #2a4a63;
    --link-hover: var(--night);
    --header-bg: rgba(250, 246, 241, 0.94);
    --btn-primary-bg: var(--night);
    --btn-primary-text: #f3ebe3;
    --mark: var(--hope);
    --passage-rule: rgba(184, 95, 63, 0.65);
}

html.brand-recovery[data-theme="dark"] {
    color-scheme: dark;
    --bg: #121820;
    --bg-elevated: #1a2230;
    --bg-soft: #1e2838;
    --text: #f2ebe4;
    --text-muted: #c5cdd8;
    --border: rgba(242, 235, 228, 0.22);
    --accent: #e0a080;
    --accent-soft: rgba(224, 160, 128, 0.2);
    --accent-hover: #efb89a;
    --link: #d4e0ec;
    --link-hover: #ffffff;
    --header-bg: rgba(18, 24, 32, 0.9);
    --btn-primary-bg: #d49278;
    --btn-primary-text: #121820;
    --mark: #d49278;
    --passage-rule: rgba(212, 146, 120, 0.4);
    --dawn: #121820;
    --dawn-deep: #1a2230;
    --night: #ebe4dc;
}

html.brand-recovery,
html.brand-recovery body {
    min-height: 100%;
}

html.brand-recovery body {
    margin: 0;
    color: var(--text);
    font: 1.0625rem/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
    background-color: var(--bg);
    /* Soft wash only — keep mid-page readable (no dark band behind forms) */
    background-image:
        radial-gradient(ellipse 100% 55% at 50% -8%, rgba(184, 95, 63, 0.14), transparent 52%),
        linear-gradient(180deg, #d8cfc6 0%, var(--dawn) 18%, var(--dawn) 100%);
    background-attachment: fixed;
}

html.brand-recovery[data-theme="dark"] body {
    background-image:
        radial-gradient(ellipse 100% 60% at 50% -8%, rgba(212, 146, 120, 0.2), transparent 50%),
        linear-gradient(180deg, #0a0e14 0%, #121820 40%, #121820 100%);
}

html.brand-recovery a {
    color: var(--link);
    font-weight: 600;
    text-underline-offset: 0.18em;
}

html.brand-recovery a:hover {
    color: var(--link-hover);
}

.host-shell {
    width: min(100% - (var(--shell-gutter) * 2), var(--shell-wide));
    margin-inline: auto;
}

.host-shell--narrow {
    width: min(100% - (var(--shell-gutter) * 2), var(--shell-width));
}

.host-shell--wide {
    width: min(100% - (var(--shell-gutter) * 2), var(--shell-wide));
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 100;
    background: var(--bg-elevated);
    padding: 0.5rem 0.75rem;
}

/* —— Header —— */
.host-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header-bg);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

.host-header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    flex-wrap: wrap;
    width: min(100% - (var(--shell-gutter) * 2), var(--shell-wide));
    margin-inline: auto;
}

.host-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.host-brand-mark {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--night) url('/assets/images/host/winged-coin.jpg') center / cover no-repeat;
    box-shadow: 0 0 0 1px rgba(196, 120, 90, 0.5);
}

.host-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.host-brand-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
    font-style: italic;
}

.host-brand-tagline {
    font-size: 0.72rem;
    color: var(--mist);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.host-nav {
    margin-left: auto;
}

.host-nav .site-menu {
    display: flex;
    gap: 0.15rem 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.host-nav .site-menu a {
    text-decoration: none;
    color: var(--mist);
    font-size: 0.9rem;
    font-weight: 600;
}

.host-nav .site-menu li.is-active a,
.host-nav .site-menu a:hover {
    color: var(--text);
}

/* —— Main —— */
.host-main {
    padding: 0 0 4rem;
}

.host-main > .host-shell {
    padding-top: 0;
}

/* —— Home: today's note leads; brand lives in the top bar —— */
.host-home {
    width: min(100% - (var(--shell-gutter) * 2), var(--shell-wide));
    margin: 0 auto 2.5rem;
    padding-top: 1rem;
}

.host-home-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 0 0 1rem;
    animation: host-rise 0.6s ease-out both;
}
.host-home-cta .host-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.host-home .host-today {
    margin-top: 0;
    animation: host-rise 0.75s 0.08s ease-out both;
}

.host-home .host-today-label h1 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: -0.01em;
}

.host-today-main {
    display: grid;
    gap: 1.25rem;
}

.host-home .host-today-photo {
    margin: 0;
    aspect-ratio: 3 / 2;
    max-height: min(34vh, 18rem);
}

.host-home .host-today-photo img {
    object-fit: cover;
}

.host-today-copy .host-passage-body {
    margin: 0;
}

@media (min-width: 900px) {
    .host-home .host-today-main {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 1.75rem 2rem;
        align-items: start;
    }

    .host-home .host-today-photo {
        max-height: none;
        aspect-ratio: 3 / 2;
    }

    .host-home .host-passage-body {
        font-size: 1.12rem;
    }
}

/* —— Hero: one composition (inner pages / legacy) —— */
.host-hero {
    position: relative;
    margin: 0 calc(50% - 50vw) 0;
    width: 100vw;
    min-height: min(72vh, 36rem);
    display: flex;
    align-items: flex-end;
    padding: 4rem 0 3.5rem;
    color: #f3ebe3;
    overflow: hidden;
}

.host-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(26, 34, 48, 0.15) 40%, rgba(26, 34, 48, 0.82) 100%),
        url('/assets/images/host/header.png') center 30% / cover no-repeat,
        linear-gradient(160deg, #1a2230 0%, #3d4558 45%, #8b6b5c 100%);
    z-index: 0;
    animation: host-dawn-in 1.4s ease-out both;
}

.host-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(196, 120, 90, 0.35), transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.host-hero-inner {
    position: relative;
    z-index: 2;
    width: min(100% - (var(--shell-gutter) * 2), var(--shell-wide));
    margin-inline: auto;
    animation: host-rise 1s 0.2s ease-out both;
}

.host-hero-inner .host-lede,
.host-hero-inner .host-cta-row {
    max-width: 36rem;
}

.host-hero-mark {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 0 1.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    animation: host-rise 1.1s 0.05s ease-out both;
}

.host-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f0c4b0;
    font-weight: 700;
    margin: 0 0 0.65rem;
}

.host-page .host-kicker,
.host-shell .host-kicker {
    color: var(--hope-deep);
}

.host-hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 8vw, 4rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 0.85rem;
    color: #faf6f1;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.host-lede {
    font-size: 1.12rem;
    color: rgba(250, 246, 241, 0.95);
    max-width: 28rem;
    margin: 0 0 1.6rem;
    font-weight: 500;
    line-height: 1.55;
}

.host-page .host-lede {
    color: var(--text);
    font-weight: 500;
    opacity: 0.92;
}

/* Solid panel so form/content never sits on the gradient */
.host-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 2rem 1.5rem 2.25rem;
    margin: 2rem 0 1rem;
    box-shadow: 0 12px 40px rgba(20, 27, 38, 0.08);
}

.host-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
}

.host-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    border-radius: var(--radius);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.host-btn:hover {
    transform: translateY(-1px);
}

.host-btn-primary {
    background: var(--hope);
    color: #1a2230 !important;
}

.host-btn-primary:hover {
    background: #d49278;
    color: #1a2230 !important;
}

.host-btn-ghost {
    border: 1px solid rgba(243, 235, 227, 0.45);
    color: #f3ebe3 !important;
    background: rgba(26, 34, 48, 0.25);
}

.host-btn-ghost:hover {
    border-color: #f3ebe3;
    color: #faf6f1 !important;
}

.host-btn-solid {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text) !important;
}

.host-btn-outline {
    border: 1px solid var(--border);
    color: var(--text) !important;
    background: transparent;
}

/* —— Today's note —— */
.host-today {
    margin-top: -1.5rem;
    position: relative;
    z-index: 3;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 2rem 1.5rem 2.25rem;
    box-shadow: 0 -20px 60px rgba(26, 34, 48, 0.12);
    animation: host-rise 0.9s 0.45s ease-out both;
}

.host-today-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--passage-rule);
}

.host-today-label h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: -0.01em;
}

.host-today-date,
.host-note-date {
    font-size: 0.8rem;
    color: var(--mist);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.host-today-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.host-today-nav-btn {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0.35rem 0;
    color: var(--hope-deep);
    font: inherit;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-underline-offset: 0.2em;
}

.host-today-nav-btn:hover:not(:disabled) {
    text-decoration: underline;
    color: var(--text);
}

.host-today-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.host-today.is-loading #host-today-panel {
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.host-page .host-note-date {
    margin: 0 0 0.5rem;
}

.host-notes-copy .host-note-date {
    display: block;
    margin: 0 0 0.35rem;
}

.host-passage-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    margin: 0 0 1rem;
    color: var(--mist);
    line-height: 1.35;
}

.host-passage-body {
    font-size: 1.08rem;
    line-height: 1.8;
    white-space: pre-wrap;
    color: var(--text);
    max-width: 40rem;
}

.host-passage-signoff {
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--hope-deep);
    font-size: 1.05rem;
}

html.brand-recovery[data-theme="dark"] .host-passage-signoff {
    color: var(--accent);
}

/* —— Content pages —— */
.host-page {
    padding: 2.75rem 0 1rem;
    animation: host-rise 0.7s ease-out both;
}

.host-page h1 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 2.75rem);
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    line-height: 1.15;
}

.host-page h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.45rem;
    margin: 2rem 0 0.75rem;
}

.host-page p,
.host-page li {
    color: var(--text);
    max-width: 36rem;
}

.host-page ul {
    padding-left: 1.2rem;
}

.host-page .host-lede {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 34rem;
}

.host-book-cover {
    display: block;
    width: min(100%, 15rem);
    height: auto;
    border-radius: 2px;
    margin: 0 0 1.75rem;
    box-shadow: 0 20px 50px rgba(26, 34, 48, 0.2);
}

.host-prose-block {
    margin: 1.5rem 0;
    padding: 1.25rem 0 1.25rem 1.15rem;
    border-left: 3px solid var(--passage-rule);
}

.host-prose-block p:last-child {
    margin-bottom: 0;
}

.host-steps {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    counter-reset: host-step;
}

.host-steps li {
    counter-increment: host-step;
    position: relative;
    padding: 1rem 0 1rem 3rem;
    border-bottom: 1px solid var(--border);
    max-width: none;
}

.host-steps li::before {
    content: counter(host-step);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--hope-deep);
    color: #faf6f1;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

html.brand-recovery[data-theme="dark"] .host-steps li::before {
    background: var(--accent);
    color: #121820;
}

.host-notes-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0;
}

.host-notes-list li {
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border);
    max-width: none;
}

.host-notes-list li.has-photo {
    display: grid;
    gap: 0.85rem;
}

.host-notes-thumb {
    display: block;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-soft);
}

.host-notes-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.host-notes-thumb:hover img {
    transform: scale(1.03);
}

.host-notes-copy a {
    text-decoration: none;
    color: inherit;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
}

.host-notes-list a:hover,
.host-notes-copy a:hover {
    color: var(--hope-deep);
}

.host-notes-meta {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--mist);
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 500;
}

.host-note-photo {
    position: relative;
    margin: 1.35rem 0 0;
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: 0 10px 28px rgba(20, 27, 38, 0.1);
    aspect-ratio: 3 / 2;
}

.host-note-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.host-note-photo:hover .host-today-edit,
.host-note-photo:focus-within .host-today-edit,
.host-note-photo:hover .host-today-remove,
.host-note-photo:focus-within .host-today-remove {
    opacity: 1;
    transform: translateY(0);
}

.host-today-photo {
    position: relative;
    margin: 0 0 1.35rem;
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg-soft);
    aspect-ratio: 3 / 2;
}

.host-today-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
}

@media (min-width: 720px) {
    .host-notes-list {
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
        row-gap: 0.25rem;
    }

    .host-notes-list li {
        padding: 1.25rem 0;
    }

    .host-notes-list li.has-photo {
        align-content: start;
    }
}

.host-gallery-grid {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.host-gallery-grid li,
.host-gallery-item {
    margin: 0;
    max-width: none;
}

.host-gallery-mod-note {
    margin: 0.75rem 0 0;
    font-size: 0.92rem;
    color: var(--mist);
}

.host-gallery-figure {
    position: relative;
    margin: 0;
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg-soft);
    aspect-ratio: 4 / 3;
}

.host-gallery-grid li.is-tall .host-gallery-figure,
.host-gallery-item.is-tall .host-gallery-figure {
    aspect-ratio: 3 / 4;
}

.host-gallery-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
    filter: saturate(0.92) contrast(1.02);
}

.host-gallery-figure:hover img {
    transform: scale(1.025);
    filter: saturate(1) contrast(1.04);
}

.host-gallery-delete,
.host-gallery-edit {
    position: absolute;
    top: 0.55rem;
    z-index: 2;
    appearance: none;
    border: 0;
    border-radius: 2px;
    padding: 0.35rem 0.65rem;
    font: 600 0.75rem/1.2 var(--font-body);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(28, 24, 20, 0.78);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.host-gallery-delete {
    right: 0.55rem;
}

.host-gallery-edit {
    left: 0.55rem;
}

.host-gallery-item:hover .host-gallery-delete,
.host-gallery-item:focus-within .host-gallery-delete,
.host-gallery-delete:focus-visible,
.host-gallery-item:hover .host-gallery-edit,
.host-gallery-item:focus-within .host-gallery-edit,
.host-gallery-edit:focus-visible,
.host-today-photo:hover .host-today-edit,
.host-today-photo:focus-within .host-today-edit,
.host-today-edit:focus-visible,
.host-today-photo:hover .host-today-remove,
.host-today-photo:focus-within .host-today-remove,
.host-today-remove:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.host-today-edit,
.host-today-remove {
    opacity: 0.9;
    transform: none;
}

.host-gallery-edit:hover,
.host-gallery-edit:focus-visible {
    background: var(--hope-deep);
}

.host-gallery-delete:hover,
.host-gallery-delete:focus-visible {
    background: #8b2e2e;
}

.host-gallery-delete:disabled {
    opacity: 0.5;
    cursor: wait;
}

.host-gallery-status {
    margin: 1rem 0 0;
    text-align: center;
}

.host-gallery-sentinel {
    height: 1px;
    margin: 0;
    padding: 0;
}

@media (min-width: 640px) {
    .host-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (min-width: 960px) {
    .host-gallery-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.15rem;
    }

    .host-gallery-grid li.is-tall,
    .host-gallery-item.is-tall {
        grid-row: span 2;
    }

    .host-gallery-grid li.is-tall .host-gallery-figure,
    .host-gallery-item.is-tall .host-gallery-figure {
        height: 100%;
        aspect-ratio: auto;
        min-height: 100%;
    }
}

.host-sister {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--mist);
    font-size: 0.95rem;
    font-weight: 500;
}

.host-band {
    margin: 2.5rem calc(50% - 50vw) 0;
    width: 100vw;
    background: var(--night);
    color: #ebe4dc;
    padding: 2.5rem 0;
}

.host-band .host-shell p {
    color: rgba(235, 228, 220, 0.85);
    max-width: 32rem;
}

.host-band h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: #faf6f1;
    margin: 0 0 0.75rem;
}

.host-band a {
    color: #e8b9a4;
}

/* —— Footer —— */
.host-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 3rem;
    color: var(--mist);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(250, 246, 241, 0.85);
}

html.brand-recovery[data-theme="dark"] .host-footer {
    background: transparent;
}

.host-footer-inner {
    width: min(100% - (var(--shell-gutter) * 2), var(--shell-wide));
    margin-inline: auto;
}

.host-footer-title {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text);
    font-weight: 400;
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
}

.host-footer-copy {
    margin: 0 0 1.25rem;
}

.host-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin-bottom: 1.25rem;
}

.host-footer-links a {
    text-decoration: none;
    font-weight: 500;
}

.host-footer-contact {
    margin: 0;
}

/* —— Sitemap (human) —— */
.host-sitemap-machine {
    font-size: 0.92rem;
    margin: -0.5rem 0 1.75rem;
}

.host-sitemap-section {
    margin: 1.75rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.host-sitemap-section:first-of-type {
    margin-top: 1.25rem;
}

.host-sitemap-section h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.55rem;
    margin: 0 0 0.85rem;
}

.host-sitemap-list,
.host-sitemap-notes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.host-sitemap-list li {
    margin: 0 0 0.85rem;
}

.host-sitemap-list a {
    font-weight: 600;
}

.host-sitemap-blurb {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
}

.host-sitemap-notes li {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.75rem 1rem;
    align-items: baseline;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(20, 27, 38, 0.08);
}

html.brand-recovery[data-theme="dark"] .host-sitemap-notes li {
    border-bottom-color: rgba(242, 235, 228, 0.1);
}

.host-sitemap-notes time {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.host-week-more {
    margin: 1.1rem 0 0;
}

.host-week-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
}

.host-week-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.host-week-list li {
    margin: 0 0 1.75rem;
    padding: 0 0 1.5rem;
    border-bottom: 1px solid var(--border);
}

.host-week-list li:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.host-week-list h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.45rem;
    margin: 0.15rem 0 0.65rem;
}

.host-week-list h2 a {
    text-decoration: none;
    color: inherit;
}

.host-week-list h2 a:hover {
    color: var(--hope-deep);
}

.host-week-more {
    margin-top: 1.75rem;
}

@media (max-width: 560px) {
    .host-sitemap-notes li {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

.theme-toggle {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.theme-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
}

html.brand-recovery[data-theme="light"] .theme-icon-sun,
html.brand-recovery:not([data-theme="dark"]) .theme-icon-sun {
    display: none;
}

html.brand-recovery[data-theme="dark"] .theme-icon-moon {
    display: none;
}

html.brand-recovery .muted {
    color: var(--mist);
}

/* —— Subscribe / forms —— */
.host-subscribe {
    max-width: 28rem;
    margin-inline: auto;
}

.host-subscribe-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--border);
}

.host-subscribe-header h1 {
    margin-bottom: 0.65rem;
}

.host-subscribe-header .host-lede {
    margin-bottom: 0;
}

.host-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.host-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.host-field > label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
}

.host-optional {
    font-weight: 500;
    color: var(--mist);
    font-size: 0.85em;
}

.host-field input[type="email"],
.host-field input[type="text"],
.host-field select,
.host-form textarea {
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid rgba(20, 27, 38, 0.38);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 1.05rem;
    padding: 0.9rem 1rem;
    line-height: 1.3;
    box-shadow: inset 0 1px 2px rgba(20, 27, 38, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html.brand-recovery[data-theme="dark"] .host-field input[type="email"],
html.brand-recovery[data-theme="dark"] .host-field input[type="text"],
html.brand-recovery[data-theme="dark"] .host-field select,
html.brand-recovery[data-theme="dark"] .host-form textarea {
    background: var(--bg-soft);
    border-color: rgba(242, 235, 228, 0.4);
    box-shadow: none;
}

.host-field input::placeholder {
    color: #7a8494;
    opacity: 1;
}

.host-field input:hover,
.host-field select:hover {
    border-color: rgba(20, 27, 38, 0.55);
}

.host-field input:focus,
.host-field select:focus,
.host-form textarea:focus {
    outline: none;
    border-color: var(--hope);
    box-shadow: 0 0 0 3px var(--hope-soft);
}

.host-select-wrap {
    position: relative;
}

.host-select-wrap::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--mist);
    border-bottom: 2px solid var(--mist);
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.host-select-wrap select {
    padding-right: 2.5rem;
    cursor: pointer;
}

.host-tz-note {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.45;
}

.host-tz-note strong {
    color: var(--text);
    font-weight: 700;
}

.host-channels {
    margin: 0.15rem 0 0;
    padding: 1rem 0 0;
    border: 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.host-channels legend {
    padding: 0;
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    float: none;
    width: auto;
}

.host-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    margin: 0;
    border: 2px solid rgba(20, 27, 38, 0.28);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

html.brand-recovery[data-theme="dark"] .host-check {
    background: var(--bg-soft);
    border-color: rgba(242, 235, 228, 0.28);
}

.host-check:hover:not(.host-check-disabled) {
    border-color: rgba(20, 27, 38, 0.45);
}

.host-check:has(input:checked) {
    border-color: var(--hope);
    background: rgba(184, 95, 63, 0.07);
    box-shadow: 0 0 0 1px rgba(184, 95, 63, 0.2);
}

.host-check-disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.host-check input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: inherit;
    z-index: 1;
}

.host-check-ui {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.12rem;
    border: 2px solid rgba(20, 27, 38, 0.4);
    border-radius: 4px;
    background: #fff;
    position: relative;
    z-index: 0;
}

.host-check:has(input:checked) .host-check-ui {
    background: var(--hope);
    border-color: var(--hope);
}

.host-check:has(input:checked) .host-check-ui::after {
    content: "";
    position: absolute;
    left: 0.34rem;
    top: 0.08rem;
    width: 0.34rem;
    height: 0.62rem;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.host-check-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    position: relative;
    z-index: 0;
}

.host-check-text strong {
    font-size: 0.98rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.3;
}

.host-check-text small {
    font-size: 0.85rem;
    color: var(--mist);
    font-weight: 500;
    line-height: 1.35;
}

.host-submit {
    appearance: none;
    border: 0;
    width: 100%;
    margin-top: 0.5rem;
    padding: 1.05rem 1.25rem;
    border-radius: 6px;
    background: var(--night);
    color: #faf6f1;
    font: inherit;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(20, 27, 38, 0.18);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.host-submit:hover {
    background: #243044;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(20, 27, 38, 0.22);
}

.host-submit:focus-visible {
    outline: 3px solid var(--hope);
    outline-offset: 3px;
}

.host-fine-print {
    margin: 1.35rem 0 0;
    font-size: 0.88rem;
    color: var(--mist);
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.host-alert {
    margin: 0 0 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.host-alert-success {
    background: rgba(46, 125, 50, 0.1);
    color: #1b5e20;
    border: 1px solid rgba(46, 125, 50, 0.25);
}

.host-alert-error {
    background: rgba(198, 40, 40, 0.08);
    color: #b71c1c;
    border: 1px solid rgba(198, 40, 40, 0.25);
}

/* Legacy stack-form (read/feedback pages) */
html.brand-recovery .daily-page,
html.brand-recovery .stack-form {
    max-width: 36rem;
}

html.brand-recovery .stack-form label {
    display: block;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
}

html.brand-recovery .stack-form input,
html.brand-recovery .stack-form select,
html.brand-recovery .stack-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.4rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid rgba(20, 27, 38, 0.28);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

html.brand-recovery .stack-form button {
    appearance: none;
    border: 0;
    background: var(--night);
    color: #faf6f1;
    padding: 0.9rem 1.35rem;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

html.brand-recovery .form-success {
    color: #1b5e20;
}

html.brand-recovery .form-error {
    color: #b71c1c;
}

@keyframes host-dawn-in {
    from { opacity: 0.6; transform: scale(1.04); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes host-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* —— 404 —— */
.host-404 {
    width: min(100% - (var(--shell-gutter) * 2), var(--shell-wide));
    margin: 0 auto;
    min-height: min(72vh, 40rem);
    display: flex;
    align-items: center;
}

.host-404-stage {
    position: relative;
    width: 100%;
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 0 3rem;
}

.host-404-glow {
    position: absolute;
    inset: -10% -5% auto;
    height: 70%;
    background:
        radial-gradient(ellipse 70% 80% at 20% 40%, rgba(184, 95, 63, 0.22), transparent 60%),
        radial-gradient(ellipse 50% 60% at 75% 30%, rgba(74, 93, 114, 0.18), transparent 55%);
    pointer-events: none;
    animation: host-dawn-in 1.4s ease-out both;
}

.host-404-mark {
    margin: 0;
    justify-self: center;
    width: min(42vw, 13.5rem);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(184, 95, 63, 0.35),
        0 18px 48px rgba(20, 27, 38, 0.18);
    animation: host-rise 0.9s ease-out both, host-404-drift 12s 1s ease-in-out infinite;
}

.host-404-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.05);
}

.host-404-copy {
    position: relative;
    text-align: center;
    max-width: 28rem;
    margin-inline: auto;
    animation: host-rise 0.85s 0.12s ease-out both;
}

.host-404-copy .host-kicker {
    color: var(--hope-deep);
}

.host-404-copy h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(2rem, 5.5vw, 2.85rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
}

.host-404-copy .host-lede {
    margin-inline: auto;
    margin-bottom: 1.75rem;
    color: var(--text-muted);
}

.host-404-copy .host-cta-row {
    justify-content: center;
}

@keyframes host-404-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

html.brand-recovery[data-theme="dark"] .host-404-glow {
    background:
        radial-gradient(ellipse 70% 80% at 20% 40%, rgba(212, 146, 120, 0.2), transparent 60%),
        radial-gradient(ellipse 50% 60% at 75% 30%, rgba(120, 150, 180, 0.12), transparent 55%);
}

html.brand-recovery[data-theme="dark"] .host-404-mark {
    box-shadow:
        0 0 0 1px rgba(224, 160, 128, 0.35),
        0 18px 48px rgba(0, 0, 0, 0.45);
}

@media (min-width: 720px) {
    .host-404-stage {
        grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
        gap: 3rem;
        padding: 3.5rem 0 4rem;
    }

    .host-404-mark {
        justify-self: end;
        width: min(100%, 15rem);
    }

    .host-404-copy {
        text-align: left;
        margin-inline: 0;
        max-width: 32rem;
    }

    .host-404-copy .host-lede {
        margin-inline: 0;
    }

    .host-404-copy .host-cta-row {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .host-404-glow,
    .host-404-mark,
    .host-404-copy {
        animation: none;
    }
}

@media (min-width: 720px) {
    .host-panel,
    .host-today {
        padding: 2.5rem 2.25rem 2.75rem;
    }
}

@media (min-width: 1100px) {
    html.brand-recovery {
        --shell-wide: 72rem;
        --shell-gutter: 1.75rem;
    }

    .host-panel,
    .host-today {
        padding: 2.75rem 2.75rem 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .host-hero::before,
    .host-hero-inner,
    .host-hero-mark,
    .host-home-cta,
    .host-home .host-today,
    .host-today,
    .host-page {
        animation: none !important;
    }
}

/* Author books page leftovers */
.books-page .books-header { margin-bottom: 2rem; }
.books-grid { display: grid; gap: 1.5rem; }
.book-item { padding: 1.25rem 0; border-top: 1px solid var(--border, #2f2c27); }
.book-item h2 { margin-top: 0; }
.btn-primary {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 8px;
    background: var(--btn-primary-bg, #c4a35a);
    color: var(--btn-primary-text, #1a1510);
    text-decoration: none;
    font-weight: 600;
}

/* Photo editor modal */
body.host-photo-editor-open {
    overflow: hidden;
}

.host-photo-editor {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.host-photo-editor[hidden] {
    display: none !important;
}

.host-photo-editor-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 14, 0.72);
}

.host-photo-editor-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(92vh, 900px);
    overflow: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1rem 1.15rem 1.25rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.host-photo-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.host-photo-editor-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.35rem;
}

.host-photo-editor-close {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--mist);
}

.host-photo-editor-stage {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    min-height: 240px;
    display: grid;
    place-items: center;
    padding: 0.75rem;
}

.host-photo-editor-frame {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.host-photo-editor-frame img {
    display: block;
    max-width: min(100%, 820px);
    max-height: 55vh;
    width: auto;
    height: auto;
}

.host-photo-editor-crop {
    position: absolute;
    border: 2px solid #f2e6c9;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
    cursor: move;
    touch-action: none;
}

.host-photo-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.host-photo-editor-toolbar button {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    padding: 0.45rem 0.75rem;
    font: 600 0.8rem/1.2 var(--font-body);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
}

.host-photo-editor-toolbar button:hover {
    border-color: var(--hope-deep);
    color: var(--hope-deep);
}

.host-photo-editor.is-busy .host-photo-editor-toolbar button {
    opacity: 0.55;
    pointer-events: none;
}

.host-photo-editor-hint {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
}

/* Photo expand + lightbox (public) */
.host-photo-expand {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(28, 24, 20, 0.72);
    color: #fff;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    cursor: zoom-in;
}

.host-photo-expand svg {
    width: 1rem;
    height: 1rem;
}

.host-gallery-figure:hover .host-photo-expand,
.host-gallery-figure:focus-within .host-photo-expand,
.host-today-photo:hover .host-photo-expand,
.host-today-photo:focus-within .host-photo-expand,
.host-note-photo:hover .host-photo-expand,
.host-note-photo:focus-within .host-photo-expand,
.host-photo-expand:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.host-gallery-figure:hover .host-gallery-delete,
.host-gallery-item:focus-within .host-gallery-delete {
    /* keep remove on right; expand sits above when both present for moderators */
}

.host-gallery-item:hover .host-gallery-delete,
.host-gallery-item:focus-within .host-gallery-delete {
    top: 2.75rem;
}

.host-today-photo .host-photo-expand,
.host-note-photo .host-photo-expand {
    right: 0.55rem;
}

.host-today-photo .host-today-remove,
.host-note-photo .host-today-remove {
    top: 2.75rem;
    right: 0.55rem;
    left: auto;
}

body.host-lightbox-open {
    overflow: hidden;
}

.host-lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    padding: clamp(0.5rem, 1.5vw, 1rem);
    background: rgba(18, 16, 14, 0.88);
    backdrop-filter: blur(4px);
}

.host-lightbox.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.host-lightbox-shell {
    position: relative;
    width: min(96vw, 100%);
    height: min(96vh, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.host-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 96vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.host-lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    background: rgba(28, 24, 20, 0.72);
    color: #fff;
    cursor: pointer;
}

.host-lightbox-close svg {
    width: 1.05rem;
    height: 1.05rem;
}
