/* 2.6.23: restrained financial-magazine treatment for internal pages.
   Deliberately excludes the separately designed editorial home page. */
body.mawd-magazine:not(.home) {
  --mawd-navy: #17212b;
  --mawd-blue: #263746;
  --mawd-sky: #f5f5f2;
  --mawd-ink: #191f23;
  --mawd-muted: #5e6670;
  --mawd-rule: #d9d8d2;
  --mawd-paper: #fff;
  --mawd-accent: #8c3931;
  background: #f7f7f4 !important;
  color: var(--mawd-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

body.mawd-magazine:not(.home) :is(h1, h2, h3, h4, p, a, button, input, textarea, label, small, span) {
  font-family: inherit;
}

body.mawd-magazine:not(.home) :is(a, button):focus-visible {
  outline: 3px solid var(--mawd-accent);
  outline-offset: 3px;
}

/* Masthead and navigation use print-like lines rather than blue app chrome. */
body.mawd-magazine:not(.home) .maw-preserved-header {
  border-bottom: 2px solid #1b252d !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.mawd-magazine:not(.home) .maw-preserved-header-inner {
  max-width: 1240px;
}

body.mawd-magazine:not(.home) .mawd-brand-mark {
  border-radius: 2px !important;
  background: #17212b !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.mawd-magazine:not(.home) .mawd-brand-name {
  color: #17212b !important;
  font-size: 1.18rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.045em !important;
}

body.mawd-magazine:not(.home) .maw-preserved-nav a,
body.mawd-magazine:not(.home) .mawd-header-tool {
  color: #29343d !important;
  font-weight: 650;
}

body.mawd-magazine:not(.home) .maw-preserved-nav a:hover,
body.mawd-magazine:not(.home) .maw-preserved-nav a.is-active {
  color: var(--mawd-accent) !important;
}

body.mawd-magazine:not(.home) .mawd-header-write,
body.mawd-magazine:not(.home) .maw-button,
body.mawd-magazine:not(.home) .mawd-search-form button {
  border: 1px solid #1b252d !important;
  border-radius: 3px !important;
  background: #1b252d !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Story masthead: no gradient, avatars, pills or decorative emoji. */
body.mawd-magazine:not(.home) main.mawd-single-heading,
body.mawd-magazine:not(.home) .maw-directory-hero {
  border-top: 0 !important;
  border-bottom: 1px solid var(--mawd-rule) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.mawd-magazine:not(.home) main.mawd-single-heading {
  padding-top: clamp(28px, 4vw, 58px) !important;
  padding-bottom: clamp(24px, 3vw, 42px) !important;
}

body.mawd-magazine:not(.home) .mawd-single-kicker,
body.mawd-magazine:not(.home) .maw-kicker {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--mawd-accent) !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
}

body.mawd-magazine:not(.home) .mawd-single-back {
  color: #4c5963 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

body.mawd-magazine:not(.home) .mawd-single-title,
body.mawd-magazine:not(.home) .maw-directory-hero h1 {
  color: #151c22 !important;
  font-size: clamp(2rem, 3.6vw, 3.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: -.055em !important;
  text-wrap: balance;
}

body.mawd-magazine:not(.home) .mawd-single-meta {
  flex-wrap: wrap;
  border-top: 1px solid var(--mawd-rule);
  padding-top: 17px;
  color: var(--mawd-muted) !important;
}

body.mawd-magazine:not(.home) .mawd-single-avatar,
body.mawd-magazine:not(.home) .mawd-single-brand-avatar {
  display: none !important;
}

body.mawd-magazine:not(.home) .mawd-single-author-copy strong {
  color: #202a32 !important;
  font-size: .83rem !important;
}

body.mawd-magazine:not(.home) .mawd-single-author-copy small,
body.mawd-magazine:not(.home) .mawd-single-details {
  color: var(--mawd-muted) !important;
  font-size: .72rem !important;
}

body.mawd-magazine:not(.home) .mawd-single-details img.emoji {
  display: none !important;
}

body.mawd-magazine:not(.home) .mawd-single-labels > span,
body.mawd-magazine:not(.home) .maw-chip {
  border: 1px solid var(--mawd-rule) !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: #4d5962 !important;
  box-shadow: none !important;
}

/* Long-form reading remains fully readable on a quiet white canvas. */
body.mawd-magazine:not(.home) .mawd-reading-main,
body.mawd-magazine:not(.home) .mayw-article-main,
body.mawd-magazine:not(.home) .mawd-comment-rail {
  border: 1px solid var(--mawd-rule) !important;
  border-radius: 0 !important;
  background: var(--mawd-paper) !important;
  box-shadow: none !important;
}

body.mawd-magazine:not(.home) .wp-site-blocks {
  background: #f7f7f4 !important;
}

body.mawd-magazine:not(.home) .mawd-comment-rail-intro {
  border-bottom: 1px solid var(--mawd-rule) !important;
  background: #fafaf8 !important;
}

body.mawd-magazine:not(.home) .mawd-story-identity {
  display: block !important;
  border-bottom: 1px solid var(--mawd-rule) !important;
  background: #fafaf8 !important;
}

body.mawd-magazine:not(.home) .mawd-story-identity::before,
body.mawd-magazine:not(.home) .mawd-conversation-icon {
  display: none !important;
}

body.mawd-magazine:not(.home) .mawd-story-identity strong,
body.mawd-magazine:not(.home) .mawd-comment-rail-intro h2 {
  color: #202b33 !important;
}

body.mawd-magazine:not(.home) .mawd-story-identity strong {
  display: block;
  margin-bottom: 5px;
}

body.mawd-magazine:not(.home) .mawd-story-identity span,
body.mawd-magazine:not(.home) .mawd-comment-rail-intro p {
  color: #59636b !important;
}

body.mawd-magazine:not(.home) .mawd-story-body,
body.mawd-magazine:not(.home) .mawd-story-body p,
body.mawd-magazine:not(.home) .mawd-story-body li {
  color: #273038 !important;
}

body.mawd-magazine:not(.home) .mawd-story-body p,
body.mawd-magazine:not(.home) .mawd-story-body li {
  line-height: 1.95 !important;
}

body.mawd-magazine:not(.home) .mawd-story-body :is(h2,h3),
body.mawd-magazine:not(.home) .mayw-article-main :is(h2,h3) {
  color: #18232b !important;
  font-weight: 780 !important;
}

body.mawd-magazine:not(.home) .mawd-story-body h2 {
  padding-bottom: .55em;
  border-bottom: 1px solid var(--mawd-rule);
}

body.mawd-magazine:not(.home) .mawd-conversation-prompt {
  grid-template-columns: minmax(0,1fr) auto !important;
  border: 1px solid var(--mawd-rule) !important;
  border-radius: 0 !important;
  background: #fafaf8 !important;
  box-shadow: none !important;
}

/* Archive and board cards become editorial rows. */
body.mawd-magazine:not(.home) .mawd-directory-dashboard,
body.mawd-magazine:not(.home) .mawd-board-dashboard {
  background: transparent !important;
}

body.mawd-magazine:not(.home) .maw-directory-hero::before,
body.mawd-magazine:not(.home) .maw-directory-hero::after {
  display: none !important;
}

body.mawd-magazine:not(.home) .mawd-directory-side-card,
body.mawd-magazine:not(.home) .mawd-directory-stat-grid > div,
body.mawd-magazine:not(.home) .mawd-directory-promise,
body.mawd-magazine:not(.home) .mawd-directory-today {
  border: 1px solid var(--mawd-rule) !important;
  border-radius: 0 !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.mawd-magazine:not(.home) .mawd-directory-side-card :is(h2,strong),
body.mawd-magazine:not(.home) .mawd-directory-today :is(strong,span) {
  color: #202a32 !important;
}

body.mawd-magazine:not(.home) .maw-board-grid {
  gap: 1px !important;
  border: 1px solid var(--mawd-rule);
  background: var(--mawd-rule) !important;
}

body.mawd-magazine:not(.home) .maw-board-card {
  min-height: 150px;
  padding: 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  background-image: none !important;
  color: #202a32 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.mawd-magazine:not(.home) .maw-board-card::before {
  display: none !important;
  content: none !important;
}

body.mawd-magazine:not(.home) .maw-board-card strong {
  color: #1d2830 !important;
  font-size: 1.05rem;
  font-weight: 750;
}

body.mawd-magazine:not(.home) .maw-board-card span {
  color: #5c6870 !important;
}

body.mawd-magazine:not(.home) .maw-board-card:hover {
  background: #f8f7f3 !important;
}

body.mawd-magazine:not(.home) .mawd-board-latest,
body.mawd-magazine:not(.home) .mawd-directory-latest,
body.mawd-magazine:not(.home) .mawd-card-archive,
body.mawd-magazine:not(.home) .maw-board-page .maw-section {
  border-color: var(--mawd-rule) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Board headings and their story lists share one full-width column. */
body.maw-community-design-v1.mawd-release-260.mawd-magazine .maw-board-page .mawd-board-dashboard {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.maw-community-design-v1.mawd-release-260.mawd-magazine .maw-board-page .mawd-board-latest,
body.maw-community-design-v1.mawd-release-260.mawd-magazine .maw-board-page .mawd-board-latest .maw-list {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

body.maw-community-design-v1.mawd-release-260.mawd-magazine .maw-board-page .mawd-directory-aside {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

/* Guide, analysis and clinic archives: align the masthead to the card grid. */
body.maw-community-design-v1.mawd-release-260.mawd-magazine main.mawd-block-archive .mawd-archive-intro,
body.maw-community-design-v1.mawd-release-260.mawd-magazine main.mawd-block-archive .mawd-card-archive {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

body.mawd-magazine:not(.home) .mawd-board-latest .maw-list-item,
body.mawd-magazine:not(.home) .mawd-directory-latest .maw-list-item,
body.mawd-magazine:not(.home) .mawd-card-archive .wp-block-post {
  padding: 24px clamp(18px, 2.2vw, 28px) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mawd-rule) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

body.mawd-magazine:not(.home) .mawd-row-avatar {
  display: none !important;
}

body.mawd-magazine:not(.home) .mawd-board-latest .maw-list-item h3,
body.mawd-magazine:not(.home) .mawd-directory-latest .maw-list-item h3,
body.mawd-magazine:not(.home) .mawd-card-archive .wp-block-post-title,
body.mawd-magazine:not(.home) .maw-board-page .maw-list-item h3 {
  color: #1b252d !important;
  font-size: clamp(1.13rem, 1.7vw, 1.45rem) !important;
  font-weight: 750 !important;
  line-height: 1.43 !important;
}

body.mawd-magazine:not(.home) .maw-list-item h3 a,
body.mawd-magazine:not(.home) .mawd-card-archive .wp-block-post-title a {
  color: inherit !important;
  text-decoration: none !important;
}

body.mawd-magazine:not(.home) .maw-list-item h3 a:hover,
body.mawd-magazine:not(.home) .mawd-card-archive .wp-block-post-title a:hover {
  color: var(--mawd-accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

body.mawd-magazine:not(.home) .maw-item-stats,
body.mawd-magazine:not(.home) .maw-item-meta,
body.mawd-magazine:not(.home) .wp-block-post-date {
  color: #616b73 !important;
  font-size: .74rem !important;
}

body.mawd-magazine:not(.home) .maw-preserved-footer,
body.mawd-magazine:not(.home) footer.mayw-custom-footer {
  border-top: 2px solid #202a32 !important;
  background: #f4f3ef !important;
  box-shadow: none !important;
}

/* Existing About/Contact/Terms pages use the block theme, not community markup. */
body.mawd-magazine-info .site-header {
  border-bottom: 2px solid #1b252d !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.mawd-magazine-info main {
  background: #fff !important;
}

body.mawd-magazine-info main .wp-block-post-title {
  margin: 0 auto !important;
  padding: 45px 22px !important;
  border-bottom: 1px solid #d9d8d2;
  color: #18212a !important;
  font-size: clamp(2rem, 3.6vw, 3rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.05em;
  line-height: 1.3;
}

body.mawd-magazine-info .entry-content {
  max-width: 880px !important;
  margin: 0 auto;
  padding: 36px 24px 70px !important;
  color: #283139 !important;
}

body.mawd-magazine-info .entry-content :is(p,li) {
  color: #283139 !important;
  font-size: 1rem;
  line-height: 1.9;
  word-break: keep-all;
}

body.mawd-magazine-info .entry-content :is(h2,h3) {
  margin-top: 2.2em;
  padding-bottom: .45em;
  border-bottom: 1px solid #d9d8d2;
  color: #19232c !important;
  font-weight: 780;
}

body.mawd-magazine-info .entry-content a {
  color: #7e342e !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  body.maw-community-design-v1.mawd-release-260.mawd-magazine .maw-board-page .mawd-directory-aside {
    grid-template-columns: minmax(0, 1fr);
  }
  body.mawd-magazine:not(.home) .mawd-reading-layout,
  body.mawd-magazine:not(.home) .mayw-article-layout {
    grid-template-columns: minmax(0,1fr) !important;
  }
  body.mawd-magazine:not(.home) .mawd-story-body {
    padding: 26px 21px 32px !important;
  }
  body.mawd-magazine:not(.home) .mawd-single-title {
    font-size: clamp(1.8rem, 7.2vw, 2.45rem) !important;
  }
  body.mawd-magazine:not(.home) .mawd-single-labels {
    width: 100%;
    margin-left: 0 !important;
  }
  body.mawd-magazine:not(.home) .maw-preserved-header-inner.is-menu-open .maw-preserved-nav,
  body.mawd-magazine:not(.home) .maw-preserved-header-inner.is-menu-open .mawd-header-tools {
    background: #fff !important;
  }
}

/* 2026-10-20: comfortable insets on every editorial list, in both languages. */
body.mawd-magazine:not(.home) .maw-list-item,
body.mawd-magazine:not(.home) .mawd-card-archive .wp-block-post {
  padding: 24px clamp(18px, 2.2vw, 28px) !important;
  box-sizing: border-box !important;
  min-width: 0;
}
body.mawd-magazine:not(.home) .mawd-card-archive .wp-block-post-template {
  gap: 20px !important;
}
body.mawd-magazine:not(.home) .mawd-card-archive {
  background: transparent !important;
}
body.mawd-magazine:not(.home) .mawd-card-archive .wp-block-post-title {
  overflow-wrap: anywhere;
}
body.mawd-magazine:not(.home) :is(.mawd-board-latest,.mawd-directory-latest) .maw-list-item {
  grid-template-columns: minmax(0, 1fr) auto !important;
}
body.mawd-magazine:not(.home) :is(.mawd-board-latest,.mawd-directory-latest) .maw-list-item :is(h2,h3,.maw-item-meta) {
  grid-column: 1 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
body.mawd-magazine:not(.home) :is(.mawd-board-latest,.mawd-directory-latest) .maw-item-stats {
  grid-column: 2 !important;
}
@media (max-width: 620px) {
  body.mawd-magazine:not(.home) .maw-list-item,
  body.mawd-magazine:not(.home) .mawd-card-archive .wp-block-post {
    padding: 22px 18px !important;
  }
  body.mawd-magazine:not(.home) .mawd-card-archive .wp-block-post-template {
    gap: 16px !important;
  }
  body.mawd-magazine:not(.home) :is(.mawd-board-latest,.mawd-directory-latest) .maw-list-item {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.mawd-magazine:not(.home) :is(.mawd-board-latest,.mawd-directory-latest) .maw-item-stats {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}
