.coast .crumb .coast-inner {
    flex-wrap: wrap;
    padding-block: 10px;
}
.coast .history-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 48px;
    margin-top: 36px;
}
.history-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    min-width: 0;
    z-index: 10;
}
.coast .history-contents {
    overflow: auto;
    max-height: calc(100dvh - 48px);
    border: 1px solid #d6e1e9;
    border-radius: 8px;
    background: #f2f7fb;
}
.coast .history-contents summary {
    padding: 17px 20px;
    color: #102743;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 20px;
    cursor: default;
    list-style: none;
}
.history-contents summary::-webkit-details-marker {
    display: none;
}
.history-contents ol {
    list-style: none;
    padding: 0 10px 10px;
    margin: 0;
}
.coast .history-contents a {
    display: block;
    padding: 13px 12px;
    border-left: 3px solid transparent;
    border-radius: 4px;
    color: #28475f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    text-decoration: none;
}
.coast .history-contents a:hover {
    background: #e3edf5;
    color: #005a99;
}
.coast .history-contents a[aria-current="location"] {
    background: #0069b2;
    border-left-color: #ff6600;
    color: white;
}
.history-period {
    scroll-margin-top: 96px;
}
.history-period + .history-period {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid #d6e1e9;
}
.coast .history-period h2 {
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.3;
    margin-bottom: 22px;
}
.history-prose {
    max-width: 78ch;
    color: #2b4355;
    font-size: 16px;
    line-height: 1.8;
}
.history-prose p {
    margin: 0 0 16px;
}
.history-prose p:last-child {
    margin-bottom: 0;
}
.coast .history-up {
    display: block;
    width: fit-content;
    padding-block: 10px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
}
.coast .history-up::before {
    content: "↑" / "";
    color: #ff6600;
    margin-right: 8px;
}
.history-closing {
    margin-top: 36px;
    padding: 24px;
    border-left: 4px solid #ff6600;
    border-radius: 0 8px 8px 0;
    background: #f2f7fb;
    font-size: 16px;
    line-height: 1.7;
}
.coast .history-closing h2 {
    font-size: 23px;
}
.coast .history-closing h2::before {
    display: none;
}
.history-closing p {
    margin: 0;
}
@media (max-width: 991px) {
    .coast .history-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        margin-top: 20px;
    }
    .history-sidebar {
        top: 0;
    }
    .coast .history-contents {
        max-height: 70dvh;
        background: white;
        box-shadow: 0 3px 12px #10274314;
    }
    .coast .history-contents summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        cursor: pointer;
        font-size: 17px;
    }
    .history-contents summary::after {
        content: "⌄" / "";
        color: #0069b2;
    }
    .history-contents[open] summary::after {
        content: "⌃" / "";
    }
    .coast .history-contents a {
        font-size: 14px;
        padding-block: 12px;
    }
    .history-contents ol {
        padding-bottom: 10px;
    }
}
.coast .history-layout {
    scroll-margin-top: 24px;
}
