@import url("storyi-top-a8b-20260902.css");

/* Subpage layouts; typography, palette and shared chrome come from a8b. */
.subpage .site-header { position: relative; height: 120px; z-index: 3; }
.subpage .primary-nav { position: absolute; top: 86px; left: 5.2vw; }
.subpage main { overflow-wrap: anywhere; }
.subpage main > section, .sub-article-shell { padding: 100px 5.2vw; }
.subpage main > section:first-child { padding-top: 64px; background: var(--mist); }
.subpage main > section:nth-child(even) { background: var(--mist); }
.subpage main h1 { position: static; width: auto; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.45; }
.subpage main h2 { font-size: clamp(27px, 3vw, 40px); }
.subpage main h3 { font: 400 26px/1.6 "Yu Mincho", "Hiragino Mincho ProN", serif; }
.subpage main p { max-width: 760px; font-size: 17px; line-height: 2; margin: 24px 0; }
.subpage main .sub-eyebrow, .subpage main .sub-meta { font-size: 13px; }
.subpage main .sub-lead { max-width: 760px; }
.subpage main h1::after { content: ""; display: block; width: 72px; height: 1px; margin: 30px 0; background: var(--turquoise); }
.img-slot { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 24px; border: 1px dashed #a9b3b7; background: #f1f3f3; color: #53626a; font-size: 14px; line-height: 1.8; margin: 30px 0 0; }
.img-slot[data-ratio="16:9"] { aspect-ratio: 16 / 9; max-width: 1000px; margin-top: 48px; }
.sub-timeline, .sub-next, .sub-pathway-list, .sub-trust, .sub-service-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.sub-trust-item strong, .sub-trust-item span { display: block; }
.sub-trust-item strong { font: 400 40px/1.5 "Yu Mincho", serif; }
.sub-portrait-spread-inner, .sub-depth-inner, .sub-service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.sub-portrait-photo { margin: 0; }
.sub-service { padding: 64px 0; border-top: 1px solid var(--turquoise); }
.sub-service .sub-num { grid-column: 1 / -1; }
.sub-num { font: 400 44px/1 "Yu Mincho", serif; color: var(--turquoise); }
.sub-service > .img-slot { grid-column: 1; }
.sub-note { margin-top: 70px; }
.sub-pathway { padding: 28px; background: var(--soft-blue); text-decoration: none; }
.sub-cta { text-align: center; }
.sub-cta p, .sub-cta .img-slot { margin-left: auto !important; margin-right: auto !important; }
.sub-cta .img-slot { max-width: 520px; }
.sub-btn { display: inline-block; padding: 18px 28px; border: 0; background: var(--orange); color: var(--copy-navy); font: inherit; text-decoration: none; cursor: pointer; }
.sub-feature-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; text-decoration: none; }
.sub-question-box { margin-top: 60px; padding: 40px; background: var(--soft-blue); }
.sub-question-box .img-slot, .sub-index > .img-slot { max-width: 520px; }
.sub-category-filter { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sub-category-filter button { padding: 12px 18px; border: 1px solid var(--copy-navy); color: var(--copy-navy); background: white; font: inherit; }
.sub-category-filter .is-active, .sub-category-filter .sub-is-active { background: var(--soft-blue); }
.sub-contact-panel { margin-top: 50px; max-width: 760px; }
.sub-form-shell { padding: 40px; background: white; }
.subpage form { display: grid; gap: 24px; }
.subpage label { display: grid; gap: 10px; font-size: 15px; }
.subpage input, .subpage select, .subpage textarea { width: 100%; min-width: 0; padding: 14px; border: 1px solid #a9b3b7; border-radius: 0; font: inherit; background: white; }
.subpage textarea { min-height: 160px; resize: vertical; }
.sub-article-shell { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 60px; }
.sub-side-panel a { display: block; margin-top: 22px; }
.subpage [hidden] { display: none !important; }
@media (max-width: 760px) {
 .subpage .site-header { height: 70px; }
 .subpage .primary-nav { position: static; }
 .subpage main > section, .sub-article-shell { padding: 64px 22px; }
 .subpage main > section:first-child { padding-top: 42px; }
 .subpage main p { font-size: 16px; }
 .subpage main h3 { font-size: 24px; }
 .sub-timeline, .sub-next, .sub-pathway-list, .sub-trust, .sub-service-gallery, .sub-portrait-spread-inner, .sub-depth-inner, .sub-service, .sub-feature-main, .sub-article-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
 .sub-question-box, .sub-form-shell { padding: 24px 18px; }
 .img-slot { padding: 18px; }
}

/* Round 2: close removed image space and lay out WordPress articles. */
.subpage main > .sub-service-gallery { display: none; }
.sub-feature-main { grid-template-columns: minmax(0, 1fr); }
.sub-article-row { display: grid; grid-template-columns: 90px 140px minmax(0, 1fr) 140px; gap: 24px; align-items: start; padding: 32px 0; border-bottom: 1px solid #a9b3b7; text-decoration: none; }
.sub-article-row .thumb { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.sub-article-row .date, .sub-article-row .category { font-size: 13px; }
.sub-article-body { min-width: 0; }
.sub-article-body img, .sub-article-body video { max-width: 100%; height: auto; }
.sub-article-body figure { max-width: 100%; margin-inline: 0; }
.sub-article-body pre, .sub-article-body table { display: block; max-width: 100%; overflow-x: auto; }
.sub-status { padding: 0 5.2vw 40px; }
@media (max-width: 760px) {
 .sub-article-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
 .sub-article-row .thumb { max-width: 180px; width: 100%; }
}

/* Filled image slots retain the existing aspect ratios. */
.img-slot.is-filled { border: 0; background: transparent; padding: 0; color: inherit; }
.img-slot.is-filled img { display: block; width: 100%; height: 100%; object-fit: cover; }
