/* v8: readable Japanese line wrapping across the supplied pages */
.c-lead { max-width: none; letter-spacing: .025em; }
.c-pagehead .c-lead { max-width: 900px; }
.c-p, .c-sub, .c-note, .c-msg-body p { letter-spacing: .025em; }
body :is(h1,h2,h3,h4,p,li,td,figcaption) { line-break: strict; overflow-wrap: anywhere; text-wrap: pretty; }
body :is(h1,h2,h3) { text-wrap: balance; }
.c-card-row > div { min-width: 0; flex: 1; }
.c-phrase { white-space: nowrap; }
.c-sentence { display: block; }
@media(min-width: 1000px) { .c-card-row { padding: 28px; gap: 20px; } }
@media(max-width: 768px) {
 .c-lead,.c-p { line-height: 1.9; }
 .c-sentence { display: inline; }
 .c-hero h1 span { display: inline-block; }
 .c-h2 { font-size: clamp(26px,6.5vw,34px); letter-spacing: .015em; }
 .c-card-row .c-h3 { font-size: 19px; letter-spacing: .015em; }
}
/* The original gold applies only to the highlighted second half of the hero. */
.c-hero h1 > .c-phrase { color: inherit; }

/* Legacy article layouts have an inline two-column grid; stack the sidebar. */
.t-article-layout > * { min-width: 0; }
.article-body, .prose { overflow-wrap: anywhere; }
.button, .article-body .btn-primary, .prose .button { box-sizing: border-box; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media(max-width: 900px) {
 .t-article-layout { grid-template-columns: minmax(0,1fr) !important; gap: 32px !important; }
 .t-article-layout > aside { width: auto !important; position: static !important; }
}

.t-contact-layout > * { min-width: 0; }
@media(max-width: 768px) {
 .t-contact-layout { grid-template-columns:minmax(0,1fr) !important; gap:32px !important; }
 .t-contact-layout > div { position:static !important; }
 #contact-form > div[style*="display:grid"] { grid-template-columns:minmax(0,1fr) !important; }
 #contact-form { padding:24px !important; }
 .t-contact-page input,.t-contact-page select,.t-contact-page textarea { box-sizing:border-box; min-width:0; max-width:100%; }
}
