/**
 * TOEFL改訂記事 - WordPress JIN準拠版 CSS
 * FTPアップロード先: /wp-content/themes/jin-child/assets/toefl-article-style.css
 *
 * 注意事項:
 * - 全セレクタは .toefl-article で限定してJINテーマとの衝突を回避
 * - h2/h3スタイルは詳細度を上げてJINのデフォルトスタイルを上書き
 * - Progress Bar, Floating TOC は削除済み
 */

/* ========================================
   CSS変数定義
   ======================================== */
:root {
    /* ノートカラーパレット */
    --paper-cream: #fffdf7;
    --paper-lines: #e8e4d9;
    --paper-margin: #ffcccc;

    /* ペン・マーカーカラー - テキスト色を濃く改善 */
    --pencil-gray: #333333; /* 旧: #4a4a4a → 新: #333333 視認性向上 */
    --red-pen: #c62828; /* 旧: #d32f2f → 新: #c62828 より濃く */
    --blue-pen: #1565c0;

    /* ハイライトカラー */
    --highlighter-yellow: #fff59d;
    --highlighter-pink: #f8bbd9;
    --highlighter-green: #c8e6c9;
    --highlighter-blue: #bbdefb;

    /* サイズ設定 */
    --toefl-max-width: 800px;
    --toefl-padding: 20px;
}

/* ========================================
   メインコンテナ
   ======================================== */
.toefl-article {
    max-width: var(--toefl-max-width);
    margin: 0 auto;
    padding: var(--toefl-padding);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333333 !important;
    background: var(--paper-cream);
    box-sizing: border-box;
}

.toefl-article *,
.toefl-article *::before,
.toefl-article *::after {
    box-sizing: border-box;
}

/* テキスト要素の色を明示的に指定（JIN上書き対策） */
.toefl-article p,
.toefl-article li,
.toefl-article td,
.toefl-article span,
.toefl-article div,
.cps-post-main .toefl-article p,
.cps-post-main .toefl-article li,
.cps-post-main .toefl-article td {
    color: #333333 !important;
}

/* ========================================
   JIN余白リセット - 余分な空白除去（強化版）
   ======================================== */

/* Phase A: 全section要素の余白を完全リセット */
.toefl-article section,
.cps-post-main .toefl-article section {
    margin: 0 !important;
    padding: 0 !important;
}

/* Phase B: h2-section/h3-sectionの余白を精密制御 */
.toefl-article .h2-section,
.cps-post-main .toefl-article .h2-section {
    margin: 48px 0 0 0 !important;
    padding: 24px 0 0 0 !important;
}

/* 最初のh2-sectionは上余白不要 */
.toefl-article .h2-section:first-of-type,
.cps-post-main .toefl-article .h2-section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.toefl-article .h3-section,
.cps-post-main .toefl-article .h3-section {
    margin: 32px 0 0 0 !important;
    padding: 0 !important;
}

/* Phase D: section-introの余白制御 */
.toefl-article .section-intro,
.cps-post-main .toefl-article .section-intro {
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}

/* Phase E: 全div要素のJIN余白リセット */
.toefl-article div,
.cps-post-main .toefl-article div {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 例外: 特定のdivコンポーネントには適切な余白を設定 */
.toefl-article .key-number-box,
.toefl-article .note-table,
.toefl-article .chart-container,
.toefl-article .info-box,
.toefl-article .warning-box,
.toefl-article .success-box,
.toefl-article .flow-diagram,
.toefl-article .swipe-comparison,
.toefl-article .two-column-box,
.toefl-article .timeline-box,
.cps-post-main .toefl-article .key-number-box,
.cps-post-main .toefl-article .note-table,
.cps-post-main .toefl-article .chart-container,
.cps-post-main .toefl-article .info-box,
.cps-post-main .toefl-article .warning-box,
.cps-post-main .toefl-article .success-box,
.cps-post-main .toefl-article .flow-diagram,
.cps-post-main .toefl-article .swipe-comparison,
.cps-post-main .toefl-article .two-column-box,
.cps-post-main .toefl-article .timeline-box {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

/* pタグの余白制御 */
.toefl-article p,
.cps-post-main .toefl-article p {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
}

/* Phase F: first-child/last-childの余白制御 */
.toefl-article p:first-child,
.cps-post-main .toefl-article p:first-child {
    margin-top: 0 !important;
}

.toefl-article p:last-child,
.cps-post-main .toefl-article p:last-child {
    margin-bottom: 0 !important;
}

/* Phase C: ボックス内pタグの余白制御 */
.toefl-article .info-box p,
.toefl-article .warning-box p,
.toefl-article .success-box p,
.cps-post-main .toefl-article .info-box p,
.cps-post-main .toefl-article .warning-box p,
.cps-post-main .toefl-article .success-box p {
    margin: 0 !important;
    padding: 0 !important;
}

/* ボックス内strongの後のpに適切な余白 */
.toefl-article .info-box strong + p,
.toefl-article .warning-box strong + p,
.toefl-article .success-box strong + p,
.cps-post-main .toefl-article .info-box strong + p,
.cps-post-main .toefl-article .warning-box strong + p,
.cps-post-main .toefl-article .success-box strong + p {
    margin-top: 8px !important;
}

/* h3-section内の最初の要素の余白 */
.toefl-article .h3-section > *:first-child,
.cps-post-main .toefl-article .h3-section > *:first-child {
    margin-top: 0 !important;
}

/* section-intro内の余白 */
.toefl-article .section-intro p:last-child,
.cps-post-main .toefl-article .section-intro p:last-child {
    margin-bottom: 0 !important;
}

/* ========================================
   Story Mode Cards（JIN互換強化）
   ======================================== */
.toefl-article .story-mode,
.cps-post-main .toefl-article .story-mode {
    margin-bottom: 40px !important;
    overflow: visible !important;
    position: relative !important;
}

.toefl-article .story-cards,
.cps-post-main .toefl-article .story-cards {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 10px 0 !important;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-pen) transparent;
}

.toefl-article .story-cards::-webkit-scrollbar {
    height: 6px;
}

.toefl-article .story-cards::-webkit-scrollbar-track {
    background: transparent;
}

.toefl-article .story-cards::-webkit-scrollbar-thumb {
    background: var(--blue-pen);
    border-radius: 3px;
}

.toefl-article .story-card,
.cps-post-main .toefl-article .story-card {
    flex: 0 0 min(280px, 85vw) !important;
    scroll-snap-align: center !important;
    background: white !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    opacity: 0.7;
    transform: scale(0.95);
    transition: all 0.3s ease;
    min-width: 250px !important;
}

.toefl-article .story-card.active,
.cps-post-main .toefl-article .story-card.active {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.toefl-article .story-card h3,
.cps-post-main .toefl-article .story-card h3 {
    all: unset !important;
    display: block !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 16px 0 !important;
    color: var(--blue-pen) !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
    line-height: 1.4 !important;
}

.toefl-article .stat-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.toefl-article .stat-comparison .before {
    font-size: 24px;
    color: #999;
    text-decoration: line-through;
}

.toefl-article .stat-comparison .arrow {
    font-size: 20px;
}

.toefl-article .stat-comparison .after {
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-pen);
}

.toefl-article .story-card .change {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--red-pen);
    margin: 8px 0;
}

.toefl-article .story-card .impact {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.toefl-article .swipe-hint {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 16px;
}

.toefl-article .story-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.toefl-article .story-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toefl-article .story-dots .dot.active {
    background: var(--blue-pen);
    transform: scale(1.2);
}

/* ========================================
   Section Styles - JIN h2/h3 上書き
   ======================================== */
/* 注意: h2-section/h3-sectionの余白は「JIN余白リセット」セクションで定義済み */
.toefl-article .h2-section,
.cps-post-main .toefl-article .h2-section {
    border-top: 1px dashed var(--paper-lines) !important;
}

/* JINテーマのh2スタイルを完全上書き（.cps-post-main対応） */
.toefl-article .h2-section h2,
.cps-post-main .toefl-article .h2-section h2,
.cps-post-main .toefl-article h2,
article .toefl-article .h2-section h2 {
    all: unset !important;
    display: block !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    margin: 0 0 24px 0 !important;
    padding: 0 0 12px 0 !important;
    border-bottom: 3px solid var(--blue-pen) !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    background: none !important;
    position: relative !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

.toefl-article .h2-section h2::before,
.toefl-article .h2-section h2::after,
.cps-post-main .toefl-article .h2-section h2::before,
.cps-post-main .toefl-article .h2-section h2::after,
.cps-post-main .toefl-article h2::before,
.cps-post-main .toefl-article h2::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 注意: h3-sectionの余白は「JIN余白リセット」セクションで定義済み */

/* JINテーマのh3スタイルを完全上書き（.cps-post-main対応） */
.toefl-article .h3-section h3,
.cps-post-main .toefl-article .h3-section h3,
.cps-post-main .toefl-article h3,
article .toefl-article .h3-section h3 {
    all: unset !important;
    display: block !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

.toefl-article .h3-section h3::before,
.toefl-article .h3-section h3::after,
.cps-post-main .toefl-article .h3-section h3::before,
.cps-post-main .toefl-article .h3-section h3::after,
.cps-post-main .toefl-article h3::before,
.cps-post-main .toefl-article h3::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
}

/* 注意: section-introの余白は「JIN余白リセット」セクションで定義済み */

/* ========================================
   Marker Highlights（JIN互換強化）
   ======================================== */
.toefl-article mark.marker-yellow,
.cps-post-main .toefl-article mark.marker-yellow {
    background: linear-gradient(transparent 60%, var(--highlighter-yellow) 60%) !important;
    padding: 0 4px !important;
    color: #333333 !important;
    font-weight: 500 !important;
}

.toefl-article mark.marker-pink,
.cps-post-main .toefl-article mark.marker-pink {
    background: linear-gradient(transparent 60%, var(--highlighter-pink) 60%) !important;
    padding: 0 4px !important;
    color: #333333 !important;
    font-weight: 500 !important;
}

.toefl-article mark.marker-green,
.cps-post-main .toefl-article mark.marker-green {
    background: linear-gradient(transparent 60%, var(--highlighter-green) 60%) !important;
    padding: 0 4px !important;
    color: #333333 !important;
    font-weight: 500 !important;
}

.toefl-article mark.marker-blue,
.cps-post-main .toefl-article mark.marker-blue {
    background: linear-gradient(transparent 60%, var(--highlighter-blue) 60%) !important;
    padding: 0 4px !important;
    color: #333333 !important;
    font-weight: 500 !important;
}

/* マーカーリセット（JINのmark要素スタイルを上書き） */
.toefl-article mark,
.cps-post-main .toefl-article mark {
    background-color: transparent !important;
}

/* ========================================
   Key Number Box
   ======================================== */
.toefl-article .key-number-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24px auto;
    padding: 20px 32px;
    background: var(--highlighter-yellow);
    border: 3px solid var(--pencil-gray);
    border-radius: 0;
    max-width: 300px;
    transform: rotate(-1deg);
    box-shadow: 4px 4px 0 var(--pencil-gray);
}

.toefl-article .key-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--red-pen);
    font-family: "Klee One", cursive;
}

.toefl-article .key-label {
    font-size: 14px;
    color: var(--pencil-gray);
    margin-top: 8px;
}

/* ========================================
   Note Table（JIN互換強化）
   ======================================== */
.toefl-article .note-table,
.cps-post-main .toefl-article .note-table {
    margin: 24px 0 !important;
    overflow-x: auto !important;
}

.toefl-article .note-table table,
.cps-post-main .toefl-article .note-table table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: var(--paper-cream) !important;
    border: 2px solid #333333 !important;
}

.toefl-article .note-table th,
.cps-post-main .toefl-article .note-table th {
    background: var(--highlighter-blue) !important;
    color: var(--blue-pen) !important;
    padding: 12px 16px !important;
    text-align: left !important;
    border-bottom: 2px solid #333333 !important;
    border-right: 1px solid var(--paper-lines) !important;
    font-weight: 600 !important;
}

.toefl-article .note-table th:last-child {
    border-right: none !important;
}

.toefl-article .note-table td,
.cps-post-main .toefl-article .note-table td {
    padding: 12px 16px !important;
    border-bottom: 1px dashed var(--paper-lines) !important;
    border-right: 1px solid var(--paper-lines) !important;
}

.toefl-article .note-table td:last-child {
    border-right: none !important;
}

.toefl-article .note-table tr:last-child td,
.cps-post-main .toefl-article .note-table tr:last-child td {
    border-bottom: none !important;
    font-weight: 600 !important;
    background: var(--highlighter-yellow) !important;
}

.toefl-article .note-table tr:hover td {
    background: var(--highlighter-blue) !important;
    transition: background 0.2s ease !important;
}

/* ========================================
   Chart Container
   ======================================== */
.toefl-article .chart-container {
    margin: 24px 0;
    padding: 20px;
    background: white;
    border: 2px solid var(--pencil-gray);
    border-radius: 8px;
    min-height: 300px;
}

/* ========================================
   Boxes（JIN互換強化）
   ======================================== */
.toefl-article .info-box,
.toefl-article .warning-box,
.toefl-article .success-box,
.cps-post-main .toefl-article .info-box,
.cps-post-main .toefl-article .warning-box,
.cps-post-main .toefl-article .success-box {
    margin: 24px 0 !important;
    padding: 16px 20px !important;
    border: 2px solid #333333 !important;
    background: var(--paper-cream) !important;
    position: relative !important;
    border-radius: 4px !important;
}

.toefl-article .info-box,
.cps-post-main .toefl-article .info-box {
    border-left: 6px solid var(--blue-pen) !important;
    background: linear-gradient(to right, var(--highlighter-blue) 0%, var(--paper-cream) 100%) !important;
}

.toefl-article .info-box strong,
.cps-post-main .toefl-article .info-box strong {
    color: var(--blue-pen) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
}

.toefl-article .warning-box,
.cps-post-main .toefl-article .warning-box {
    border-left: 6px solid var(--red-pen) !important;
    background: linear-gradient(to right, var(--highlighter-pink) 0%, var(--paper-cream) 100%) !important;
}

.toefl-article .warning-box strong,
.cps-post-main .toefl-article .warning-box strong {
    color: var(--red-pen) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
}

.toefl-article .success-box,
.cps-post-main .toefl-article .success-box {
    border-left: 6px solid #2e7d32 !important;
    background: linear-gradient(to right, var(--highlighter-green) 0%, var(--paper-cream) 100%) !important;
}

.toefl-article .success-box strong,
.cps-post-main .toefl-article .success-box strong {
    color: #2e7d32 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
}

/* ========================================
   Flow Diagram
   ======================================== */
.toefl-article .flow-diagram {
    margin: 24px 0;
    padding: 20px;
    background: var(--paper-cream);
    border: 2px dashed var(--pencil-gray);
}

.toefl-article .flow-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toefl-article .flow-box {
    padding: 12px 24px;
    border: 2px solid var(--pencil-gray);
    background: white;
    font-weight: 500;
    margin: 8px;
    text-align: center;
}

.toefl-article .flow-box.stage1 {
    background: var(--highlighter-blue);
    color: var(--blue-pen);
}

.toefl-article .flow-box.upper {
    background: var(--highlighter-pink);
}

.toefl-article .flow-box.lower {
    background: var(--highlighter-green);
}

.toefl-article .flow-arrow {
    font-size: 24px;
    color: var(--pencil-gray);
    margin: 8px 0;
}

.toefl-article .flow-label {
    font-size: 14px;
    color: var(--pencil-gray);
    margin: 8px 0;
}

.toefl-article .flow-branch {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Sticky Notes
   ======================================== */
.toefl-article .sticky-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
    justify-content: center;
}

.toefl-article .sticky {
    padding: 12px 16px;
    min-width: 100px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    transition: transform 0.2s ease;
}

.toefl-article .sticky:nth-child(even) {
    transform: rotate(2deg);
}

.toefl-article .sticky:hover {
    transform: scale(1.05) rotate(0deg);
}

.toefl-article .sticky.yellow { background: var(--highlighter-yellow); }
.toefl-article .sticky.pink { background: var(--highlighter-pink); }
.toefl-article .sticky.green { background: var(--highlighter-green); }
.toefl-article .sticky.blue { background: var(--highlighter-blue); }

/* ========================================
   Double Tap Memo
   ======================================== */
.toefl-article .double-tap-trigger {
    background: var(--highlighter-yellow);
    padding: 2px 6px;
    cursor: pointer;
    border-bottom: 2px dotted var(--pencil-gray);
}

.toefl-article .memo-popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 1001;
    max-width: 300px;
    opacity: 0;
    transition: all 0.3s ease;
}

.toefl-article .memo-popup.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toefl-article .memo-popup .material-icons {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

/* ========================================
   Long Press Drawer
   ======================================== */
.toefl-article .long-press-trigger {
    background: var(--highlighter-blue);
    padding: 2px 6px;
    cursor: pointer;
    border-bottom: 2px solid var(--blue-pen);
}

.toefl-article .drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.toefl-article .drawer-overlay.active {
    display: block;
}

.toefl-article .drawer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.toefl-article .drawer.active {
    display: block;
    transform: translateY(0);
}

.toefl-article .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--paper-lines);
}

.toefl-article .drawer-header h4 {
    margin: 0;
    color: var(--blue-pen);
    font-size: 16px;
    border: none;
    padding: 0;
    background: none;
}

.toefl-article .drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--pencil-gray);
}

.toefl-article .drawer-content p {
    margin: 8px 0;
}

.toefl-article .drawer-content .reliability {
    color: #2e7d32;
    font-weight: 500;
}

.toefl-article .drawer-content .why-matters {
    background: var(--highlighter-yellow);
    padding: 12px;
    margin-top: 12px;
    border-radius: 8px;
}

/* ========================================
   Swipe Comparison
   ======================================== */
.toefl-article .swipe-comparison {
    margin: 24px 0;
    overflow: hidden;
}

.toefl-article .swipe-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px;
}

.toefl-article .swipe-panel {
    flex: 0 0 calc(50% - 8px);
    scroll-snap-align: center;
    padding: 20px;
    border: 2px solid var(--pencil-gray);
    border-radius: 12px;
    text-align: center;
}

.toefl-article .swipe-panel.left,
.toefl-article .swipe-panel[data-panel="old"] {
    background: var(--highlighter-pink);
}

.toefl-article .swipe-panel.right,
.toefl-article .swipe-panel[data-panel="new"] {
    background: var(--highlighter-green);
}

.toefl-article .panel-label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.toefl-article .panel-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.toefl-article .panel-details {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.toefl-article .panel-details li {
    margin: 4px 0;
}

.toefl-article .comparison-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.toefl-article .comparison-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
}

.toefl-article .comparison-dot.active {
    background: var(--blue-pen);
}

/* ========================================
   Lists
   ======================================== */
.toefl-article .numbered-badge-list {
    list-style: none;
    padding-left: 0;
    counter-reset: badge-counter;
}

.toefl-article .numbered-badge-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 16px;
    counter-increment: badge-counter;
    line-height: 1.6;
}

.toefl-article .numbered-badge-list li::before {
    content: counter(badge-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--blue-pen);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.toefl-article .checkmark-list {
    list-style: none;
    padding-left: 0;
}

.toefl-article .checkmark-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.toefl-article .checkmark-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #2e7d32;
    font-weight: 700;
    font-size: 18px;
}

/* ========================================
   Two Column Box
   ======================================== */
.toefl-article .two-column-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.toefl-article .two-column-box .column {
    padding: 20px;
    border: 2px solid var(--pencil-gray);
    background: var(--paper-cream);
}

.toefl-article .two-column-box .column h4 {
    color: var(--blue-pen);
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    padding: 0;
    background: none;
}

/* ========================================
   Timeline Box
   ======================================== */
.toefl-article .timeline-box {
    margin: 24px 0;
    padding: 20px;
    background: var(--paper-cream);
    border: 2px solid var(--pencil-gray);
}

.toefl-article .timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--paper-lines);
}

.toefl-article .timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.toefl-article .timeline-marker {
    width: 32px;
    height: 32px;
    background: var(--blue-pen);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    margin-right: 16px;
}

.toefl-article .timeline-content {
    flex: 1;
    line-height: 1.6;
}

/* ========================================
   Conversion Table
   ======================================== */
.toefl-article .conversion-table {
    margin: 24px auto;
    max-width: 300px;
}

.toefl-article .conversion-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper-cream);
    border: 2px solid var(--pencil-gray);
}

.toefl-article .conversion-table th,
.toefl-article .conversion-table td {
    padding: 12px 20px;
    text-align: center;
    border-bottom: 1px dashed var(--paper-lines);
}

.toefl-article .conversion-table th {
    background: var(--highlighter-blue);
    color: var(--blue-pen);
    font-weight: 600;
}

/* ========================================
   Scroll Reveal Animation
   ======================================== */
.toefl-article .scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.toefl-article .scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Example Tags (Story Cards)
   ======================================== */
.toefl-article .examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 12px 0;
}

.toefl-article .example-tag {
    background: var(--highlighter-blue);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: var(--blue-pen);
}

.toefl-article .headline {
    font-weight: 600;
    margin-bottom: 12px;
}

.toefl-article .tagline {
    color: #666;
    font-size: 14px;
}

.toefl-article .caution {
    color: var(--red-pen);
    font-size: 12px;
    margin-top: 12px;
}

.toefl-article .transition {
    font-size: 14px;
    color: #666;
}

.toefl-article .score-comparison {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0;
}

.toefl-article .old-scale,
.toefl-article .new-scale {
    text-align: center;
}

.toefl-article .old-scale .label,
.toefl-article .new-scale .label {
    display: block;
    font-size: 12px;
    color: #999;
}

.toefl-article .old-scale .value,
.toefl-article .new-scale .value {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .toefl-article .h2-section h2 {
        font-size: 20px !important;
    }

    .toefl-article .h3-section h3 {
        font-size: 18px !important;
    }

    .toefl-article .key-number-box {
        padding: 16px 24px;
    }

    .toefl-article .key-number {
        font-size: 28px;
    }

    .toefl-article .story-card {
        flex: 0 0 260px;
    }

    .toefl-article .two-column-box {
        grid-template-columns: 1fr;
    }

    .toefl-article .sticky-notes {
        gap: 16px;
    }

    .toefl-article .sticky {
        padding: 8px 12px;
        min-width: 80px;
        font-size: 12px;
    }

    .toefl-article .flow-branch {
        flex-direction: column;
        gap: 12px;
    }

    .toefl-article .note-table {
        font-size: 14px;
    }

    .toefl-article .note-table th,
    .toefl-article .note-table td {
        padding: 8px 12px;
    }

    .toefl-article .swipe-panel {
        flex: 0 0 calc(100% - 20px);
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .toefl-article .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .toefl-article .story-card,
    .toefl-article .sticky,
    .toefl-article .memo-popup,
    .toefl-article .drawer {
        transition: none;
    }
}
