/* Compact news index and spacious quoted-post reading, using the existing palette. */
.bm-theme { overflow-wrap: anywhere; }
.bm-theme a:focus-visible, .bm-theme button:focus-visible, .bm-theme summary:focus-visible,
.bm-theme input:focus-visible { outline: 3px solid #1670c5; outline-offset: 4px; }
.bm-header-inner, .bm-shell, .bm-footer-inner, .bm-nav > ul { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.bm-site-header { position: relative; }
.bm-header-inner { min-height: 92px; }
.bm-brand strong { font-size: clamp(25px, 3vw, 32px); letter-spacing: .015em; }
.bm-brand small { margin-top: 5px; }
.bm-nav { display: block; position: static; padding: 0; background: var(--bm-navy); border: 0; border-radius: 0; }
.bm-nav > ul { display: flex; gap: 0; }
.bm-nav li { flex: 1; }
.bm-nav a { padding: 12px 10px; border-radius: 0; text-align: center; color: #fff; font-size: 14px; }
.bm-nav a:hover, .bm-nav a:focus-visible { background: #1c405e; color: #fff; }
.bm-nav .bm-policy-link { border: 0; margin-left: 0; color: #fff; }
.bm-menu-toggle { display: none; }
.bm-shell { grid-template-columns: minmax(0, 1fr) 292px; gap: 24px; padding-block: 24px 48px; }
.bm-section { padding: 20px; margin-bottom: 20px; background: #fff; border-radius: 6px; }
.bm-section-title { padding: 0; margin-bottom: 18px; border: 0; font-size: 22px; }
.bm-section-title::before { width: 4px; height: 24px; border-radius: 2px; }
.bm-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; gap: 0; overflow: visible; padding: 0; }
.bm-topic-card { min-height: 0; padding: 4px 16px; border: 0; border-radius: 0; justify-content: flex-start; gap: 9px; }
.bm-topic-card:first-child { padding-left: 0; }
.bm-topic-card:last-child { padding-right: 0; }
.bm-topic-card + .bm-topic-card { border-left: 1px solid #e0e8ee; }
.bm-topic-card h3 { font-size: 17px; line-height: 1.6; }
.bm-topic-card:hover h3 { color: #075ea8; text-decoration: underline; }
.bm-topic-excerpt { margin: 0; color: var(--bm-muted); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bm-badge { color: #075a78; background: #e3f4fa; border-radius: 3px; padding: 1px 5px; }
.bm-badge--spoiler { color: #704300; background: #fff0d0; }
.bm-article-list { display: block; }
.bm-article-card { grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 18px; min-height: 120px; padding: 16px 0; border: 0; border-radius: 0; overflow: visible; }
.bm-article-card:first-child { padding-top: 0; }
.bm-article-card + .bm-article-card { border-top: 1px solid #e0e8ee; }
.bm-article-card__block { height: 78px; color: var(--bm-navy); background: #e8f1f7; border-radius: 4px; font-size: 34px; }
.bm-article-card--text { grid-template-columns: minmax(0, 1fr); }
.bm-article-card__image, .bm-topic-card__image { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #e5ebf0; border-radius: 4px; background: #f7f9fc; }
.bm-topic-card__image { aspect-ratio: 16 / 11; margin-bottom: 5px; }
.bm-theme .bm-thumbnail { display: block; width: 100%; height: 100%; max-height: none; margin: 0; object-fit: contain; }
.bm-article-card__image:hover, .bm-article-card__image:focus-visible { border-color: #1670c5; }
.bm-article-card__body { padding: 0; min-width: 0; }
.bm-article-card__meta { margin-bottom: 6px; font-size: 12px; gap: 10px; }
.bm-article-card h2 { font-size: 20px; line-height: 1.55; margin-bottom: 5px; }
.bm-article-card h2 a:hover, .bm-article-card h2 a:focus-visible { color: #075ea8; text-decoration: underline; }
.bm-article-card p { color: var(--bm-muted); font-size: 13px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bm-sidebar { gap: 16px; }
.bm-widget, .bm-rakuten { border: 0; border-radius: 6px; }
.bm-widget summary, .bm-widget h2, .bm-widget-heading { border: 0; padding: 16px 16px 10px; font-size: 18px; }
.bm-widget summary::before, .bm-widget > h2::before { content: ''; display: inline-block; width: 4px; height: 19px; margin-right: 9px; background: var(--bm-cyan); vertical-align: -3px; border-radius: 2px; }
.bm-widget ul { list-style: none; padding: 0 16px 12px; }
.bm-widget ul ul { padding-left: 14px; }
.bm-widget li { margin: 0; padding: 10px 0; font-size: 13px; line-height: 1.65; }
.bm-widget li + li { border-top: 1px solid #edf1f5; }
.bm-widget a:hover { color: #075ea8; text-decoration: underline; }
.bm-search-form { padding: 4px 16px 18px; gap: 7px; }
.bm-search-form input, .bm-search-form button { font: inherit; font-size: 13px; }
.bm-search-form input { padding: 9px; border-radius: 4px; }
.bm-search-form button { padding: 9px 12px; background: #08658a; border-radius: 4px; cursor: pointer; }
.bm-single { padding: 26px 30px; border: 0; border-radius: 6px; }
.bm-breadcrumb { font-size: 12px; color: var(--bm-muted); margin-bottom: 22px; }
.bm-breadcrumb a { color: var(--bm-muted); }
.bm-single h1 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.6; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid #e0e8ee; }
.bm-entry-content { font-size: 17px; line-height: 1.95; }
.bm-entry-content > p { margin: 0 0 1.6em; }
.bm-entry-content h2 { font-size: 21px; color: var(--bm-navy); background: transparent; border: 0; border-left: 4px solid var(--bm-cyan); padding: 0 0 0 12px; margin: 32px 0 20px; }
.bm-summary { padding: 0 0 20px; background: transparent; border: 0; border-radius: 0; color: #435564; }
.bm-response { display: flex; flex-direction: column; margin: 0; padding: 28px 0 32px; background: transparent; border: 0; border-bottom: 1px solid #e7edf2; border-radius: 0; }
.bm-response::before, .bm-response::after { content: none; }
.bm-response cite { order: -1; margin: 0 0 12px; font-size: 12px; color: #526878; font-style: normal; }
/* WordPress may wrap a standalone cite with wpautop. Keep its metadata above the body. */
.bm-response > p:has(> cite) { order: -1; margin: 0 0 12px; line-height: 1.4; }
.bm-response > p > cite { margin: 0; font-weight: 400; }
.bm-response p { font-size: 18px; font-weight: 600; line-height: 1.95; color: var(--bm-ink); }
.bm-source { font-size: 13px; color: var(--bm-muted); }
.bm-response--normal p { font-weight: 500; }
.bm-response--strong p { font-size: 22px; font-weight: 750; color: #075ea8; }
.bm-response--shout p { font-size: clamp(27px, 3vw, 36px); font-weight: 850; line-height: 1.6; color: #ac370e; }
.bm-response--shout { padding-block: 34px 40px; }
.bm-related { border-top: 1px solid #dce5ec; }
.bm-related{margin-top:36px;padding-top:24px}.bm-related h2{font-size:21px;margin:0 0 16px}.bm-related ul{padding:0;list-style:none;margin:0}.bm-related li{padding:16px 0;border-bottom:1px solid #e0e8ee}.bm-related li span{display:block;font-size:12px;color:#607484;margin-bottom:5px}.bm-related a{font-size:18px;font-weight:700;text-decoration:none;line-height:1.6}.bm-related a:hover{text-decoration:underline}.bm-back-home{text-align:right;margin:24px 0 0}.bm-editor-note{margin:30px 0;padding:18px 22px;border-left:4px solid #2bafd0;background:#f1f8fb}.bm-editor-note h2{margin:0 0 10px;border:0;padding:0;font-size:18px}.bm-editor-note p{margin:0;line-height:1.9}
.bm-theme .navigation.pagination { padding-top: 20px; }
@media (max-width: 900px) {
  .bm-shell { grid-template-columns: minmax(0, 1fr); }
  .bm-header-inner { min-height: 86px; }
  .bm-menu-toggle { display: block; cursor: pointer; }
  .bm-nav { display: none; position: absolute; inset: 100% 0 auto; z-index: 10; box-shadow: 0 8px 16px #102a4320; }
  .bm-nav.is-open { display: block; }
  .bm-nav > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 0; }
  .bm-nav a { text-align: left; }
}
@media (max-width: 620px) {
  .bm-header-inner, .bm-shell, .bm-footer-inner, .bm-nav > ul { width: calc(100% - 24px); }
  .bm-brand strong { font-size: 25px; max-width: none; }
  .bm-brand small { font-size: 10px; }
  .bm-shell { padding-top: 14px; gap: 16px; }
  .bm-section { padding: 16px 14px; margin-bottom: 14px; }
  .bm-section-title { font-size: 20px; margin-bottom: 14px; }
  .bm-featured { grid-template-columns: minmax(0, 1fr); }
  .bm-topic-card, .bm-topic-card:first-child, .bm-topic-card:last-child { padding: 12px 0; gap: 5px; }
  .bm-topic-card + .bm-topic-card { border-left: 0; border-top: 1px solid #e0e8ee; }
  .bm-topic-card h3 { font-size: 16px; }
  .bm-topic-excerpt { display: none; }
  .bm-topic-card--image, .bm-topic-card--image:first-child, .bm-topic-card--image:last-child { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 12px; align-content: start; }
  .bm-topic-card--image > .bm-topic-card__image { grid-column: 1; grid-row: 1 / span 3; margin: 0; aspect-ratio: 4 / 3; }
  .bm-topic-card--image > .bm-badge, .bm-topic-card--image > h3 { grid-column: 2; }
  .bm-article-card { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; min-height: 100px; padding: 14px 0; align-items: start; }
  .bm-article-card--text { grid-template-columns: minmax(0, 1fr); }
  .bm-article-card__block { height: 62px; margin-top: 4px; font-size: 25px; }
  .bm-article-card__body { padding: 0; }
  .bm-article-card__meta { gap: 5px; font-size: 10px; }
  .bm-article-card h2 { font-size: 16px; line-height: 1.7; margin: 0; }
  .bm-article-card p { display: none; }
  .bm-single { padding: 20px 18px; }
  .bm-single h1 { font-size: 24px; }
  .bm-entry-content { font-size: 16px; }
  .bm-response p { font-size: 17px; }
  .bm-response--strong p { font-size: 20px; }
  .bm-response--shout p { font-size: 27px; }
  .bm-widget summary { cursor: pointer; }
  .bm-widget summary::after { content: '+'; float: right; }
  .bm-widget[open] summary::after { content: '−'; }
}
