.detail-main {
    min-height: 60vh;
    padding: 40px 24px 88px;
    background: #fffaf6;
}

.detail-article {
    width: min(1000px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(63, 49, 40, 0.1);
}

.detail-journey {
    width: min(1240px, 100%);
}

.detail-hero {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    background: #e5d9d0;
}

.detail-hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 28, 23, 0.04) 20%, rgba(20, 28, 23, 0.78) 100%);
    content: "";
}

.detail-hero img {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.detail-journey .detail-hero img {
    height: clamp(460px, 54vw, 620px);
    object-position: center 38%;
}

.detail-hero-overlay {
    position: absolute;
    z-index: 1;
    right: clamp(24px, 7vw, 72px);
    bottom: 42px;
    left: clamp(24px, 7vw, 72px);
    color: #fff;
}

.detail-category {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.detail-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.12;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

.detail-content {
    width: min(720px, calc(100% - 48px));
    margin: 0 auto;
    padding: 44px 0 56px;
}

.detail-summary {
    margin: 0 0 34px;
    color: #435149;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.75;
}

.detail-section {
    margin: 0 0 28px;
}

.detail-section h2 {
    margin: 0 0 10px;
    color: #303b35;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.detail-section p {
    margin: 0 0 12px;
    color: #5d665f;
    font-size: 1rem;
    line-height: 1.85;
}

.detail-journey > .detail-content {
    width: min(900px, calc(100% - 64px));
}

.journey-section {
    padding: 64px 32px 72px;
    background:
        radial-gradient(ellipse at top, rgba(217, 196, 143, 0.16), transparent 58%),
        #fffaf6;
}

.journey-section-heading {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.journey-section-heading h2 {
    margin: 0;
    color: #26312c;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.journey-section-heading > p:last-child {
    margin: 14px 0 0;
    color: #5d665f;
    line-height: 1.75;
}

.detail-timeline {
    position: relative;
    width: min(1040px, 100%);
    margin: 0 auto;
    counter-reset: journey-step;
}

.detail-timeline::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 50%;
    width: 3px;
    border-radius: 999px;
    background: repeating-linear-gradient(
        to bottom,
        #bd9d56 0 6px,
        transparent 6px 13px
    );
    content: "";
}

.detail-timeline .detail-section {
    position: relative;
    width: calc(50% - 48px);
    margin: 0 0 28px auto;
    padding: 18px 22px 20px;
    border: 1px solid #f0e7df;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(63, 49, 40, 0.045);
    counter-increment: journey-step;
}

.detail-timeline .detail-section:nth-child(odd) {
    margin-right: auto;
    margin-left: 0;
}

.detail-timeline .detail-section:last-child {
    margin-bottom: 0;
}

.detail-timeline .detail-section::before {
    position: absolute;
    top: 16px;
    left: -64px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #bd9d56;
    box-shadow: 0 0 0 1px #d9c48f;
    color: #fff;
    content: counter(journey-step, decimal-leading-zero);
    font-size: 0.68rem;
    font-weight: 800;
}

.detail-timeline .detail-section:nth-child(odd)::before {
    right: -64px;
    left: auto;
}

.detail-timeline .detail-section h3 {
    margin: 0 0 10px;
    color: #303b35;
    font-size: 1.45rem;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.detail-timeline .detail-section p {
    font-size: 1.02rem;
    line-height: 1.9;
}

.journey-source {
    width: min(1040px, 100%);
    margin: 30px auto 0;
    color: #727a74;
    font-size: 0.82rem;
    line-height: 1.65;
    text-align: center;
}

.journey-source a {
    color: #9b5339;
    font-weight: 700;
    text-underline-offset: 2px;
}

.detail-section-gallery {
    width: min(100%, 340px);
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #f0e7df;
    border-radius: 10px;
    background: #f3e9e1;
}

.detail-section-gallery figure {
    min-width: 0;
    margin: 0;
}

.detail-section-gallery img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
}

.detail-section-gallery figcaption {
    padding: 7px 10px;
    color: #727a74;
    font-size: 0.72rem;
    line-height: 1.4;
}

.detail-back {
    display: inline-block;
    margin-top: 8px;
    color: #bd6747;
    font-weight: 700;
    text-decoration: none;
}

.detail-back:hover,
.detail-back:focus-visible {
    color: #9b5339;
    text-decoration: underline;
}

.detail-not-found {
    display: grid;
    min-height: 45vh;
    justify-items: center;
    align-content: center;
    text-align: center;
}

.detail-not-found h1 {
    max-width: 620px;
    margin: 0;
    color: #26312c;
    font-size: clamp(2rem, 5vw, 3rem);
}

.detail-not-found > p:not(.section-eyebrow) {
    margin: 16px 0 24px;
    color: #5d665f;
}

@media (max-width: 640px) {
    .detail-main {
        padding: 20px 14px 60px;
    }

    .detail-article {
        border-radius: 14px;
    }

    .detail-hero {
        min-height: 340px;
    }

    .detail-hero img {
        height: 340px;
    }

    .detail-hero-overlay {
        right: 22px;
        bottom: 26px;
        left: 22px;
    }

    .detail-content {
        width: calc(100% - 40px);
        padding: 30px 0 38px;
    }

    .detail-journey > .detail-content {
        width: calc(100% - 40px);
    }

    .detail-journey .detail-hero img {
        height: 400px;
    }

    .journey-section {
        padding: 48px 20px 54px;
    }

    .journey-section-heading {
        margin-bottom: 34px;
        text-align: left;
    }

    .detail-timeline {
        padding-left: 42px;
    }

    .detail-timeline::before {
        left: 11px;
    }

    .detail-timeline .detail-section,
    .detail-timeline .detail-section:nth-child(odd) {
        width: 100%;
        margin: 0 0 18px;
        padding: 16px;
    }

    .detail-timeline .detail-section::before {
        top: 14px;
        right: auto;
        left: -42px;
        width: 26px;
        height: 26px;
        font-size: 0.62rem;
    }

    .detail-timeline .detail-section:nth-child(odd)::before {
        right: auto;
        left: -42px;
    }

    .detail-timeline .detail-section h3 {
        font-size: 1.2rem;
    }

    .detail-section-gallery {
        gap: 8px;
    }

    .detail-section-gallery figcaption {
        padding: 6px 8px;
        font-size: 0.68rem;
    }

    .detail-summary {
        font-size: 1.05rem;
    }
}
