/* WordPress integration only. The approved visual styles load before this file. */
html[data-variant=journal] { --mtcj-admin-offset:0px; scroll-padding-top:calc(var(--journal-header-offset) + var(--mtcj-admin-offset) + 24px); }
html[data-variant=journal] .journal-header-bar { top:var(--mtcj-admin-offset); }
html[data-variant=journal] .read-progress { top:calc(var(--journal-header-offset) + var(--mtcj-admin-offset)); }
html[data-variant=journal][data-ads=off] .article-side { top:calc(var(--journal-header-offset) + var(--mtcj-admin-offset) + 24px); }
html[data-variant=journal] .article-side .toc[data-toc-enhanced] { max-height:calc(100dvh - var(--journal-header-offset) - var(--mtcj-admin-offset) - 48px); }
html[data-variant=journal] .entry-content [id] { scroll-margin-top:0; }
.mtcj-no-image { width:100%;height:100%;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;background:#dcecf0;color:#365c67; }
.mtcj-no-image>span { font:clamp(24px,3vw,38px)/1.2 Georgia,serif;letter-spacing:-.03em; }
.mtcj-no-image small { letter-spacing:.18em;font-size:11px; }
.mtcj-no-image .four-colors { margin-top:12px; }
.mtcj-page .article-heading-cover .article-visual { width:100%; }
/* Article layout is self-contained; no /assets/css from the old theme is needed. */
.mtcj-page .article-heading { grid-template-columns:minmax(0,2.05fr) minmax(0,1fr); margin-bottom:44px; }
.mtcj-page .article-heading-copy { padding:32px 36px; min-height:0; }
.mtcj-page .article-heading h1 { overflow-wrap:break-word; word-break:normal; line-height:1.65; letter-spacing:-.025em; text-wrap:pretty; }
.mtcj-title-main,.mtcj-title-sub { display:block; }
.mtcj-title-sub { font-size:.82em; margin-top:.4em; line-height:1.65; }
.mtcj-page .article-heading-cover { padding:26px; gap:18px; min-height:0; }
.mtcj-page .article-heading-cover .article-visual { aspect-ratio:3/2; margin:0; }
.mtcj-page .article-heading-cover .article-visual img { padding:0; }
.mtcj-page .article-byline a { margin-left:0; }
.mtcj-page .article-byline .article-read-link { margin-left:auto; }
.mtcj-page .article-byline .publisher { font-family:var(--sans); letter-spacing:0; }
.mtcj-page .entry-content .mtcj-content-note { padding:18px 22px; border-inline-start:3px solid #9b9f36; background:#f4f4dc; font-size:.9375rem; line-height:1.95; }
.mtcj-page .entry-content .mtcj-content-note strong { font-weight:400; }
.mtcj-page .entry-content .mtcj-content-note a { font-weight:500; }
.mtcj-page .entry-content .mtcj-content-note + .wp-block-separator { margin-block:2rem; }
@media(max-width:1050px) and (min-width:761px) {
  .mtcj-page .article-heading-copy { padding:28px; }
  .mtcj-page .article-heading-cover { padding:22px; }
}
@media(max-width:760px) {
  .mtcj-page .article-heading { display:block; margin-bottom:30px; }
  .mtcj-page .article-heading-copy { padding:26px 24px; }
  .mtcj-page .article-heading h1 { font-size:clamp(1.4rem,5.8vw,1.75rem); line-height:1.7; }
  .mtcj-page .article-heading-cover { padding:18px 24px; grid-template-columns:minmax(0,1fr) 112px; gap:8px 18px; }
  .mtcj-page .article-byline { gap:8px 16px; }
  .mtcj-page .article-byline .article-read-link { flex-basis:100%; justify-content:space-between; margin:4px 0 0; border-top:1px solid #9bbfc6; padding-top:12px; }
  .mtcj-page .entry-content .mtcj-content-note { padding:16px 18px; }
}
.mtcj-page .article-byline { flex-wrap:wrap; }
.mtcj-page .article-byline .publisher { text-decoration:underline;text-underline-offset:4px;text-decoration-color:#69919b; }
.mtcj-page .post-meta a.category { text-decoration:underline;text-underline-offset:4px; }
.mtcj-page .entry-content { overflow-wrap:anywhere; }
.mtcj-page .entry-content> :first-child { margin-top:0; }
.mtcj-page .journal-continued h1 { overflow-wrap:anywhere; }
.mtcj-archive-description { max-width:700px;color:var(--muted);font-size:14px;margin-top:18px; }
.mtcj-page .journal-discovery { align-items:flex-start; }
.mtcj-page .journal-discovery .category-nav { flex:1;min-width:0; }
.mtcj-page .pager-numbers { flex-wrap:wrap; }
.mtcj-page .pager-ellipsis { align-self:center; }
.mtcj-post-tags { display:flex;flex-wrap:wrap;gap:10px 18px;margin:36px 0;font-size:13px;color:var(--accent); }
.mtcj-post-tags a { padding:7px 0;text-decoration:underline;text-underline-offset:5px; }
.mtcj-post-pages { display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:32px 0; }
.mtcj-post-pages a,.mtcj-post-pages>.post-page-numbers { display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--line); }
.mtcj-post-pages>.current { background:#c7ecf3; }
[data-variant=journal] .mtcj-post-navigation { grid-template-columns:repeat(2,minmax(0,1fr));align-items:start; }
.mtcj-post-navigation .return-list { grid-column:1/-1;justify-self:end; }
.mtcj-page .toc li[data-level="3"] .toc-text { padding-left:8px;font-size:.92em; }
.post-password-form input[type=password] { font:inherit;width:100%;padding:12px;border:1px solid var(--line);background:var(--paper);color:var(--ink); }
.post-password-form input[type=submit] { min-height:46px;border:0;padding:12px 24px;background:var(--accent);color:#fff;font:inherit;cursor:pointer; }
.mtcj-page .entry-content .wp-block-embed iframe { max-width:100%; }
@media(max-width:760px) {
  .mtcj-page .journal-discovery { display:block; }
  [data-variant=journal] .mtcj-post-navigation { grid-template-columns:1fr;gap:28px; }
  .mtcj-post-navigation .return-list { justify-self:stretch; }
  .mtcj-page .mobile-nav { max-height:calc(100dvh - var(--journal-header-offset) - var(--mtcj-admin-offset)); }
}
@media(min-width:601px) {
  html[data-variant=journal]:has(body.admin-bar) { --mtcj-admin-offset:46px; }
}
@media(min-width:783px) {
  html[data-variant=journal]:has(body.admin-bar) { --mtcj-admin-offset:32px; }
}
