.yspr-review {
    margin: 3.5rem 0 1rem;
    color: #17212b;
}

.yspr-review__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #17212b;
}

.yspr-review__eyebrow,
.yspr-review__mode {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.yspr-review__mode {
    padding: 0.35rem 0.65rem;
    color: #fff;
    background: #17212b;
}

.yspr-review__section {
    margin-top: 2.5rem;
}

.yspr-review__section h2 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.yspr-review__note {
    line-height: 1.9;
}

.yspr-roundtable__speaker {
    font-weight: 700;
}

.yspr-review__scores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: #d7dce0;
}

.yspr-score {
    padding: 1.25rem;
    text-align: center;
    background: #f8f9fa;
}

.yspr-score__name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.yspr-score__value {
    margin: 0.5rem 0 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.yspr-score__value span {
    margin-left: 0.2rem;
    font-size: 0.8rem;
    font-weight: 400;
}

.yspr-review__exif {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    color: #34424e;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    white-space: pre-wrap;
    background: #f4f6f7;
    border-left: 3px solid #17212b;
}

.yspr-review__comments {
    display: grid;
    gap: 1rem;
}

.yspr-comment {
    padding: 1.25rem;
    line-height: 1.9;
    background: #f8f9fa;
    border-left: 3px solid #17212b;
}

.yspr-comment h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.yspr-comment p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .yspr-review__scores {
        grid-template-columns: 1fr;
    }
}

/* Magazine layout for individual photo reviews. */
.yspr-magazine {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 6rem;
    color: #292d2f;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", sans-serif;
}

.yspr-magazine__article {
    margin: 0;
}

.yspr-magazine__crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin: 0 0 1.5rem;
    padding: 0.75rem 1rem;
    color: #607783;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    background: transparent;
    border-bottom: 1px solid #dce2e1;
}

.yspr-magazine__crumbs a {
    color: inherit;
    text-decoration: none;
}

.yspr-magazine__hero {
    position: relative;
    margin: 0;
    background: #fff;
}

.yspr-magazine__hero img {
    display: block;
    width: 100%;
    max-height: min(82vh, 960px);
    object-fit: contain;
}

.yspr-magazine__hero figcaption {
    position: absolute;
    right: 1.25rem;
    bottom: 0.9rem;
    max-width: calc(100% - 2.5rem);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.75rem;
    line-height: 1.45;
    text-align: right;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.yspr-magazine__intro {
    max-width: 980px;
    margin: 4rem auto 2.7rem;
    text-align: center;
}

.yspr-magazine__kicker {
    margin: 0 0 0.9rem;
    color: #6c828d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.yspr-magazine__kicker span {
    display: inline-block;
    margin-left: 0.55rem;
    padding-left: 0.65rem;
    color: #bf3432;
    border-left: 1px solid #8a989d;
}

.yspr-magazine__intro h1 {
    margin: 0;
    font-size: clamp(2rem, 4.3vw, 3.5rem);
    font-weight: 750;
    letter-spacing: 0.015em;
    line-height: 1.25;
}

.yspr-magazine__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin: 1.25rem 0 0;
}

.yspr-magazine__tags a {
    color: #6b8590;
    font-size: 0.9rem;
    text-decoration: none;
}

.yspr-magazine__body,
.yspr-magazine__section {
    max-width: 980px;
    margin: 0 auto;
}

.yspr-magazine__body {
    font-size: clamp(1.05rem, 1.7vw, 1.24rem);
    line-height: 2.05;
    letter-spacing: 0.025em;
}

.yspr-magazine__body > *:first-child {
    margin-top: 0;
}

.yspr-magazine__content-heading {
    margin: 0 0 1.6rem;
    color: #344550;
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.yspr-magazine__section h2 span,
.yspr-magazine__content-heading span {
    margin-left: 0.45rem;
    color: #617983;
    font-size: 0.82em;
    letter-spacing: 0.06em;
}

.yspr-magazine__body p {
    margin: 0 0 1.6em;
}

.yspr-magazine__section {
    margin-top: 4.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d5dbdb;
}

.yspr-magazine__section h2 {
    margin: 0 0 1.6rem;
    color: #344550;
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.yspr-magazine__note > div,
.yspr-magazine__roundtable > div {
    font-size: 1.05rem;
    line-height: 2;
}

.yspr-magazine__roundtable-lines p {
    margin: 0 0 1.25rem;
}

.yspr-magazine__roundtable-lines p:last-child {
    margin-bottom: 0;
}

.yspr-magazine__roundtable-lines strong {
    font-weight: 800;
}

.yspr-magazine__scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #cdd5d6;
    border-left: 1px solid #cdd5d6;
}

.yspr-magazine__score {
    padding: 1.55rem 1rem;
    text-align: center;
    border-right: 1px solid #cdd5d6;
    border-bottom: 1px solid #cdd5d6;
}

.yspr-magazine__score p {
    margin: 0 0 0.55rem;
    font-weight: 700;
}

.yspr-magazine__score strong {
    font-size: 2.5rem;
    line-height: 1;
}

.yspr-magazine__score small {
    margin-left: 0.2rem;
    font-size: 0.8rem;
    font-weight: 400;
}

.yspr-magazine__reviews {
    display: grid;
    gap: 2rem;
}

.yspr-magazine__review {
    padding-left: 1.3rem;
    font-size: 1.03rem;
    line-height: 1.95;
    border-left: 3px solid #8296a0;
}

.yspr-magazine__review h3 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
}

.yspr-magazine__data pre {
    margin: 0;
    padding: 1.2rem;
    overflow-x: auto;
    color: #4d5c64;
    font: 0.82rem/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
    background: #f2f5f5;
}

@media (max-width: 700px) {
    .yspr-magazine {
        padding: 1.3rem 1rem 4rem;
    }

    .yspr-magazine__crumbs {
        font-size: 0.73rem;
    }

    .yspr-magazine__intro {
        margin-top: 2.7rem;
    }

    .yspr-magazine__scores {
        grid-template-columns: 1fr;
    }
}

/* Card archive front page. */
/* The site header is replaced on the front page so the requested brand casing is used once. */
body:has(.yspr-home) .wp-site-blocks > header,
body:has(.yspr-home) #masthead {
    display: none;
}

/* Some themes render the site title outside of their usual header wrapper. */
body:has(.yspr-home) h1:has(> a[href]),
body:has(.yspr-magazine) h1:has(> a[href]) {
    margin: 1.7rem 2rem 1.2rem;
    font-size: 1.45rem !important;
    line-height: 1.2;
}

body:has(.yspr-home) h1:has(> a[href]) > a,
body:has(.yspr-magazine) h1:has(> a[href]) > a {
    font-size: 0 !important;
    text-decoration: none;
}

body:has(.yspr-home) h1:has(> a[href]) > a::after,
body:has(.yspr-magazine) h1:has(> a[href]) > a::after {
    color: #263236;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    content: "YAMAScene Photo Review";
}

body:has(.yspr-home) footer,
body:has(.yspr-magazine) footer,
body:has(.yspr-home) #footer,
body:has(.yspr-magazine) #footer,
body:has(.yspr-home) .wp-site-blocks > .wp-block-group:last-child,
body:has(.yspr-magazine) .wp-site-blocks > .wp-block-group:last-child {
    display: none;
}

.yspr-home {
    max-width: 1340px;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem;
    color: #263236;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", sans-serif;
}

.yspr-home__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 0 1.3rem;
    border-bottom: 1px solid #dce2e1;
}

.yspr-home__intro { max-width: 580px; margin: 0; color: #4d6067; font-size: 16px; line-height: 1.9; }

.yspr-home__nav { display: flex; gap: 1.6rem; }
.yspr-home__nav a { color: #607681; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-decoration: none; }
.yspr-home__shell { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2.3rem; padding-top: 2rem; }
.yspr-home__sidebar { padding: 1.25rem 1.15rem; color: #fff; background: #293638; }
.yspr-home__sidebar h1, .yspr-home__sidebar h2 { margin: 0 0 1.2rem; font-size: 0.78rem; letter-spacing: 0.07em; }
.yspr-home__sidebar h1 { padding-left: 0.65rem; border-left: 4px solid #aebfc2; }
.yspr-home__sidebar h2 { padding-top: 1.4rem; border-top: 1px solid #506062; color: #cad5d4; }
.yspr-home__sidebar-group { margin-top: 1.45rem; }
.yspr-home__sidebar a { display: block; margin: 0 0 0.9rem; color: #e6eceb; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.055em; text-decoration: none; }
.yspr-home__sidebar a:hover, .yspr-home__sidebar a.is-current { color: #fff; }
.yspr-home__sidebar a.is-current::before { display: inline-block; width: 4px; height: 1em; margin-right: 0.55rem; vertical-align: -0.15em; background: #aebfc2; content: ""; }
.yspr-home__eyebrow { margin: 0 0 1rem; color: #627883; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; }
.yspr-home__grid { column-count: 3; column-gap: 1.1rem; }
.yspr-home-card { display: inline-block; width: 100%; margin: 0 0 1.1rem; vertical-align: top; break-inside: avoid; }
.yspr-home-card__link { position: relative; display: block; overflow: hidden; color: #fff; background: #78909a; text-decoration: none; }
.yspr-home-card__image { display: block; width: 100%; height: auto; transition: transform 320ms ease; }
.yspr-home-card__placeholder { display: block; width: 100%; min-height: 250px; background: linear-gradient(145deg, #536e77, #b7c9cd); }
.yspr-home-card__mode { position: absolute; top: 0.65rem; right: 0.65rem; padding: 0.27rem 0.38rem; color: #fff; font-size: 0.61rem; font-weight: 800; letter-spacing: 0.08em; background: rgba(38, 50, 54, 0.85); }
.yspr-home-card__link:hover .yspr-home-card__image { transform: scale(1.035); }
.yspr-home__empty { padding: 3rem 0; color: #61727a; }
@media (max-width: 760px) {
    .yspr-home { padding: 1.5rem 1rem 3rem; }
    .yspr-home__nav { display: none; }
    .yspr-home__shell { grid-template-columns: 1fr; gap: 1.5rem; }
    .yspr-home__sidebar { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: baseline; padding: 1rem; }
    .yspr-home__sidebar h1, .yspr-home__sidebar h2, .yspr-home__sidebar-group { display: contents; }
    .yspr-home__sidebar a { margin: 0; }
    .yspr-home__sidebar h2 { border: 0; padding: 0; }
    .yspr-home__grid { column-count: 2; column-gap: 0.7rem; }
    .yspr-home-card { margin-bottom: 0.7rem; }
}

/* Simple single-column presentation for phones and narrow tablets. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
    .yspr-home {
        max-width: none;
        padding: 1.25rem 1rem 2.5rem;
    }

    .yspr-home__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.85rem;
    }

    .yspr-home__nav {
        display: flex;
        gap: 1.25rem;
    }

    .yspr-home__shell {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-top: 1.25rem;
    }

    .yspr-home__sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem 1rem;
        align-items: center;
        min-height: 0;
        padding: 0.9rem 1rem;
    }

    .yspr-home__sidebar h1,
    .yspr-home__sidebar h2,
    .yspr-home__sidebar-group {
        display: contents;
    }

    .yspr-home__sidebar a {
        margin: 0;
    }

    .yspr-home__sidebar h2 {
        border: 0;
        padding: 0;
    }

    .yspr-home__grid {
        column-count: 1;
        column-gap: 0;
    }

    .yspr-home-card {
        display: block;
        margin-bottom: 1rem;
    }

}
