:root {
    --bg: #0d141d;
    --panel: rgba(18, 28, 40, 0.78);
    --ink: #edf2f8;
    --muted: #9eacbb;
    --line: rgba(132, 152, 177, 0.18);
    --accent: #de6b37;
    --accent-dark: #9f431d;
    --deep: #081019;
    --champagne: #e7c894;
    --sage: #708391;
    --paper: #122030;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at 12% 10%, rgba(222, 107, 55, 0.2), transparent 18%),
        radial-gradient(circle at 84% 8%, rgba(112, 131, 145, 0.2), transparent 19%),
        linear-gradient(180deg, #162332 0%, #0d141d 44%, #081019 100%);
    color: var(--ink);
}

a {
    color: var(--accent);
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.page > .photo-slider {
    width: min(1320px, calc(100vw - 2rem));
    margin-left: 50%;
    transform: translateX(-50%);
}

.topbar {
    border-bottom: 1px solid var(--line);
    background: rgba(8, 16, 25, 0.72);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.topbar-ribbon {
    border-bottom: 1px solid rgba(214, 204, 185, 0.65);
    background: linear-gradient(90deg, var(--deep), #243447);
    color: rgba(255, 248, 240, 0.84);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ribbon-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-inner,
.nav,
.stack-header,
.meta,
.card-actions,
.role-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-inner,
.stack-header {
    justify-content: space-between;
}

.topbar-inner {
    min-height: 76px;
}

.brand-lockup {
    display: grid;
    gap: 0.2rem;
}

.brand {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page {
    padding: 1.25rem 0 3.5rem;
}

.panel,
.card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.panel {
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.grid,
.dashboard-grid {
    display: grid;
    gap: 1.25rem;
}

.grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dashboard-grid {
    grid-template-columns: 1.3fr 1fr;
    margin-bottom: 1.5rem;
}

.card {
    border-radius: 20px;
    padding: 1.5rem;
}

.article {
    max-width: 1040px;
    margin-inline: auto;
}

.eyebrow,
.tag {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
}

.light {
    color: rgba(255, 245, 230, 0.82);
}

.lede {
    font-size: 1.1rem;
    color: var(--muted);
}

.meta {
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.95rem;
}

.button,
button {
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    padding: 0.8rem 1.2rem;
    font: inherit;
    cursor: pointer;
}

.button:hover,
button:hover {
    background: var(--accent-dark);
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    font: inherit;
    background: #fff;
}

.checkbox {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
}

.checkbox input {
    width: auto;
}

.auth-panel {
    max-width: 560px;
}

.demo-box,
.notice,
.review-card {
    border-radius: 16px;
    padding: 1rem;
    background: #fff7e5;
    border: 1px solid #efd8a8;
}

.notice {
    margin-bottom: 1rem;
}

.token-box {
    min-height: 180px;
    width: 100%;
}

.validation {
    color: #b42318;
}

.inline-form {
    display: inline;
}

.link-button {
    background: transparent;
    color: var(--accent);
    padding: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.content-body {
    line-height: 1.9;
    font-size: 1.1rem;
}

.photo-slider {
    position: relative;
    margin-bottom: 2rem;
}

.slider-track {
    position: relative;
    min-height: 33rem;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 32px 80px rgba(16, 25, 35, 0.2);
    background: #101923;
}

.slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 2.5rem;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
    isolation: isolate;
    background-image:
        linear-gradient(90deg, rgba(4, 8, 12, 0.2), rgba(4, 8, 12, 0.38) 34%, rgba(4, 8, 12, 0.84)),
        var(--slide-image);
    background-size: cover;
    background-position: center;
}

.slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.slide::before {
    content: "";
    position: absolute;
    inset: -3.5rem;
    background-image: var(--slide-image);
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) saturate(1.1);
    transform: scale(1.08);
    z-index: -2;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 24%),
        linear-gradient(90deg, rgba(4, 8, 12, 0.18), rgba(4, 8, 12, 0.44) 36%, rgba(4, 8, 12, 0.92)),
        linear-gradient(0deg, rgba(4, 8, 12, 0.3), rgba(4, 8, 12, 0.3));
    z-index: -1;
}

.slide-copy {
    max-width: 38rem;
    color: #fff8f0;
    padding: 1.25rem 0;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.slide-copy h1 {
    margin: 0.35rem 0 0.75rem;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 0.96;
}

.slide-copy p:last-child {
    margin: 0;
    max-width: 33rem;
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(255, 248, 240, 0.88);
}

.slider-dots {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    gap: 0.55rem;
}

.slider-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    padding: 0;
}

.slider-dot.is-active {
    background: #fff5e8;
    border-color: #fff5e8;
}

.news-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(18rem, 0.8fr);
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 2rem;
}

.intro-copy {
    position: relative;
}

.intro-copy::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 0.2rem;
    width: 4px;
    height: calc(100% - 0.2rem);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), rgba(182, 70, 30, 0));
}

.intro-copy h2 {
    margin: 0.35rem 0 0.8rem;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.02;
}

.intro-stat {
    padding: 1.4rem 1.6rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: right;
    background: rgba(18, 28, 40, 0.44);
}

.stat-number {
    display: block;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.9;
    color: var(--accent);
}

.stat-label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.editorial-band {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(22rem, 0.8fr);
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.6rem 1.7rem;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(23, 32, 43, 0.96), rgba(36, 52, 71, 0.94)),
        linear-gradient(180deg, transparent, rgba(255,255,255,0.04));
    color: #fff7eb;
    box-shadow: 0 18px 50px rgba(23, 32, 43, 0.16);
}

.stories-reel {
    margin-bottom: 2.5rem;
    padding: 1.6rem 1.7rem 1.8rem;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(10, 18, 28, 0.96), rgba(25, 38, 52, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    border: 1px solid rgba(132, 152, 177, 0.22);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.stories-reel-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.4rem;
}

.stories-reel-header h3 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.4rem, 2.8vw, 2.4rem);
    line-height: 1.08;
    max-width: 34rem;
}

.stories-reel-controls {
    display: flex;
    gap: 0.75rem;
}

.reel-arrow {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff8f0;
    font-size: 1.55rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.reel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.reel-viewport {
    overflow: hidden;
}

.reel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.35s ease;
    will-change: transform;
}

.reel-story {
    flex: 0 0 calc((100% - 2rem) / 3);
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(7, 14, 22, 0.92);
    border: 1px solid rgba(132, 152, 177, 0.18);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.reel-story-image {
    min-height: 17rem;
    background-size: cover;
    background-position: center;
}

.reel-story-copy {
    padding: 1.2rem 1.15rem 1.35rem;
}

.reel-story-tag {
    margin: 0 0 0.4rem;
    color: var(--champagne);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    font-weight: 700;
}

.reel-story-copy h4 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.08;
}

.reel-story-subtitle {
    margin: 0.5rem 0 0;
    color: rgba(255, 248, 240, 0.82);
    font-size: 0.98rem;
    line-height: 1.45;
}

.reel-story-description {
    margin: 0.8rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.stories-empty {
    padding: 1.25rem 0 0.25rem;
    color: var(--muted);
}

.band-copy h3 {
    margin: 0.3rem 0 0;
    font-size: clamp(1.4rem, 2.6vw, 2.35rem);
    line-height: 1.08;
}

.band-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.band-metrics div {
    padding: 1rem;
    border-left: 1px solid rgba(255, 247, 235, 0.16);
}

.band-metrics strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.band-metrics span {
    display: block;
    margin-top: 0.45rem;
    color: rgba(255, 247, 235, 0.72);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lead-story {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.7fr);
    gap: 2rem;
    padding: 2rem 0 2.25rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.1rem;
    position: relative;
}

.lead-story h2 {
    margin: 0.25rem 0 0.8rem;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 0.98;
}

.lead-summary {
    font-size: 1.18rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 42rem;
}

.lead-story-accent {
    display: grid;
    align-content: start;
    gap: 1rem;
    color: var(--muted);
}

.accent-rule {
    width: 5rem;
    height: 0.35rem;
    background: linear-gradient(90deg, var(--accent), var(--champagne));
    border-radius: 999px;
}

.story-stream {
    display: grid;
    gap: 1.5rem;
}

.story-row {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: start;
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(214, 204, 185, 0.9);
    position: relative;
}

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

.story-row::after {
    content: "";
    position: absolute;
    left: 2rem;
    top: 5.2rem;
    bottom: -1.5rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(182, 70, 30, 0.24), rgba(182, 70, 30, 0));
}

.story-row:last-child::after {
    display: none;
}

.story-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fffaf1, #ead6b6);
    color: var(--accent-dark);
    font-size: 1.35rem;
    font-weight: 700;
}

.story-content h3 {
    margin: 0.25rem 0 0.55rem;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    line-height: 1.08;
}

.story-summary {
    margin: 0 0 0.85rem;
    color: var(--muted);
    line-height: 1.7;
}

.story-action {
    padding-top: 2rem;
}

.text-link {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.closing-banner {
    margin-top: 2.5rem;
    padding: 2rem 2.1rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(18, 28, 40, 0.88), rgba(222, 107, 55, 0.12));
    border: 1px solid rgba(132, 152, 177, 0.18);
}

.closing-banner h3 {
    margin: 0.3rem 0 0.9rem;
    font-size: clamp(1.4rem, 2.8vw, 2.3rem);
    line-height: 1.08;
    max-width: 44rem;
}

.article-header {
    padding-bottom: 1.6rem;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--line);
}

.article-header h1 {
    margin: 0.3rem 0 0.8rem;
    font-size: clamp(2.1rem, 4vw, 4.2rem);
    line-height: 0.97;
}

.article-body-layout {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 2rem;
}

.article-rail {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    padding-top: 0.2rem;
    border-right: 1px solid var(--line);
    color: var(--muted);
}

.rail-label {
    margin-top: 1rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.article-rail strong {
    color: var(--ink);
}

@media (max-width: 860px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .topbar-inner,
    .stack-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        justify-content: flex-start;
    }

    .ribbon-inner {
        flex-direction: column;
        justify-content: center;
        padding: 0.55rem 0;
        text-align: center;
    }

    .slider-track {
        min-height: 26rem;
    }

    .slide {
        padding: 1.5rem;
    }

    .news-intro,
    .editorial-band,
    .stories-reel-header,
    .lead-story,
    .article-body-layout,
    .story-row {
        grid-template-columns: 1fr;
    }

    .intro-stat {
        text-align: left;
    }

    .intro-copy::before,
    .story-row::after {
        display: none;
    }

    .slide-copy {
        padding: 0;
    }

    .story-action {
        padding-top: 0;
    }

    .article-rail {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding-bottom: 1rem;
    }

    .band-metrics {
        grid-template-columns: 1fr;
    }

    .band-metrics div {
        border-left: none;
        border-top: 1px solid rgba(255, 247, 235, 0.16);
        padding-left: 0;
        padding-right: 0;
    }

    .stories-reel-header {
        display: grid;
    }

    .stories-reel-controls {
        justify-content: flex-start;
    }

    .reel-story {
        flex-basis: 100%;
    }
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}
