/* ==========================================================================
   /ielts/academic-vs-gt.html 雅思學術組 vs 一般訓練組
   載入順序：site.css → article.css → 本檔
   命名空間：.ag-*（全站最小字級 14px）
   色彩約定：學術組 A ＝ 品牌紅、一般訓練組 GT ＝ 深灰 #272727，全頁一致
   比較表（.ip-vs-table）、差異小節（.ip-diff／.ip-chip）、左右對照卡（.ip-split／.ip-side）、
   選擇卡（.ip-paths／.ip-path）、勾選卡清單（.ip-checkcards）已移到 article.css 共用
   ========================================================================== */

/* ---------- A／GT 小方塊徽章（全頁共用） ---------- */
.ielts-article .ag-badge {
    flex: none;
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 30px;
    padding: 0 8px;
    background: var(--red);
    color: #fff;
    font: italic 700 15px/1 Georgia, serif;
    letter-spacing: .04em;
}

.ielts-article :is(.ag-name--gt, .ip-side--dark) .ag-badge,
.ielts-article .ag-shared-mark .ag-badge + .ag-badge {
    background: #272727;
}

/* ---------- 01｜名稱對照 ---------- */
.ielts-article .ag-names {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 4px 0 18px;
}

.ielts-article .ip-content .ag-name {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--ip-border);
    border-left: 3px solid var(--red);
    font-size: 15px;
    line-height: 1.85;
}

.ielts-article .ip-content .ag-name--gt {
    background: var(--ip-cream);
    border-left-color: #272727;
}

.ielts-article .ag-name .ag-badge {
    margin-top: 2px;
}

/* ---------- 02｜組別選擇卡：重點句 ---------- */
.ielts-article .ip-content .ag-path-point {
    margin: 0;
    padding-left: 14px;
    border-left: 2px solid var(--red);
    color: #222;
    font-weight: 500;
}

.ielts-article .ip-path--dark .ag-path-point {
    border-left-color: #272727;
}

/* ---------- 03｜考試差異：黑底引言、徽章 ---------- */
.ielts-article .ip-content .ag-lead {
    display: inline-block;
    margin-bottom: 18px;
    padding: 2px 12px;
    background: #272727;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
}

.ielts-article .ip-side .ag-badge {
    margin-bottom: 14px;
}

/* 聽力與口說：兩組共通的合併卡 */
.ielts-article .ag-shared {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    padding: 24px 26px;
    background: linear-gradient(90deg, #fbf3f4, var(--ip-cream));
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--red) 50%, #272727 50%) 1;
}

.ielts-article .ag-shared-mark {
    display: flex;
    gap: 4px;
    padding-top: 2px;
}

/* UKVI 說明：黑底重點框 */
.ielts-article .ag-ukvi {
    margin: 0 0 22px;
    padding: 22px 26px;
    background: #272727;
    border-left: 6px solid var(--red);
}

.ielts-article .ip-content .ag-ukvi p {
    margin: 0;
    color: #e9e9e9;
    font-size: 15px;
}

.ielts-article .ag-ukvi .ip-key {
    color: #fff;
    background: linear-gradient(transparent 62%, #c8102e99 62%);
}

/* ---------- RWD ---------- */
@media (max-width: 960px) {
    .ielts-article .ag-names {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .ielts-article .ag-names {
        gap: 10px;
    }

    .ielts-article .ip-content .ag-name {
        padding: 16px;
    }

    .ielts-article .ag-shared {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 20px 18px;
    }

    .ielts-article .ag-ukvi {
        padding: 20px 18px;
        border-left-width: 4px;
    }
}
