/* =========================================================================
   PULSI24 - MAGAZINE REDESIGN
   Loaded after style.css. Homepage layout, teal section, photo breaks,
   sticky ad rails, and the teal accent used site-wide.
========================================================================= */

/* ---------- Masthead ---------- */

.mz-strip { background: var(--ink); color: #cfe9ea; font-size: 12px; }
.mz-strip__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.mz-strip__when { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mz-strip__date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-strip__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .25); }
.mz-strip__clock { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
/* Cities are stacked in one spot; only the active one is visible, the rest fade in turn. */
.mz-strip__weather { display: grid; justify-items: end; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.mz-weather { grid-area: 1 / 1; display: flex; align-items: center; gap: 7px; opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.mz-weather.is-active { opacity: 1; transform: none; }
.mz-strip__weather strong { color: #fff; font-weight: 700; }
.mz-strip__icon { font-size: 15px; line-height: 1; }
.mz-strip__city { color: var(--teal); font-weight: 600; }
.mz-strip__tagline { color: var(--teal); font-weight: 600; letter-spacing: .02em; }

.site-header { border-bottom: 0; box-shadow: inset 0 -4px 0 var(--teal); }
.nav-list a { position: relative; padding: 6px 0; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after, .nav-list .current-menu-item a::after { transform: scaleX(1); }

/* ---------- Shared pieces ---------- */

.mz-home { padding-bottom: 20px; }

.mz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 20px; }
.mz-head__title { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 15px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.mz-head__title::before { content: ""; width: 12px; height: 12px; background: var(--teal); flex-shrink: 0; }
.mz-head > a { flex-shrink: 0; color: var(--teal-ink); font-size: 12px; font-weight: 600; }
.mz-head > a:hover { color: var(--teal-deep); text-decoration: underline; }
.mz-head--small { margin-bottom: 16px; }

.mz-kicker { display: inline-block; color: var(--teal-ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.mz-fallback { display: grid; place-items: center; width: 100%; height: 100%; min-height: 70px; background: linear-gradient(135deg, var(--teal-soft), #bfe9eb); color: var(--teal-deep); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.mz-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s ease, transform .2s ease; }
.mz-btn:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); }

/* ---------- Story cards ---------- */

.mz-card { min-width: 0; }
.mz-card__image { display: block; overflow: hidden; background: var(--warm); }
.mz-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mz-card:hover .mz-card__image img { transform: scale(1.04); }
.mz-card__title { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 8px 0; }
.mz-card__title a { color: var(--ink); background-image: linear-gradient(var(--teal), var(--teal)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s ease; }
.mz-card__title a:hover { color: var(--ink); background-size: 100% 2px; text-decoration: none !important; }
.mz-card__excerpt { color: var(--muted); margin: 0 0 12px; }
.mz-card__meta { display: flex; gap: 6px; color: #7d8585; font-size: 12px; }

/* Lead: the big story in the middle column */
.mz-card--lead .mz-card__image { aspect-ratio: 16 / 10; }
.mz-card--lead .mz-card__body { padding-top: 20px; }
.mz-card--lead .mz-card__title { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.08; margin: 10px 0 14px; }
.mz-card--lead .mz-card__excerpt { font-size: 17px; line-height: 1.6; max-width: 640px; }

/* Medium: standard magazine card */
.mz-card--medium .mz-card__image { aspect-ratio: 3 / 2; }
.mz-card--medium .mz-card__body { padding-top: 14px; }
.mz-card--medium .mz-card__title { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }
.mz-card--medium .mz-card__excerpt { font-size: 14px; line-height: 1.55; }

/* Small: image on top, no excerpt (left column) */
.mz-card--small .mz-card__image { aspect-ratio: 16 / 10; }
.mz-card--small .mz-card__body { padding-top: 10px; }
.mz-card--small .mz-card__title { font-size: 18px; line-height: 1.22; }

/* Compact: thumbnail on the left */
.mz-card--compact { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; }
.mz-card--compact .mz-card__image { aspect-ratio: 1; border-radius: 4px; }
.mz-card--compact .mz-kicker { font-size: 10px; }
.mz-card--compact .mz-card__title { font-size: 16px; line-height: 1.25; margin: 4px 0 6px; }
.mz-card--compact .mz-card__meta { font-size: 11px; }

/* Overlay: text sits on the photo */
.mz-card--overlay { position: relative; overflow: hidden; border-radius: 6px; min-height: 420px; display: flex; }
.mz-card--overlay .mz-card__image { position: absolute; inset: 0; }
.mz-card--overlay .mz-card__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8, 40, 42, .88)); }
.mz-card--overlay .mz-card__body { position: relative; margin-top: auto; padding: 30px; color: #fff; pointer-events: none; }
.mz-card--overlay .mz-card__body a { pointer-events: auto; }
.mz-card--overlay .mz-kicker { background: var(--teal); color: var(--ink); padding: 4px 9px; }
.mz-card--overlay .mz-card__title { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; }
.mz-card--overlay .mz-card__title a, .mz-card--overlay .mz-card__title a:hover { color: #fff; }
.mz-card--overlay .mz-card__excerpt { color: rgba(255, 255, 255, .85); font-size: 15px; max-width: 560px; }
.mz-card--overlay .mz-card__meta { color: rgba(255, 255, 255, .7); }

/* ---------- 1. Front zone: left · middle · right rail ---------- */

.mz-front {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr) 300px;
    grid-template-areas: "side main rail";
    gap: 0 32px;
    padding-top: 36px;
    padding-bottom: 56px;
}
.mz-front__side { grid-area: side; }
.mz-front__main { grid-area: main; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 32px; }
.mz-front > .mz-rail { grid-area: rail; }

.mz-front__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }

.mz-side-list { display: flex; flex-direction: column; }
.mz-side-list > .mz-card { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.mz-side-list > .mz-card:last-child { border-bottom: 0; margin-bottom: 0; }

.mz-search { display: flex; margin-top: 24px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.mz-search input { flex: 1; min-width: 0; border: 0; padding: 11px 16px; font-size: 13px; background: #fff; outline-offset: -3px; }
.mz-search button { border: 0; background: var(--teal); color: var(--ink); padding: 0 18px; font-size: 18px; font-weight: 700; }
.mz-search button:hover { background: var(--teal-ink); color: #fff; }

.mz-empty-lead { min-height: 380px; background: var(--teal-soft); padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.mz-empty-lead h2 { font: 400 40px/1.1 var(--serif); margin: 16px 0; }
.mz-empty-lead p { color: var(--muted); }

/* ---------- Sticky ad rails ---------- */

.mz-rail { align-self: stretch; min-width: 0; }
.mz-rail__inner { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 28px; }
.admin-bar .mz-rail__inner { top: 56px; }

.mz-ad { text-align: center; }
.mz-ad__label { display: block; margin-bottom: 8px; color: #98a2a2; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.mz-ad > img { width: 100%; height: auto; border-radius: 4px; }
/* Rail ads keep their own proportions (the banner rule in style.css forces 150px) */
.mz-ad .p24-banner-widget img { height: auto !important; max-height: 600px; }

/* ---------- 2 & 4. Full-width photo breaks ---------- */

.mz-break { margin: 0 0 64px; }
.mz-break__link { position: relative; display: block; height: clamp(340px, 46vw, 580px); overflow: hidden; color: #fff; background: var(--teal-deep); }
.mz-break__img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; transition: transform 1.2s ease; }
.mz-break__link:hover .mz-break__img { transform: scale(1.03); }
.mz-break__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(90deg, rgba(6, 30, 32, .82) 0%, rgba(6, 30, 32, .45) 45%, transparent 75%), linear-gradient(0deg, rgba(6, 30, 32, .55), transparent 50%); }
.mz-break__content { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; padding-bottom: clamp(30px, 5vw, 60px); }
.mz-break__eyebrow { background: var(--teal); color: var(--ink); padding: 5px 11px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mz-break__cat { color: #bdeced; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mz-break__title { max-width: 720px; font: 400 clamp(30px, 4vw, 58px)/1.06 var(--serif); letter-spacing: -.02em; }
.mz-break__cta { font-size: 14px; font-weight: 600; border-bottom: 2px solid var(--teal); padding-bottom: 3px; }
.mz-break__link:hover { color: #fff; }
.mz-break__link:hover .mz-break__title { text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 6px; }

/* ---------- 3. Teal section ---------- */

.mz-teal { position: relative; overflow: hidden; background: var(--teal-soft); padding: 64px 0 72px;  border-top: 6px solid var(--teal); }
.mz-teal__deco { position: absolute; top: -140px; right: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid var(--teal); opacity: .14; pointer-events: none; }
.mz-teal .container { position: relative; }
.mz-teal__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 20px 48px; margin-bottom: 36px; }
.mz-teal__eyebrow { display: inline-block; color: var(--teal-deep); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-bottom: 3px solid var(--teal); padding-bottom: 4px; margin-bottom: 14px; }
.mz-teal h2 { margin: 0; font: 400 clamp(38px, 4.4vw, 64px)/1 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.mz-teal__top p { margin: 0; max-width: 460px; color: #3c5556; font-size: 16px; line-height: 1.55; }

.mz-teal__stories { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; margin-bottom: 40px; }
.mz-teal__list { display: flex; flex-direction: column; justify-content: center; gap: 18px; background: #fff; border-radius: 6px; padding: 26px; }
.mz-teal__list .mz-card + .mz-card { border-top: 1px solid #d3ecee; padding-top: 18px; }
.mz-teal__list .mz-card--compact { grid-template-columns: 100px minmax(0, 1fr); }
.mz-teal__list .mz-card__title { font-size: 18px; }

.mz-ages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mz-age { display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden; border-bottom: 4px solid transparent; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.mz-age:hover { color: inherit; transform: translateY(-4px); border-bottom-color: var(--teal); box-shadow: 0 14px 30px rgba(15, 85, 89, .14); }
.mz-age__photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--teal); display: grid; place-items: center; }
.mz-age__photo img { width: 100%; height: 100%; object-fit: cover; }
.mz-age__num { font: 400 54px/1 var(--serif); color: #fff; }
.mz-age__text { padding: 14px 16px 18px; }
.mz-age__text h3 { margin: 0 0 6px; font: 400 21px/1.15 var(--serif); }
.mz-age__text p { margin: 0; color: #5a6a6b; font-size: 13px; line-height: 1.45; }

/* ---------- 5. Category zone ---------- */

.mz-zone { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-bottom: 64px; }
.mz-zone__main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 36px; align-content: start; }
.mz-block__list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

.mz-topics { background: var(--teal-soft); border-top: 4px solid var(--teal); padding: 20px 22px; }
.mz-topics h2 { margin: 0 0 10px; font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.mz-topics ul { list-style: none; margin: 0; padding: 0; }
.mz-topics li + li { border-top: 1px solid #c9e9eb; }
.mz-topics a { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; font-weight: 600; }
.mz-topics a span { color: var(--teal-ink); transition: transform .2s ease; }
.mz-topics a:hover { color: var(--teal-deep); }
.mz-topics a:hover span { transform: translateX(4px); }

/* ---------- 6. More stories ---------- */

.mz-more { padding-bottom: 56px; }
.mz-more__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }

/* ---------- Site-wide accents that were hard-coded green ---------- */

.p24-article-category, .p24-related-category, .p24-label { color: var(--teal-ink); }
.p24-article-content a, .p24-article-meta a { color: var(--teal-ink); }
.p24-article-content h2, .p24-article-content h3, .p24-section-heading h2, .p24-related-body h3 a { color: var(--ink); }
.p24-article-content blockquote { border-left-color: var(--teal); background: var(--teal-soft); }
.p24-share-btn:hover { background: var(--teal-soft); }
.search-form button:hover { background: var(--teal-deep); }
.p24-error-button { background: var(--ink); }
.p24-error-button:hover { background: var(--teal-deep); }
.site-footer { background: var(--ink); color: #d4dede; border-top: 4px solid var(--teal); }
.site-footer a:hover { color: var(--teal); }
.footer-inner p, .footer-right small { color: #93a3a3; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
    .mz-front { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main rail" "side rail"; gap: 0 28px; }
    .mz-front__main { border: 0; padding: 0; }
    .mz-front__side { margin-top: 40px; }
    .mz-side-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
    .mz-side-list > .mz-card:nth-last-child(2) { border-bottom: 0; margin-bottom: 0; }
    .mz-teal__top { grid-template-columns: minmax(0, 1fr) auto; }
    .mz-teal__top p { grid-column: 1 / -1; grid-row: 2; }
    .mz-ages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mz-zone { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
    .mz-zone__main { grid-template-columns: minmax(0, 1fr); }
    .mz-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .mz-strip__tagline { display: none; }
    .nav-list a::after { display: none; }

    .mz-front, .mz-zone { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "rail"; }
    .mz-front { padding-top: 22px; padding-bottom: 40px; }
    .mz-rail__inner { position: static; align-items: center; }
    .mz-rail .mz-ad { max-width: 336px; width: 100%; }
    .mz-front > .mz-rail { margin-top: 32px; }
    .mz-topics { width: 100%; }

    .mz-teal { padding: 44px 0 50px; margin-bottom: 44px; }
    .mz-teal__top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .mz-teal__top p { grid-row: auto; }
    .mz-teal__top .mz-btn { justify-self: start; }
    .mz-teal__stories { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .mz-card--overlay { min-height: 360px; }
    .mz-ages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

    .mz-break { margin-bottom: 44px; }
    .mz-break__overlay { background: linear-gradient(0deg, rgba(6, 30, 32, .9) 0%, rgba(6, 30, 32, .35) 70%, transparent); }
}

@media (max-width: 560px) {
    .mz-strip { font-size: 11px; }
    .mz-strip__when { gap: 8px; }
    .mz-weather { gap: 5px; }
    /* Two cards per row on phones */
    .mz-front__pair,
    .mz-side-list,
    .mz-more__grid,
    .mz-ages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }

    .mz-front__pair { margin-top: 24px; padding-top: 22px; }
    .mz-front__side { margin-top: 32px; }

    /* Left-column list becomes a 2-up grid: thumbnails move above the title */
    .mz-side-list > .mz-card { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
    .mz-side-list .mz-card--compact { display: block; }
    .mz-side-list .mz-card--compact .mz-card__image { aspect-ratio: 16 / 10; border-radius: 0; }
    .mz-side-list .mz-card--compact .mz-card__body { padding-top: 10px; }

    /* Smaller titles so two columns read well */
    .mz-card--medium .mz-card__title,
    .mz-card--small .mz-card__title,
    .mz-side-list .mz-card__title { font-size: 16px; line-height: 1.25; margin: 6px 0; }
    .mz-card--medium .mz-card__body, .mz-card--small .mz-card__body { padding-top: 10px; }
    .mz-kicker { font-size: 10px; }
    .mz-card__meta { font-size: 11px; }
    .mz-card--lead .mz-card__title { font-size: 28px; }

    .mz-card--overlay .mz-card__body { padding: 20px; }
    .mz-teal__list { padding: 18px; }
    .mz-teal__list .mz-card--compact { grid-template-columns: 80px minmax(0, 1fr); }
    .mz-teal__list .mz-card__title { font-size: 16px; }

    .mz-age__text { padding: 10px 12px 14px; }
    .mz-age__text h3 { font-size: 18px; }
    .mz-age__text p { font-size: 12px; }
    .mz-age__num { font-size: 40px; }

    /* Category, search and "Artikujt" pages */
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 14px !important; }
    .news-grid .story, .news-grid .story:nth-child(n) { border: 0; padding: 0; }
    .story__image { aspect-ratio: 16 / 10; }
    .story h3 { font-size: 16px; line-height: 1.25; margin: 6px 0; }
    .story__body { padding-top: 10px; }
    .story .kicker { font-size: 10px; }

    /* Related articles under a post */
    .p24-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 22px 14px !important; }
    .p24-related-image { aspect-ratio: 16 / 10 !important; }
    .p24-related-body h3 { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .mz-card__image img, .mz-break__img, .mz-age, .mz-btn, .nav-list a::after, .mz-weather { transition: none; }
}


/* =========================================================================
   ARCHIVES (categories, search, all articles) & SINGLE ARTICLE
========================================================================= */

/* ---------- Shared: breadcrumbs, ad variants, pagination ---------- */

.mz-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: #4d6667; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.mz-crumbs a { color: var(--teal-ink); }
.mz-crumbs a:hover { color: var(--teal-deep); text-decoration: underline; }

.mz-ad__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 110px; padding: 18px; background: var(--teal-soft); border: 2px dashed var(--teal); border-radius: 6px; color: var(--teal-deep); font-size: 13px; }
.mz-ad__placeholder small { color: #6c8485; font-size: 11px; }

.mz-ad--wide { margin-top: 8px; margin-bottom: 56px; }
.mz-ad--wide .p24-banner-widget img { height: auto !important; max-height: 250px; width: auto !important; max-width: 100%; }
.mz-ad--inline { margin: 36px 0; padding: 16px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mz-ad--inline .p24-banner-widget img { height: auto !important; max-height: 280px; width: auto !important; max-width: 100%; border-radius: 4px; }
.mz-single__content .mz-ad a { text-decoration: none; }

.mz-pagination { margin-top: 48px; }
.mz-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.mz-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 14px;  border-radius: 999px; font-size: 14px; font-weight: 600; }
.mz-pagination a.page-numbers:hover { border-color: var(--teal); background: var(--teal-soft); color: var(--ink); }
.mz-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.mz-pagination .page-numbers.dots { border: 0; }

/* ---------- Archive header ---------- */

.mz-archive__hero,
.mz-single__hero { position: relative; overflow: hidden; background: var(--teal-soft); border-bottom: 1px solid #cdebed; }
.mz-archive__hero { padding: 48px 0 44px; }
.mz-archive__hero .container,
.mz-single__hero .container { position: relative; }
.mz-archive__hero h1 { margin: 0; font: 400 clamp(40px, 5.4vw, 76px)/1 var(--serif); letter-spacing: -.03em; }
.mz-archive__desc { max-width: 640px; margin-top: 16px; color: #3c5556; font-size: 17px; line-height: 1.6; }
.mz-archive__desc p { margin: 0; }
.mz-archive__meta { display: flex; gap: 14px; align-items: center; margin-top: 20px; color: #4d6667; font-size: 13px; }
.mz-archive__count { background: var(--teal); color: var(--ink); padding: 5px 12px; border-radius: 999px; font-weight: 700; }
.mz-search--hero { max-width: 520px; margin-top: 24px; background: #fff; }

/* ---------- Archive body ---------- */

.mz-archive__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 44px; padding-bottom: 72px; }
.mz-archive__main { min-width: 0; }

.mz-archive__top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.mz-archive__top-side { display: flex; flex-direction: column; gap: 28px; }

.mz-archive__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.mz-archive__grid-ad { grid-column: 1 / -1; }
.mz-archive__grid-ad .mz-ad--wide { margin: 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.mz-archive__empty { padding: 40px; background: var(--warm); border-radius: 6px; text-align: center; }
.mz-archive__empty p { margin: 0 0 18px; color: var(--muted); font-size: 17px; }

.mz-topics a[aria-current="page"] { color: var(--teal-deep); }
.mz-topics a[aria-current="page"] span { transform: translateX(4px); }

/* ---------- Single article ---------- */

.mz-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1000; pointer-events: none; }
.mz-progress span { display: block; height: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.admin-bar .mz-progress { top: 32px; }

.mz-single__hero { padding: 44px 0 48px; }
.mz-single__title { max-width: 1000px; }
.mz-single__cat { display: inline-block; margin-bottom: 16px; background: var(--teal); color: var(--ink); padding: 5px 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mz-single__cat:hover { background: var(--teal-deep); color: #fff; }
.mz-single__title { margin: 0; font: 400 clamp(34px, 4.6vw, 64px)/1.06 var(--serif); letter-spacing: -.025em; overflow-wrap: break-word; }
.mz-single__lede { max-width: 760px; margin: 20px 0 0; color: #3c5556; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; }
.mz-single__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; color: #4d6667; font-size: 14px; }
.mz-single__meta a { color: var(--ink); font-weight: 600; }
.mz-single__meta a:hover { color: var(--teal-deep); }

.mz-single__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 40px; padding-bottom: 64px; }
.mz-single__article { min-width: 0; }

.mz-single__image { margin: 0 0 36px; }
.mz-single__image img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 6px; }
.mz-single__image figcaption { margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--teal); color: #6c7676; font-size: 13px; }

.mz-single__content { max-width: 740px; font-size: 18px; }
.mz-single__content > p:first-of-type::first-letter { float: left; margin: 6px 12px 0 0; font: 400 74px/.8 var(--serif); color: var(--teal-ink); }

.mz-tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 740px; margin-top: 32px; }
.mz-tags a { padding: 6px 12px; background: var(--warm); border-radius: 999px; font-size: 13px; font-weight: 600; color: #3c5556; }
.mz-tags a:hover { background: var(--teal-soft); color: var(--teal-deep); }

.mz-share-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; max-width: 740px; margin-top: 32px; padding: 20px 22px; background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 0 6px 6px 0; }
.mz-share-end strong { font-size: 15px; }

.mz-share-box { padding: 18px 20px; border: 1px solid var(--line); border-top: 4px solid var(--ink); }
.mz-share-box h2 { margin: 0 0 12px; font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.mz-share-box .p24-share-links, .mz-share-end .p24-share-links { gap: 6px; }
.mz-share-box .p24-share-btn { background: var(--warm); }
.mz-share-end .p24-share-btn { background: #fff; }

.mz-rail-list { display: flex; flex-direction: column; gap: 16px; }
.mz-rail-list .mz-head { margin-bottom: 0; }

.mz-related { margin-bottom: 0; }
.mz-related__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.mz-related .mz-card--medium .mz-card__image { border-radius: 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
    .mz-archive__layout, .mz-single__layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
    .mz-archive__top { grid-template-columns: minmax(0, 1fr); }
    .mz-archive__top-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .mz-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mz-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .admin-bar .mz-progress { top: 46px; }
    .mz-archive__hero { padding: 34px 0 32px; }
    .mz-single__hero { padding: 30px 0 34px; }
    .mz-archive__layout, .mz-single__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 28px; }
    .mz-single__layout .mz-rail__inner { align-items: stretch; }
    .mz-single__layout .mz-rail .mz-ad { align-self: center; }
    .mz-single__content { font-size: 17px; }
    .mz-ad--wide { margin-bottom: 40px; }
}

@media (max-width: 560px) {
    .mz-archive__top-side,
    .mz-archive__grid,
    .mz-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
    .mz-archive__top { padding-bottom: 28px; margin-bottom: 28px; }
    .mz-pagination .page-numbers { min-width: 38px; height: 38px; padding: 0 11px; font-size: 13px; }
    .mz-single__content > p:first-of-type::first-letter { font-size: 58px; }
    .mz-share-end { padding: 16px; }
}
