/* AAA public reading and information pages. Keep the original header,
   tab artwork, review balloons, charts and controls outside this scope. */
body #aaa-contents{--aaa-ui-link:#0054a6;--aaa-ui-rule:#ddd;--aaa-ui-muted:#666}
body.aaa-original #aaa-contents{--aaa-ui-link:#006571}
body.kr-editorial #aaa-contents{--aaa-ui-link:#a42d36}

/* Page introductions use the same plain heading rhythm as original AAA. */
body #aaa-contents :is(.reading-hero,.library-hero,.kr-index-intro,.directory-header,.ks-catalog-heading){
 padding:0 0 18px;margin:0 0 22px;max-width:none;background:none;border:0;border-bottom:1px solid var(--aaa-ui-rule);border-radius:0;box-shadow:none
}
body #aaa-contents :is(.reading-hero,.library-hero,.kr-index-intro,.directory-header,.ks-catalog-heading) h1{
 font-size:25px;font-weight:500;letter-spacing:0;line-height:1.6;margin:0 0 12px;color:#222
}
body #aaa-contents :is(.reading-hero,.library-hero,.kr-index-intro,.directory-header,.ks-catalog-heading)>p{
 max-width:none;font-size:14px;line-height:1.9;margin:8px 0;color:#444
}
body #aaa-contents :is(.reading-hero,.library-hero,.directory-header) :is(.reading-label,.eyebrow,.hero-kicker),
body #aaa-contents .kr-index-intro>.kr-eyebrow,
body #aaa-contents:has(.calc-panel) .article-header>.reading-label,
body #aaa-contents .editorial-callout>.eyebrow{display:none}
body #aaa-contents .reading-hero .reading-total,
body #aaa-contents :is(.article-count,.directory-count,.ks-total){
 font-size:13px;font-weight:400;line-height:1.8;padding:0;margin:10px 0 0;color:var(--aaa-ui-muted);border:0;background:none
}
body #aaa-contents :is(.article-count,.directory-count,.ks-total) :is(b,strong,span){font-size:inherit;font-weight:inherit;color:inherit;display:inline;letter-spacing:0;margin:0 4px 0 0;padding:0}
body #aaa-contents .reading-total span{font-size:inherit;margin-left:4px;font-weight:400}
body #aaa-contents .hero-heading{display:block}
body #aaa-contents .hero-heading .article-count{display:block}
body #aaa-contents .library-hero .hero-small{font-size:12px;color:#666}

/* Compact article lists, with linked titles and dotted row separators. */
body #aaa-contents :is(.reading-grid,.kr-card-grid){display:block;margin:0 0 24px}
body #aaa-contents :is(.reading-card,.kr-card){
 display:block;min-width:0;padding:18px 0;margin:0;border:0;border-bottom:1px dotted #ccc;border-radius:0;background:none;box-shadow:none;transform:none;transition:none
}
body #aaa-contents :is(.reading-card,.kr-card):hover{background:none;border-color:#ccc;box-shadow:none;transform:none}
body #aaa-contents :is(.reading-card,.kr-card) :is(h2,h3){font-size:17px;font-weight:500;line-height:1.7;margin:0 0 7px;padding:0;background:none;color:var(--aaa-ui-link)}
body #aaa-contents :is(.reading-card,.kr-card) :is(h2,h3) a{display:block;color:var(--aaa-ui-link);text-decoration:underline;text-underline-offset:2px}
body #aaa-contents a.reading-card h3{text-decoration:underline;text-underline-offset:2px}
body #aaa-contents :is(.reading-card,.kr-card) p{font-size:13px;line-height:1.85;margin:0 0 7px;color:#444}
body #aaa-contents :is(.reading-card,.kr-card) :is(.reading-label,.card-meta){font-size:11px;font-weight:400;color:#666;letter-spacing:0;margin:0 0 5px}
body #aaa-contents :is(.reading-meta,.card-bottom,.kr-card-meta){font-size:11px;letter-spacing:0;line-height:1.8;color:#777}
body #aaa-contents :is(.reading-card,.kr-card) :is(.reading-meta,.card-bottom,.kr-card-meta){padding:0;margin:8px 0 0;border:0;background:none}
body #aaa-contents .reading-card .card-bottom span{display:none}
body #aaa-contents :is(.reading-start,.reading-all,.article-related)>h2,
body #aaa-contents .library-section>.section-heading,
body #aaa-contents .kr-list-heading{
 padding:9px 12px;margin:26px 0 0;border:0;background:#eee;color:#222;font-size:18px;line-height:1.6;font-weight:500
}
body #aaa-contents :is(.section-heading,.kr-list-heading) h2{font-size:18px;font-weight:500;line-height:1.6;margin:0;padding:0;background:none}
body #aaa-contents .reading-start .reading-card{padding:15px 0}
body #aaa-contents .library-section .section-heading p{font-size:12px;margin:4px 0 0}
body #aaa-contents :is(.reading-all>h2,.kr-list-heading) :is(small,span){font-size:12px;color:#666}

/* Category navigation remains a real link, with a visible current item. */
body #aaa-contents :is(.reading-categories,.kr-categories,.category-tabs){display:flex;flex-wrap:wrap;gap:0;margin:18px 0 24px;padding:0;border:0;border-bottom:1px solid #ccc}
body #aaa-contents :is(.reading-categories,.kr-categories,.category-tabs) a{
 display:inline-flex;align-items:center;gap:4px;min-height:40px;box-sizing:border-box;padding:8px 12px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--aaa-ui-link);font-size:13px;font-weight:400;line-height:1.6;text-decoration:none
}
body #aaa-contents :is(.reading-categories,.kr-categories,.category-tabs) a[aria-current]{color:var(--aaa-ui-link);border-bottom-color:var(--aaa-ui-link);background:#f5f5f5;font-weight:700}
body #aaa-contents :is(.reading-categories,.kr-categories,.category-tabs) a:hover{text-decoration:underline}
body #aaa-contents :is(.reading-search,.kr-article-search){padding:15px 0;margin:20px 0;border:0;border-block:1px solid #ddd;border-radius:0;background:none}
body #aaa-contents .topic-grid{gap:0 22px}
body #aaa-contents .topic-card{padding:15px 0;border:0;border-bottom:1px dotted #ccc;border-radius:0;background:none}
body #aaa-contents .topic-number{display:none}
body #aaa-contents .topic-card strong{font-weight:500;color:var(--aaa-ui-link);text-decoration:underline}

/* Article copy, contents and source notes stay readable without nested cards. */
body #aaa-contents .kr-article{padding:0;margin:0;border:0;border-radius:0;background:none}
body #aaa-contents :is(.article-header,.kr-article-header) h1{font-size:25px;font-weight:500;line-height:1.6;letter-spacing:0}
body #aaa-contents :is(.article-toc,.kr-toc,.profile-toc,.dossier-toc,.ks-mobile-toc){
 padding:16px 0;margin:22px 0 30px;background:none;border:0;border-block:1px solid #ddd;border-radius:0;box-shadow:none
}
body #aaa-contents :is(.article-body,.kr-prose) h2{padding:10px 12px;background:#eee;border:0;font-size:20px;font-weight:500;line-height:1.65;margin:34px 0 20px}
body #aaa-contents :is(.article-body,.kr-prose) h3{font-size:17px;font-weight:600;line-height:1.7}
body #aaa-contents :is(.article-body,.kr-prose) strong{background:none;padding:0;margin:0;font-weight:700}
body #aaa-contents :is(.article-body,.article-toc,.kr-prose,.kr-toc,.reading-back) a{color:var(--aaa-ui-link)}
body #aaa-contents :is(.reading-tool-link,.article-sources,.article-editor,.editorial-callout,.kr-trust-callout,.kr-article-end,.site-bottom-guide,.dossier-related,.dossier-callout){
 padding:16px 0;margin:26px 0;background:none;border:0;border-top:1px solid #ccc;border-radius:0;box-shadow:none
}
body #aaa-contents :is(.article-sources,.article-editor,.editorial-callout,.kr-trust-callout,.site-bottom-guide,.dossier-related)>h2{font-size:17px;font-weight:500;line-height:1.7;background:none;border:0;padding:0;margin:0 0 12px}
body #aaa-contents :is(.reading-tool-link,.article-sources,.editorial-callout,.kr-trust-callout,.site-bottom-guide,.dossier-related) a{color:var(--aaa-ui-link)}
body #aaa-contents .reading-tool-link{gap:5px;font-size:14px}
body #aaa-contents .reading-tool-link span{color:#666}
body #aaa-contents .calc-panel{padding:18px 0;background:none;border:0;border-top:1px solid #ccc;border-radius:0}
body #aaa-contents .calc-panel h2{font-size:20px;font-weight:500;line-height:1.6}
body #aaa-contents .calc-result{padding:14px;background:#f5f5f5;border:1px solid #ddd;font-size:15px}
body #aaa-contents :is(.calc-panel button,.reading-button,.kr-article-search button){background:var(--aaa-ui-link);border-radius:3px;box-shadow:none}

/* Added directory/detail components use neutral dividers; original charts remain. */
body #aaa-contents :is(.directory-card,.site-card,.ks-card){border:0;border-bottom:1px dotted #ccc;border-radius:0;box-shadow:none;background:none;padding:18px 0;transform:none}
body #aaa-contents :is(.directory-grid,.site-card-grid,.ks-grid){column-gap:24px;row-gap:6px}
body #aaa-contents :is(.directory-card,.site-card,.ks-card):hover{background:none;transform:none;border-color:#ccc}
body #aaa-contents :is(.directory-card h2 a,.site-card h3,.ks-card h3 a){color:var(--aaa-ui-link);text-decoration:underline;font-weight:500}
body #aaa-contents :is(.site-card-image,.ks-card>.ks-site-visual,.lp-preview img){border-radius:0;box-shadow:none}
body #aaa-contents .site-dossier{border:0}
body #aaa-contents .dossier-hero{padding:0 0 20px;border:0;border-bottom:1px solid #ddd}
body #aaa-contents .dossier-hero .hero-kicker{font-size:0;letter-spacing:0}
body #aaa-contents .dossier-hero .hero-kicker span{font-size:11px;margin-left:0}
body #aaa-contents .dossier-section{padding:26px 0}
body #aaa-contents .dossier-section>.section-label{display:none}
body #aaa-contents .dossier-section h2{font-size:20px;font-weight:500;padding:10px 12px;background:#eee}
body #aaa-contents :is(.dossier-metrics,.profile-metrics,.ks-metrics){border:0;border-block:1px solid #ddd;border-radius:0;background:none;padding-block:10px}
body #aaa-contents :is(.dossier-metrics dd,.profile-metrics b,.ks-metrics strong){font-size:22px;line-height:1.5;font-weight:500;color:#333}
body #aaa-contents :is(.fact-grid>div,.dossier-table-scroll,.ks-filter-panel){border-radius:0;box-shadow:none}
body #aaa-contents .fact-grid>div{padding:12px 0;border:0;border-bottom:1px dotted #ccc}
body #aaa-contents :is(.directory-tabs,.site-tabs) a{border-radius:0}
body #aaa-contents :is(.directory-tabs,.site-tabs) a[aria-current]{background:var(--aaa-ui-link);border-color:var(--aaa-ui-link);color:#fff}
body #aaa-contents :is(.dossier-section,.dossier-related,.directory-card) a:not(.site-button){color:var(--aaa-ui-link)}
body #aaa-contents .site-button{background:var(--aaa-ui-link);border-color:var(--aaa-ui-link);border-radius:3px}
body #aaa-contents .site-button.secondary{background:white}
body #aaa-contents :is(.reading-card,.kr-card,.topic-card):focus-visible{outline:2px solid var(--aaa-ui-link);outline-offset:3px}
@media(max-width:719px){
 body #aaa-contents :is(.reading-hero,.library-hero,.kr-index-intro,.directory-header,.ks-catalog-heading) h1,
 body #aaa-contents :is(.article-header,.kr-article-header) h1{font-size:22px}
 body #aaa-contents :is(.reading-categories,.kr-categories,.category-tabs) a{min-height:44px;padding:9px 10px}
 body #aaa-contents :is(.reading-card,.kr-card){padding:16px 0}
 body #aaa-contents :is(.reading-card,.kr-card) :is(h2,h3){font-size:16px}
 body #aaa-contents :is(.reading-grid,.kr-card-grid){margin-bottom:20px}
 body #aaa-contents .kr-article{margin:0;padding:0}
 body #aaa-contents .dossier-hero,body #aaa-contents .dossier-section{padding-inline:0}
 body #aaa-contents :is(.reading-search,.kr-article-search) input{font-size:16px}
 body #aaa-contents :is(.reading-search,.kr-article-search) button{min-height:44px}
}

/* Filters are controls, not an extra tinted feature panel. */
body #aaa-contents :is(.directory-controls,.ks-filter-panel){padding:16px 0;border:0;border-block:1px solid #ddd;border-radius:0;background:none}
body #aaa-contents .ks-tabs{padding:0 0 12px;background:none;border:0;gap:8px}
body #aaa-contents .ks-tabs a{border:1px solid #ccc;border-radius:0;padding:10px 8px;font-size:13px}
body #aaa-contents .ks-tabs a[aria-current]{background:var(--aaa-ui-link);border-color:var(--aaa-ui-link);color:#fff}
body #aaa-contents .ks-search{padding:8px 0}
body #aaa-contents .hero-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 20px}
body #aaa-contents .hero-heading .article-count{margin:0}
body #aaa-contents .profile-header{border-bottom:1px solid #ddd}
body #aaa-contents .profile-kicker>span:not(.site-grade){display:none}
body #aaa-contents :is(.profile-body,.profile-section)>section>.eyebrow,
body #aaa-contents .profile-body>section>.eyebrow{display:none}
body #aaa-contents .ks-overall{padding:0 0 20px;background:none;border:0;border-bottom:1px solid #ddd}
body #aaa-contents .ks-overall h1{font-size:25px;font-weight:500;line-height:1.65;letter-spacing:0}
body #aaa-contents .ks-report-site{border-radius:0;box-shadow:none;background:none;border:0;border-bottom:1px dotted #ccc;padding:18px 0}
body #aaa-contents .ks-report-site strong{font-size:20px;font-weight:500}
body #aaa-contents .ks-notice{padding:12px 0;background:none;border:0;border-top:1px solid #ddd}
body #aaa-contents .article-header>.reading-label{color:#666;font-size:12px;font-weight:400;letter-spacing:0}
@media(max-width:719px){body #aaa-contents .ks-overall h1{font-size:22px}}
