/* Shared typography, palette and breakpoints come from Stories styles. */
/* Keep the shared type scale and alignment; give Archive copy more room. */
.stories-list-page.press-page .stories-intro { width: min(100%, 55rem); }
.stories-list-page.press-page .stories-intro__body { text-wrap: balance; }
.stories-list-page.press-page .stories-intro__body + .stories-intro__body { margin-top: 1.25rem; }

.press-body__text { white-space: pre-wrap; }
.press-body h2 { font: inherit; font-weight: 500; margin-bottom: 1.65em; }
.press-image-link { display: block; cursor: zoom-in; }
.press-image-link img { display: block; width: 100%; height: auto; }
.press-page a:focus-visible, .press-page button:focus-visible { outline: 2px solid rgb(29, 29, 28); outline-offset: .3rem; }
.press-viewer { width: min(96vw, 1500px); max-width: 96vw; max-height: 94dvh; padding: 0; border: 0; background: #f9f8f5; }
.press-viewer::backdrop { background: rgb(0 0 0 / .8); }
.press-viewer__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem; }
.press-viewer__toolbar h2 { flex: 1; font-size: 1rem; margin: 0; }
.press-viewer__canvas { max-height: 75dvh; overflow: auto; padding: 1rem; }
.press-viewer__canvas img { display: block; max-width: 100%; height: auto; margin: auto; }
.press-viewer.is-actual-size .press-viewer__canvas img { max-width: none; }
@media (max-width: 575.98px) {
    .press-viewer__toolbar h2 { flex-basis: 100%; }
}

.press-preview-notice { padding: 1rem; margin-bottom: 2rem; border: 1px solid currentColor; font-size: .875rem; line-height: 1.8; }

/* Profile's 2.5rem section spacing and definition-list typography,
   scoped to Press because About's selectors require .about-detail-page. */
.press-detail-media .press-images { margin-bottom: 2.5rem; }
.press-detail-media .press-images figure { margin-bottom: 1.5rem; }
.press-detail-media .press-images figure:last-child { margin-bottom: 0; }
.press-publication .stories-widget__title {
    color: rgb(22, 22, 22);
    font-family: var(--font-latin), var(--font-cjk-primary), sans-serif;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.5;
}
.press-publication-info { display: grid; gap: 1.5rem; margin: 2.5rem 0 0; font-family: var(--font-cjk-primary), var(--font-cjk-secondary), sans-serif; }
.press-publication-info dt { margin: 0 0 .45rem; color: rgb(128, 124, 117); font-size: .72rem; font-weight: 500; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; }
.press-publication-info dd { margin: 0; font-size: .95rem; line-height: 1.75; overflow-wrap: anywhere; }

/* Adjacent paragraph margins collapse with the heading margin instead of adding. */
.press-body h3.press-body__subheading {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.press-list-row + .press-list-row { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgb(210, 208, 201); }
.press-list-image { display: block; width: 100%; height: auto; }
/* Shared excerpt mechanics; each host owns its own line count. */
.press-list-excerpt { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
/* Press Archive only: independent of Home CSS and stylesheet order. */
.stories-list-page.press-page .press-list-excerpt { -webkit-line-clamp: 6; }
.press-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: clamp(3rem, 6vw, 5rem); }
.press-pagination a { color: inherit; text-underline-offset: .3em; }
.press-pagination [aria-current] { font-weight: 600; }
.press-detail-copy > .press-body, .press-detail-heading > * { max-width: 46rem; }
.press-detail-layout > * { min-width: 0; }
@media (min-width: 992px) {
    .press-detail-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 0; }
    .press-detail-layout > * { width: auto; margin-top: 0; }
    .press-detail-heading { grid-column: 4 / 13; grid-row: 1; }
    .press-detail-media { grid-column: 1 / 4; grid-row: 1 / 3; }
    .press-detail-copy { grid-column: 4 / 13; grid-row: 2; }
}
@media (max-width: 991.98px) {
    .press-list-image { max-width: 12rem; }
    .press-detail-media .press-image-link { max-width: 24rem; }
    .press-detail-heading { margin-bottom: 0; }
}

/* About/Profile name typography; no element or margin when subject is absent. */
.press-body .press-body__subject {
    margin: 0 0 2.5rem;
    font-family: var(--font-cjk-primary), var(--font-cjk-secondary), sans-serif;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1.5;
}
.press-body .press-body__subject[lang="ja"] { font-family: "Noto Sans JP", var(--font-cjk-primary), sans-serif; }

/* Archive-only type scale: currently matches Home, independently adjustable.
   The detail page does not carry .stories-list-page. */
.stories-list-page.press-page .story-card__title { font-size: clamp(1.29rem, 1.935vw, 1.6125rem); }
.stories-list-page.press-page .story-card__summary { font-size: 1rem; }

/* Match Main Stories: fixed clipping link, transform only its inner image.
   Preserve the newspaper's natural height instead of a cropped aspect ratio. */
.press-list-image-link {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    max-width: 100%;
    border: 1px solid rgb(218, 216, 210);
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgb(0 0 0 / .08);
    transition: box-shadow 450ms cubic-bezier(.3, .1, .58, 1);
}
/* Stories' 0.88 opacity corresponds to a subtle 12% lightening layer. */
.press-list-image-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 450ms cubic-bezier(.3, .1, .58, 1);
}
.press-list-image-link:focus-visible::after { opacity: 1; }
@media (hover: hover) {
    .press-list-image-link:hover::after { opacity: 1; }
}
.press-list-image-link .press-list-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: inherit;
    transform: scale(1);
    transition: transform 600ms cubic-bezier(.3, .1, .58, 1);
}
.press-list-image-link:focus-visible {
    outline: 2px solid rgb(17, 17, 17);
    outline-offset: .3rem;
    box-shadow: 0 10px 28px rgb(0 0 0 / .14);
}
.press-list-image-link:focus-visible .press-list-image { transform: scale(1.018); }
@media (hover: hover) {
    .press-list-image-link:hover { box-shadow: 0 6px 20px rgb(0 0 0 / .10); }
    .press-list-image-link:hover .press-list-image { transform: scale(1.018); }
}
@media (max-width: 991.98px) {
    .press-list-image-link { max-width: 12rem; }
}
@media (prefers-reduced-motion: reduce) {
    .press-list-image-link, .press-list-image-link .press-list-image, .press-list-image-link::after { transition: none; }
    .press-list-image-link:hover .press-list-image,
    .press-list-image-link:focus-visible .press-list-image { transform: scale(1); }
}
