/* Institute and research infrastructure pages */

.about-overview {
    background: #fff;
}

.about-overview__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 46px;
    align-items: start;
}

.about-overview__text {
    display: grid;
    gap: 14px;
}

.about-overview__text p {
    margin: 0;
    line-height: 1.65;
}

.about-facts {
    margin-top: 8px;
}

.about-history {
    background: #f6fafa;
}

.about-history__timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.about-history-card {
    position: relative;
    min-height: 230px;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.about-history-card::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 0;
    width: 4px;
    height: 42px;
    background: var(--teal);
}

.about-history-card span {
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
}

.about-history-card h2 {
    font-size: 22px;
}

.about-history-card p {
    margin: 0;
}

.about-history-feature {
    background: #fff;
}
.about-story-tabs {
    background: #fff;
}

.about-story-tabs__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.about-story-tabs__nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f6f9f8;
}

.about-story-tab {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
}

.about-story-tab:hover,
.about-story-tab:focus-visible,
.about-story-tab.is-active {
    background: #fff;
    color: var(--teal-dark);
    box-shadow: 0 4px 14px rgba(31, 57, 63, 0.08);
}

.about-story-panel {
    scroll-margin-top: 96px;
}

.about-story-panel[hidden] {
    display: none;
}

.about-history-feature__intro {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    gap: 42px;
    align-items: start;
}

.about-history-feature__text {
    display: grid;
    gap: 14px;
}

.about-history-feature__lead {
    color: var(--ink);
    font-size: 20px;
    line-height: 1.55;
}

.about-history-feature__text p {
    margin: 0;
}

.about-history-feature__source {
    margin-top: 4px;
    padding-left: 14px;
    border-left: 4px solid var(--teal);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}
.about-history-feature__intro--article {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.about-history-article {
    max-width: 1060px;
    margin-top: 28px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.72;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.about-history-article::after {
    content: "";
    display: block;
    clear: both;
}

.about-history-article p {
    margin: 0 0 18px;
}

.about-history-article__figure {
    width: min(var(--history-figure-width, 340px), 44%);
    margin: 5px 0 18px 24px;
    float: right;
    clear: both;
}

.about-history-article__figure--left {
    margin: 5px 24px 18px 0;
    float: left;
}

.about-history-article__figure a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #eef6f5;
}

.about-history-article__figure img {
    display: block;
    width: 100%;
    height: auto;
}

.about-history-article__figure figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

#about-story-panel-history .about-history-article__figure {
    width: min(var(--history-figure-width, 280px), 28%);
    max-width: 280px;
    margin-bottom: 14px;
}

#about-story-panel-history .about-history-article__figure--left {
    margin-right: 20px;
}

#about-story-panel-history .about-history-article__figure--right {
    margin-left: 20px;
}

#about-story-panel-history .about-history-article__figure figcaption {
    font-size: 12px;
}


@media (max-width: 760px) {
    .about-story-tabs__head {
        display: grid;
        gap: 16px;
    }

    .about-story-tabs__nav {
        width: 100%;
    }

    .about-story-tab {
        flex: 1 1 auto;
    }

    .about-history-article {
        font-size: 16px;
        line-height: 1.65;
    }

    .about-history-article__figure,
    .about-history-article__figure--left {
        width: min(100%, 440px);
        margin: 18px 0;
        float: none;
    }

    #about-story-panel-history .about-history-article__figure,
    #about-story-panel-history .about-history-article__figure--left,
    #about-story-panel-history .about-history-article__figure--right {
        width: min(100%, 440px);
        max-width: 440px;
        margin: 18px 0;
        float: none;
    }
}

.about-history-feature__milestones {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.about-history-feature__milestone {
    min-height: 210px;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfb;
}

.about-history-feature__milestone span {
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
}

.about-history-feature__milestone h3 {
    font-size: 21px;
}

.about-history-feature__milestone p {
    margin: 0;
}

.about-history-feature__gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.about-history-feature__photo {
    display: grid;
    gap: 10px;
    margin: 0;
}

.about-history-feature__photo a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #eef6f5;
}

.about-history-feature__photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.about-history-feature__photo a:hover img,
.about-history-feature__photo a:focus-visible img {
    transform: scale(1.03);
}

.about-history-feature__photo figcaption {
    color: var(--teal-dark);
    font-size: 14px;
    font-weight: 800;
}
.about-structure {
    background: #fff;
}

.about-structure .section-head p:not(.section-kicker) {
    max-width: 760px;
    margin-top: 10px;
}

.about-structure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.about-structure-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfd;
}

.about-structure-card span {
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
}

.about-structure-card h2 {
    font-size: 23px;
}

.about-structure-card p {
    margin: 0;
}

.about-structure-card a {
    margin-top: auto;
    color: var(--blue);
    font-weight: 800;
}

.about-season-gallery {
    background: #fff;
}

.about-season-gallery__layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.about-season-gallery__copy {
    display: grid;
    align-content: center;
}

.about-season-gallery__dots {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.about-season-gallery__dots button {
    width: 36px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #b8c8cc;
    cursor: pointer;
    transition: width 0.18s ease, background 0.18s ease;
}

.about-season-gallery__dots button.is-active,
.about-season-gallery__dots button:hover,
.about-season-gallery__dots button:focus-visible {
    width: 54px;
    background: var(--teal);
}

.about-season-gallery__slider {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(20, 120, 119, 0.22);
    border-radius: 8px;
    background: #10232b;
    box-shadow: 0 20px 55px rgba(14, 31, 38, 0.16);
}

.about-season-gallery__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.about-season-gallery__slide a {
    display: block;
    height: 100%;
    background: #10232b;
}

.about-season-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-season-gallery__slide figcaption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    max-width: calc(100% - 36px);
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(8, 26, 34, 0.78);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.about-cooperation {
    background: #fff;
}

.about-cooperation .section-head p:not(.section-kicker) {
    max-width: 760px;
    margin-top: 10px;
}

.about-cooperation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.about-cooperation-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfd;
}

.about-cooperation-card h2 {
    font-size: 22px;
}

.about-cooperation-card p {
    margin: 0;
}

.about-cooperation-card a {
    margin-top: auto;
    color: var(--blue);
    font-weight: 800;
}

.about-related {
    background: #fff;
}

.kagis-map-section {
    background: #fff;
}

.kagis-map-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kagis-map-card {
    display: grid;
    gap: 12px;
    margin: 0;
}

.kagis-map-card img {
    width: 100%;
    height: 430px;
    display: block;
    object-fit: contain;
}

.kagis-map-card figcaption {
    color: var(--teal-dark);
    font-weight: 800;
}

.kagis-stations {
    background: #e9f2f1;
}

.kagis-station-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.kagis-station-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.kagis-station-card--plain {
    grid-template-columns: 1fr;
}

.kagis-station-card__media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    background: #f6fafa;
}

.kagis-station-card__media--multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

.kagis-station-card__media--multi a:first-child {
    grid-column: 1 / -1;
}

.kagis-station-card__media--pair a:first-child {
    grid-column: auto;
}

.kagis-station-card__media a {
    display: grid;
    gap: 6px;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
}

.kagis-station-card__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    border-radius: 6px;
}

.kagis-station-card__caption {
    padding: 0 8px 8px;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.kagis-station-card__body {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.kagis-station-card h2 {
    font-size: 24px;
}

.kagis-station-card p {
    margin: 0;
}

.kagis-station-card h3 {
    margin: 6px 0 -4px;
    color: var(--teal-dark);
    font-size: 16px;
}

.kagis-station-card ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 20px;
}

.kagis-station-card li {
    color: var(--ink);
    line-height: 1.45;
}

.kagis-equipment-link {
    color: var(--teal-dark);
    font-weight: 700;
    text-decoration-color: rgba(13, 111, 107, 0.42);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.kagis-equipment-link::after {
    content: " \2197";
    font-size: 0.82em;
}

.kagis-equipment-link:hover,
.kagis-equipment-link:focus-visible {
    color: var(--teal);
    text-decoration-color: currentColor;
}

.kagis-station-card__note {
    padding: 12px 14px;
    border-left: 3px solid var(--teal);
    background: #eef6f6;
}

.kagis-station-card__status {
    padding: 13px 15px;
    border-left: 4px solid var(--accent);
    background: #fff6e8;
    color: var(--ink);
}

.kagis-station-card__section {
    display: grid;
    gap: 10px;
}

.kagis-station-card__disclosure + .kagis-station-card__section {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.kagis-station-card__section h3 {
    margin-bottom: 0;
}

.kagis-station-card__section h3,
.kagis-station-card__disclosure summary {
    color: var(--teal-dark);
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.55;
}

.kagis-station-card__disclosure {
    border-top: 1px solid var(--line);
}

.kagis-station-card__disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
    list-style: none;
}

.kagis-station-card__disclosure summary::-webkit-details-marker {
    display: none;
}

.kagis-station-card__disclosure summary::after {
    content: '+';
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--teal-dark);
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
}

.kagis-station-card__disclosure[open] summary::after {
    content: '-';
}

.kagis-station-card__disclosure-body {
    display: grid;
    gap: 10px;
    padding: 0 0 14px;
}

.about-directions-section {
    padding-top: 44px;
}

.about-directions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.about-directions-card {
    position: relative;
    min-height: 0;
    padding: 16px;
    overflow: hidden;
}

.about-directions-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
}

.about-directions-card {
    background-image: linear-gradient(180deg, #edf7f8 0%, #fff 72%);
}

.about-directions-card::before {
    background: #72a9b7;
}

.about-directions-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.24;
}

.about-directions-card p {
    margin: 0;
    line-height: 1.5;
}

.about-directions-card .content-card__links {
    gap: 6px;
    padding-top: 12px;
}

.about-directions-card .content-card__links a {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 12px;
}

.about-topic-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f6fafa;
}

.about-topic-strip > span {
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
}

.about-topic-strip div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-topic-strip strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.25;
}

/* About story expandable article */
.about-history-article-wrap {
    position: relative;
    max-width: 1060px;
    margin-top: 28px;
}

.about-history-article-wrap .about-history-article {
    max-width: none;
    margin-top: 0;
}

.about-history-article-wrap.is-collapsed .about-history-article {
    max-height: 620px;
    overflow: hidden;
}

.about-history-article-wrap.has-overflow.is-collapsed::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 58px;
    left: 0;
    z-index: 1;
    height: 150px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 78%);
}

.about-history-article__toggle {
    position: relative;
    z-index: 2;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 0 16px;
    border: 1px solid var(--teal-dark);
    border-radius: 8px;
    background: var(--teal-dark);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
}

.about-history-article__toggle:hover,
.about-history-article__toggle:focus-visible {
    background: var(--blue);
    border-color: var(--blue);
}

.about-history-article__toggle[hidden] {
    display: none;
}

@media (max-width: 760px) {
    .about-history-article-wrap.is-collapsed .about-history-article {
        max-height: 680px;
    }

    .about-history-article-wrap.has-overflow.is-collapsed::after {
        height: 120px;
    }

    .about-history-article__toggle {
        width: 100%;
    }
}

/* Preserve the shared card surface cascade after this page module is loaded. */
.about-history-card,
.about-structure-card,
.about-cooperation-card,
.kagis-map-card,
.kagis-station-card {
    border: var(--card-border);
    border-radius: var(--card-radius);
    background-color: var(--panel);
    box-shadow: var(--card-shadow);
}

.kagis-map-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 980px) {
    .about-overview__grid,
    .about-history__timeline,
    .about-history-feature__intro,
    .about-history-feature__milestones,
    .about-history-feature__gallery,
    .about-structure-grid,
    .about-season-gallery__layout,
    .about-cooperation-grid,
    .kagis-map-grid,
    .kagis-station-grid,
    .about-directions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kagis-station-card,
    .about-season-gallery__layout {
        grid-template-columns: 1fr;
    }

    .kagis-map-card img {
        height: 380px;
    }
}

@media (max-width: 680px) {
    .about-overview__grid,
    .about-history__timeline,
    .about-history-feature__intro,
    .about-history-feature__milestones,
    .about-history-feature__gallery,
    .about-structure-grid,
    .about-season-gallery__layout,
    .about-cooperation-grid,
    .kagis-map-grid,
    .kagis-station-grid,
    .about-directions-grid {
        grid-template-columns: 1fr;
    }

    .about-season-gallery__slider {
        min-height: 260px;
    }

    .about-season-gallery__dots button {
        width: 30px;
    }

    .about-season-gallery__dots button.is-active,
    .about-season-gallery__dots button:hover,
    .about-season-gallery__dots button:focus-visible {
        width: 44px;
    }

    .kagis-map-card img {
        height: 300px;
    }
}
