/* Substitutes hub (templates/hub-substitutes.php). UI v2 inline-style cleanup.
   Part 1 is the old <style> block of the template, moved verbatim. Part 2 replaces every inline style
   of the template with a sub-* class; selectors start with `.sub-page` (body class set by the template)
   so they outrank the legacy cascade the inline styles used to beat. Part 3 restates the font-size and
   line-height that readability.css forced through [style*="font-size"] selectors. No custom properties are
   declared (the page baseline lists computed properties). */

.sub-hero {
    padding: 24px 0 40px;
    position: relative;
    background: #fff;
}
.sub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(185,28,28,0.06), transparent 42%);
    pointer-events: none;
}
.sub-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}
.sub-hero__content {
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 30px 32px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.06);
}
.sub-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.16);
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
}
.sub-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.8vw, 52px);
    font-weight: 900;
    color: var(--dark);
    margin: 0 0 14px;
    line-height: 1.04;
    max-width: 12ch;
}
.sub-hero__desc {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.72;
    margin: 0 0 24px;
    max-width: 58ch;
}
.sub-copy {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 20px;
    padding: 32px;
}
.sub-copy__eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: var(--red);
    margin-bottom: 8px;
}
.sub-copy h2 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 900;
    color: var(--dark);
    margin: 0 0 18px;
}
.sub-copy__body {
    columns: 2 360px;
    column-gap: 34px;
}
.sub-copy__body p,
.sub-copy__list {
    break-inside: avoid;
    font-size: 17px;
    color: #334155;
    line-height: 1.78;
    margin: 0 0 18px;
}
.sub-copy__list {
    padding-left: 20px;
}
.sub-copy__body a {
    color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 700;
}
.sub-search { margin: 0 0 18px; }
.sub-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}
.sub-search-field {
    position: relative;
    flex: 1;
}
.sub-search-field .ktp-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}
.sub-search-input {
    width: 100%;
    border: 1px solid var(--gray-border);
    outline: none;
    padding: 16px 16px 16px 46px;
    font-size: 15px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: border-color .2s, box-shadow .2s;
}
.sub-search-input:focus {
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}
.sub-search-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.sub-search-btn:hover { background: #c91c1c; }
.sub-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}
.sub-hero__chips-label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
}
.sub-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--gray-border);
    border-radius: 999px;
    color: #374151;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}
.sub-hero__chip:hover {
    border-color: rgba(220, 38, 38, 0.3);
    color: var(--red);
}
.sub-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.sub-hero__stat {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.sub-hero__stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 6px;
}
.sub-hero__stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #6b7280;
    font-weight: 700;
}
.sub-hero__media {
    display: grid;
    gap: 16px;
}
.sub-hero__frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 11;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f5f5f4;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}
.sub-hero__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sub-hero__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.58) 100%);
}
.sub-hero__frame-note {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
    color: var(--white);
    z-index: 1;
}
.sub-hero__frame-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    opacity: 0.88;
    margin-bottom: 6px;
}
.sub-hero__frame-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.12;
    margin: 0;
}
.sub-hero__frame-credit {
    font-size: 11px;
    opacity: 0.85;
    white-space: nowrap;
}
.sub-hero__rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.sub-hero__rail-card {
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.sub-hero__rail-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0;
}
.sub-hero__rail-card p {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
}
.sub-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.sub-method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.sub-conversion-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(160px, .75fr) minmax(180px, 1fr);
    gap: 20px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .featured-grid { grid-template-columns: 1fr; } }

.featured-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--gray-border); box-shadow: 0 4px 12px rgba(0,0,0,.03); transition: all .3s; text-decoration: none; color: inherit; display: block; }
.featured-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); transform: translateY(-4px); }
.featured-card__img { height: 180px; position: relative; overflow: hidden; background: #f3f4f6; }
.featured-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.featured-card:hover .featured-card__img img { transform: scale(1.05); }
.featured-card__img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 50%, transparent 100%); }
.featured-card__img-title { position: absolute; bottom: 16px; left: 16px; color: white; }
.featured-card__img-shu { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); color: white; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 6px; }
.featured-card__body { padding: 20px; }
.featured-card__match { display: flex; justify-content: space-between; align-items: start; margin-bottom: 12px; }

.swap-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 17px 22px; background: var(--white); border-bottom: 1px solid var(--gray-border); transition: background .15s; }
.swap-row:hover { background: var(--ktp-smoke); }
.swap-row:last-child { border-bottom: none; }
.swap-row.is-hidden { display: none !important; }
.swap-row__icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.swap-row__title { font-family: var(--font-body); font-size: 18px; font-weight: 850; color: var(--dark); margin: 0 0 8px; line-height: 1.25; }
.swap-row__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 0; }
.swap-row__chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--warm-bg); color: #57534e; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.swap-row__action { display: inline-flex; align-items: center; gap: 0; color: var(--red); font-size: 0; font-weight: 900; white-space: nowrap; }
.heat-bar { height: 6px; flex: 1; background: var(--gray-border); border-radius: 3px; overflow: hidden; }
.heat-bar__fill { height: 100%; border-radius: 3px; transition: width .3s; }

.ref-col { background: var(--white); border-radius: 16px; border: 1px solid var(--gray-border); padding: 24px; }
.ref-col__header { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--gray-border); }
.ref-col__icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.ref-col__item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; transition: background .15s; cursor: pointer; text-decoration: none; color: inherit; }
.ref-col__item:hover { background: var(--warm-bg); }
@media (max-width: 900px) {
    .sub-hero__inner { grid-template-columns: 1fr; }
    .sub-hero__title { max-width: none; }
    .sub-hero__rail { grid-template-columns: 1fr; }
    .sub-card-grid,
    .sub-method-grid,
    .sub-conversion-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sub-hero { padding: 20px 0 32px; }
    .sub-hero__content { padding: 22px 18px; }
    .sub-search-form { flex-direction: column; align-items: stretch; }
    .sub-search-btn { width: 100%; }
    .sub-hero__stats { grid-template-columns: 1fr; }
    .sub-hero__frame-note { align-items: flex-start; flex-direction: column; }
    .sub-hero__frame-credit { white-space: normal; }
    .swap-row { grid-template-columns: auto 1fr; }
    .swap-row__action { grid-column: 2; justify-self: start; }
}

/* ===== Part 2: classes that replace the inline styles ===== */

/* Page sections */
.sub-page .sub-sec { padding-top: 0; padding-bottom: 32px; }
.sub-page .sub-sec--40 { padding-bottom: 40px; }
.sub-page .sub-sec--top { padding-bottom: 0; }
.sub-page .sub-sec--refs { padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--gray-border); }

/* In-post figure */
.sub-page .sub-figure { margin: 0; background: var(--white); border: 1px solid var(--gray-border); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.04); }
.sub-page .sub-figure__img { width: 100%; height: auto; display: block; }

/* White panels */
.sub-page .sub-panel { background: var(--white); border: 1px solid var(--gray-border); border-radius: 20px; }
.sub-page .sub-panel--32 { padding: 32px; }
.sub-page .sub-panel--48 { padding: 48px; position: relative; overflow: hidden; }
.sub-page .sub-box { background: var(--white); border: 1px solid var(--gray-border); border-radius: 16px; overflow: hidden; }

/* Heading rows and headings */
.sub-page .sub-headrow { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.sub-page .sub-headrow--24 { margin-bottom: 24px; }
.sub-page .sub-h2 { font-family: var(--font-heading); font-size: clamp(24px, 4vw, 32px); font-weight: 900; color: var(--dark); margin: 0; }
.sub-page .sub-h2--mb8 { margin: 0 0 8px; }
.sub-page .sub-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gray-border), transparent); }
.sub-page .sub-lede { font-size: 16px; color: var(--gray); line-height: 1.7; margin: 0 0 24px; max-width: 760px; }
.sub-page .sub-lede--15 { font-size: 15px; margin-bottom: 20px; }

/* Choose-a-substitute and mistakes tiles */
.sub-page .sub-step { padding: 24px; background: var(--warm-bg); border: 1px solid var(--gray-border); border-radius: 16px; }
.sub-page .sub-step--sm { padding: 20px; }
.sub-page .sub-step__title { font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--dark); margin: 0 0 10px; }
.sub-page .sub-step--sm .sub-step__title { font-size: 18px; margin-bottom: 8px; }
.sub-page .sub-step__text { font-size: 14px; color: var(--gray); line-height: 1.65; margin: 0; }

/* Tool teaser */
.sub-page .sub-teaser { background: #fff; border: 1px solid var(--ktp-hairline); border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; overflow: hidden; position: relative; }
.sub-page .sub-teaser__blob { position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(249,115,22,.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.sub-page .sub-teaser__main { position: relative; z-index: 1; }
.sub-page .sub-teaser__pill { display: inline-block; padding: 6px 16px; background: white; border: 1px solid var(--red); border-radius: 20px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); margin-bottom: 20px; }
.sub-page .sub-teaser__title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: var(--dark); margin: 0 0 16px; line-height: 1.15; }
.sub-page .sub-teaser__text { font-size: 16px; color: var(--gray); line-height: 1.7; margin: 0 0 28px; max-width: 440px; }
.sub-page .sub-teaser__btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; background: var(--red); color: white; border-radius: 12px; font-family: var(--font-heading); font-size: 16px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 20px rgba(185,28,28,.2); transition: all .25s; }
.sub-page .sub-teaser__demo { display: flex; justify-content: center; }
.sub-page .sub-demo { background: white; border: 1px solid var(--gray-border); border-radius: 16px; padding: 24px; width: 300px; box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.sub-page .sub-demo__block { margin-bottom: 20px; }
.sub-page .sub-demo__block--best { margin-bottom: 0; margin-top: 12px; }
.sub-page .sub-demo__head { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); margin-bottom: 8px; }
.sub-page .sub-demo__row { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--warm-bg); border: 1px solid var(--gray-border); border-radius: 10px; }
.sub-page .sub-demo__row--best { background: var(--ktp-tier-mild-tint); border: 2px solid var(--ktp-tier-mild); }
.sub-page .sub-demo__icon { width: 36px; height: 36px; background: #fef2f2; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.sub-page .sub-demo__icon--white { background: white; }
.sub-page .sub-demo__name { font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.sub-page .sub-demo__score { font-size: 12px; color: var(--ktp-tier-mild); font-weight: 700; }
.sub-page .sub-demo__arrow { display: flex; justify-content: center; margin: -8px 0; }
.sub-page .sub-demo__dot { width: 44px; height: 44px; background: linear-gradient(135deg, #22c55e, #16a34a); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(34,197,94,.3); }
.sub-page .sub-demo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sub-page .sub-demo__cell { padding: 12px; background: var(--warm-bg); border-radius: 10px; text-align: center; }
.sub-page .sub-demo__cell-head { font-size: 10px; color: var(--gray); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.sub-page .sub-demo__val { font-family: var(--font-heading); font-size: 20px; font-weight: 800; }
.sub-page .sub-demo__val--mid { color: var(--ktp-tier-medium); }

/* Most common substitutes */
.sub-page .sub-feat-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-border); }
.sub-page .sub-feat-kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); margin-bottom: 6px; }
.sub-page .sub-feat-all { font-size: 14px; font-weight: 600; color: var(--gray); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.sub-page .sub-feat-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--sub-tint); }
.sub-page .sub-feat-name { font-family: var(--font-heading); font-size: 22px; font-weight: 800; margin: 0; }
.sub-page .sub-feat-tier { font-size: 11px; opacity: 0.85; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin: 4px 0 0; }
.sub-page .sub-feat-key { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray); margin-bottom: 4px; }
.sub-page .sub-feat-best { font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: var(--dark); display: flex; align-items: center; gap: 6px; }
.sub-page .sub-feat-right { text-align: right; }
.sub-page .sub-feat-ratio { font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--red); }
.sub-page .sub-feat-text { font-size: 13px; color: var(--gray); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sub-page .sub-feat-chips { display: flex; gap: 6px; margin-top: 12px; }
.sub-page .sub-feat-chip { font-size: 10px; padding: 4px 10px; background: var(--warm-bg); border-radius: 20px; color: var(--gray); font-weight: 600; }

/* Fresh vs dried conversion */
.sub-page .sub-conv__mark { position: absolute; top: 0; right: 0; width: 200px; height: 200px; opacity: 0.03; pointer-events: none; }
.sub-page .sub-conv__head { text-align: center; margin-bottom: 32px; position: relative; z-index: 1; }
.sub-page .sub-conv__kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); margin-bottom: 8px; }
.sub-page .sub-conv__title { font-family: var(--font-heading); font-size: clamp(24px, 4vw, 36px); font-weight: 900; color: var(--dark); margin: 0; }
.sub-page .sub-conv__box { text-align: center; padding: 28px; border-radius: 16px; }
.sub-page .sub-conv__box--fresh { background: #f0fdf4; border: 1px solid #bbf7d0; }
.sub-page .sub-conv__box--dried { background: #fef2f2; border: 1px solid #fecaca; }
.sub-page .sub-conv__pod { margin-bottom: 12px; }
.sub-page .sub-conv__name { font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--dark); margin: 0 0 6px; }
.sub-page .sub-conv__note { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin: 0; }
.sub-page .sub-conv__arrow { display: flex; justify-content: center; }
.sub-page .sub-conv__mid { text-align: center; padding: 24px; background: var(--red-bg); border: 2px solid #fecaca; border-radius: 16px; }
.sub-page .sub-conv__mid-head { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--red); margin-bottom: 8px; }
.sub-page .sub-conv__mid-num { font-family: var(--font-heading); font-size: 28px; font-weight: 900; color: var(--dark); }
.sub-page .sub-conv__mid-note { font-size: 11px; color: var(--gray); margin: 8px 0 0; }
.sub-page .sub-conv__rules { display: flex; justify-content: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.sub-page .sub-conv__rule { padding: 10px 20px; background: var(--warm-bg); border: 1px solid var(--gray-border); border-radius: 50px; font-size: 13px; }
.sub-page .sub-conv__rule strong { color: var(--red); }

/* Swap directory */
.sub-page .sub-dir-head { margin-bottom: 24px; }
.sub-page .sub-dir-note { font-size: 15px; color: var(--gray); margin: 0; }
.sub-page .sub-tabs { display: flex; gap: 8px; padding: 16px 20px; background: var(--warm-bg); border-bottom: 1px solid var(--gray-border); overflow-x: auto; }
.sub-page .swap-filter { padding: 8px 18px; border-radius: 50px; background: transparent; color: var(--gray); border: 1px solid transparent; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .2s; }
.sub-page .swap-filter.active { background: var(--red); color: white; border: none; transition: all 0s; }
.sub-page a.swap-row { text-decoration: none; color: inherit; }
.sub-page .swap-row--mild .swap-row__icon { background: var(--ktp-tier-mild-tint); color: var(--ktp-tier-mild); border: 1px solid #bbf7d0; }
.sub-page .swap-row--medium .swap-row__icon { background: var(--ktp-tier-medium-tint); color: var(--ktp-tier-medium); border: 1px solid #fde68a; }
.sub-page .swap-row--hot .swap-row__icon { background: var(--ktp-tier-hot-tint); color: var(--ktp-tier-hot); border: 1px solid #fed7aa; }
.sub-page .swap-row--extra-hot .swap-row__icon { background: var(--red-bg); color: var(--ktp-tier-extra-hot); border: 1px solid #fecaca; }
.sub-page .swap-row--super-hot .swap-row__icon { background: var(--red-bg); color: var(--ktp-tier-super-hot); border: 1px solid #fca5a5; }
.sub-page .swap-row--mild .swap-row__chip--tier { background: var(--ktp-tier-mild-tint); color: var(--ktp-tier-mild); }
.sub-page .swap-row--medium .swap-row__chip--tier { background: var(--ktp-tier-medium-tint); color: var(--ktp-tier-medium); }
.sub-page .swap-row--hot .swap-row__chip--tier { background: var(--ktp-tier-hot-tint); color: var(--ktp-tier-hot); }
.sub-page .swap-row--extra-hot .swap-row__chip--tier { background: var(--red-bg); color: var(--ktp-tier-extra-hot); }
.sub-page .swap-row--super-hot .swap-row__chip--tier { background: var(--red-bg); color: var(--ktp-tier-super-hot); }
.sub-page .sub-loadmore { padding: 20px; background: var(--warm-bg); text-align: center; border-top: 1px solid var(--gray-border); }
.sub-page .sub-loadmore__btn { font-size: 13px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: 1px; background: none; border: none; cursor: pointer; }

/* FAQ */
.sub-page .sub-faq { border-bottom: 1px solid var(--gray-border); }
.sub-page .sub-faq:last-child { border-bottom: none; }
.sub-page .sub-faq__q { padding: 20px 24px; cursor: pointer; font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--dark); display: flex; align-items: center; justify-content: space-between; list-style: none; }
.sub-page .sub-faq__a { padding: 0 24px 20px; font-size: 15px; color: var(--gray); line-height: 1.7; }

/* Sources */
.sub-page .sub-refs { max-width: 800px; margin: 0 auto; }
.sub-page .sub-refs__title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray); margin-bottom: 16px; }
.sub-page .sub-refs__list { font-size: 13px; color: var(--gray); line-height: 1.8; margin: 0; padding-left: 20px; list-style: disc; }
.sub-page .sub-refs__link { color: var(--gray); text-decoration: underline; text-underline-offset: 2px; }

/* Community call to action */
.sub-page .sub-cta { background: var(--red); border-radius: 24px; padding: 56px 40px; text-align: center; color: white; position: relative; overflow: hidden; }
.sub-page .sub-cta__blob { position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.sub-page .sub-cta__blob--b { top: auto; right: auto; bottom: -60px; left: -60px; width: 180px; height: 180px; background: rgba(0,0,0,0.1); }
.sub-page .sub-cta__title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 36px); font-weight: 900; margin: 0 0 16px; position: relative; z-index: 1; }
.sub-page .sub-cta__text { font-size: 17px; color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 28px; line-height: 1.6; position: relative; z-index: 1; }
.sub-page .sub-cta__btn { display: inline-block; padding: 16px 36px; background: white; color: var(--red); border-radius: 12px; font-family: var(--font-heading); font-size: 16px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.15); position: relative; z-index: 1; transition: transform .2s; }

/* Legacy mobile layer of style.css, restated: it matched the old inline values with [style*=...] selectors */
@media (max-width: 900px) {
    .sub-page .sub-teaser,
    .sub-page .sub-demo__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sub-page .sub-panel--32 { padding: 20px; }
    .sub-page .sub-conv__box { padding: 18px; }
    .sub-page .sub-lede,
    .sub-page .sub-refs { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 480px) {
    .sub-page .sub-rule { display: none; }
}

/* ===== Part 3: type that readability.css forced through [style*="font-size"] selectors =====
   The inline font-size used to trigger those attribute rules (font-size/line-height, and font-family/weight
   for headings in divs). The inline style is gone, so the effective values are stated per class. !important is
   used only where a readability.css element rule with !important (p, button, summary, [class*=card] descendants)
   would otherwise win; the old value came from an attribute rule that out-ranked it. */
.sub-page p.sub-lede { line-height: 1.62 !important; }
.sub-page div.sub-teaser__pill { font-size: 19px; line-height: 1.62; }
.sub-page p.sub-teaser__text { line-height: 1.62 !important; }
.sub-page a.sub-teaser__btn { font-size: 18px; line-height: 1.55; }
.sub-page div.sub-demo__head { font-size: 19px; line-height: 1.62; }
.sub-page span.sub-demo__name { font-size: 19px; line-height: 1.62; }
.sub-page div.sub-demo__name { font-family: var(--font-body); font-size: 21px; line-height: 1.3; font-weight: 800; }
.sub-page div.sub-demo__score { font-size: 19px; line-height: 1.62; }
.sub-page div.sub-demo__cell-head { font-size: 19px; line-height: 1.62; }
.sub-page div.sub-feat-kicker { font-size: 19px; line-height: 1.62; }
.sub-page a.sub-feat-all { font-size: 18px; line-height: 1.55; }
.sub-page p.sub-lede.sub-lede--15 { line-height: 1.62 !important; }
.sub-page div.sub-feat-key { line-height: 1.62; }
.sub-page div.sub-feat-best { font-family: var(--font-body) !important; font-size: 21px !important; line-height: 1.3 !important; }
.sub-page div.sub-feat-ratio { line-height: 1.62; }
.sub-page span.sub-feat-chip { line-height: 1.62; }
.sub-page div.sub-conv__kicker { font-size: 19px; line-height: 1.62; }
.sub-page p.sub-conv__note { line-height: 1.62 !important; }
.sub-page div.sub-conv__mid-head { font-size: 19px; line-height: 1.62; }
.sub-page p.sub-conv__mid-note { line-height: 1.62 !important; }
.sub-page div.sub-conv__rule { font-size: 19px; line-height: 1.62; }
.sub-page p.sub-dir-note { line-height: 1.62 !important; }
.sub-page button.swap-filter.active { font-size: 19px !important; line-height: 1.62 !important; }
.sub-page button.swap-filter { font-size: 19px !important; line-height: 1.62 !important; }
.sub-page button.sub-loadmore__btn { font-size: 19px !important; line-height: 1.62 !important; }
.sub-page summary.sub-faq__q { line-height: 1.72 !important; }
.sub-page div.sub-faq__a { font-size: 19px; line-height: 1.62; }
.sub-page h4.sub-refs__title { font-size: 19px; line-height: 1.42; }
.sub-page ul.sub-refs__list { font-size: 19px; line-height: 1.62; }
.sub-page p.sub-cta__text { line-height: 1.62 !important; }
.sub-page a.sub-cta__btn { font-size: 18px; line-height: 1.55; }
