/* Heat Levels overview hub (templates/hub-heat-overview.php). UI v2 inline-style cleanup.
   Part 1 is the old <style> block of the template, moved verbatim. Part 2 replaces every inline style and
   onmouseover/onmouseout handler of the template with ho-* classes; selectors start with `.ho-page` (body class
   set by the template) so they outrank the legacy cascade the inline styles used to beat. Per-tier colours arrive
   as custom properties on the element (--ho-c colour, --ho-bg tint, --ho-bd border, --ho-c15/c30/c40 alpha tints
   as 8-digit hex built in PHP). Part 3 restates the type that readability.css forced through [style*="..."]. */

.heat-hero {
    padding: 48px 0 32px;
    text-align: center;
    position: relative;
}
.heat-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(185,28,28,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.heat-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 900;
    color: var(--dark);
    margin: 0 0 20px;
    line-height: 1.05;
}
.heat-hero__title em {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--red);
}

/* Spectrum Bar */
.spectrum-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 20px;
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.spectrum-bar {
    display: flex;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.spectrum-bar a {
    transition: all .3s;
}
.spectrum-bar a:hover {
    filter: brightness(1.1);
    transform: scaleY(1.2);
}
.spectrum-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-light);
    font-weight: 600;
}

/* Featured Pepper Spotlight */
.heat-spotlight {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 24px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    overflow: hidden;
    position: relative;
}
@media (max-width: 900px) {
    .heat-spotlight { grid-template-columns: 1fr; padding: 32px; }
}
.heat-spotlight__decor {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(220,38,38,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Tier Quick Nav Grid */
.tier-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .tier-nav { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .tier-nav { grid-template-columns: repeat(2, 1fr); } }
.tier-card {
    background: var(--white);
    border: 2px solid var(--gray-border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    transition: all .25s;
    cursor: pointer;
    display: block;
}
.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.tier-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.tier-card__icon .ktp-icon {
    font-size: 26px;
}
.tier-card__name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}
.tier-card__range {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 12px;
}
.tier-card__count {
    font-size: 11px;
    padding: 4px 12px;
    background: var(--warm-bg);
    border-radius: 20px;
    font-weight: 700;
}

/* Tier Section */
.tier-section {
    padding: 56px 0;
}
.tier-section--alt {
    background: var(--warm-bg);
}
.tier-section__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}
.tier-section__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}
.tier-section__line {
    flex: 1;
    height: 1px;
}

/* Premium Pepper Card */
.pep-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all .3s;
    box-shadow: 0 4px 12px rgba(0,0,0,.03);
}
.pep-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.pep-card__img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--warm-bg);
}
.pep-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.pep-card:hover .pep-card__img img {
    transform: scale(1.05);
}
.pep-card__img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pep-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.pep-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.pep-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid var(--gray-border);
}

/* Pepper Grid */
.pepper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Methodology Card */
.method-card {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 20px;
    padding: 40px;
}
.method-card__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.method-card__item h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
h2 > .ktp-icon { margin-right: 8px; vertical-align: middle; }
.method-card__item h3 .ktp-icon {
    font-size: 20px;
}
.method-card__item p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
}

/* Tool Row */
.tool-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .tool-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tool-row { grid-template-columns: 1fr; } }
.tool-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--gray-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all .25s;
}
.tool-card:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* Heat Classification Table */
.heat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.heat-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    color: var(--dark);
    border-bottom: 2px solid var(--gray-border);
}
.heat-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-border);
}
.heat-table tr:hover td {
    background: var(--warm-bg);
}

/* ===== Part 2: classes that replace the inline styles (ho-*) ===== */
.ho-page .ho-top { padding-bottom: 0; }
.ho-page .ho-hero-in { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.ho-page .ho-kick { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--red); margin-bottom: 16px; }
.ho-page .ho-lead { font-size: 18px; color: var(--gray); max-width: 680px; margin: 0 auto 36px; line-height: 1.7; }
.ho-page .ho-sec { padding-top: 0; padding-bottom: 48px; }
.ho-page .ho-sec-flat { padding-top: 0; padding-bottom: 0; }
.ho-page .ho-sec-method { padding-top: 48px; padding-bottom: 32px; }
.ho-page .ho-spec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ho-page .ho-spec-title { font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--dark); }
.ho-page .ho-seg { background: var(--ho-c); }
.ho-page .ho-seg--1 { flex: 1; }
.ho-page .ho-seg--2 { flex: 2; }
.ho-page .ho-seg--3 { flex: 3; }

/* Spotlight */
.ho-page .heat-spotlight { border-color: var(--ho-bd); }
.ho-page .heat-spotlight__decor { background: radial-gradient(circle, var(--ho-c15) 0%, transparent 70%); }
.ho-page .ho-spot-body { position: relative; z-index: 1; }
.ho-page .ho-spot-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; background: white; border: 1px solid var(--ho-c); border-radius: 20px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ho-c); margin-bottom: 20px; }
.ho-page .ho-spot-title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: var(--dark); margin: 0 0 12px; line-height: 1.15; }
.ho-page .ho-spot-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.ho-page .ho-spot-shu { font-family: var(--font-body); font-size: 16px; color: var(--ho-c); font-weight: 700; }
.ho-page .ho-spot-tier { padding: 4px 12px; background: var(--ho-c); color: white; border-radius: 20px; font-size: 11px; font-weight: 700; }
.ho-page .ho-spot-text { font-size: 16px; color: var(--gray); line-height: 1.7; margin: 0 0 24px; max-width: 440px; }
.ho-page .ho-spot-cta { display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; background: var(--ho-c); color: white; border-radius: 12px; font-family: var(--font-heading); font-size: 16px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 20px var(--ho-c40); transition: all .25s; }
.ho-page .ho-spot-prev { display: flex; justify-content: center; }
.ho-page .ho-spot-frame { background: white; border: 1px solid var(--gray-border); border-radius: 20px; overflow: hidden; width: 320px; box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.ho-page .ho-spot-img-wrap { height: 180px; overflow: hidden; }
.ho-page .ho-spot-img { width: 100%; height: 100%; object-fit: cover; }
.ho-page .ho-spot-fallback { height: 180px; background: var(--ho-bg); display: flex; align-items: center; justify-content: center; }
.ho-page .ho-spot-info { padding: 20px; }
.ho-page .ho-spot-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 12px; }
.ho-page .ho-spot-key { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray); margin-bottom: 4px; }
.ho-page .ho-spot-origin { font-family: var(--font-heading); font-size: 14px; font-weight: 700; }
.ho-page .ho-right { text-align: right; }
.ho-page .ho-spot-species { font-size: 13px; font-style: italic; color: var(--dark); }
.ho-page .ho-spot-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ho-page .ho-spot-flav { font-size: 10px; padding: 4px 10px; background: var(--warm-bg); border-radius: 20px; color: var(--gray); font-weight: 600; }

/* Section headings */
.ho-page .ho-head-32 { text-align: center; margin-bottom: 32px; }
.ho-page .ho-head-24 { text-align: center; margin-bottom: 24px; }
.ho-page .ho-h2-lg { font-family: var(--font-heading); font-size: clamp(26px, 4vw, 36px); font-weight: 900; color: var(--dark); margin: 8px 0 0; }
.ho-page .ho-h2-md { font-family: var(--font-heading); font-size: clamp(24px, 4vw, 32px); font-weight: 900; color: var(--dark); margin: 8px 0 0; }

/* Tier quick-nav (the onmouseover handler became :hover) */
.ho-page .tier-card { border-color: var(--ho-bd); }
.ho-page .tier-card:hover { border-color: var(--ho-c); }
.ho-page .tier-card__icon { background: var(--ho-bg); border: 1px solid var(--ho-bd); }
.ho-page .tier-card__name { color: var(--ho-c); }
.ho-page .tier-card__count { color: var(--ho-c); }

/* Tier sections */
.ho-page .tier-section__dot { background: var(--ho-c); }
.ho-page .ho-tier-h2 { font-family: var(--font-heading); font-size: 28px; font-weight: 900; color: var(--dark); margin: 0; cursor: pointer; }
.ho-page .ho-tier-range { font-size: 13px; color: var(--gray-light); background: var(--warm-bg); padding: 4px 12px; border-radius: 8px; font-weight: 600; }
.ho-page .tier-section__line { background: linear-gradient(90deg, var(--ho-c30), transparent); }
.ho-page .ho-tier-full { font-size: 13px; color: var(--ho-c); text-decoration: none; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.ho-page .ho-tier-desc { font-size: 15px; color: var(--gray); margin: 0 0 24px; padding-left: 28px; line-height: 1.6; }
.ho-page .ho-grid3 { grid-template-columns: repeat(3, 1fr); }
.ho-page .pep-card__img-fallback { background: var(--ho-bg); }
.ho-page .pep-card__badge { color: var(--ho-c); }
.ho-page .ho-pep-mark { position: absolute; bottom: 12px; left: 12px; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(0,0,0,.1); display: flex; align-items: center; justify-content: center; }
.ho-page .ho-pep-name { font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: var(--dark); margin: 0; line-height: 1.3; }
.ho-page .ho-pep-origin { font-size: 13px; color: var(--gray); margin: 0; display: flex; align-items: center; gap: 6px; }
.ho-page .ho-pep-shu { font-family: var(--font-body); font-size: 12px; color: var(--ho-c); font-weight: 700; }
.ho-page .ho-pep-flav { font-size: 11px; color: var(--gray); padding: 3px 10px; background: var(--warm-bg); border-radius: 12px; }
.ho-page .ho-more { padding-left: 28px; margin-top: 20px; }
.ho-page .ho-viewall { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--ho-bg); border: 1px solid var(--ho-bd); border-radius: 10px; color: var(--ho-c); font-size: 14px; font-weight: 700; text-decoration: none; transition: all .2s; }
.ho-page .ho-viewall:hover { background: var(--ho-c); color: white; }

/* Methodology and table */
.ho-page .ho-method-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.ho-page .ho-method-title { font-family: var(--font-heading); font-size: 24px; font-weight: 900; color: var(--dark); }
.ho-page .ho-indigo { color: #6366f1; }
.ho-page .ho-table-wrap { margin-top: 32px; overflow-x: auto; }
.ho-page .ho-th-r { text-align: right; }
.ho-page .ho-trow-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.ho-page .ho-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ho-c); flex-shrink: 0; }
.ho-page .ho-strong-c { color: var(--ho-c); }
.ho-page .ho-td-gray { color: var(--gray); }
.ho-page .ho-td-num { text-align: right; font-weight: 700; color: var(--ho-c); }

/* Tool row */
.ho-page .ho-ticon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.ho-page .ho-ticon--red { background: #fef2f2; }
.ho-page .ho-ticon--green { background: #f0fdf4; }
.ho-page .ho-ticon--orange { background: #fff7ed; }
.ho-page .ho-ticon--yellow { background: #fefce8; }
.ho-page .ho-ttl { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.ho-page .ho-tsub { font-size: 13px; color: var(--gray); }
.ho-page .ho-faq { max-width: 800px; margin: 0 auto; }

/* The old inline grid and max-width values also fed the style.css mobile attribute rules */
@media (max-width: 768px) {
    .ho-page .ho-grid3 { grid-template-columns: 1fr; }
    .ho-page .ho-faq { padding-left: 16px; padding-right: 16px; }
}

/* ===== Part 3: type that readability.css forced through [style*="font-size"] selectors ===== */
.ho-page a.ho-spot-cta { font-size: 18px; line-height: 1.55; }
.ho-page a.ho-tier-full { font-size: 18px; line-height: 1.55; }
.ho-page a.ho-viewall { font-size: 18px; line-height: 1.55; }
.ho-page div.ho-kick { font-size: 19px; line-height: 1.62; }
.ho-page div.ho-spot-key { font-size: 19px; line-height: 1.62; }
.ho-page div.ho-spot-pill { font-size: 19px; line-height: 1.62; }
.ho-page div.ho-spot-origin { font-size: 19px; line-height: 1.62; }
.ho-page div.ho-spot-species { font-size: 19px; line-height: 1.62; }
.ho-page div.ho-tsub { line-height: 1.62; }
.ho-page span.ho-spot-flav { font-size: 19px; line-height: 1.62; }
.ho-page span.ho-spot-shu { font-size: 19px; line-height: 1.62; }
.ho-page span.ho-spot-tier { font-size: 19px; line-height: 1.62; }
.ho-page span.ho-tier-range { font-size: 19px; line-height: 1.62; }
.ho-page span.ho-pep-flav { line-height: 1.62; }
.ho-page span.ho-pep-shu { line-height: 1.62; }
/* p keeps an !important line-height rule in readability.css; the old [style*="font-size"] attribute rule out-ranked it */
.ho-page p.ho-spot-text { line-height: 1.62 !important; }
.ho-page p.ho-tier-desc { line-height: 1.62 !important; }
/* the heading-font div rule in readability.css, and the [class*="tool"] div !important rule it out-ranked */
.ho-page div.ho-ttl { font-family: var(--font-body) !important; font-size: 21px !important; line-height: 1.3 !important; font-weight: 800 !important; }
