/* RECATOOLS — Credit Card Rewards Comparison */

.cc-section-heading {
    font-size: .9rem;
    font-weight: 700;
    color: #1a1814;
    margin: 1.5rem 0 .5rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid #ebebeb;
}
.cc-section-heading:first-child { margin-top: 0; }

.cc-section-help {
    font-size: .78rem;
    color: #6b6760;
    margin: 0 0 .75rem;
    line-height: 1.5;
}

.cc-spend-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
}
@media (max-width: 880px) { .cc-spend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .cc-spend-grid { grid-template-columns: minmax(0, 1fr); } }

.cc-input label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: #6b6760;
    margin-bottom: .25rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.cc-input .input-prefix-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    min-width: 0;
}

.cc-input .ipx-label {
    padding: .5rem .55rem;
    background: #f0ede9;
    font-size: .75rem;
    font-weight: 600;
    color: #6b6760;
    border-right: 1px solid #ebebeb;
    white-space: nowrap;
}

.cc-input input[type="number"],
.cc-input input[type="text"] {
    flex: 1;
    min-width: 0;
    border: none;
    padding: .5rem .55rem;
    font-size: .88rem;
    font-family: inherit;
    background: transparent;
    color: #1a1814;
    box-sizing: border-box;
    width: 100%;
}

.cc-input input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #E8472F;
}

.cc-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: .5rem;
}
@media (max-width: 1000px) { .cc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cc-cards { grid-template-columns: minmax(0, 1fr); } }

.cc-card {
    padding: 1rem;
    background: #fafaf9;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    min-width: 0;
}

.cc-card-title {
    font-size: .82rem;
    font-weight: 700;
    color: #6b6760;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .5rem;
}

.cc-card .cc-input + .cc-input { margin-top: .5rem; }

.cc-mult-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}
@media (max-width: 460px) { .cc-mult-grid { grid-template-columns: minmax(0, 1fr); } }

.calc-btn {
    width: 100%;
    margin: 1.25rem 0 .5rem;
    padding: .75rem 1.25rem;
    background: #E8472F;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.calc-btn:hover { background: #c8391f; }

#error-box {
    display: none;
    margin: .5rem 0 1rem;
    padding: .5rem .75rem;
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    border-radius: 0 6px 6px 0;
    font-size: .85rem;
    color: #7f1d1d;
}

.verdict-bar {
    margin: 1rem 0;
    padding: .75rem 1rem;
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
    border-radius: 0 6px 6px 0;
    font-size: .875rem;
    line-height: 1.6;
    color: #1a1814;
}
.verdict-bar:empty { display: none; }

.res-compare {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
@media (max-width: 1000px) { .res-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .res-compare { grid-template-columns: minmax(0, 1fr); } }

.res-card {
    padding: 1.25rem;
    background: #fafaf9;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    min-width: 0;
}

.res-card.res-card--winner-y1 {
    background: #fef9c3;
    border-color: #fde047;
}

.res-card.res-card--winner-st {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.res-card .res-title {
    font-size: .85rem;
    font-weight: 700;
    color: #6b6760;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .5rem;
    word-break: break-word;
}

.res-card .res-headline {
    font-size: 1.45rem;
    font-weight: 800;
    font-family: 'IBM Plex Serif', 'DM Serif Display', serif;
    color: #1a1814;
    margin: .5rem 0 .25rem;
    word-break: break-word;
}

.res-card .res-headline-sub {
    font-size: .76rem;
    color: #475569;
    margin-bottom: .75rem;
}

.res-card .res-detail {
    font-size: .8rem;
    color: #475569;
    margin-top: .5rem;
}

.res-card .res-detail-row {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .2rem 0;
    border-bottom: 1px dashed #ebebeb;
}

.res-card .res-detail-row:last-child { border-bottom: none; }

.res-card .res-detail-row.res-detail-row--sub {
    font-size: .75rem;
    color: #6b6760;
}

.cc-footnote {
    margin-top: 1rem;
    font-size: .78rem;
    color: #6b6760;
    line-height: 1.5;
    padding: .75rem 1rem;
    background: #fafaf9;
    border-radius: 8px;
    border: 1px solid #ebebeb;
}

/* cache-buster: 2026-05-28T00:00:00Z */
