/* AutomotiveZones tag archive page. Header and footer remain in layouts.app. */
.az-tag-shell {
    width: min(1200px, calc(100% - 36px));
    margin: 20px auto 56px;
    color: #152337;
}

.az-tag-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 26px;
    margin: 0 0 10px;
    color: #778394;
    font-size: 11px;
}
.az-tag-breadcrumb a {
    color: #ed6b12;
    text-decoration: none;
    font-weight: 750;
}

.az-tag-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(285px, 1fr);
    gap: 20px;
    align-items: start;
}
.az-tag-main { display: grid; gap: 20px; min-width: 0; }

.az-tag-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 122px;
    overflow: hidden;
    padding: 20px 27px;
    border-radius: 11px;
    background: linear-gradient(105deg, #082440 0%, #123957 68%, #1c4562 100%);
    color: #fff;
}
.az-tag-hero__copy { position: relative; z-index: 2; max-width: 76%; }
.az-tag-hero__copy > span {
    color: #ff7b18;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}
.az-tag-hero h1 {
    margin: 5px 0 4px;
    color: #fff;
    font-size: clamp(26px, 3vw, 35px);
    line-height: 1.12;
    font-weight: 850;
}
.az-tag-hero p { margin: 0; color: #edf4fa; font-size: 13px; line-height: 1.45; }
.az-tag-hero__art {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 43%;
    background-image: linear-gradient(90deg, #123957 0%, rgba(18,57,87,.35) 45%, rgba(18,57,87,.05) 100%), url('../images/brand/automotivezones-masthead.webp');
    background-size: cover;
    background-position: center 52%;
    opacity: .75;
}

.az-tag-results { min-width: 0; }
.az-tag-results__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e1e6eb;
}
.az-tag-results__heading h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #16243a;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 850;
}
.az-tag-results__heading h2 > span {
    width: 6px;
    height: 20px;
    border-radius: 2px;
    background: #f36b12;
    transform: skew(-18deg);
}
.az-tag-results__heading h2 strong { color: #ec6812; }
.az-tag-results__heading small { color: #7b8796; font-size: 10px; white-space: nowrap; }

.az-tag-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}
.az-tag-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: auto;
    overflow: hidden;
    border: 1px solid #e1e6ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(15,23,42,.055);
}
.az-tag-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8edf1;
    text-decoration: none;
}
.az-tag-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.az-tag-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #718096; font-size: 13px; font-weight: 850; }
.az-tag-card__copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 10px 11px 11px; }
.az-tag-card__category { color: #ef6811; font-size: 9px; line-height: 1.2; font-weight: 900; text-transform: uppercase; }
.az-tag-card__copy h3 { margin: 5px 0 5px; color: #14233a; font-size: 13px; line-height: 1.28; font-weight: 850; }
.az-tag-card__copy h3 a { color: inherit; text-decoration: none; }
.az-tag-card__copy h3 a:hover { color: #e8640d; }
.az-tag-card__copy p { margin: 0 0 8px; color: #5c6876; font-size: 10.5px; line-height: 1.42; }
.az-tag-card__copy time { display: flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 5px; color: #7d8998; font-size: 9px; }

.az-tag-pagination { display: flex; justify-content: center; margin-top: 18px; }
.az-tag-pagination nav { display: flex; justify-content: center; }
.az-tag-pagination a, .az-tag-pagination span[aria-current="page"] span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    min-height: 31px;
    margin: 0 2px;
    padding: 5px 9px;
    border: 1px solid #dfe5eb;
    border-radius: 7px;
    background: #fff;
    color: #24364b;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}
.az-tag-pagination span[aria-current="page"] span { border-color: #f36b12; background: #f36b12; color: #fff; }
.az-tag-empty { padding: 40px 20px; border: 1px solid #e3e8ed; border-radius: 10px; background: #fff; text-align: center; }
.az-tag-empty h2 { margin: 0 0 7px; color: #192b40; font-size: 20px; }
.az-tag-empty p { color: #667487; font-size: 13px; }
.az-tag-empty a { color: #ed6b12; font-weight: 800; text-decoration: none; }

/* Tag archive sidebar uses its own namespace; global article/sidebar components are untouched. */
.az-tag-sidebar { display: grid; gap: 14px; min-width: 0; }
.az-tag-sidebar-panel { min-width: 0; padding: 14px; border: 1px solid #e2e7ed; border-radius: 11px; background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.045); }
.az-tag-sidebar-heading { display: flex; align-items: center; gap: 9px; min-height: 34px; margin-bottom: 9px; padding: 0 2px 8px; border-bottom: 1px solid #f1c7ac; }
.az-tag-sidebar-heading > span { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #f36b12; color: #fff; font-size: 14px; font-weight: 900; }
.az-tag-sidebar-heading h2 { margin: 0; color: #172337; font-size: 16px; line-height: 1.2; font-weight: 900; text-transform: uppercase; }
.az-tag-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.az-tag-tool-card { display: flex; min-width: 0; min-height: 65px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 3px; border: 1px solid #e6ebf0; border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.06); color: #172337; text-align: center; text-decoration: none; }
.az-tag-tool-card > span { color: #f36b12; font-size: 22px; line-height: 1; font-weight: 850; }
.az-tag-tool-card strong { font-size: 9px; line-height: 1.18; font-weight: 850; }
.az-tag-tool-card:hover { border-color: #f36b12; }
.az-tag-tools-all { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; margin-top: 8px; border-radius: 8px; background: #f36b12; color: #fff; font-size: 11px; font-weight: 850; text-decoration: none; }
.az-tag-tools-all:hover { background: #df5907; }
.az-tag-popular-list { display: grid; }
.az-tag-popular-item { position: relative; display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 9px; align-items: start; min-width: 0; padding: 7px 0; border-bottom: 1px solid #edf0f3; color: #18283b; text-decoration: none; }
.az-tag-popular-item:last-child { padding-bottom: 0; border-bottom: 0; }
.az-tag-popular-item img, .az-tag-popular-placeholder { display: block; width: 74px; height: 53px; border-radius: 5px; object-fit: cover; background: #edf1f4; }
.az-tag-popular-rank { position: absolute; z-index: 1; top: 7px; left: 0; display: grid; width: 21px; height: 22px; place-items: center; border-radius: 3px 0 5px 0; background: #ef351f; color: #fff; font-size: 12px; font-weight: 900; }
.az-tag-popular-item strong { display: block; min-width: 0; font-size: 10px; line-height: 1.32; font-weight: 850; }
.az-tag-popular-item:hover strong { color: #e8640d; }
.az-tag-sidebar-empty { margin: 4px 0; color: #718096; font-size: 11px; }
.az-tag-category-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.az-tag-category-cloud a { display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid #d9edf3; border-radius: 18px; background: #edf9fc; color: #243b50; font-size: 9px; font-weight: 750; text-decoration: none; }
.az-tag-category-cloud a:hover { border-color: #f36b12; background: #fff4eb; color: #e8640d; }

@media (max-width: 1050px) {
    .az-tag-layout { grid-template-columns: minmax(0, 1fr) 285px; gap: 15px; }
    .az-tag-grid { gap: 10px; }
    .az-tag-card__copy h3 { font-size: 12px; }
}
@media (max-width: 900px) {
    .az-tag-layout { grid-template-columns: 1fr; }
    .az-tag-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }
    .az-tag-category-panel { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .az-tag-shell { width: calc(100% - 24px); margin-top: 13px; }
    .az-tag-hero { min-height: 116px; padding: 17px; }
    .az-tag-hero__copy { max-width: 100%; }
    .az-tag-hero__art { width: 58%; opacity: .28; }
    .az-tag-hero h1 { font-size: 26px; }
    .az-tag-hero p { max-width: 88%; font-size: 11px; }
    .az-tag-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
    .az-tag-card__copy { padding: 8px; }
    .az-tag-card__copy h3 { font-size: 11px; }
    .az-tag-card__copy p { font-size: 9.5px; }
    .az-tag-sidebar { grid-template-columns: 1fr; }
    .az-tag-category-panel { grid-column: auto; }
}
@media (max-width: 390px) {
    .az-tag-grid { grid-template-columns: 1fr; }
}
