html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 128px;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html:has(dialog:modal) {
    overflow: hidden;
}

body {
    margin: 0;
    background: #5a0f11;
    color: #d6c1c4;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

button,
input,
select,
textarea {
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
}

button,
a,
summary {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: #f7a3b1;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

a:hover {
    color: #e8a759;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-weight: 400;
    overflow-wrap: anywhere;
}

strong,
b {
    font-weight: 700;
}

img {
    display: block;
    max-width: 100%;
}

svg {
    display: block;
    flex-shrink: 0;
}

[hidden] {
    display: none;
}

:focus-visible {
    outline: 2px solid #e8a759;
    outline-offset: 5px;
}

.city_pages:focus-visible {
    outline-offset: 8px;
}

.city_pages_accessible {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.city_signature_row,
.city_directory_row,
.city_pages,
.final_line_line,
.city_pages_skip {
    width: calc(100% - 36px);
    max-width: 1070px;
    margin-inline: auto;
    padding-inline: 0;
}

.city_pages_skip {
    display: flex;
    align-items: center;
    min-height: 34px;
    font-size: 12px;
}

.city_header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 104px;
    background: #5a0f11;
    box-shadow: 0 5px 20px rgba(31, 3, 6, 0.16);
}

.city_signature_row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: 44px;
    gap: 16px;
}

.city_signature {
    grid-column: 2;
    color: #f7a3b1;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.05em;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.city_header_note,
.city_header_edition_caption {
    font-size: 11px;
}

.city_header_edition_caption {
    justify-self: end;
    text-align: right;
}

.city_directory_row {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

#browse_dispatches {
    min-width: 0;
    max-width: 100%;
}

.menu-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
}

.city_directory_item,
.menu-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 3px 12px;
    border-radius: 8px;
    color: #d6c1c4;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.city_directory_item:hover,
.menu-disclosure > summary:hover {
    background: #76272d;
    color: #f7a3b1;
}

.city_directory_item[aria-current="page"],
.menu-disclosure[open] > summary {
    background: #f7a3b1;
    color: #5a0f11;
}

.menu-disclosure {
    position: relative;
}

.menu-disclosure > summary {
    list-style: none;
    cursor: pointer;
}

.menu-disclosure > summary::-webkit-details-marker {
    display: none;
}

.menu-disclosure > summary svg {
    width: 22px;
    height: 22px;
}

.dropdown-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 25;
    display: grid;
    gap: 6px;
    width: 280px;
    max-width: calc(100vw - 48px);
    padding: 12px;
    border-radius: 14px;
    background: #712129;
    box-shadow: 0 12px 30px rgba(26, 2, 6, 0.25);
}

.dropdown-links .city_directory_item {
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 12px;
}

.city_directory_toggle,
.city_directory_close {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #76272d;
    color: #f7a3b1;
}

.city_directory_toggle {
    display: none;
}

.city_directory_close {
    display: inline-flex;
    flex-shrink: 0;
}

.city_directory_toggle:hover,
.city_directory_close:hover {
    background: #8a333b;
}

.directory_panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: min(400px, calc(100% - 24px));
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 20px 0 0 20px;
    background: #68171c;
    color: #d6c1c4;
    box-shadow: -12px 0 40px rgba(22, 2, 5, 0.25);
}

.directory_panel[open] {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.directory_panel::backdrop {
    background: rgba(22, 2, 5, 0.7);
}

.directory_panel_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.directory_panel_header h2 {
    font-size: 22px;
}

.directory_panel_links {
    min-width: 0;
}

.directory_panel .menu-lines {
    gap: 20px;
}

.directory_panel .menu-line {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.directory_panel .city_directory_item,
.directory_panel .menu-disclosure > summary {
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 16px;
}

.directory_panel .dropdown-links {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    box-shadow: none;
}

.dialog-note {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(247, 163, 177, 0.22);
    font-size: 13px;
}

.city_pages {
    display: grid;
    gap: 60px;
    margin-block: 60px;
    min-width: 0;
}

.city_prelude h1 {
    max-width: 960px;
    color: #f7a3b1;
    font-size: 56px;
    line-height: 1.15;
    letter-spacing: -0.055em;
}

.city_topics_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.city_topics_section_title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    line-height: 1.4;
}

.symbol-box {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #78282f;
    color: #e8a759;
}

.symbol-box svg {
    width: 22px;
    height: 22px;
}

.city_topics_note {
    font-size: 12px;
    text-align: right;
}

.feature-stage {
    display: flex;
    align-items: flex-end;
    gap: 32px;
}

.slider-shell {
    flex: 0 0 75%;
    width: 75%;
    min-width: 0;
}

.featured_dispatch_panels {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.dispatch_strip_item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
    border-radius: 16px;
    background: #75242b;
}

.dispatch_strip_item.dispatch_strip_current {
    flex: 3 1 0;
    gap: 24px;
    aspect-ratio: 3 / 4;
    background: #31090e;
}

.dispatch_strip_item.dispatch_strip_current::after {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(37, 4, 9, 0.92), rgba(37, 4, 9, 0.66) 48%, rgba(37, 4, 9, 0.96));
    content: "";
    pointer-events: none;
}

.slide-heading {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    margin: 0;
}

.dispatch_strip_item:not(.dispatch_strip_current) .slide-heading {
    flex: 1;
}

.slide-toggle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding: 24px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #f7a3b1;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    overflow-wrap: anywhere;
}

.slide-toggle:hover {
    color: #e8a759;
}

.dispatch_strip_item:not(.dispatch_strip_current) .slide-toggle {
    align-items: center;
    min-height: 100%;
    font-size: 22px;
    writing-mode: vertical-rl;
}

.slide-content {
    display: flex;
    flex: 1;
    align-items: flex-end;
    min-width: 0;
}

.slide-content[hidden] {
    display: none;
}

.dispatch_strip_image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
}

.dispatch_strip_copy {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 24px 24px;
    color: #f5e0e4;
    overflow-wrap: anywhere;
}

.dispatch_strip_copy p {
    margin-bottom: 20px;
}

.dispatch_strip_progress {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.progress-part {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: #86323b;
}

.progress-part.dispatch_strip_current {
    background: #e8a759;
}

.feature-note {
    flex: 1;
    min-width: 0;
    padding-bottom: 20px;
    color: #e8a759;
}

.feature-note svg {
    width: 100%;
    max-width: 160px;
    height: auto;
    margin-bottom: 24px;
}

.feature-note p {
    font-size: 13px;
    line-height: 1.8;
}

.city_topics {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding-block: 24px;
    border-block: 1px solid rgba(247, 163, 177, 0.24);
}

.city_topics h2 {
    font-size: 18px;
}

.city_topics_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.market_card_section {
    overflow-wrap: anywhere;
}

.dispatches {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dispatches > li {
    min-width: 0;
}

.market_card {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    align-items: stretch;
    gap: 40px;
    padding: 40px;
    border-radius: 20px;
    background: #6b1b20;
    box-shadow: 0 8px 24px rgba(27, 2, 5, 0.15);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.market_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(27, 2, 5, 0.23);
}

.dispatches > li:nth-child(even) .market_card {
    grid-template-columns: minmax(0, 1fr) 225px;
}

.dispatches > li:nth-child(even) .market_card_image {
    grid-column: 2;
    grid-row: 1;
}

.dispatches > li:nth-child(even) .post-details {
    grid-column: 1;
    grid-row: 1;
}

.market_card_image {
    width: 225px;
    min-width: 0;
}

.market_card_image img {
    width: 100%;
    height: 300px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: #80313a;
}

.post-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    text-align: center;
}

.post-details h3 {
    display: -webkit-box;
    overflow: hidden;
    color: #f7a3b1;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.market_card_summary {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-details footer {
    margin-top: auto;
    text-align: left;
}

.market_card_action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 0;
    border-radius: 6px;
    color: #f7a3b1;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 250ms ease;
}

.market_card_action:hover {
    color: #e8a759;
    text-decoration: underline;
}

.market_card_action svg {
    width: 22px;
    height: 22px;
}

.city_dispatch_layout {
    display: grid;
    grid-template-columns: minmax(0, 638px) 246px;
    align-items: start;
    justify-content: center;
    gap: 32px;
    min-width: 0;
}

.city_dispatch {
    width: 100%;
    max-width: 638px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: anywhere;
}

.city_dispatch_heading {
    margin-bottom: 40px;
}

.city_dispatch_heading h1 {
    color: #f7a3b1;
    font-size: 56px;
    line-height: 1.15;
    letter-spacing: -0.055em;
}

.city_dispatch p {
    margin-block: 0 24px;
}

.city_dispatch h2 {
    margin-block: 40px 16px;
    color: #f7a3b1;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.35;
}

.city_dispatch h3 {
    margin-block: 28px 12px;
    color: #f7a3b1;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.4;
}

.city_dispatch ul,
.city_dispatch ol {
    margin-block: 0 24px;
    padding-inline-start: 26px;
}

.city_dispatch ul {
    list-style-type: square;
}

.city_dispatch li {
    margin-block: 8px;
    padding-inline-start: 4px;
}

.city_dispatch li::marker {
    color: #e8a759;
}

.city_dispatch blockquote {
    margin: 32px 0;
    padding: 24px;
    border-radius: 16px;
    background: #702027;
    color: #f1d7dc;
    font-size: 20px;
}

.city_dispatch blockquote::before {
    display: block;
    margin-block-end: 12px;
    color: #e8a759;
    font-size: 50px;
    line-height: 1;
    content: "“";
}

.city_dispatch blockquote p:last-child {
    margin-bottom: 0;
}

.city_dispatch cite {
    display: block;
    margin-top: 16px;
    color: #d6c1c4;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
}

.city_dispatch table {
    width: 100%;
    margin-block: 24px;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
}

.city_dispatch caption {
    padding-bottom: 12px;
    color: #f7a3b1;
    font-size: 14px;
    text-align: left;
    caption-side: top;
}

.city_dispatch th,
.city_dispatch td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(247, 163, 177, 0.25);
    vertical-align: top;
}

.city_dispatch th {
    color: #f7a3b1;
    font-weight: 600;
}

.city_dispatch figure {
    max-width: 100%;
    margin: 32px 0;
}

.city_dispatch figure img {
    height: auto;
    border-radius: 12px;
}

.city_dispatch figcaption {
    margin-top: 12px;
    font-size: 13px;
}

.city_dispatch pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 20px;
    border-radius: 12px;
    background: #451013;
}

.city_dispatch hr {
    margin-block: 32px;
    border: 0;
    border-top: 1px solid rgba(247, 163, 177, 0.24);
}

.market_card_footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(247, 163, 177, 0.24);
}

.city_margin_related {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.city_margin_related a {
    flex: 1;
    padding-block: 8px;
    font-size: 14px;
    font-weight: 500;
}

.city_margin_related a:last-child {
    text-align: right;
}

.city_margin {
    display: grid;
    gap: 24px;
    width: 246px;
    max-width: 100%;
    padding-top: 24px;
    border-top: 1px solid rgba(247, 163, 177, 0.24);
}

.city_margin > h2 {
    color: #e8a759;
    font-size: 22px;
    line-height: 1.4;
}

.city_margin > p {
    font-size: 14px;
}

.side-list {
    display: grid;
    gap: 28px;
}

.side-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.city_margin_preview {
    width: 136px;
    max-width: 100%;
    height: 182px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background: #80313a;
}

.side-copy {
    min-width: 0;
}

.side-copy h3 {
    font-size: 18px;
    line-height: 1.4;
}

.side-copy .market_card_action {
    margin-top: 4px;
    font-size: 14px;
}

.final_line {
    background: #501013;
}

.final_line_line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 28px;
    border-top: 1px solid rgba(247, 163, 177, 0.24);
    font-size: 12px;
}

.city_pages_appear.is-pending {
    opacity: 0;
    transform: scale(0.98);
}

.city_pages_appear.city_pages_in_view {
    animation: reveal-items 250ms ease 150ms backwards;
}

@keyframes reveal-items {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 980px) {
    .city_dispatch_layout {
        grid-template-columns: minmax(0, 638px);
    }

    .city_margin {
        width: 100%;
    }

    .side-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .city_topics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .slider-shell {
        flex-basis: 100%;
        width: 100%;
    }

    .feature-note {
        display: none;
    }

    .featured_dispatch_panels {
        flex-direction: column;
    }

    .dispatch_strip_item,
    .dispatch_strip_item.dispatch_strip_current {
        flex: none;
        width: 100%;
    }

    .dispatch_strip_item:not(.dispatch_strip_current) .slide-toggle {
        align-items: flex-start;
        min-height: 0;
        padding: 18px 24px;
        font-size: 20px;
        writing-mode: horizontal-tb;
    }
}

@media (max-width: 800px) {
    html {
        scroll-padding-top: 88px;
    }

    body {
        font-size: 16px;
    }

    .city_header {
        min-height: 64px;
    }

    .city_signature_row {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        min-height: 64px;
        gap: 8px;
    }

    .city_signature {
        grid-column: 2;
        grid-row: 1;
        font-size: 22px;
    }

    .city_header_note,
    .city_header_edition_caption {
        display: none;
    }

    .city_header.directory_panel_ready .city_directory_toggle {
        display: inline-flex;
        grid-column: 3;
        grid-row: 1;
    }

    .city_header.directory_panel_ready .city_directory_row {
        display: none;
    }

    .city_pages {
        gap: 40px;
        margin-block: 40px;
    }

    .city_prelude h1,
    .city_dispatch_heading h1 {
        font-size: 40px;
    }

    .city_topics_section_title {
        font-size: 22px;
    }

    .market_card,
    .dispatches > li:nth-child(even) .market_card {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 24px;
    }

    .dispatches > li:nth-child(even) .market_card_image,
    .dispatches > li:nth-child(even) .post-details {
        grid-column: auto;
        grid-row: auto;
    }

    .market_card_image {
        width: 100%;
        max-width: 360px;
        margin-inline: auto;
    }

    .market_card_image img {
        height: auto;
    }

    .post-details {
        gap: 16px;
    }

    .post-details h3 {
        font-size: 24px;
    }

    .post-details footer {
        padding-top: 8px;
    }

    .slide-toggle {
        font-size: 24px;
    }

    .city_topics_list {
        flex-direction: column;
        align-items: flex-start;
    }

    .city_dispatch_heading {
        margin-bottom: 32px;
    }

    .city_dispatch h2 {
        margin-top: 32px;
        font-size: 27px;
    }

    .city_dispatch h3 {
        font-size: 22px;
    }

    .city_dispatch blockquote {
        font-size: 18px;
    }

    .side-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .city_signature_row,
    .city_directory_row,
    .city_pages,
    .final_line_line,
    .city_pages_skip {
        width: calc(100% - 48px);
    }

    .city_signature {
        font-size: 19px;
    }

    .city_prelude h1,
    .city_dispatch_heading h1 {
        font-size: 32px;
    }

    .city_topics_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .city_topics_note {
        text-align: left;
    }

    .slide-toggle {
        padding: 20px;
        font-size: 23px;
    }

    .dispatch_strip_copy {
        padding: 0 20px 20px;
    }

    .dispatch_strip_item:not(.dispatch_strip_current) .slide-toggle {
        padding: 16px 20px;
    }

    .city_margin_related {
        flex-direction: column;
        gap: 12px;
    }

    .city_margin_related a:last-child {
        text-align: left;
    }

    .final_line_line {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .city_pages_appear,
    .city_pages_appear.is-pending,
    .city_pages_appear.city_pages_in_view {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .market_card,
    .market_card_action {
        transition: none;
    }

    .market_card:hover {
        transform: none;
    }

    .featured_dispatch_panels,
    .dispatch_strip_item,
    .directory_panel {
        scroll-behavior: auto;
    }
}
