body.czali-page .entry-header,
body.czali-page .page-header,
body.czali-page .entry-title,
body.czali-page .page-title,
body.czali-page .wp-block-post-title,
body.czali-page .hero-page-title {
    display: none !important;
}

body.czali-page #content,
body.czali-page .site-content,
body.czali-page .content-area,
body.czali-page #primary,
body.czali-page .site-main,
body.czali-page main.site-main,
body.czali-page article.page,
body.czali-page .inside-article,
body.czali-page .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.czali-page .entry-content > *:first-child,
body.czali-page .inside-article > *:first-child {
    margin-top: 0 !important;
}

.czali-app {
    width: min(1160px, calc(100% - 28px));
    margin: 0 auto 64px;
    color: #172033;
    font-size: 16px;
    line-height: 1.68;
}

.czali-app *, .czali-app *::before, .czali-app *::after { box-sizing: border-box; }
.czali-breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 4px 0 10px; color: #667085; font-size: 13px; }
.czali-breadcrumb a { color: #3157b7; text-decoration: none; }

.czali-hero {
    padding: 30px 34px;
    border: 1px solid #dfe5ef;
    border-radius: 20px;
    background: linear-gradient(135deg, #f7f9ff 0%, #fff 54%, #f4f7ff 100%);
    box-shadow: 0 12px 38px rgba(15, 23, 42, .06);
}
.czali-eyebrow { margin: 0 0 8px !important; color: #3157b7; font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.czali-hero h1 { max-width: 980px; margin: 0 0 15px; color: #0e1b33; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; letter-spacing: -.04em; }
.czali-hero > p:last-child { max-width: 970px; margin: 0; color: #4b5b73; font-size: 17px; }

.czali-tool, .czali-catalog, .czali-related, .czali-faq {
    margin-top: 24px;
    padding: 28px;
    border: 1px solid #e0e6ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .045);
}
.czali-tool-heading { margin-bottom: 20px; }
.czali-tool-heading h2, .czali-related h2, .czali-faq > h2 { margin: 0 0 7px; color: #111827; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.czali-tool-heading p { margin: 0; color: #667085; }

.czali-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.czali-fields label, .czali-filters label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 750; }
.czali-fields input, .czali-fields select, .czali-filters input, .czali-filters select {
    width: 100%; min-height: 46px; margin: 0; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #172033; font: inherit; font-size: 15px; box-shadow: none;
}
.czali-fields input:focus, .czali-fields select:focus, .czali-filters input:focus, .czali-filters select:focus { border-color: #3157b7; outline: 3px solid rgba(49, 87, 183, .14); }
.czali-button { min-height: 50px; margin-top: 20px; padding: 12px 22px; border: 0; border-radius: 11px; background: #234aa5; color: #fff; font-size: 15px; font-weight: 850; cursor: pointer; box-shadow: 0 8px 18px rgba(35, 74, 165, .2); }
.czali-button:hover, .czali-button:focus { background: #183b8c; }

.czali-result { margin-top: 24px; padding: 25px; border: 1px solid #bfd0ff; border-radius: 15px; background: #f7f9ff; }
.czali-result[hidden] { display: none !important; }
.czali-result-head { margin-bottom: 18px; padding: 2px 0; }
.czali-result-label { margin: 0 0 4px; color: #3157b7; font-size: 12px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.czali-result-head h3 { margin: 0 0 7px; color: #0f1f3a; font-size: clamp(24px, 3vw, 31px); line-height: 1.2; }
.czali-result-head p:last-child { margin: 0; color: #526177; }
.czali-result-head.is-good { border-left: 5px solid #0f9f6e; padding-left: 15px; }
.czali-result-head.is-warn { border-left: 5px solid #d98b00; padding-left: 15px; }
.czali-result-head.is-risk { border-left: 5px solid #d45a13; padding-left: 15px; }
.czali-result-head.is-bad { border-left: 5px solid #c83b3b; padding-left: 15px; }

.czali-metrics, .czali-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.czali-metrics > div, .czali-stats > div { min-width: 0; padding: 16px; border: 1px solid #e0e6ef; border-radius: 12px; background: #fff; }
.czali-metrics span, .czali-stats span { display: block; margin-bottom: 5px; color: #667085; font-size: 12px; }
.czali-metrics strong, .czali-stats strong { display: block; color: #111827; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.czali-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 15px; }
.czali-result-grid > div { padding: 17px; border: 1px solid #e0e6ef; border-radius: 12px; background: #fff; }
.czali-result-grid h4 { margin: 0 0 6px; color: #1f2937; }
.czali-result-grid p { margin: 0; color: #526177; }
.czali-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.czali-compare-grid article { padding: 19px; border: 1px solid #e0e6ef; border-radius: 12px; background: #fff; }
.czali-compare-grid h4 { margin: 0 0 5px; font-size: 20px; }
.czali-compare-grid p { margin: 6px 0 0; color: #667085; }
.czali-note { margin: 15px 0 0; padding: 13px 15px; border-radius: 9px; background: #edf3ff; color: #475467; font-size: 14px; }
.czali-match-title { margin: 24px 0 12px; font-size: 22px; }

.czali-recommendations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.czali-recommendations article { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; padding: 16px; border: 1px solid #e0e6ef; border-radius: 12px; background: #fff; }
.czali-rec-image { display: grid; place-items: center; width: 100px; height: 100px; padding: 6px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; color: #3157b7; font-weight: 800; }
.czali-rec-image img { width: 100%; height: 100%; object-fit: contain; }
.czali-recommendations h4 { margin: 0 0 5px; color: #1f2937; font-size: 15px; line-height: 1.35; }
.czali-recommendations p { margin: 0 0 10px; color: #667085; font-size: 13px; }
.czali-recommendations .czali-match-badge { display: inline-block; margin: 0 0 8px; padding: 5px 8px; border-radius: 999px; background: #eef2ff; color: #3847a6; font-size: 11px; font-weight: 800; line-height: 1.25; }
.czali-recommendations .czali-match-badge.is-good { background: #eaf8ef; color: #176b3a; }
.czali-recommendations .czali-match-badge.is-warn { background: #fff4dd; color: #8a4b08; }
.czali-recommendations .czali-match-badge.is-near { background: #eef2ff; color: #3847a6; }
.czali-recommendations a, .czali-product-footer a { color: #234aa5; font-weight: 800; text-decoration: none; }

.czali-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 13px; margin: 20px 0; }
.czali-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.czali-product-card { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-width: 0; border: 1px solid #dfe5ed; border-radius: 15px; background: #fff; overflow: hidden; }
.czali-product-card[hidden] { display: none !important; }
.czali-product-image { display: grid; place-items: center; min-height: 190px; padding: 16px; background: #f7f9fc; color: #3157b7; font-size: 20px; font-weight: 850; }
.czali-product-image img { width: 100%; height: 160px; object-fit: contain; }
.czali-product-body { min-width: 0; padding: 18px; }
.czali-product-kicker { margin: 0 0 5px; color: #3157b7; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.czali-product-body h3 { margin: 0 0 8px; color: #172033; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.czali-specs { margin: 0 0 17px; color: #667085; font-size: 14px; }
.czali-product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.czali-product-footer strong { color: #111827; font-size: 20px; }
.czali-empty { grid-column: 1 / -1; padding: 20px; border: 1px dashed #cbd5e1; border-radius: 12px; color: #667085; }

.czali-steps { display: grid; gap: 11px; margin: 0; padding-left: 22px; }
.czali-steps li { padding: 12px 15px; border: 1px solid #e0e6ef; border-radius: 10px; background: #f9fbff; }
.czali-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.czali-content-card { padding: 23px; border: 1px solid #e0e6ef; border-radius: 16px; background: #fff; }
.czali-content-card h2 { margin: 0 0 10px; color: #111827; font-size: 20px; line-height: 1.3; }
.czali-content-card p { margin: 0; color: #526177; }
.czali-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.czali-related-grid a { padding: 13px 15px; border: 1px solid #e0e6ef; border-radius: 10px; color: #234aa5; font-weight: 750; text-decoration: none; background: #fafcff; }
.czali-faq details { border-top: 1px solid #e5e7eb; }
.czali-faq details:first-of-type { border-top: 0; }
.czali-faq summary { padding: 16px 2px; color: #172033; font-weight: 800; cursor: pointer; }
.czali-faq details p { margin: -4px 0 17px; color: #526177; }

@media (max-width: 900px) {
    .czali-fields, .czali-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .czali-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .czali-product-grid { grid-template-columns: 1fr; }
    .czali-metrics, .czali-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .czali-app { width: min(100% - 18px, 1160px); }
    .czali-hero, .czali-tool, .czali-catalog, .czali-related, .czali-faq { padding: 20px; border-radius: 14px; }
    .czali-hero h1 { font-size: 34px; }
    .czali-fields, .czali-content-grid, .czali-related-grid, .czali-result-grid, .czali-compare-grid, .czali-recommendations, .czali-filters { grid-template-columns: 1fr; }
    .czali-product-card { grid-template-columns: 108px minmax(0, 1fr); }
    .czali-product-image { min-height: 150px; padding: 10px; }
    .czali-product-image img { height: 125px; }
    .czali-product-body { padding: 14px; }
    .czali-product-footer { align-items: flex-start; flex-direction: column; }
    .czali-recommendations article { grid-template-columns: 82px minmax(0, 1fr); }
    .czali-rec-image { width: 82px; height: 82px; }
}

/* Phase Two: deployment, storage and cost tools */
.czali-checklist { margin-top: 16px; padding: 18px; border: 1px solid #dfe5ef; border-radius: 12px; background: #fff; }
.czali-checklist h4 { margin: 0 0 10px; color: #1f2937; }
.czali-checklist ul, .czali-checklist ol { display: grid; gap: 8px; margin: 0; padding-left: 22px; color: #526177; }
.czali-checklist .is-warning { color: #9a4d09; font-weight: 700; }
.czali-three-way { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.czali-storage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.czali-storage-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; min-width: 0; padding: 16px; border: 1px solid #dfe5ed; border-radius: 14px; background: #fff; }
.czali-storage-image { display: grid; place-items: center; min-height: 128px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fbff; color: #3157b7; font-weight: 850; text-decoration: none; }
.czali-storage-image img { width: 100%; height: 112px; object-fit: contain; }
.czali-storage-card h3 { margin: 0 0 7px; color: #172033; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.czali-storage-card p { margin: 0 0 9px; color: #667085; }
.czali-storage-card a { color: #234aa5; font-weight: 800; text-decoration: none; }

@media (max-width: 900px) {
    .czali-three-way { grid-template-columns: 1fr; }
    .czali-storage-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .czali-storage-card { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 13px; }
    .czali-storage-image { min-height: 92px; padding: 6px; }
    .czali-storage-image img { height: 80px; }
}

/* v1.2.0: Mac mini AI price tracker authority layout */
.czali-tracker-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.czali-tracker-heading > div { min-width: 0; }
.czali-updated { max-width: 310px; padding: 10px 13px; border: 1px solid #dce4ef; border-radius: 10px; background: #f8faff; color: #526177 !important; font-size: 13px; }
.czali-updated strong { display: block; color: #23314b; }
.czali-market-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.czali-price-subsection { margin-top: 30px; padding-top: 28px; border-top: 1px solid #e5eaf1; }
.czali-deal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.czali-deal-card { min-width: 0; padding: 17px; border: 1px solid #dfe5ed; border-radius: 14px; background: #fff; }
.czali-deal-label { display: inline-block; margin: 0 0 11px; padding: 5px 9px; border-radius: 999px; background: #edf3ff; color: #234aa5; font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.czali-deal-product { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 14px; align-items: start; }
.czali-deal-image { display: grid; place-items: center; width: 94px; height: 94px; padding: 7px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fbff; color: #3157b7; font-size: 12px; font-weight: 800; text-decoration: none; }
.czali-deal-image img { width: 100%; height: 100%; object-fit: contain; }
.czali-deal-card h3 { margin: 0 0 6px; color: #172033; font-size: 16px; line-height: 1.35; }
.czali-deal-card p:not(.czali-deal-label) { margin: 0 0 8px; color: #667085; font-size: 13px; }
.czali-deal-card a { color: #234aa5; font-weight: 800; text-decoration: none; }
.czali-table-wrap { overflow-x: auto; border: 1px solid #dfe5ed; border-radius: 13px; background: #fff; }
.czali-price-table { width: 100%; min-width: 820px; border-collapse: collapse; color: #344054; font-size: 14px; }
.czali-price-table th, .czali-price-table td { padding: 14px 15px; border-bottom: 1px solid #e8edf3; text-align: left; vertical-align: top; }
.czali-price-table th { background: #f7f9fc; color: #1f2937; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.czali-price-table tr:last-child td { border-bottom: 0; }
.czali-price-table td span { display: block; margin-top: 3px; color: #667085; font-size: 12px; }
.czali-price-table a { color: #234aa5; font-weight: 850; text-decoration: none; }
.czali-muted { color: #7a8699 !important; }
.czali-memory-price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.czali-memory-price-grid article { padding: 16px; border: 1px solid #dfe5ed; border-radius: 12px; background: #fafdff; }
.czali-memory-price-grid span { display: block; color: #667085; font-size: 12px; }
.czali-memory-price-grid strong { display: block; margin: 3px 0; color: #111827; font-size: 21px; }
.czali-memory-price-grid p { margin: 0; color: #526177; font-size: 13px; }
.czali-price-filters { grid-template-columns: 2fr repeat(6, minmax(130px, 1fr)) auto; align-items: end; }
.czali-filter-reset { min-height: 46px; padding: 10px 15px; border: 1px solid #b9c5d6; border-radius: 10px; background: #fff; color: #30415c; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.czali-filter-reset:hover, .czali-filter-reset:focus { border-color: #3157b7; color: #234aa5; }
.czali-visible-count { margin: -5px 0 17px; color: #667085; font-size: 13px; }
.czali-price-card { grid-template-columns: 155px minmax(0, 1fr); }
.czali-price-card .czali-product-image { text-decoration: none; }
.czali-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.czali-card-badges span { padding: 4px 7px; border-radius: 999px; background: #eef3fb; color: #31527d; font-size: 10px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.czali-price-card .czali-product-body h3 { margin-bottom: 5px; font-size: 18px; }
.czali-listing-title { display: -webkit-box; overflow: hidden; margin: 0 0 13px; color: #667085; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.czali-card-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 14px; }
.czali-card-metrics span { padding: 8px; border: 1px solid #e5eaf1; border-radius: 8px; background: #fafcff; color: #6b7280; font-size: 10px; line-height: 1.3; }
.czali-card-metrics strong { display: block; margin-bottom: 2px; color: #23314b; font-size: 12px; }
.czali-price-card .czali-product-footer > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.czali-discount { padding: 4px 7px; border-radius: 999px; background: #eaf8ef; color: #176b3a; font-size: 10px; font-weight: 850; }
.czali-checked { margin: 10px 0 0; color: #8a94a6; font-size: 11px; }
.czali-methodology { margin-top: 30px; padding: 23px; border: 1px solid #dfe5ed; border-radius: 14px; background: #f8faff; }
.czali-methodology h2 { margin: 0 0 9px; color: #172033; font-size: 23px; }
.czali-methodology p { margin: 8px 0 0; color: #526177; }

@media (max-width: 1180px) {
    .czali-market-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .czali-price-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .czali-memory-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .czali-tracker-heading { display: block; }
    .czali-updated { max-width: none; margin-top: 14px !important; }
    .czali-deal-grid { grid-template-columns: 1fr; }
    .czali-memory-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .czali-price-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .czali-card-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .czali-market-stats, .czali-memory-price-grid, .czali-price-filters { grid-template-columns: 1fr; }
    .czali-price-card { grid-template-columns: 105px minmax(0, 1fr); }
    .czali-deal-product { grid-template-columns: 78px minmax(0, 1fr); }
    .czali-deal-image { width: 78px; height: 78px; }
}
