/*
Theme Name: Motozoo
Theme URI: https://www.motozoo.com.br/
Author: Motozoo
Description: Independent motorcycle magazine.
Version: 1.0.0-rc1
Text Domain: motozoo
License: GNU General Public License v2 or later
*/

:root {
    --mz-red: #c71920;
    --mz-black: #151515;
    --mz-white: #ffffff;
    --mz-paper: #f4f4f4;
    --mz-grey: #666666;
    --mz-border: #dddddd;
    --mz-width: 1440px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--mz-paper);
    color: var(--mz-black);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--mz-red);
}

img {
    max-width: 100%;
    height: auto;
}

.mz-container {
    width: min(94%, var(--mz-width));
    margin-inline: auto;
}

.mz-header {
    background: var(--mz-black);
    color: var(--mz-white);
    border-bottom: 5px solid var(--mz-red);
}

.mz-masthead {
    padding: 32px 0;
}

.mz-logo {
    font-size: clamp(42px, 7vw, 100px);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1;
}

.mz-logo sup {
    color: var(--mz-red);
    font-size: 0.25em;
    vertical-align: super;
}

.mz-tagline {
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mz-navigation {
    border-top: 1px solid #333;
}

.mz-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 14px 0;
    margin: 0;
    list-style: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.mz-section {
    padding-block: 36px;
}

.mz-section-title {
    border-bottom: 3px solid var(--mz-red);
    margin-bottom: 24px;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.mz-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.mz-card {
    background: white;
    overflow: hidden;
}

.mz-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.mz-card-body {
    padding: 20px;
}

.mz-card h2 {
    margin: 8px 0;
    font-size: 23px;
    line-height: 1.2;
}

.mz-date {
    font-size: 12px;
    color: var(--mz-grey);
}

.mz-category {
    color: var(--mz-red);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

.mz-footer {
    background: var(--mz-black);
    color: white;
    padding: 40px 0;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .mz-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .mz-grid {
        grid-template-columns: 1fr;
    }

    .mz-navigation ul {
        gap: 12px;
    }
}

/* Motozoo 0.2.0 — Magazine layout */

.mz-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 20px;
}

.mz-logo {
    font-size: clamp(42px, 5vw, 76px);
}

.mz-tagline {
    font-size: 11px;
    letter-spacing: 0.16em;
}

.mz-search {
    display: flex;
    align-items: stretch;
}

.mz-search input {
    min-width: 0;
    width: 240px;
    padding: 12px;
    border: 1px solid #555;
    background: #252525;
    color: white;
}

.mz-search button {
    background: var(--mz-red);
    color: white;
    border: 0;
    padding: 12px 18px;
    font-weight: bold;
    cursor: pointer;
}

.mz-home {
    padding-top: 12px;
}

.mz-section {
    padding-block: 24px;
}

.mz-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 22px;
    border-bottom: 3px solid var(--mz-red);
    padding-bottom: 10px;
}

.mz-section-heading h1,
.mz-section-heading h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.mz-section-heading > a {
    font-size: 13px;
    font-weight: bold;
    color: var(--mz-red);
}

.mz-featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 240px));
    gap: 12px;
}

.mz-featured-card {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: #222;
    color: white;
}

.mz-featured-card:first-child {
    grid-row: span 2;
}

.mz-featured-image {
    position: absolute;
    inset: 0;
    display: block;
}

.mz-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mz-featured-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 65px 22px 20px;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,.92)
    );
}

.mz-featured-overlay h2 {
    font-size: 24px;
    line-height: 1.15;
    margin: 6px 0;
}

.mz-featured-card:first-child h2 {
    font-size: clamp(28px, 3.5vw, 48px);
}

.mz-featured-overlay .mz-category {
    color: #ff555b;
}

.mz-featured-overlay .mz-date {
    color: #ddd;
}

.mz-card {
    border-bottom: 1px solid #ddd;
}

.mz-card-body {
    padding: 16px;
}

.mz-card h2 {
    font-size: 22px;
    letter-spacing: -0.025em;
}

.mz-card p {
    font-size: 14px;
    line-height: 1.55;
    color: #555;
}

.mz-advertisement {
    margin-block: 20px;
    text-align: center;
}

.mz-ad-label {
    display: block;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #777;
    margin-bottom: 5px;
}

.mz-article-content {
    font-size: 18px;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.mz-article-content img {
    max-width: 100%;
    height: auto;
}

.mz-article-content iframe {
    max-width: 100%;
}

@media (max-width: 900px) {

    .mz-featured-grid {
        grid-template-rows: repeat(2, 200px);
    }

    .mz-search input {
        width: 170px;
    }

}

@media (max-width: 600px) {

    .mz-masthead {
        flex-direction: column;
        align-items: stretch;
    }

    .mz-search input {
        flex: 1;
        width: auto;
    }

    .mz-featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 340px 240px 240px;
    }

    .mz-featured-card:first-child {
        grid-row: span 1;
    }

    .mz-featured-overlay {
        padding: 45px 16px 16px;
    }

    .mz-section-heading h1,
    .mz-section-heading h2 {
        font-size: 21px;
    }

}

/* Motozoo 0.3.0 — original brand identity */
.mz-header { background: #fff; color: #151515; }
.mz-masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 280px); align-items: center; gap: 24px; padding-block: 12px; }
.mz-brand-logo { display: block; max-width: 340px; }
.mz-brand-logo img { display: block; width: 100%; height: auto; }
.mz-tagline { margin-top: 5px; color: #333; font-weight: 700; font-size: 11px; letter-spacing: .12em; }
.mz-mascots { display: flex; align-items: end; gap: 12px; }
.mz-mascots figure { margin: 0; text-align: center; }
.mz-mascots img { display: block; width: 86px; height: 92px; object-fit: contain; margin: auto; }
.mz-mascots figcaption { font-size: 11px; font-weight: 700; line-height: 1.3; }
.mz-search input { width: 100%; background: #f5f5f5; color: #151515; border: 1px solid #aaa; }
.mz-search button { flex-shrink: 0; }
.mz-navigation { background: #151515; color: white; }
.mz-navigation a:hover, .mz-navigation a:focus-visible { color: #ff777b; }
.mz-section-heading h1, .mz-section-heading h2, .mz-card h2, .mz-featured-overlay h2 { font-family: 'Arial Narrow', 'Liberation Sans Narrow', 'Roboto Condensed', Arial, sans-serif; font-weight: 800; }
.mz-featured-overlay .mz-category { color: #ff999c; }
.mz-featured-overlay a:hover { color: #fff; text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #bc171d; outline-offset: 3px; }
@media (max-width: 1050px) {
    .mz-masthead { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; }
    .mz-search { grid-column: 1 / -1; max-width: 420px; width: 100%; }
}
@media (max-width: 600px) {
    .mz-masthead { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .mz-brand-logo { max-width: 270px; margin: auto; }
    .mz-mascots img { width: 64px; height: 65px; }
    .mz-search { max-width: none; }
    .mz-navigation ul { gap: 10px 16px; }
}

/* Motozoo 0.4.0 — Editorial architecture */

body {
    background: #fff;
}

.mz-editorial-menu a[aria-current="page"] {
    color: #ff555b;
}

.mz-archive-header {
    padding: 24px 0;
    margin-bottom: 24px;
    border-bottom: 3px solid var(--mz-red);
}

.mz-archive-kicker {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .12em;
    color: var(--mz-red);
}

.mz-archive-header h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    margin: 12px 0;
}

.mz-archive-description {
    max-width: 800px;
    color: #555;
}

.mz-card {
    border: 1px solid #e5e5e5;
}

.pagination {
    margin-block: 35px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination .page-numbers {
    padding: 8px 15px;
    border: 1px solid #ddd;
}

.pagination .current {
    background: var(--mz-red);
    color: white;
    border-color: var(--mz-red);
}

@media (min-width: 1000px) {
    .mz-featured-grid {
        grid-template-rows: repeat(2, 210px);
    }
}

/* Motozoo v0.5.0 - Commercial infrastructure */

.mz-commercial {
    margin: 25px auto;
    text-align: center;
    max-width: 970px;
}

.mz-campaign {
    margin-bottom: 15px;
}

.mz-campaign:last-child {
    margin-bottom: 0;
}

.mz-campaign a {
    display: inline-block;
    max-width: 100%;
}

.mz-campaign img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

.mz-ad-label {
    color: #777;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 6px;
}


/* Motozoo 0.5.2 */
.mz-commercial-link { float: right; display: inline-block; color: #fff; background: #b91c24; padding: 8px 14px; font-weight: 700; text-decoration: none; margin: 4px; }
.mz-commercial-link:hover, .mz-commercial-link:focus { color: #fff; text-decoration: underline; }
@media(max-width: 600px) { .mz-commercial-link { float: none; } }

/* Motozoo 0.5.3 commercial presentation */
.mz-sales {color:#171717;background:#fff;line-height:1.65}
.mz-sales-wrap {width:min(92%,1100px);margin:auto;padding:36px 0;box-sizing:border-box}
.mz-sales-hero {background:#171717;color:#fff;border-bottom:5px solid #c71920}
.mz-sales-hero .mz-sales-wrap {padding:56px 0}
.mz-sales-kicker {color:#ff666b;font-weight:700;letter-spacing:.13em;font-size:13px}
.mz-sales h1 {font-size:clamp(34px,5vw,62px);line-height:1.1;margin:12px 0;color:#fff}
.mz-sales-lead {font-size:clamp(19px,3vw,29px);max-width:750px}
.mz-sales-stats {display:flex;gap:48px;flex-wrap:wrap;margin:30px 0}
.mz-sales-stats strong,.mz-sales-stats span {display:block}
.mz-sales-stats strong {font-size:38px;line-height:1.2}
.mz-sales-button {display:inline-block;background:#b91c24;color:#fff!important;text-decoration:none;padding:12px 20px;font-weight:700;border-radius:3px}
.mz-sales-button:hover,.mz-sales-button:focus {text-decoration:underline}
.mz-sales h2 {font-size:clamp(24px,3vw,32px);margin:28px 0 18px}
.mz-sales-grid,.mz-sales-formats {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.mz-sales-topic {background:#202020;color:#fff;min-height:90px;display:flex;flex-direction:column;justify-content:flex-end}
.mz-sales-topic img {width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.mz-sales-topic strong {padding:14px;font-size:20px}
.mz-sales-format {border:1px solid #ddd;padding:16px;display:flex;flex-direction:column;gap:12px;justify-content:space-between}
.mz-sales-banner {background:#eee;border:1px dashed #999;display:grid;place-items:center;min-height:45px;font-weight:700;color:#333}
.mz-sales-copy {max-width:850px;margin:40px auto;scroll-margin-top:20px;font-size:17px}
.mz-sales-download {background:#171717;color:#fff;padding:28px;margin:30px 0}
.mz-sales-download h2 {color:#fff;margin-top:0}
@media(max-width:600px){.mz-sales-grid,.mz-sales-formats{grid-template-columns:1fr}.mz-sales-stats{gap:24px}.mz-sales-hero .mz-sales-wrap{padding:32px 0}}

/* Motozoo 0.6.0 — reading experience */
.mz-reading{width:min(94%,1100px);margin:40px auto 64px;min-width:0}
.mz-reading-header,.mz-reading-body,.mz-reading-share,.mz-reading-comments{max-width:780px;margin-inline:auto}
.mz-reading-header h1{font-size:clamp(32px,5vw,60px);line-height:1.08;letter-spacing:-.025em;margin:14px 0 18px;overflow-wrap:anywhere}
.mz-reading-categories{font-size:12px;font-weight:700;text-transform:uppercase;color:#bf1820}
.mz-reading-categories a{color:inherit}
.mz-reading-meta{color:#666;font-size:14px;margin-bottom:24px}
.mz-reading-hero{margin:0 auto 30px;text-align:center}
.mz-reading-hero img{display:block;max-width:100%;height:auto;margin:auto}
.mz-reading-hero figcaption,.mz-reading-body figcaption,.mz-reading-body .wp-caption-text{font-size:13px;color:#666;line-height:1.5;margin:8px 0}
.mz-reading-body{font-size:18px;line-height:1.8;overflow-wrap:anywhere}
.mz-reading-body p{margin:0 0 1.35em}
.mz-reading-body h2,.mz-reading-body h3{line-height:1.2;margin:1.6em 0 .65em}
.mz-reading-body img,.mz-reading-body video{max-width:100%;height:auto}
.mz-reading-body iframe,.mz-reading-body .wp-caption,.mz-reading-body figure{max-width:100%}
.mz-reading-body pre{overflow:auto;max-width:100%}
.mz-reading-body table{display:block;overflow-x:auto;max-width:100%}
.mz-reading-body a{color:#a8151c;text-decoration:underline}
.mz-reading-body blockquote{border-left:4px solid #c71920;padding:8px 20px;margin:24px 0;background:#f6f6f6}
.mz-reading-share{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:22px 0;border-top:1px solid #ddd;border-bottom:1px solid #ddd;margin-top:32px}
.mz-reading-share a{border:1px solid #ddd;padding:8px 14px;font-size:14px}
.mz-reading-related{margin:48px 0}
.mz-reading-related h2,.mz-reading-comments h2{border-bottom:3px solid #c71920;padding-bottom:12px}
.mz-reading-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.mz-reading-card img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}
.mz-reading-card h3{font-size:20px;line-height:1.25;margin:10px 0}
.mz-comment-list{list-style:none;padding:0}.mz-comment-list .children{list-style:none;padding-left:18px}.mz-comment-list .comment-body{border-bottom:1px solid #ddd;padding:20px 0}.mz-reading-comments textarea,.mz-reading-comments input:not([type=checkbox]):not([type=submit]){box-sizing:border-box;width:100%;max-width:100%;border:1px solid #ccc;padding:10px}.mz-reading-comments label{display:block}.mz-reading-comments .submit{background:#c71920;color:white;border:0;padding:12px 20px;cursor:pointer}
@media(max-width:650px){.mz-reading{margin-top:24px}.mz-reading-body{font-size:17px;line-height:1.7}.mz-reading-grid{grid-template-columns:1fr}.mz-reading-header h1{font-size:34px}}

/* Motozoo 0.7.0 — compact mobile navigation */
.mz-mobile-toggle { display: none; }
@media (max-width: 650px) {
  .mz-header.mz-mobile-ready .mz-masthead { display: contents; }
  .mz-header.mz-mobile-ready { display: flex; flex-direction: column; }
  .mz-header.mz-mobile-ready .mz-brand { order: 0; padding: 12px 8px; text-align: center; }
  .mz-header.mz-mobile-ready .mz-brand-logo { max-width: 235px; margin: auto; }
  .mz-header.mz-mobile-ready .mz-tagline { font-size: 10px; }
  .mz-header.mz-mobile-ready .mz-navigation { order: 1; }
  .mz-header.mz-mobile-ready .mz-navigation > .mz-container { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-block: 4px; }
  .mz-header.mz-mobile-ready .mz-mobile-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #777; border-radius: 3px; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
  .mz-header.mz-mobile-ready .mz-commercial-link { margin: 0 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
  .mz-header.mz-mobile-ready .mz-editorial-menu { flex: 0 0 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; margin: 0; list-style: none; }
  .mz-header.mz-mobile-ready .mz-editorial-menu li { margin: 0; }
  .mz-header.mz-mobile-ready .mz-editorial-menu a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; box-sizing: border-box; }
  .mz-header.mz-mobile-ready .mz-mascots { order: 2; justify-content: center; padding: 12px 8px 0; }
  .mz-header.mz-mobile-ready .mz-search { order: 3; width: 94%; max-width: none; margin: 12px auto; }
  .mz-header.mz-mobile-ready .mz-search input { min-width: 0; font-size: 16px; }
  .mz-header.mz-mobile-ready:not(.mz-mobile-open) .mz-editorial-menu,
  .mz-header.mz-mobile-ready:not(.mz-mobile-open) .mz-mascots,
  .mz-header.mz-mobile-ready:not(.mz-mobile-open) .mz-search { display: none; }
  .mz-reading { width: 92%; }
  .mz-reading-header h1 { font-size: clamp(28px, 8vw, 36px); }
  .mz-reading-share a { min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
  .mz-reading-comments input, .mz-reading-comments textarea { font-size: 16px; }
  .mz-reading-body .alignleft, .mz-reading-body .alignright { float: none; margin-inline: auto; max-width: 100%; }
}

/* Motozoo 0.9.2 — institutional footer */
.mz-institutional-footer { background:#171717; color:#eee; border-top:4px solid #c71920; margin-top:48px; padding:36px 0 0; }
.mz-institutional-grid { display:grid; grid-template-columns:1.25fr 1fr 1fr 1.1fr; gap:32px; align-items:start; }
.mz-institutional-footer h2 { font-size:17px; line-height:1.35; color:white; margin:0 0 16px; }
.mz-institutional-footer p { font-size:14px; line-height:1.6; color:#ddd; margin:10px 0; }
.mz-institutional-footer ul { list-style:none; margin:0; padding:0; }
.mz-institutional-footer li { margin:0 0 8px; }
.mz-institutional-footer a { color:#eee; text-decoration:none; font-size:14px; overflow-wrap:anywhere; }
.mz-institutional-footer a:hover,.mz-institutional-footer a:focus-visible { text-decoration:underline; }
.mz-institutional-brand img { display:block; width:100%; max-width:240px; height:auto; background:white; padding:8px; box-sizing:border-box; }
.mz-institutional-footer .mz-footer-cta { display:inline-block; padding:12px 15px; background:#b91c24; color:white; font-weight:700; }
.mz-institutional-bottom { display:flex; justify-content:space-between; gap:12px; border-top:1px solid #555; margin-top:28px; padding-block:20px; font-size:13px; color:#ddd; }
.mz-author-bio { max-width:780px; font-size:17px; line-height:1.65; }
@media(max-width:950px){.mz-institutional-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:550px){.mz-institutional-grid{grid-template-columns:1fr;gap:24px}.mz-institutional-bottom{flex-wrap:wrap}.mz-institutional-footer a{line-height:1.7}}

/* Motozoo v0.9.4 — Legacy content compatibility */

.mz-reading-body {
    overflow-wrap: anywhere;
    min-width: 0;
}

.mz-reading-body img {
    max-width: 100% !important;
    height: auto !important;
}

.mz-reading-body figure,
.mz-reading-body .wp-caption {
    max-width: 100% !important;
    margin-inline: auto;
}

.mz-reading-body iframe,
.mz-reading-body embed,
.mz-reading-body object,
.mz-reading-body video {
    max-width: 100% !important;
}

.mz-reading-body iframe[src*="youtube.com"],
.mz-reading-body iframe[src*="youtube-nocookie.com"],
.mz-reading-body iframe[src*="youtu.be"],
.mz-reading-body iframe[src*="vimeo.com"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

.mz-reading-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.mz-reading-body td,
.mz-reading-body th {
    padding: 8px;
    border: 1px solid #ddd;
}

.mz-reading-body pre {
    max-width: 100%;
    overflow-x: auto;
}

.mz-reading-body blockquote {
    border-left: 4px solid #c71920;
    padding: 12px 20px;
    margin: 24px 0;
    background: #f5f5f5;
}

.mz-reading-body .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
}

.mz-reading-body .gallery-item {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.mz-reading-body .gallery img {
    border: 0 !important;
}

.mz-reading-body figcaption,
.mz-reading-body .wp-caption-text,
.mz-reading-body .gallery-caption {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    text-align: center;
}

@media (max-width: 650px) {
    .mz-reading-body .alignleft,
    .mz-reading-body .alignright {
        float: none !important;
        display: block;
        margin: 16px auto !important;
    }
}

