/* ==========================================================================
   Single travel-blog post: page canvas and browser-level reading details
   ========================================================================== */
body.single-post-template-body {
    background-color: #171717;
    color: #5d5d5d;
    font-family: var(--font-body);
}

/* The article canvas stays light while the body color continues the dark footer. */
.single-post-page {
    overflow: clip;
    background-color: #ffffff;
}

/* Text selection keeps a subtle version of the established expedition red. */
.single-post-template-body ::selection {
    background-color: rgba(241, 1, 0, 0.18);
    color: #171717;
}

/* Keyboard focus is explicit across article navigation and sharing actions. */
.single-post-page a:focus-visible,
.single-post-page button:focus-visible,
.single-post-page summary:focus-visible {
    outline: 3px solid rgba(241, 1, 0, 0.34);
    outline-offset: 3px;
    border-radius: 7px;
}

/* ==========================================================================
   Fixed reading progress
   ========================================================================== */
.single-post-reading-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1200;
    height: 4px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

/* The progress fill uses transform for smooth, inexpensive scroll updates. */
.single-post-reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #f10100;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

/* ==========================================================================
   Editorial article hero
   ========================================================================== */
.single-post-hero {
    position: relative;
    display: flex;
    min-height: clamp(560px, 74svh, 760px);
    align-items: flex-end;
    isolation: isolate;
    overflow: hidden;
    background-color: #171717;
}

/* Featured photography fills the masthead without distorting the source image. */
.single-post-hero-image {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* A directional overlay protects the title while leaving the landscape visible. */
.single-post-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.64) 52%, rgba(5, 5, 5, 0.2) 100%);
}

/* Hero content uses a generous lower rhythm like an editorial masthead. */
.single-post-hero-content {
    width: 100%;
    padding-top: clamp(5rem, 10vw, 8rem);
    padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

/* Content breadcrumbs stay compact and scroll horizontally for long article paths. */
.single-post-breadcrumbs {
    max-width: 920px;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    overflow-x: auto;
    scrollbar-width: none;
}

.single-post-breadcrumbs::-webkit-scrollbar {
    display: none;
}

.single-post-breadcrumbs ol {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 0.7rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Dark neutral breadcrumb text preserves hierarchy on the light reading canvas. */
.single-post-breadcrumbs a,
.single-post-breadcrumbs li {
    color: #5d5d5d;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.single-post-breadcrumbs a:hover {
    color: #171717;
}

.single-post-breadcrumbs i {
    color: #f10100;
    font-size: 0.82rem;
}

/* The current breadcrumb truncates gracefully without hiding the page context. */
.single-post-breadcrumbs .single-post-breadcrumb-current {
    max-width: min(38vw, 360px);
    overflow: hidden;
    color: #171717;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The title block carries the page's main editorial hierarchy. */
.single-post-hero-copy {
    max-width: 940px;
}

.single-post-hero-copy h1 {
    max-width: 18ch;
    margin: 0;
    color: #ffffff;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.03;
    text-wrap: balance;
}

.single-post-hero-copy > p {
    max-width: 64ch;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.65;
}

/* ==========================================================================
   Reading layout and sticky editorial margin
   ========================================================================== */
.single-post-reading {
    padding: clamp(3rem, 7vw, 6rem) 0;
    background-color: #f7f7f5;
}

/* The sidebar appears first in source order for mobile wayfinding, then sits right on desktop. */
.single-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    grid-template-areas: "article sidebar";
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: start;
}

/* The white reading card uses compact padding while preserving a clear editorial frame. */
.single-post-article {
    grid-area: article;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 3rem);
    border-radius: 7px;
    background-color: #ffffff;
}

/* ==========================================================================
   Article image slider with thumbnail navigation
   ========================================================================== */
.single-post-gallery {
    margin: 0 0 clamp(2rem, 4vw, 3rem);
}

/* The main stage keeps every article image visually stable while slides change. */
.single-post-gallery-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 7px;
    background-color: #171717;
    outline: none;
}

.single-post-gallery-stage:focus-visible {
    box-shadow: 0 0 0 3px rgba(241, 1, 0, 0.28);
}

.single-post-gallery-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1), transform 420ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 420ms;
}

.single-post-gallery-slide.is-active {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition-delay: 0s;
}

.single-post-gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Captions stay legible over photography without covering the full image width. */
.single-post-gallery-slide figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: fit-content;
    max-width: min(72ch, calc(100% - 2rem));
    padding: 0.65rem 0.85rem;
    border-radius: 7px;
    background-color: rgba(23, 23, 23, 0.84);
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Overlay arrows provide direct navigation while preserving a large touch target. */
.single-post-gallery-controls {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 0 0.85rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.single-post-gallery-controls button {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 7px;
    background-color: rgba(23, 23, 23, 0.78);
    color: #ffffff;
    cursor: pointer;
    pointer-events: auto;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.single-post-gallery-controls button:hover,
.single-post-gallery-controls button:focus-visible {
    border-color: #f10100;
    background-color: #f10100;
    transform: translateY(-1px);
}

.single-post-gallery-controls button:focus-visible,
.single-post-gallery-thumbnail:focus-visible {
    outline: 3px solid rgba(241, 1, 0, 0.28);
    outline-offset: 2px;
}

.single-post-gallery-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    gap: 0.3rem;
    padding: 0.45rem 0.65rem;
    margin: 0;
    border-radius: 7px;
    background-color: rgba(23, 23, 23, 0.78);
    color: #ffffff;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
}

/* The thumbnail rail supports native horizontal scrolling on narrow containers. */
.single-post-gallery-thumbnails {
    display: grid;
    grid-auto-columns: minmax(78px, 96px);
    grid-auto-flow: column;
    gap: 0.65rem;
    padding: 0.25rem 0.15rem;
    margin-top: 0.7rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-color: #d5d5d0 transparent;
    scrollbar-width: thin;
}

.single-post-gallery-thumbnail {
    aspect-ratio: 8 / 5;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 7px;
    background-color: #e8e8e4;
    cursor: pointer;
    opacity: 0.58;
    scroll-snap-align: start;
    transition: border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.single-post-gallery-thumbnail:hover,
.single-post-gallery-thumbnail:focus-visible,
.single-post-gallery-thumbnail.is-active {
    border-color: #f10100;
    opacity: 1;
}

.single-post-gallery-thumbnail:hover {
    transform: translateY(-1px);
}

.single-post-gallery-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-sidebar {
    position: sticky;
    top: 88px;
    grid-area: sidebar;
    display: grid;
    gap: 1rem;
}

/* Sidebar panels use restrained outlines rather than card shadows. */
.single-post-sidebar-panel {
    overflow: hidden;
    border: 1px solid #e8e8e4;
    border-radius: 7px;
    background-color: #ffffff;
}

/* Shared sidebar titles create a consistent compact information hierarchy. */
.single-post-sidebar-panel > h2,
.single-post-toc-panel > summary {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    margin: 0;
    color: #171717;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.single-post-sidebar-panel > h2 {
    border-bottom: 1px solid #e8e8e4;
}

.single-post-sidebar-panel > h2 i,
.single-post-toc-panel > summary i:first-child {
    color: #f10100;
}

/* The native disclosure remains keyboard-operable while its header uses a tighter reading-tool rhythm. */
.single-post-toc-panel > summary {
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    list-style: none;
}

.single-post-toc-panel > summary::-webkit-details-marker {
    display: none;
}

.single-post-toc-panel > summary > span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.single-post-summary-icon {
    color: #5d5d5d;
    transition: transform 200ms ease;
}

.single-post-toc-panel[open] .single-post-summary-icon {
    transform: rotate(180deg);
}

/* The compact contents body keeps long articles navigable without dominating the sidebar. */
.single-post-toc-body {
    max-height: min(42vh, 390px);
    overflow-y: auto;
    border-top: 1px solid #e8e8e4;
    scrollbar-color: #f10100 #f7f7f5;
    scrollbar-width: thin;
}

.single-post-toc-list {
    display: grid;
    gap: 0;
    padding: 0.4rem 0.5rem 0.5rem;
    margin: 0;
    list-style: none;
    counter-reset: single-post-toc;
}

/* Numbered links make long posts easy to scan without adding decorative section labels. */
.single-post-toc-list li {
    counter-increment: single-post-toc;
}

.single-post-toc-list a {
    display: grid;
    min-height: 36px;
    grid-template-columns: 1.45rem minmax(0, 1fr);
    gap: 0.35rem;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-radius: 7px;
    color: #5d5d5d;
    font-size: 0.82rem;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.single-post-toc-list a::before {
    content: counter(single-post-toc, decimal-leading-zero);
    color: #5d5d5d;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.single-post-toc-list .is-subsection a {
    padding-inline-start: 0.9rem;
    font-size: 0.78rem;
}

.single-post-toc-list a:hover,
.single-post-toc-list a.is-active {
    background-color: #fffaf5;
    color: #b90201;
}

.single-post-toc-list a.is-active::before {
    color: #f10100;
}

.single-post-sidebar-empty {
    padding: 0 1.1rem 1rem;
    margin: 0;
    color: #5d5d5d;
    font-size: 0.82rem;
}

/* ==========================================================================
   End-of-article sharing, categories and update information
   ========================================================================== */
.single-post-share-panel {
    max-width: 72ch;
    padding-top: 2rem;
    margin-top: 2.5rem;
    border-top: 1px solid #e8e8e4;
}

/* The share heading introduces one final reader action after the editorial close. */
.single-post-share-panel > h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
    color: #171717;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.single-post-share-panel > h2 i {
    color: #f10100;
}

.single-post-share-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

/* Share actions use the same rectangular 7px language as site buttons. */
.single-post-share-grid a,
.single-post-share-grid button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0.7rem 0.75rem;
    border: 1px solid #e8e8e4;
    border-radius: 7px;
    background-color: #f7f7f5;
    color: #171717;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.single-post-share-grid a:hover,
.single-post-share-grid button:hover,
.single-post-share-grid button.is-copied {
    border-color: #f10100;
    background-color: #f10100;
    color: #ffffff;
    transform: translateY(-1px);
}

.single-post-share-grid i {
    width: 1rem;
    color: #f10100;
    text-align: center;
}

.single-post-share-grid a:hover i,
.single-post-share-grid button:hover i,
.single-post-share-grid button.is-copied i {
    color: #ffffff;
}

.single-post-share-status {
    min-height: 1.1rem;
    margin: 0.7rem 0 0;
    color: #5d5d5d;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* ==========================================================================
   Related travel stories carousel
   ========================================================================== */
.single-post-related-section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background-color: #171717;
}

.single-post-related-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
    margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.single-post-related-header h2 {
    max-width: 18ch;
    margin: 0;
    color: #ffffff;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-wrap: balance;
}

.single-post-related-header p {
    max-width: 58ch;
    margin: 0.85rem 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
    line-height: 1.65;
}

/* Arrow controls keep carousel movement explicit for mouse and keyboard readers. */
.single-post-related-controls {
    display: flex;
    gap: 0.65rem;
}

.single-post-related-controls button {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 7px;
    background-color: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.single-post-related-controls button:hover:not(:disabled) {
    border-color: #f10100;
    background-color: #f10100;
    transform: translateY(-1px);
}

.single-post-related-controls button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.single-post-related-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.single-post-related-viewport::-webkit-scrollbar {
    display: none;
}

.single-post-related-track {
    display: grid;
    grid-auto-columns: calc((100% - 2rem) / 3);
    grid-auto-flow: column;
    gap: 1rem;
}

.single-post-related-slide {
    min-width: 0;
    scroll-snap-align: start;
}

/* Related articles reuse the established tour-best-card with editorial content. */
.single-post-related-slide .tour-best-card {
    border-radius: 7px;
}

.single-post-related-slide .tour-best-card-media {
    display: block;
    aspect-ratio: 16 / 10;
}

.single-post-related-slide .tour-best-card-badge {
    background-color: #f10100;
}

.single-post-related-slide .tour-best-card-title {
    padding-bottom: 0.75rem;
    color: #171717;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    text-align: left;
}

.single-post-related-slide .travel-guide-article-excerpt {
    display: -webkit-box;
    min-height: 5.1rem;
    padding: 0 1.25rem;
    margin: 0;
    overflow: hidden;
    color: #5d5d5d;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.single-post-related-slide .travel-guide-article-footer {
    justify-content: flex-end;
    padding-top: 1.2rem;
}

.single-post-related-slide .tour-best-card-button {
    gap: 0.65rem;
}

.single-post-related-slide .tour-best-card-button i {
    transition: transform 180ms ease;
}

.single-post-related-slide .tour-best-card-button:hover i,
.single-post-related-slide .tour-best-card-button:focus-visible i {
    transform: translateX(4px);
}

/* ==========================================================================
   Editorial destination and trail index
   ========================================================================== */
.single-post-destination-section {
    padding: clamp(3.75rem, 7vw, 6.5rem) 0;
    overflow: hidden;
    background-color: #f2eee6;
}

.single-post-destination-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.single-post-destination-header h2 {
    max-width: 18ch;
    margin: 0;
    color: #171717;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.02;
    text-wrap: balance;
}

.single-post-destination-header p {
    max-width: 60ch;
    margin: 1rem 0 0;
    color: #5d5d5d;
    font-size: 1rem;
    line-height: 1.7;
}

/* The guide link closes the header as a quiet editorial action instead of a filled button. */
.single-post-destination-all {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #b90201;
    color: #171717;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    transition: color 180ms ease;
}

.single-post-destination-all i {
    color: #b90201;
    transition: transform 180ms ease;
}

.single-post-destination-all:hover,
.single-post-destination-all:focus-visible {
    color: #b90201;
}

.single-post-destination-all:hover i,
.single-post-destination-all:focus-visible i {
    transform: translateX(4px);
}

/* Three-column card grid keeps the destination index compact while preserving a horizontal reading path. */
.single-post-destination-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

/* Each destination is an independent horizontal card with restrained editorial depth. */
.single-post-destination-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 7px;
    background-color: #ffffff;
    box-shadow: 0 10px 28px rgba(37, 30, 20, 0.08);
    transition: box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1), transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.single-post-destination-card > a {
    display: grid;
    min-height: 220px;
    grid-template-columns: minmax(110px, 0.82fr) minmax(0, 1.18fr);
    gap: 1rem;
    align-items: stretch;
    padding: 0.65rem;
    color: inherit;
    text-decoration: none;
}

.single-post-destination-card > a:focus-visible {
    border-radius: 7px;
    outline: 3px solid rgba(241, 1, 0, 0.3);
    outline-offset: -3px;
}

/* The image fills the card height so every item reads horizontally at a glance. */
.single-post-destination-media {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    border-radius: 7px;
    background-color: #ded8cd;
}

.single-post-destination-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 320ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.single-post-destination-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.55rem 0.35rem 0.55rem 0;
}

.single-post-destination-copy h3 {
    margin: 0 0 0.55rem;
    color: #171717;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.single-post-destination-copy p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #5d5d5d;
    font-size: 0.9rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.single-post-destination-action {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 1rem;
    color: #171717;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.2;
    transition: color 180ms ease;
}

.single-post-destination-action i {
    color: #b90201;
    transition: transform 180ms ease;
}

/* Fine-pointer hover lifts the complete card and carries motion through its image and action. */
@media (hover: hover) and (pointer: fine) {
    .single-post-destination-card:hover {
        box-shadow: 0 22px 44px rgba(37, 30, 20, 0.15);
        transform: translateY(-6px);
    }

    .single-post-destination-card > a:hover .single-post-destination-media img {
        filter: saturate(1.08) contrast(1.03);
        transform: scale(1.06);
    }

    .single-post-destination-card > a:hover .single-post-destination-action {
        color: #b90201;
    }

    .single-post-destination-card > a:hover .single-post-destination-action i {
        transform: translateX(4px);
    }
}

/* Category rows balance the label with its published-post count. */
.single-post-category-list {
    padding: 0.65rem 1rem 0.8rem;
    margin: 0;
    list-style: none;
}

.single-post-category-list li + li {
    border-top: 1px solid #e8e8e4;
}

.single-post-category-list a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #5d5d5d;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.single-post-category-list a:hover {
    color: #b90201;
}

.single-post-category-list small {
    display: inline-flex;
    min-width: 30px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background-color: #f7f7f5;
    color: #5d5d5d;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}

/* Update information is compact and visually separate from navigation. */
.single-post-update-panel {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    background-color: #171717;
    color: #ffffff;
}

.single-post-update-panel > i {
    color: #f10100;
    font-size: 1.25rem;
}

.single-post-update-panel p,
.single-post-update-panel strong,
.single-post-update-panel span {
    display: block;
    margin: 0;
}

.single-post-update-panel strong {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.single-post-update-panel span {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
}

/* ==========================================================================
   Long-form article typography and embedded content
   ========================================================================== */
.single-post-content {
    color: #5d5d5d;
    font-size: 1rem;
    line-height: 1.82;
}

.single-post-content > *:first-child {
    margin-top: 0;
}

/* The opening paragraph acts as a calm editorial lead. */
.single-post-content > p:first-child {
    color: #171717;
    font-size: 1.25rem;
    line-height: 1.7;
}

/* Headings are anchored for the sticky contents and use the established display face. */
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
    scroll-margin-top: 110px;
    color: #171717;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.18;
    text-wrap: balance;
}

.single-post-content h2 {
    margin: 3.4rem 0 1.15rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
}

/* A short horizontal red rule gives major sections a consistent editorial signature. */
.single-post-content h2::after {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 0.75rem;
    border-radius: 7px;
    background-color: #f10100;
}

.single-post-content h3 {
    margin: 2.5rem 0 0.9rem;
    font-size: clamp(1.25rem, 2.2vw, 2rem);
}

.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
    margin: 2rem 0 0.75rem;
    font-size: 1.25rem;
}

/* Paragraphs and lists maintain a measured vertical reading rhythm. */
.single-post-content p,
.single-post-content ul,
.single-post-content ol,
.single-post-content blockquote,
.single-post-content figure,
.single-post-content table,
.single-post-content pre {
    margin: 0 0 1.45rem;
}

.single-post-content ul,
.single-post-content ol {
    padding-inline-start: 1.4rem;
}

.single-post-content li + li {
    margin-top: 0.55rem;
}

.single-post-content li::marker {
    color: #f10100;
    font-weight: 900;
}

.single-post-content a {
    color: #b90201;
    font-weight: 700;
    text-decoration-color: rgba(185, 2, 1, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.single-post-content a:hover {
    color: #f10100;
    text-decoration-color: currentColor;
}

/* Mid-article tour recommendations interrupt the long-form rhythm at a natural chapter break. */
.single-post-tour-break {
    padding: clamp(2rem, 4vw, 3rem) 0;
    margin: clamp(3.5rem, 7vw, 5.5rem) 0;
    border-top: 1px solid #dcdcd7;
    border-bottom: 1px solid #dcdcd7;
}

/* The recommendation heading stays editorial and separate from the reusable cards. */
.single-post-tour-break-header {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1fr);
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: end;
    margin-bottom: 1.75rem;
}

.single-post-content .single-post-tour-break-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.single-post-content .single-post-tour-break-header h2::after {
    margin-top: 0.65rem;
}

.single-post-content .single-post-tour-break-header p {
    margin: 0;
    color: #5d5d5d;
    line-height: 1.65;
}

/* Tour cards form a balanced two-column editorial grid with equal row heights. */
.single-post-tour-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

/* Article typography is reset locally so the shared tour-best-card keeps its intended hierarchy. */
.single-post-content .single-post-tour-grid .tour-best-card-title {
    padding: 1.15rem 1.1rem 1rem;
    margin: 0;
    color: #0f172a;
    font-family: var(--font-body);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: center;
}

.single-post-content .single-post-tour-grid .tour-best-card-title a {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.single-post-content .single-post-tour-grid .tour-best-card-title a:hover {
    color: #ea0000;
}

/* Article media defaults must not override the fixed crop used by the shared tour card. */
.single-post-content .single-post-tour-grid .tour-best-card-image {
    width: 100%;
    max-width: none;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

/* Compact card internals preserve useful detail inside the narrower article column. */
.single-post-tour-grid .tour-best-card-features {
    align-items: flex-start;
    padding: 1rem;
}

.single-post-tour-grid .tour-best-card-feature-item {
    gap: 0.45rem;
    font-size: 0.78rem;
}

.single-post-tour-grid .tour-best-card-llama {
    width: 58px;
}

.single-post-tour-grid .tour-best-card-footer {
    flex-wrap: wrap;
    padding: 0.85rem 1rem 1.1rem;
}

.single-post-tour-grid .tour-best-card-price-total {
    font-size: 1.35rem;
}

.single-post-tour-grid .tour-best-card-button {
    padding-inline: 1rem;
}

/* Quotations use a full outline and warm surface, never a left-side border. */
.single-post-content blockquote {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #e8e8e4;
    border-radius: 7px;
    background-color: #fffaf5;
    color: #171717;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 1.25rem;
    line-height: 1.55;
}

.single-post-content blockquote > *:last-child {
    margin-bottom: 0;
}

/* Editorial media follows the shared corner treatment and stays fluid. */
.single-post-content img,
.single-post-content video,
.single-post-content iframe {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 7px;
}

.single-post-content figure img {
    width: 100%;
}

.single-post-content figcaption {
    margin-top: 0.65rem;
    color: #5d5d5d;
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Tables remain readable and scroll inside the article on compact screens. */
.single-post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.single-post-content th,
.single-post-content td {
    min-width: 130px;
    padding: 0.8rem;
    border: 1px solid #e8e8e4;
    text-align: start;
}

.single-post-content th {
    background-color: #f7f7f5;
    color: #171717;
    font-weight: 900;
}

/* Code samples use a dark, high-contrast surface distinct from running text. */
.single-post-content pre,
.single-post-content code {
    border-radius: 7px;
    font-family: monospace;
}

.single-post-content pre {
    overflow-x: auto;
    padding: 1rem;
    background-color: #171717;
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1.6;
}

/* ==========================================================================
   Author close
   ========================================================================== */
.single-post-author-note {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    max-width: 72ch;
    padding-top: 2rem;
    margin-top: 3.5rem;
    border-top: 1px solid #e8e8e4;
}

.single-post-author-mark {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background-color: #f10100;
    color: #ffffff;
    font-size: 1.25rem;
}

.single-post-author-note h2 {
    margin: 0 0 0.35rem;
    color: #171717;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
}

.single-post-author-note p {
    margin: 0;
    color: #5d5d5d;
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   Responsive reading layouts
   ========================================================================== */
@media (max-width: 991.98px) {
    /* Tablet and mobile place wayfinding before the article and remove sticky behavior. */
    .single-post-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "sidebar"
            "article";
    }

    .single-post-sidebar {
        position: static;
        grid-template-columns: minmax(0, 1fr);
    }

    .single-post-toc-panel,
    .single-post-update-panel {
        grid-column: auto;
    }

    .single-post-toc-body {
        max-height: 300px;
    }

    .single-post-related-track {
        grid-auto-columns: calc((100% - 1rem) / 2);
    }

    /* Tablet widths retain horizontal cards in a balanced two-column grid. */
    .single-post-destination-index {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    /* The hero keeps a strong image while allowing long real-world titles to wrap. */
    .single-post-hero {
        min-height: 620px;
    }

    .single-post-hero-overlay {
        background: linear-gradient(0deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.66) 62%, rgba(5, 5, 5, 0.28) 100%);
    }

    .single-post-hero-content {
        padding-bottom: 2.5rem;
    }

    .single-post-hero-copy h1 {
        max-width: 20ch;
        font-size: clamp(2rem, 10vw, 2.5rem);
    }

    /* Compact screens use one clear stack for every article tool. */
    .single-post-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .single-post-toc-panel,
    .single-post-update-panel {
        grid-column: auto;
    }

    .single-post-article {
        padding: 1.15rem;
    }

    /* Mobile gives the gallery a taller crop and keeps controls clear of image edges. */
    .single-post-gallery-stage {
        aspect-ratio: 4 / 3;
    }

    .single-post-gallery-controls {
        padding: 0 0.55rem;
    }

    .single-post-gallery-controls button {
        width: 44px;
        height: 44px;
    }

    .single-post-gallery-slide figcaption {
        right: 0.65rem;
        bottom: 0.65rem;
        left: 0.65rem;
        max-width: calc(100% - 1.3rem);
    }

    .single-post-gallery-counter {
        top: 0.65rem;
        right: 0.65rem;
    }

    .single-post-gallery-thumbnails {
        grid-auto-columns: 76px;
    }

    .single-post-content h2 {
        margin-top: 2.8rem;
    }

    /* Tour recommendations collapse to one readable card per row on phones. */
    .single-post-tour-break {
        padding: 2rem 0;
        margin: 3rem 0;
    }

    .single-post-tour-break-header,
    .single-post-tour-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .single-post-tour-break-header {
        gap: 0.8rem;
    }

    .single-post-author-note {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Share actions become a balanced two-column close on compact screens. */
    .single-post-share-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-post-related-header {
        gap: 1.25rem;
    }

    .single-post-related-track {
        grid-auto-columns: minmax(260px, 88%);
    }

    /* The destination index becomes one continuous card column on phones. */
    .single-post-destination-header,
    .single-post-destination-index {
        grid-template-columns: minmax(0, 1fr);
    }

    .single-post-destination-header {
        gap: 1.5rem;
    }

    .single-post-destination-card > a {
        min-height: 200px;
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 1.15rem;
    }

    .single-post-destination-media {
        min-height: 180px;
    }
}

@media (max-width: 420px) {
    /* Very narrow screens keep share labels readable in a single column. */
    .single-post-share-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Extra-narrow cards keep imagery useful without squeezing the destination title. */
    .single-post-destination-card > a {
        min-height: 180px;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 1rem;
    }

    .single-post-destination-media {
        min-height: 156px;
    }

    .single-post-destination-copy h3 {
        font-size: 1.2rem;
    }

    .single-post-destination-copy p {
        -webkit-line-clamp: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Reduced-motion readers receive immediate state changes without animated travel. */
    .single-post-summary-icon,
    .single-post-toc-list a,
    .single-post-share-grid a,
    .single-post-share-grid button,
    .single-post-related-controls button,
    .single-post-related-viewport,
    .single-post-related-slide .tour-best-card-button i,
    .single-post-gallery-slide,
    .single-post-gallery-controls button,
    .single-post-gallery-thumbnails,
    .single-post-gallery-thumbnail,
    .single-post-destination-all,
    .single-post-destination-all i,
    .single-post-destination-card,
    .single-post-destination-media img,
    .single-post-destination-action,
    .single-post-destination-action i {
        transition: none;
        scroll-behavior: auto;
    }

    /* Shared tour-card imagery and hover movement stay still for reduced-motion readers. */
    .single-post-tour-grid .tour-best-card,
    .single-post-tour-grid .tour-best-card-image,
    .single-post-tour-grid .tour-best-card-button {
        transition: none;
    }
}
