/* Motorit theme — magazine.css: editorial article template (single.php), magazine index / category / pagination
   (home.php, archive.php, parts/magazine/*) and the 404 page. Hand-written, 26 Oct 2026 (owner pt55u).
   Brand: teal #067b9d / #05617c, navy #0f172a; Inter stack (no web fonts loaded). */
.mz { --mz-teal: #067b9d; --mz-teal-d: #05617c; --mz-navy: #0f172a; --mz-ink: #0f172a; --mz-text: #26334a; --mz-muted: #536274; --mz-line: #e2eaf0;
  width: 92%; max-width: 1430px; margin: 22px auto 56px; font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif; color: var(--mz-ink); box-sizing: border-box; }
.mz *, .mz *::before, .mz *::after { box-sizing: border-box; }
.mz a { color: inherit; }
.mz-kicker { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mz-teal-d); }
.mz-kicker.is-light { color: #d0e6f8; }
.mz-chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: #e9f2f9; color: #05586f; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.mz-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; font-weight: 600; color: var(--mz-muted); }
.mz-meta.is-light { color: rgba(255, 255, 255, .92); }
.mz-meta.is-light .mz-chip { background: rgba(255, 255, 255, .95); color: #05586f; }
.mz-dot { opacity: .7; }
.mz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--mz-teal-d); color: #fff !important; font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.mz-btn:hover { background: #044f65; }
.mz-btn.is-light { background: #fff; color: var(--mz-navy) !important; }
.mz-btn.is-light:hover { background: #e9f2f9; }
.mz-btn.is-ghost { background: #fff; color: var(--mz-ink) !important; border: 1px solid var(--motorit-tint-line-strong, #d2dfec); }
.mz-btn.is-ghost:hover { border-color: var(--mz-teal); }
.mz a:focus-visible, .mz button:focus-visible, .mz summary:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; border-radius: 6px; }

/* Breadcrumb */
.mz-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--mz-muted); }
.mz-crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.mz-crumbs a { text-decoration: none; color: var(--mz-teal-d); }
.mz-crumbs a:hover { text-decoration: underline; }
.mz-crumbs.is-light ol { color: rgba(255, 255, 255, .9); }
.mz-crumbs.is-light a { color: #fff; }

/* Reading progress */
.mz-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 99990; height: 4px; background: transparent; pointer-events: none; }
.mz-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #05617c, #22b8e0); }
.admin-bar .mz-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .mz-progress { top: 46px; } }

/* ---- Article hero ---- */
.mz-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 52vw, 600px); border-radius: 32px; overflow: hidden; background: linear-gradient(135deg, #0f172a 0%, #0b3a52 55%, #067b9d 100%); box-shadow: rgba(15, 23, 42, .18) 0 30px 70px; isolation: isolate; }
.mz .mz-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; }
.mz-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 23, 42, .08) 0%, rgba(15, 23, 42, .25) 40%, rgba(8, 15, 30, .9) 100%), linear-gradient(90deg, rgba(8, 15, 30, .55) 0%, rgba(8, 15, 30, 0) 65%); }
.mz-hero:not(.has-image)::after { background: radial-gradient(circle at 85% 15%, rgba(34, 184, 224, .35), transparent 45%); }
.mz-hero-inner { width: 100%; max-width: 920px; padding: clamp(26px, 5vw, 60px); color: #fff; }
.mz-hero h1 { margin: 14px 0 0; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; color: #fff; text-wrap: balance; }
.mz-hero-dek { margin: 16px 0 0; max-width: 720px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, .92); }

/* ---- Layout: reading column + sticky contents ---- */
.mz-layout { display: grid; grid-template-columns: minmax(0, 900px); justify-content: center; gap: 56px; margin-top: 48px; }
/* Desktop: contents rail + reading column span the full hero width (rail starts at the hero's left edge, text ends at its right edge). */
.mz-layout.has-toc { grid-template-columns: minmax(250px, 1fr) minmax(0, 900px); justify-content: stretch; gap: clamp(40px, 4vw, 64px); }
.mz-layout.has-toc .mz-toc { width: 100%; max-width: 360px; box-sizing: border-box; }
.mz-after { margin-top: 8px; }
.mz-toc { position: sticky; top: 28px; align-self: start; max-height: calc(100vh - 56px); overflow: auto; padding: 22px 20px; border: 1px solid var(--mz-line); border-radius: 22px; background: #fff; box-shadow: rgba(15, 23, 42, .05) 0 12px 30px; }
.admin-bar .mz-toc { top: 60px; }
.mz-toc h2, .mz-toc-mobile summary { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mz-teal-d); }
.mz-toc ol, .mz-toc-mobile ol { margin: 0; padding: 0; list-style: none; counter-reset: mz; }
.mz-toc li, .mz-toc-mobile li { counter-increment: mz; }
.mz-toc a, .mz-toc-mobile a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--mz-muted); text-decoration: none; }
.mz-toc a::before, .mz-toc-mobile a::before { content: counter(mz, decimal-leading-zero); flex: none; font-size: 11px; font-weight: 800; color: #6b8797; padding-top: 2px; }
.mz-toc a:hover { background: #f0f7fd; color: var(--mz-ink); }
.mz-toc a.is-current { background: #e9f2f9; color: #05586f; }
.mz-toc a.is-current::before { color: #05586f; }
.mz-toc .is-h3 a, .mz-toc-mobile .is-h3 a { padding-left: 24px; font-weight: 500; }
.mz-toc-mobile { display: none; margin: 0 0 28px; padding: 14px 18px; border: 1px solid var(--mz-line); border-radius: 18px; background: #fff; }
.mz-toc-mobile summary { margin: 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mz-toc-mobile summary::-webkit-details-marker { display: none; }
.mz-toc-mobile summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--mz-teal-d); }
.mz-toc-mobile[open] summary::after { content: "–"; }
.mz-toc-mobile ol { margin-top: 10px; }

/* ---- Article typography ---- */
.mz-content { font-size: 18px; line-height: 1.75; color: var(--mz-text); }
.mz-content > * { margin: 0 0 1.15em; }
.mz-content > :first-child { margin-top: 0; }
.mz-content p.mz-standfirst { font-size: clamp(20px, 2vw, 23px); line-height: 1.5; font-weight: 600; color: var(--mz-ink); letter-spacing: -.01em; padding-bottom: 22px; border-bottom: 1px solid var(--mz-line); margin-bottom: 30px; }
.mz-content > p:first-of-type:not(.mz-standfirst)::first-letter { float: left; margin: 6px 12px 0 0; font-size: 64px; line-height: .8; font-weight: 800; color: var(--mz-teal-d); }
.mz-content h2, .mz-content h3 { scroll-margin-top: 90px; margin: 1.9em 0 .55em; font-weight: 800; letter-spacing: -.025em; color: var(--mz-ink); line-height: 1.2; }
.mz-content h2 { font-size: clamp(26px, 2.6vw, 32px); }
.mz-content h3 { font-size: clamp(22px, 2.2vw, 27px); }
.mz-content h3::before { content: ""; display: block; width: 44px; height: 4px; margin-bottom: 14px; border-radius: 4px; background: linear-gradient(90deg, #05617c, #22b8e0); }
.mz-content h4 { margin: 1.5em 0 .35em; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: #05586f; }
.mz-content h4 + p { margin-top: 0; }
.mz-content a { color: var(--mz-teal-d); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mz-content a:hover { text-decoration-thickness: 2px; }
.mz-content strong { color: var(--mz-ink); }
.mz-content ul, .mz-content ol { padding-left: 1.3em; }
.mz-content li { margin: .35em 0; }
.mz-content li::marker { color: var(--mz-teal); }
.mz-content ul.mz-points { list-style: none; padding: 6px 0; margin: 0 0 1.3em; border-radius: 20px; background: #f3f8fd; border: 1px solid #e1edf6; }
.mz-content ul.mz-points li { position: relative; margin: 0; padding: 12px 20px 12px 46px; font-size: 16.5px; line-height: 1.6; }
.mz-content ul.mz-points li + li { border-top: 1px solid #e1edf6; }
.mz-content ul.mz-points li::before { content: ""; position: absolute; left: 20px; top: 21px; width: 10px; height: 10px; border-radius: 3px; background: var(--mz-teal); transform: rotate(45deg); }
.mz-content ul.mz-points strong { display: block; font-size: 14px; letter-spacing: .02em; color: #05586f; }
.mz-content blockquote { margin: 1.8em 0; padding: 8px 0 8px 26px; border-left: 4px solid var(--mz-teal); font-size: 22px; line-height: 1.5; font-weight: 600; color: var(--mz-ink); }
.mz-content blockquote p { margin: 0 0 .5em; }
.mz-content blockquote cite { display: block; font-size: 14px; font-style: normal; color: var(--mz-muted); }
.mz-content img { max-width: 100%; height: auto; border-radius: 20px; }
.mz-content figure { margin: 2em 0; }
.mz-content figure img { display: block; width: 100%; }
.mz-content figcaption, .mz-content .wp-element-caption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--mz-muted); text-align: center; }
.mz-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; border: 1px solid var(--mz-line); border-radius: 16px; overflow: hidden; display: block; overflow-x: auto; }
.mz-content th, .mz-content td { padding: 12px 14px; border-bottom: 1px solid var(--mz-line); text-align: left; vertical-align: top; }
.mz-content thead th, .mz-content tr:first-child th { background: #0f172a; color: #fff; font-weight: 700; }
.mz-content tbody tr:nth-child(even) td { background: #f6fafe; }
.mz-content hr { border: 0; height: 1px; margin: 2.4em 0; background: var(--mz-line); }

/* Share, author, CTA */
.mz-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 44px 0 0; padding: 22px 0; border-top: 1px solid var(--mz-line); border-bottom: 1px solid var(--mz-line); }
.mz-share-label { margin-right: 6px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mz-ink); }
.mz-share-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--motorit-tint-line-strong, #d2dfec); background: #fff; color: var(--mz-ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.mz-share-btn:hover { border-color: var(--mz-teal); color: var(--mz-teal-d); }
.mz-share-btn.is-done { background: #e3edf5; border-color: #067b9d; color: #067b9d; }
.mz-author { display: flex; gap: 18px; margin: 32px 0; padding: 24px; border-radius: 24px; background: #f3f8fd; border: 1px solid #e1edf6; }
.mz-author-logo { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, #0f172a, #067b9d); color: #fff; font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -.04em; }
.mz-author-logo b { color: #3cc7f0; }
.mz-author h2 { margin: 2px 0 6px; font-size: 18px; font-weight: 800; color: var(--mz-ink); }
.mz-author p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--mz-muted); }
.mz-author a { font-size: 14px; font-weight: 800; color: var(--mz-teal-d); text-decoration: none; }
.mz-author a:hover { text-decoration: underline; }
.mz-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; border-radius: 28px; background: linear-gradient(135deg, #0f172a 0%, #0b3a52 55%, #05617c 100%); color: #fff; box-shadow: rgba(15, 23, 42, .18) 0 24px 50px; }
.mz-cta h2 { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; color: #fff; }
.mz-cta p { margin: 0; max-width: 460px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .9); }

/* More stories / index grid */
.mz-more { margin-top: 72px; }
.mz-more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.mz-more-head h2, .mz-section-title { margin: 0; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; font-weight: 800; color: var(--mz-ink); }
.mz-section-title { margin: 48px 0 22px; }
.mz-more-head a { font-size: 14px; font-weight: 800; color: var(--mz-teal-d); text-decoration: none; }
.mz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mz-card { min-width: 0; }
.mz-card-link { display: flex; flex-direction: column; height: 100%; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid #dceaf5; text-decoration: none; color: inherit; box-shadow: rgba(15, 23, 42, .05) 0 12px 30px; transition: transform .2s ease, box-shadow .2s ease; }
.mz-card-link:hover { transform: translateY(-3px); box-shadow: rgba(15, 23, 42, .12) 0 22px 44px; }
.mz-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #0f172a, #067b9d); }
.mz .mz-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mz-card-link:hover .mz-card-media img { transform: scale(1.04); }
.mz-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; font-weight: 900; font-style: italic; }
.mz-card-placeholder b { color: #3cc7f0; }
.mz-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.mz-card-title { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; font-weight: 800; color: var(--mz-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mz-card-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--mz-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mz-card-more { margin-top: auto; font-size: 14px; font-weight: 800; color: var(--mz-teal-d); }
/* Lead story: image with gradient + text over it */
.mz-card.is-lead .mz-card-link { position: relative; min-height: clamp(380px, 42vw, 560px); justify-content: flex-end; border: 0; box-shadow: rgba(15, 23, 42, .2) 0 30px 70px; }
.mz-card.is-lead .mz-card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.mz-card.is-lead .mz-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0) 25%, rgba(8, 15, 30, .9) 100%), linear-gradient(90deg, rgba(8, 15, 30, .5), rgba(8, 15, 30, 0) 70%); }
.mz-card.is-lead .mz-card-body { position: relative; flex: 0 0 auto; max-width: 760px; padding: clamp(24px, 4vw, 48px); background: none; }
.mz-card.is-lead .mz-card-more { margin-top: 6px; }
.mz-card.is-lead .mz-meta { color: rgba(255, 255, 255, .92); }
.mz-card.is-lead .mz-chip { background: rgba(255, 255, 255, .95); }
.mz-card.is-lead .mz-card-title { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -.035em; color: #fff; -webkit-line-clamp: 4; }
.mz-card.is-lead .mz-card-excerpt { font-size: 16px; color: rgba(255, 255, 255, .9); max-width: 620px; }
.mz-card.is-lead .mz-card-more { color: #fff; }

/* Index header, filters, pagination, empty */
.mz-index-head { padding: 26px 0 30px; border-bottom: 1px solid var(--mz-line); margin-bottom: 32px; }
.mz-index-head h1 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; color: var(--mz-ink); }
.mz-page-no { font-size: .45em; letter-spacing: 0; color: var(--mz-muted); vertical-align: middle; }
.mz-index-head p { margin: 14px 0 0; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--mz-muted); }
.mz-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.mz-filters a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--motorit-tint-line-strong, #d2dfec); background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--mz-ink); }
.mz-filters a[aria-current] { background: var(--mz-navy); border-color: var(--mz-navy); color: #fff; }
.mz-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.mz-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--motorit-tint-line-strong, #d2dfec); background: #fff; font-size: 15px; font-weight: 700; text-decoration: none; color: var(--mz-ink); }
.mz-pagination a.page-numbers:hover { border-color: var(--mz-teal); color: var(--mz-teal-d); }
.mz-pagination .page-numbers.current { background: var(--mz-teal-d); border-color: var(--mz-teal-d); color: #fff; }
.mz-pagination .dots { border: 0; background: none; }
.mz-empty, .mz-404 { max-width: 640px; margin: 40px auto; padding: 44px 32px; text-align: center; border-radius: 28px; background: #fff; border: 1px solid var(--mz-line); box-shadow: rgba(15, 23, 42, .06) 0 20px 50px; }
.mz-empty h2, .mz-404 h1 { margin: 0 0 10px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--mz-ink); }
.mz-empty p, .mz-404 p { margin: 0 0 22px; color: var(--mz-muted); line-height: 1.6; }
.mz-404-code { display: block; font-size: clamp(80px, 14vw, 140px); line-height: 1; font-weight: 900; letter-spacing: -.06em; background: linear-gradient(135deg, #0f172a, #067b9d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mz-404-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mz-fallback .mz-content { max-width: 760px; margin: 0 auto; }
.mz-fallback h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.03em; color: var(--mz-ink); }

@media (min-width: 1101px) { .mz-layout.has-toc .mz-content { font-size: 19px; line-height: 1.8; } }

@media (max-width: 1100px) {
  .mz-layout, .mz-layout.has-toc { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .mz-after { max-width: 720px; margin-left: auto; margin-right: auto; }
  .mz-toc { display: none; }
  .mz-toc-mobile { display: block; }
  .mz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones and tablet portrait: the article dek is repeated as the first body paragraph,
   so hiding it here lets the photograph show behind the title. Desktop is unchanged. */
@media (max-width: 900px) {
  .mz-hero-dek { display: none; }
}
@media (max-width: 767px) {
  .mz-hero { min-height: 340px; }
  .mz-hero-inner { padding: 16px 18px 20px; }
  .mz-hero h1 { margin-top: 10px; font-size: clamp(26px, 7vw, 30px); }
  .mz-crumbs ol { margin-bottom: 10px; }
}
@media (max-width: 700px) {
  .mz { width: calc(100% - 28px); margin-top: 14px; }
  .mz-hero { border-radius: 24px; }
  .mz-layout { margin-top: 30px; }
  .mz-content { font-size: 17px; line-height: 1.7; }
  .mz-content > p:first-of-type:not(.mz-standfirst)::first-letter { float: none; margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; color: inherit; }
  .mz-grid { grid-template-columns: 1fr; }
  .mz-cta { flex-direction: column; align-items: flex-start; padding: 26px; }
  .mz-author { flex-direction: column; }
  .mz-card.is-lead .mz-card-link { min-height: 460px; }
}
@media (prefers-reduced-motion: reduce) { .mz-card-link, .mz-card-media img { transition: none; } .mz-card-link:hover { transform: none; } }
.mz-card.is-lead .mz-card-placeholder { display: none; }
/* Sticky contents: the shell / html / body use overflow-x:hidden (which makes them scroll containers and breaks
   position:sticky). "clip" hides sideways overflow the same way without creating a scroll container. */
html:has(body.motorit-magazine-article), body.motorit-magazine-article { overflow-x: clip !important; overflow-y: visible !important; }
body.motorit-magazine-article .motorit-mag-shell { overflow-x: clip; }
