/* WordPress integration layer. Core visual tokens live in site.css. */
.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  clip: auto;
  color: #fff;
  background: var(--cobalt);
  border-radius: 10px;
}

.site-header .custom-logo-link { display: inline-flex; align-items: center; }
.site-header .custom-logo { width: auto; max-width: 190px; height: 43px; }
.site-header .menu { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.site-header .menu > li > a { padding: 11px 14px; border-radius: 12px; text-decoration: none; font-size: 13px; font-weight: 650; }
.theme-moon { display: none; }
html[data-theme="dark"] .theme-sun { display: none; }
html[data-theme="dark"] .theme-moon { display: block; }
.mwf-arrow { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.mwf-loop,
.mwf-page,
.mwf-empty,
.mwf-search-page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 90px 0 130px;
}

.mwf-loop-header,
.mwf-page-header { max-width: 880px; margin-bottom: 55px; }
.mwf-loop-header h1,
.mwf-page-header h1 { margin: 12px 0 18px; font-size: clamp(48px, 7vw, 88px); line-height: .94; letter-spacing: -.06em; }
.mwf-loop-header p,
.mwf-page-header p { color: var(--muted); font-size: 17px; line-height: 1.7; }

.mwf-post-list { display: grid; gap: 12px; }
.mwf-post-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 140px 90px 24px;
  gap: 22px;
  align-items: center;
  min-height: 120px;
  padding: 22px 28px;
  color: inherit;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 21px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.mwf-post-row:hover { transform: translateX(6px); border-color: var(--coral); }
.mwf-post-row__ref { display: grid; gap: 5px; color: var(--coral); font-family: var(--serif); font-size: 20px; font-style: italic; }
.mwf-post-row__ref small { color: var(--muted); font-family: var(--sans); font-size: 8px; font-style: normal; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.mwf-post-row__copy { display: grid; gap: 7px; }
.mwf-post-row__copy strong { font-size: 20px; line-height: 1.2; }
.mwf-post-row__copy small,
.mwf-post-row__meta { color: var(--muted); font-size: 11px; line-height: 1.5; }

.mwf-entry-content { min-width: 0; }
.mwf-entry-content > * { max-width: 100%; }
.mwf-entry-content > h2 { margin-top: 76px; }
.mwf-entry-content > h3 { margin-top: 48px; }
.mwf-entry-content img { width: auto; max-width: 100%; height: auto; border-radius: 18px; }
.mwf-entry-content pre { overflow-x: auto; padding: 24px; color: #f7f2eb; background: #241a2c; border-radius: 18px; font-size: 14px; }
.mwf-entry-content code { overflow-wrap: anywhere; }
.mwf-entry-content blockquote { margin: 38px 0; padding: 28px 32px; background: var(--paper); border-left: 5px solid var(--coral); border-radius: 12px 30px 12px 12px; }
.mwf-entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mwf-entry-content th,
.mwf-entry-content td { padding: 15px; text-align: left; border-bottom: 1px solid var(--line); }
.mwf-entry-content .alignwide { width: min(100vw - 48px, 1120px); max-width: none; margin-left: 50%; transform: translateX(-50%); }

.mwf-page .mwf-entry-content { width: min(820px, 100%); font-size: 19px; line-height: 1.72; }
.mwf-tool-fallback { padding: 30px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.mwf-tool-fallback strong { color: var(--ink); }

.navigation.pagination { margin-top: 45px; }
.navigation.pagination .nav-links { display: flex; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: 0 12px; background: var(--paper); border-radius: 12px; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--cobalt); }

.comments-area { width: min(820px, calc(100% - 32px)); margin: 0 auto 120px; }
.comment-list { padding: 0; list-style: none; }
.comment-body { margin-bottom: 18px; padding: 25px; background: var(--paper); border-radius: 18px; }

@media (max-width: 960px) {
  .mwf-post-row { grid-template-columns: 72px minmax(0, 1fr) 24px; }
  .mwf-post-row__copy { grid-column: 2 / 4; }
  .mwf-post-row__meta { grid-column: 2; }
}

@media (max-width: 680px) {
  .mwf-loop,
  .mwf-page,
  .mwf-empty,
  .mwf-search-page { width: calc(100% - 32px); padding: 70px 0 95px; }
  .mwf-post-row { grid-template-columns: 54px minmax(0, 1fr) 20px; gap: 12px; padding: 19px 16px; }
  .mwf-post-row__copy strong { font-size: 17px; }
  .mwf-entry-content .alignwide { width: calc(100vw - 32px); }
  .mwf-entry-content table { display: block; overflow-x: auto; }
}
