/* Shared layout language: warm paper, restrained rules, generous reading space. */
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * { margin-block-start: 0; }
a { overflow-wrap: anywhere; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.mm-header { background: #fff; border-bottom: 1px solid var(--mm-line); padding: 1.25rem 2rem; }
.mm-header-inner { max-width: 1180px !important; margin-inline: auto; display: grid; grid-template-columns: 240px 1fr 240px; align-items: center; gap: 1.25rem 2rem; }
.mm-header-inner > * { margin: 0 !important; max-width: none !important; }
.mm-site-logo { width: 240px; max-width: 100%; }
.mm-site-logo img { width: 100%; height: auto; display: block; }
.mm-nav { font-size: .9375rem; font-weight: 500; }
.mm-nav .wp-block-navigation__container { gap: .125rem 1rem; justify-content: center; }
.mm-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--mm-ink); }
.mm-nav a:hover { color: var(--mm-accent); text-decoration: underline; }
.mm-nav .current-menu-item > a { color: var(--mm-accent); text-decoration: underline; }
.mm-header .wp-block-search { width: 100%; }
.wp-block-search { font-size: .9375rem; }
.wp-block-search__inside-wrapper { min-width: 0; gap: 0; padding: 0; border: 0; }
.wp-block-search__input { min-width: 0; width: 100%; min-height: 46px; border: 1px solid #8b8278; border-right: 0; border-radius: 6px 0 0 6px; background: #fff; color: var(--mm-ink); padding: .6rem .875rem; font: inherit; }
.wp-block-search__input::placeholder { color: var(--mm-muted); opacity: 1; }
.wp-block-search__button { margin: 0; flex-shrink: 0; background: var(--mm-accent); color: #fff; border: 1px solid var(--mm-accent); border-radius: 0 6px 6px 0; min-width: 46px; min-height: 46px; padding: .5rem .75rem; cursor: pointer; }
.wp-block-search__button:hover { background: #60294d; }
.wp-block-search__button svg { fill: currentColor; }
.mm-main { background: #fff; max-width: 880px; margin: 3rem auto 5rem; padding: 3.5rem clamp(1.25rem, 5vw, 5rem); border: 1px solid var(--mm-line); border-radius: 8px; }
.mm-main.mm-discovery { background: transparent; width: calc(100% - 64px); max-width: 1120px; padding: 0; border: 0; border-radius: 0; }
.mm-main :where(h1,h2,h3,.wp-block-post-title) { overflow-wrap: anywhere; line-break: strict; }
.mm-main h1 { letter-spacing: .015em; text-wrap: pretty; }
.mm-main > .wp-block-post-title { margin-top: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 600; line-height: 1.6; }
.mm-discovery > :where(h1,.wp-block-query-title) { font-size: 2rem; margin-bottom: 2rem; }
.mm-discovery > .wp-block-search { max-width: 560px; margin: 0 0 2.5rem; }
.mm-discovery > *, .mm-hero > *, .mm-topics > *, #latest-articles > * { max-width: none !important; }
.mm-hero { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 1.5rem; padding: 2rem; margin-bottom: 3rem; background: #fff; border: 1px solid var(--mm-line); border-radius: 12px; }
.mm-hero > * { margin: 0 !important; min-width: 0; }
.mm-eyebrow { color: var(--mm-accent); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; margin: 0 0 1.25rem; }
.mm-hero h1 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 600; font-size: clamp(1.75rem, 2.9vw, 2.375rem); line-height: 1.6; letter-spacing: .015em; margin: 0 0 1.5rem; }
.mm-hero-description { color: var(--mm-muted); font-size: 1rem; line-height: 1.9; margin: 0; text-wrap: pretty; }
.mm-hero-description span { display: block; }
.mm-hero-link { margin: 1.25rem 0 0; font-size: .9375rem; font-weight: 600; }
.mm-hero-link a { display: inline-flex; gap: 1rem; align-items: center; min-height: 46px; padding: .5rem 1rem; border: 1px solid var(--mm-accent); border-radius: 6px; text-decoration: none; }
.mm-hero-art img { width: 100%; height: auto; display: block; }
.mm-topics { margin: 0 0 3rem; }
.mm-topics h2, #latest-articles > h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: .04em; margin: 0 0 1.5rem; border: 0; padding: 0; }
.mm-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.mm-topic-grid > * { margin: 0 !important; max-width: none !important; }
.mm-topic { display: flex; flex-direction: column; gap: .625rem; min-width: 0; padding: 1.5rem; background: #fff; border: 1px solid var(--mm-line); border-radius: 8px; color: var(--mm-ink); text-decoration: none; }
.mm-topic:hover { border-color: var(--mm-accent); background: #fdf9fb; text-decoration: none; }
.mm-topic-context { color: var(--mm-accent); font-size: .8125rem; font-weight: 500; }
.mm-topic-title { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; font-size: 1rem; font-weight: 600; line-height: 1.7; }
.mm-topic-description { font-size: .9375rem; color: var(--mm-muted); line-height: 1.8; }
.mm-topic-article { display: block; border-top: 1px solid var(--mm-line); padding-top: .75rem; margin-top: auto; font-size: .8125rem; line-height: 1.7; color: var(--mm-muted); }
.mm-section-description { font-size: .9375rem; color: var(--mm-muted); margin: -.75rem 0 1.5rem; }
.mm-hero-link a:hover { background: var(--mm-soft); }
#latest-articles { scroll-margin-top: 2rem; }
/* Explicit columns protect the layout from competing generic block rules. */
.mm-card-grid.wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; padding: 0; }
.mm-card-grid > li { min-width: 0; display: flex; flex-direction: column; padding: 1.5rem; background: #fff; border: 1px solid var(--mm-line); border-radius: 8px; }
.mm-card-grid .wp-block-post-title { font-family: inherit; font-size: 1.1875rem; font-weight: 600; line-height: 1.65; margin: 0 0 .875rem; padding: 0; border: 0; letter-spacing: 0; text-wrap: pretty; }
.mm-card-grid .wp-block-post-title a { color: var(--mm-ink); text-decoration: none; }
.mm-card-grid .wp-block-post-title a:hover { color: var(--mm-accent); text-decoration: underline; }
.mm-card-excerpt { font-size: .9375rem; color: var(--mm-muted); line-height: 1.85; margin: 0 0 1.25rem; }
.mm-card-excerpt p { margin: 0; }
.mm-card-grid .mm-card-footer { display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--mm-line); }
.mm-card-grid .wp-block-post-featured-image { width: 100%; flex: none; margin: 0 0 1.25rem; background: #fff; border: 1px solid var(--mm-line); border-radius: 4px; overflow: hidden; }
.mm-card-grid .wp-block-post-featured-image img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; }
.mm-card-details { margin: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.mm-card-grid .wp-block-post-date { font-size: .8125rem; line-height: 1.6; color: var(--mm-muted); margin: 0; padding: 0; }
.mm-card-grid .wp-block-read-more { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; margin: .25rem 0 0; }
.wp-block-query-pagination { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 3rem; justify-content: center; align-items: center; font-size: .9375rem; }
.wp-block-query-pagination-numbers { display: flex; gap: .375rem; flex-wrap: wrap; justify-content: center; margin: 0; }
.wp-block-query-pagination :where(a,.current,.dots) { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; padding: .5rem .75rem; border-radius: 6px; text-decoration: none; }
.wp-block-query-pagination a { background: #fff; border: 1px solid #8b8278; color: var(--mm-ink); }
.wp-block-query-pagination a:hover { border-color: var(--mm-accent); color: var(--mm-accent); }
.wp-block-query-pagination .current { background: var(--mm-accent); color: #fff; }
.wp-block-query-pagination > * { margin: 0; }
.wp-block-query-no-results { padding: 2rem; background: #fff; border: 1px solid var(--mm-line); border-radius: 8px; }
.wp-block-query-no-results .wp-block-search { max-width: 560px; }
.mm-meta { font-size: .875rem; color: var(--mm-muted); gap: .25rem .75rem; margin: 1.5rem 0 2rem; }
.mm-meta > * { margin: 0; }
.mm-author { background: var(--mm-canvas); border: 1px solid var(--mm-line); border-radius: 6px; padding: 1.5rem; margin-top: 3rem; }
.mm-author h2 { font-size: 1rem; border: 0; padding: 0; margin-top: 0; }
.mm-author .wp-block-post-author-name { margin-bottom: 0; }
.mm-article-image { margin-block: 1.5rem 2rem; }
.mm-article-image img { height: auto; max-width: 100%; }
.mm-image-compact { width: min(100%, 360px); margin-inline: auto; }
.mm-image-compact a { display: block; text-align: center; }
.mm-image-compact img { display: block; width: 100%; height: auto; }
.mm-image-caption { display: inline-block; font-size: .8125rem; margin-top: .5rem; }
.mm-author { display: grid; grid-template-columns: 96px minmax(0,1fr); column-gap: 1.5rem; align-items: start; }
.mm-author > :not(.mm-author-avatar) { grid-column: 2; }
.mm-author .mm-author-avatar { grid-row: 1 / span 3; grid-column: 1; margin: 0; }
.mm-author-avatar img { display: block; width: 96px; height: 96px; object-fit: contain; border-radius: 50%; background: #fff; }
.mm-author-bio { overflow-wrap: anywhere; font-size: 1rem; line-height: 1.9; margin-top: .75rem; }
.mm-author-bio p { margin: 0 0 .75rem; }
.mm-author-bio > :last-child { margin-bottom: 0; }
.mm-breadcrumbs { font-size: .8125rem; color: var(--mm-muted); margin-bottom: 1.5rem; }
.mm-breadcrumbs ol { padding: 0; display: flex; gap: .25rem .5rem; flex-wrap: wrap; list-style: none; }
.mm-breadcrumbs li:not(:last-child)::after { content: " /"; margin-left: .5rem; color: var(--mm-muted); }
.mm-comments, .mm-post-navigation { margin-top: 3rem; border-top: 1px solid var(--mm-line); padding-top: 1.5rem; }
.mm-comments :where(textarea,input:not([type=checkbox])) { max-width: 100%; font: inherit; }
.mm-comments input[type=submit] { min-height: 44px; }
.mm-footer { padding: 2.25rem 2rem; border-top: 1px solid var(--mm-line); font-size: .875rem; color: var(--mm-muted); background: #fff; }
.mm-footer > * { max-width: 1120px !important; margin-inline: auto; }
.mm-footer-nav .wp-block-navigation__container { gap: .5rem 2rem; }
.mm-footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.mm-footer > p { margin-block: .5rem 0; }
.mm-footer > p:first-of-type { font-weight: 600; color: var(--mm-ink); margin-top: 1.5rem; }
.skip-link.screen-reader-text:focus { background: #fff; color: var(--mm-accent); border-radius: 6px; }
@media (max-width: 1150px) {
  .mm-header-inner { grid-template-columns: 240px 1fr; }
  .mm-header-inner > .mm-nav { grid-row: 2; grid-column: 1/-1; }
  .mm-header .wp-block-search { max-width: 240px !important; justify-self: end; }
  .mm-hero { padding: 2rem; gap: 1.25rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .mm-card-grid.wp-block-post-template { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mm-hero { grid-template-columns: 1fr; }
  .mm-hero-art { max-width: 560px !important; margin-inline: auto !important; }
}
@media (max-width: 767px) {
  .mm-header { padding: .875rem 1.25rem 1rem; }
  .mm-header-inner { grid-template-columns: minmax(0,1fr) 44px; gap: .75rem 1rem; }
  .mm-site-logo { width: 200px; }
  .mm-header-inner > .mm-nav { grid-column: 2; grid-row: 1; justify-self: end; }
  .mm-header .mm-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .mm-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
  .mm-header .wp-block-search { grid-column: 1/-1; width: 100%; max-width: none !important; }
  .mm-nav .is-menu-open { padding: 2rem; }
  .mm-nav .is-menu-open .wp-block-navigation__container { gap: .5rem; align-items: stretch; }
  .mm-nav .is-menu-open a { font-size: 1rem; }
  .mm-main { margin: 1.5rem 0 3rem; padding: 2rem 1.25rem; border-width: 1px 0; border-radius: 0; }
  .mm-main.mm-discovery { width: auto; margin: 1.5rem 1.25rem 3rem; }
  .mm-main > .wp-block-post-title, .mm-main > .wp-block-query-title { font-size: 1.75rem; }
  .mm-hero { grid-template-columns: 1fr; padding: 1.75rem 1.25rem; gap: 2rem; margin-bottom: 2.5rem; border-radius: 8px; }
  .mm-hero h1 { font-size: clamp(1.375rem, 6.5vw, 2rem); margin-bottom: 1rem; letter-spacing: 0; }
  .mm-eyebrow { font-size: .75rem; margin-bottom: .875rem; }
  .mm-hero-description { font-size: .9375rem; }
  .mm-hero-link { margin-top: 1rem; }
  .mm-topics { margin-bottom: 2.5rem; }
  .mm-topics h2, #latest-articles > h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
  .mm-topic-grid { grid-template-columns: 1fr; gap: .75rem; }
  .mm-topic { padding: 1rem 1.25rem; }
  .mm-topic h3 { margin-bottom: .25rem; }
  .mm-card-grid.wp-block-post-template { grid-template-columns: minmax(0,1fr); gap: 1.75rem; }
  .mm-card-grid > li { padding: 1.25rem; }
  .mm-card-grid .wp-block-post-title { font-size: 1.1875rem; }
  .mm-author { grid-template-columns: 72px minmax(0,1fr); gap: .5rem 1rem; }
  .mm-author-avatar img { width: 72px; height: 72px; }
  .mm-author .mm-author-avatar { grid-row: 1 / span 2; }
  .mm-author .mm-author-bio { grid-column: 1 / -1; margin-top: .75rem; }
  .wp-block-query-pagination { margin-top: 2rem; }
  .mm-footer { padding: 2rem 1.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .mm-nav a, .mm-topic, .mm-card-grid a, .wp-block-search__button { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
}
@media print {
  .mm-header, .mm-footer, .mm-post-navigation, .mm-skip-link { display: none; }
  .mm-main { max-width: none; margin: 0; padding: 0; border: 0; }
}
/* Keep the current article identifiable without repeating a long H1 in the trail. */
.mm-breadcrumbs li[aria-current="page"] { max-width: min(100%, 36ch); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mm-author > * { min-width: 0; margin-inline: 0 !important; max-width: none !important; }

/* Adjacent stories: one link per card, balanced images and readable full titles. */
.mm-post-navigation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.mm-post-navigation > .mm-adjacent { min-width: 0; margin: 0 !important; max-width: none !important; width: 100%; }
.mm-adjacent--previous { grid-column: 1; }
.mm-adjacent--next { grid-column: 2; }
.mm-adjacent a { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; gap: .875rem; padding: 1rem; border: 1px solid var(--mm-line); border-radius: 8px; background: #fff; color: var(--mm-ink); text-decoration: none; }
.mm-adjacent a:hover { border-color: var(--mm-accent); background: var(--mm-canvas); }
.mm-adjacent a:focus-visible { outline: 3px solid #9b451a; outline-offset: 4px; }
.mm-adjacent-label { font-size: .8125rem; color: var(--mm-accent); display: flex; gap: .5rem; align-items: center; }
.mm-adjacent--next .mm-adjacent-label { flex-direction: row-reverse; justify-content: flex-start; }
.mm-adjacent-body { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: .875rem; align-items: center; }
.mm-adjacent-body--no-image { grid-template-columns: minmax(0,1fr); }
.mm-adjacent-image { display: block; aspect-ratio: 16/9; border: 1px solid var(--mm-line); border-radius: 4px; overflow: hidden; background: #fff; }
.mm-adjacent-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mm-adjacent-title { font-size: .9375rem; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.mm-post-navigation:empty { display: none; }
@media (max-width: 767px) {
 .mm-post-navigation { grid-template-columns: minmax(0,1fr); }
 .mm-adjacent--previous, .mm-adjacent--next { grid-column: 1; }
 .mm-adjacent-body { grid-template-columns: 104px minmax(0,1fr); }
 .mm-adjacent-body--no-image { grid-template-columns: minmax(0,1fr); }
}
@media print { .mm-post-navigation { display: none; } }
