/* Tameecom Stats unified project stylesheet — v30 package / v22 component.
 * Central CSS for com_tameecomstats, mod_tameecomstatsfooter and mod_tameecomstatsintro.
 */


/* ===== Component reports and catalog ===== */
/* Tameecom Stats styles. Unified stylesheet v30. */
.tcs-wrap{max-width:1400px;margin:24px auto;padding:18px;color:#173a5b;font-family:inherit}.tcs-hero{display:flex;align-items:center;gap:22px;padding:22px;border-radius:18px;background:linear-gradient(120deg,#eaf7ff,#e8fff2);border:1px solid #c9e8f0;margin-bottom:22px}.tcs-hero img{width:88px;height:88px;object-fit:contain}.tcs-hero h1{margin:0 0 8px;color:#075b86;font-size:clamp(1.45rem,3vw,2.1rem)}.tcs-hero p{margin:0;line-height:1.8}.tcs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}.tcs-card{display:block;padding:22px;border:1px solid #d9e7ef;border-radius:16px;background:#fff;box-shadow:0 6px 22px #17415a0b;color:inherit;text-decoration:none;transition:transform .18s,box-shadow .18s}.tcs-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #17415a18;text-decoration:none}.tcs-icon{display:inline-flex;width:44px;height:44px;border-radius:12px;align-items:center;justify-content:center;background:#087fbd;color:white;font-size:25px}.tcs-card h2{font-size:1.2rem;color:#075b86;margin:15px 0 8px}.tcs-card p{line-height:1.8;min-height:48px}.tcs-open{display:block;color:#07854c;font-weight:700;margin-top:16px}.tcs-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:15px 0;padding:12px 16px;background:#f2f8fc;border-radius:10px}.tcs-back{font-weight:700}.tcs-table-wrap{overflow-x:auto;border:1px solid #dce8ef;border-radius:12px}.tcs-table{width:100%;border-collapse:collapse;min-width:760px;background:white}.tcs-table th,.tcs-table td{padding:12px 14px;border-bottom:1px solid #e6edf2;text-align:right}.tcs-table thead th{background:#eaf4fa;color:#16476b;white-space:nowrap}.tcs-table tbody tr:hover{background:#f7fbfd}.tcs-table a{font-weight:700}.tcs-up{color:#07834c;font-weight:700}.tcs-down{color:#d52e3a;font-weight:700}.tcs-neutral{color:#647b8b}.tcs-note{margin-top:15px;color:#60788b;font-size:.92rem;line-height:1.8}.tcs-error{padding:18px;border:1px solid #e9a0a0;border-radius:10px;background:#fff0f0;color:#a21d25;direction:rtl}@media(max-width:600px){.tcs-wrap{padding:8px}.tcs-hero{padding:14px;gap:12px}.tcs-hero img{width:60px;height:60px}}

.tcs-pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:22px 0}.tcs-pagination ul{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}.tcs-pagination li{margin:0}.tcs-pagination a,.tcs-pagination span{display:inline-block;padding:8px 12px;border:1px solid #cbdce8;border-radius:8px;background:#fff;text-decoration:none}.tcs-pagination .active span,.tcs-pagination .active a{background:#087fbd;color:#fff;border-color:#087fbd}


/* Version 3: individual metric icons and compact, color-coded report headers. */
.tcs-card .tcs-icon{width:58px;height:58px;border-radius:15px;background:transparent;overflow:hidden}
.tcs-card .tcs-icon img{display:block;width:100%;height:100%;object-fit:contain}
.tcs-card-visits{border-top:4px solid #0786b9}
.tcs-card-words{border-top:4px solid #6d4bd1}
.tcs-card-visits .tcs-icon{background:#e5f6fc}
.tcs-card-words .tcs-icon{background:#f0eaff}
.tcs-card-words h2{color:#5b3bb2}
.tcs-card-words .tcs-open{color:#6d4bd1}
.tcs-report-wrap{padding-top:8px}
.tcs-report-hero{min-height:0;padding:12px 18px;gap:14px;border-radius:13px;margin-bottom:16px}
.tcs-report-hero img{width:48px;height:48px;flex:0 0 48px}
.tcs-report-hero h1{font-size:clamp(1.15rem,2.3vw,1.65rem);margin:0 0 4px}
.tcs-report-hero p{font-size:.95rem;line-height:1.55}
.tcs-report-hero.tcs-metric-visits{background:linear-gradient(115deg,#e8f7ff,#e5f8f3);border-color:#a8dce9;border-right:5px solid #0786b9}
.tcs-report-hero.tcs-metric-visits h1{color:#076b98}
.tcs-report-hero.tcs-metric-words{background:linear-gradient(115deg,#f4efff,#f1f6ff);border-color:#d5c8fa;border-right:5px solid #6d4bd1}
.tcs-report-hero.tcs-metric-words h1{color:#5634a7}
@media(max-width:600px){.tcs-report-hero{padding:10px 12px;gap:10px}.tcs-report-hero img{width:40px;height:40px;flex-basis:40px}.tcs-report-hero h1{font-size:1.15rem}}

/* Version 4: enforce per-statistic report header identity. */
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-metric-visits{background:linear-gradient(115deg,#e8f7ff,#e5f8f3)!important;border:1px solid #a8dce9!important;border-right:5px solid #0786b9!important}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-metric-visits h1{color:#076b98!important}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-metric-words{background:linear-gradient(115deg,#f4efff,#f1f6ff)!important;border:1px solid #d5c8fa!important;border-right:5px solid #6d4bd1!important}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-metric-words h1{color:#5634a7!important}


/* Version 5: distinct visual identities for rating-star and voter statistics. */
.tcs-card-stars{border-top:4px solid #d49a16}
.tcs-card-stars .tcs-icon{background:#fff4d2}
.tcs-card-stars h2{color:#986600}
.tcs-card-stars .tcs-open{color:#b07b00}
.tcs-card-voters{border-top:4px solid #159875}
.tcs-card-voters .tcs-icon{background:#ddf8ee}
.tcs-card-voters h2{color:#087655}
.tcs-card-voters .tcs-open{color:#159875}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-metric-stars{background:linear-gradient(115deg,#fff5d8,#fff0e5)!important;border:1px solid #f1d08a!important;border-right:5px solid #d49a16!important}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-metric-stars h1{color:#986600!important}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-metric-voters{background:linear-gradient(115deg,#e5fbf4,#e8f6ff)!important;border:1px solid #a8e3d1!important;border-right:5px solid #159875!important}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-metric-voters h1{color:#087655!important}
.tcs-card-articles{border-top:4px solid #589b2f}
.tcs-card-articles .tcs-icon{background:#eaf8d8}
.tcs-card-articles h2{color:#3e7920}
.tcs-card-articles .tcs-open{color:#589b2f}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-metric-articles{background:linear-gradient(115deg,#f0f9e8,#eaf8d8)!important;border:1px solid #b9d99b!important;border-right:5px solid #589b2f!important}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-metric-articles h1{color:#3e7920!important}


/* Version 6: visible score badge and compact mobile report cards. */
.tcs-points-badge{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 9px;border-radius:50%;background:#ffd84d;color:#5c4300;border:2px solid #efbd24;font-weight:800;font-size:.88rem;line-height:1;box-shadow:0 2px 5px #7d5a171c;white-space:nowrap}
.tcs-rank{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;border-radius:9px;background:#edf5fa;color:#16476b;font-weight:800}
.tcs-table-wrap{overflow:visible}
.tcs-table{min-width:900px}
.tcs-card-excellence{border-top:4px solid #bd7b18}.tcs-card-excellence h2{color:#8c570b}.tcs-card-excellence .tcs-open{color:#bd7b18}
.tcs-card-quality{border-top:4px solid #36964b}.tcs-card-quality h2{color:#237338}.tcs-card-quality .tcs-open{color:#36964b}
.tcs-card-active{border-top:4px solid #287bb5}.tcs-card-active h2{color:#1b5e91}.tcs-card-active .tcs-open{color:#287bb5}
.tcs-card-momentum{border-top:4px solid #8054bd}.tcs-card-momentum h2{color:#65409c}.tcs-card-momentum .tcs-open{color:#8054bd}
@media(max-width:760px){
 .tcs-wrap{padding:8px;margin:10px auto}
 .tcs-report-hero{align-items:center}
 .tcs-table-wrap{border:0;overflow:visible;background:transparent}
 .tcs-table,.tcs-table tbody{display:block;width:100%;min-width:0;background:transparent}
 .tcs-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .tcs-table tbody tr:not(.tcs-empty){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;margin:0 0 13px;padding:10px 12px;background:#fff;border:1px solid #dce8ef;border-radius:14px;box-shadow:0 4px 14px #17415a0b}
 .tcs-table td{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-width:0;padding:9px 3px;border-bottom:1px solid #edf1f4;text-align:right;overflow-wrap:anywhere;font-size:.94rem}
 .tcs-table td::before{content:attr(data-label);font-size:.76rem;font-weight:700;color:#687f91}
 .tcs-table td[data-label="المدونة"]{grid-column:1/-1;align-items:flex-start;font-size:1.02rem;padding:10px 3px}
 .tcs-table td[data-label="النقاط"]{align-items:flex-start}
 .tcs-table .tcs-points-badge{align-self:flex-start;width:46px;height:46px;font-size:.8rem}
 .tcs-table .tcs-empty{display:block;background:#fff;border:1px solid #dce8ef;border-radius:12px;padding:12px}
 .tcs-table .tcs-empty td{display:block;border:0}
 .tcs-table .tcs-empty td::before{content:none}
 .tcs-pagination{padding:0 4px}
 .tcs-toolbar{align-items:flex-start}
}
@media(max-width:380px){
 .tcs-table tbody tr:not(.tcs-empty){grid-template-columns:minmax(0,1fr)}
 .tcs-table td[data-label="المدونة"]{grid-column:auto}
}

/* v16: visible record-count badge in each report header */
.tcs-record-count{display:flex;align-items:center;justify-content:flex-start;gap:.45rem;margin:12px 0;padding:10px 16px;border:1px solid #d5e5f2;border-radius:12px;background:#f4f9fd;color:#164b76;font-size:1rem}
.tcs-record-count strong{display:inline-flex;min-width:2.2rem;justify-content:center;padding:3px 10px;border-radius:999px;background:#fff0bd;border:1px solid #f0cf65;color:#7b5700;font-weight:700}


/* ===== Footer statistics module ===== */
/* Tameecom Stats Footer Module — responsive presentation, Version 5 */
.tcs-footer-module{margin:28px auto 18px;padding:clamp(14px,2vw,24px);border:1px solid #c9dcef;border-radius:20px;background:linear-gradient(145deg,#fbfdff,#f3f8fc);box-shadow:0 8px 24px rgba(29,70,105,.08);color:#173b5d;box-sizing:border-box}
.tcs-footer-module *{box-sizing:border-box}
.tcsfm-heading{display:flex;align-items:center;gap:11px;margin:0 0 18px;padding:0 0 13px;border-bottom:1px solid #d8e5ef}
.tcsfm-heading h2{margin:0;font-size:clamp(1.15rem,2vw,1.5rem);font-weight:800;color:#164d7b}
.tcsfm-project-logo{display:block;width:34px;height:34px;flex:0 0 34px;object-fit:contain;border-radius:7px;background:#fff;padding:2px}
.tcsfm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tcsfm-card{min-width:0;padding:16px;border:1px solid #d8e5ef;border-right:4px solid #d58b22;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(23,59,93,.05)}
.tcsfm-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid #edf2f7}
.tcsfm-card-heading h3{margin:0;font-size:1.08rem;line-height:1.6;color:#174f7c;font-weight:800;overflow-wrap:anywhere}
.tcsfm-card-heading>a{flex:none;font-size:.85rem;text-decoration:none;color:#1768a3;font-weight:700}
.tcsfm-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.tcsfm-list>li{display:flex;align-items:center;gap:10px;min-width:0;padding:9px 10px;border-radius:9px;background:#f7fafc;border:1px solid #eaf0f5}
.tcsfm-rank{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#fff0d8;color:#99520a;font-weight:800;font-size:.85rem}
.tcsfm-label{flex:1;min-width:0;line-height:1.55;overflow-wrap:anywhere;font-size:.95rem}
.tcsfm-value{white-space:nowrap;color:#174f7c;font-size:.98rem}
.tcsfm-blog-link{color:#174f7c;text-decoration:none}
.tcsfm-blog-link:hover,.tcsfm-blog-link:focus{text-decoration:underline;color:#075fa4}
.tcsfm-avatar{display:block;width:var(--tcsfm-avatar-size,42px);height:var(--tcsfm-avatar-size,42px);flex:0 0 var(--tcsfm-avatar-size,42px);object-fit:cover;border-radius:var(--tcsfm-avatar-radius,50%);border:2px solid #fff;box-shadow:0 1px 5px rgba(23,59,93,.18);background:#edf3f8}
.tcsfm-avatar-small{width:var(--tcsfm-avatar-size,42px);height:var(--tcsfm-avatar-size,42px);flex-basis:var(--tcsfm-avatar-size,42px)}
.tcsfm-articles>li{display:block}
.tcsfm-article-main{display:flex;align-items:center;gap:10px;min-width:0}
.tcsfm-article-copy{flex:1;min-width:0}
.tcsfm-item-title{display:block;color:#075fa4;text-decoration:none;font-weight:800;line-height:1.65;overflow-wrap:anywhere}
.tcsfm-item-title:hover{text-decoration:underline}
.tcsfm-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 12px;margin-top:5px;color:#687f92;font-size:.82rem;line-height:1.5}
.tcsfm-meta time{direction:ltr;unicode-bidi:embed}
@media(max-width:700px){.tcs-footer-module{margin:18px 0;padding:13px;border-radius:14px}.tcsfm-grid{grid-template-columns:minmax(0,1fr);gap:12px}.tcsfm-card{padding:12px}.tcsfm-heading{margin-bottom:13px}.tcsfm-card-heading h3{font-size:1rem}.tcsfm-item-title{font-size:.96rem}.tcsfm-meta{font-size:.82rem}.tcsfm-avatar,.tcsfm-avatar-small{width:var(--tcsfm-avatar-size,42px);height:var(--tcsfm-avatar-size,42px);flex-basis:var(--tcsfm-avatar-size,42px)}}


/* ===== Homepage overview module ===== */
/* Tameecom Stats intro module — scoped styles only */
.tcs-intro{--tcs-navy:#173b63;--tcs-blue:#28649a;--tcs-gold:#e5a34a;--tcs-ink:#243447;--tcs-muted:#64748b;max-width:1100px;margin:1.5rem auto;padding:clamp(1rem,3vw,2rem);border:1px solid #d8e4ef;border-radius:24px;background:linear-gradient(135deg,#fffdf8 0%,#f2f7fc 58%,#fff7e9 100%);box-shadow:0 12px 32px rgba(23,59,99,.08);font-family:inherit;box-sizing:border-box}
.tcs-intro *{box-sizing:border-box}
.tcs-intro__hero{text-align:center;margin:0 auto 1.5rem;max-width:760px}
.tcs-intro__eyebrow{display:inline-block;padding:.35rem .9rem;border-radius:999px;background:#e7f0f9;color:var(--tcs-blue);font-weight:700;font-size:.95rem}
.tcs-intro__hero h2{margin:.8rem 0 .55rem;color:var(--tcs-navy);font-size:clamp(1.5rem,3vw,2.25rem);line-height:1.4;font-weight:800}
.tcs-intro__hero p{margin:0;color:var(--tcs-muted);font-size:clamp(1rem,1.5vw,1.15rem);line-height:1.8}
.tcs-intro__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.tcs-intro__card{min-width:0;text-align:center;padding:1.25rem .8rem;border:1px solid #dce6ef;border-radius:18px;background:rgba(255,255,255,.92);box-shadow:0 5px 14px rgba(23,59,99,.05);border-top:4px solid var(--tcs-gold)}
.tcs-intro__icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin:0 auto .65rem;border-radius:15px;background:#edf4fb;font-size:1.55rem}
.tcs-intro__label{color:var(--tcs-navy);font-size:1.05rem;font-weight:800;line-height:1.5}
.tcs-intro__value{display:block;margin:.45rem 0;color:var(--tcs-blue);font-size:clamp(1.8rem,3vw,2.5rem);font-weight:900;line-height:1.25;direction:ltr;font-variant-numeric:tabular-nums}
.tcs-intro__note{color:var(--tcs-muted);font-size:.9rem;line-height:1.6}
@media(max-width:800px){.tcs-intro__stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.tcs-intro{margin:1rem auto;border-radius:18px}.tcs-intro__card{padding:1rem .65rem}}
@media(max-width:420px){.tcs-intro{padding:.85rem}.tcs-intro__stats{gap:.55rem}.tcs-intro__card{padding:.85rem .45rem}.tcs-intro__label{font-size:.98rem}.tcs-intro__note{font-size:.82rem}.tcs-intro__icon{width:42px;height:42px}}


/* Report theme presentation migrated from PHP inline styles into this unified stylesheet. */
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-visits-ranking{background:linear-gradient(115deg,#e8f7ff,#e5f8f3);border:1px solid #a8dce9;border-right:5px solid #0786b9;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-visits-ranking h1{color:#076b98;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-words-ranking{background:linear-gradient(115deg,#f4efff,#f1f6ff);border:1px solid #d5c8fa;border-right:5px solid #6d4bd1;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-words-ranking h1{color:#5634a7;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-stars-ranking{background:linear-gradient(115deg,#fff5d8,#fff0e5);border:1px solid #f1d08a;border-right:5px solid #d49a16;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-stars-ranking h1{color:#986600;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-voters-ranking{background:linear-gradient(115deg,#e5fbf4,#e8f6ff);border:1px solid #a8e3d1;border-right:5px solid #159875;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-voters-ranking h1{color:#087655;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-documented-articles-ranking{background:linear-gradient(115deg,#f0f9e8,#eaf8d8);border:1px solid #b9d99b;border-right:5px solid #589b2f;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-documented-articles-ranking h1{color:#3e7920;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-excellence-ranking{background:linear-gradient(115deg,#fff3df,#fff8e9);border:1px solid #f0d5a3;border-right:5px solid #bd7b18;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-excellence-ranking h1{color:#8c570b;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-quality-ranking{background:linear-gradient(115deg,#e8f7eb,#f4fbef);border:1px solid #b6dfbf;border-right:5px solid #36964b;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-quality-ranking h1{color:#237338;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-active-ranking{background:linear-gradient(115deg,#e5f3ff,#edf8ff);border:1px solid #b8d8ef;border-right:5px solid #287bb5;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-active-ranking h1{color:#1b5e91;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-momentum-ranking{background:linear-gradient(115deg,#f1eaff,#f8f3ff);border:1px solid #d6c5f0;border-right:5px solid #8054bd;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-momentum-ranking h1{color:#65409c;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-authors-gender{background:linear-gradient(115deg,#e5fbf4,#e8f6ff);border:1px solid #a8e3d1;border-right:5px solid #159875;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-authors-gender h1{color:#087655;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-authors-country{background:linear-gradient(115deg,#e8f7ff,#e5f8f3);border:1px solid #a8dce9;border-right:5px solid #0786b9;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-authors-country h1{color:#076b98;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-authors-zodiac{background:linear-gradient(115deg,#fff5d8,#fff0e5);border:1px solid #f1d08a;border-right:5px solid #d49a16;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-authors-zodiac h1{color:#986600;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-authors-birth-month{background:linear-gradient(115deg,#f3edff,#eaf6ff);border:1px solid #d5c8fa;border-right:5px solid #7b58c5;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-authors-birth-month h1{color:#5634a7;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-high-quality-articles{background:linear-gradient(115deg,#f0f9e8,#eaf8d8);border:1px solid #b9d99b;border-right:5px solid #589b2f;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-high-quality-articles h1{color:#3e7920;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-top-read-articles{background:linear-gradient(115deg,#e8f7ff,#e5f8f3);border:1px solid #a8dce9;border-right:5px solid #0786b9;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-top-read-articles h1{color:#076b98;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-top-rated-articles{background:linear-gradient(115deg,#fff5d8,#fff0e5);border:1px solid #f1d08a;border-right:5px solid #d49a16;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-top-rated-articles h1{color:#986600;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-latest-authored-articles{background:linear-gradient(115deg,#e8f7ff,#e5f8f3);border:1px solid #a8dce9;border-right:5px solid #0786b9;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-latest-authored-articles h1{color:#076b98;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-latest-documented-articles{background:linear-gradient(115deg,#f0f9e8,#eaf8d8);border:1px solid #b9d99b;border-right:5px solid #589b2f;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-latest-documented-articles h1{color:#3e7920;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-high-quality-articles{background:linear-gradient(115deg,#f0f9e8,#eaf8d8);border:1px solid #b9d99b;border-right:5px solid #589b2f;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-high-quality-articles h1{color:#3e7920;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-top-read-articles{background:linear-gradient(115deg,#e8f7ff,#e5f8f3);border:1px solid #a8dce9;border-right:5px solid #0786b9;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-top-read-articles h1{color:#076b98;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-top-rated-articles{background:linear-gradient(115deg,#fff5d8,#fff0e5);border:1px solid #f1d08a;border-right:5px solid #d49a16;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-top-rated-articles h1{color:#986600;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-latest-authored-articles{background:linear-gradient(115deg,#e8f7ff,#e5f8f3);border:1px solid #a8dce9;border-right:5px solid #0786b9;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-latest-authored-articles h1{color:#076b98;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-latest-documented-articles{background:linear-gradient(115deg,#f0f9e8,#eaf8d8);border:1px solid #b9d99b;border-right:5px solid #589b2f;}
.tcs-wrap .tcs-hero.tcs-report-hero.tcs-theme-latest-documented-articles h1{color:#3e7920;}

/* ===== BDC Design System integration — v28 ===== */
.tcs-wrap,.tcs-footer-module,.tcs-intro{
  color:var(--color-text,#243447);
  font-family:var(--font-sans,"Cairo","Segoe UI",Tahoma,Arial,sans-serif);
}
.tcs-wrap{max-width:var(--container-wide,1200px);color:var(--color-text,#243447)}
.tcs-hero,.tcs-report-hero{background:linear-gradient(120deg,var(--color-primary-light,#EAF2F9),var(--bg-card,#fff));border-color:var(--color-border,#DCE5ED);border-radius:var(--radius-lg,16px);box-shadow:var(--shadow-soft,0 4px 14px rgba(24,61,90,.08))}
.tcs-hero h1,.tcs-report-hero h1,.tcs-card h2{color:var(--color-primary-dark,#183D5A)}
.tcs-card{border-color:var(--color-border,#DCE5ED);border-radius:var(--radius-lg,16px);background:var(--bg-card,#fff);box-shadow:var(--shadow-soft,0 4px 14px rgba(24,61,90,.08))}
.tcs-card:hover{box-shadow:var(--shadow-strong,0 10px 26px rgba(24,61,90,.14))}
.tcs-toolbar,.tcs-record-count{background:var(--stats-surface,#F5F9FC);border-color:var(--stats-border,#DFE8F0);color:var(--color-text,#243447);border-radius:var(--radius-md,12px)}
.tcs-table-wrap,.tcs-table{border-color:var(--color-border,#DCE5ED);border-radius:var(--radius-md,12px)}
.tcs-table thead th{background:var(--color-primary-light,#EAF2F9);color:var(--color-primary-dark,#183D5A)}
.tcs-table th,.tcs-table td{border-color:var(--color-border,#DCE5ED)}
.tcs-pagination a,.tcs-pagination span{border-color:var(--color-border,#DCE5ED);border-radius:var(--radius-sm,8px)}
.tcs-pagination .active span,.tcs-pagination .active a{background:var(--color-primary,#245B85);border-color:var(--color-primary,#245B85)}
.tcs-footer-module{border-color:var(--color-border,#DCE5ED);border-radius:var(--radius-xl,22px);background:linear-gradient(145deg,var(--bg-card,#fff),var(--bg-soft-1,#F4F8FC));box-shadow:var(--shadow-soft,0 4px 14px rgba(24,61,90,.08))}
.tcsfm-heading{border-color:var(--color-border,#DCE5ED)}
.tcsfm-heading h2,.tcsfm-card-heading h3,.tcsfm-value,.tcsfm-blog-link{color:var(--color-primary-dark,#183D5A)}
.tcsfm-card{border-color:var(--color-border,#DCE5ED);border-radius:var(--radius-md,12px);background:var(--bg-card,#fff)}
.tcsfm-list>li{background:var(--bg-soft-1,#F4F8FC);border-color:var(--color-border,#DCE5ED)}
.tcsfm-rank{background:var(--rank-surface,#FFF7E7)}
.tcs-intro__hero,.tcs-intro__card{font-family:var(--font-sans,"Cairo","Segoe UI",Tahoma,Arial,sans-serif)}
.tcs-intro__hero{color:var(--color-text,#243447)}
.tcs-intro__hero h2,.tcs-intro__value{color:var(--color-primary-dark,#183D5A)}
.tcs-intro__card{background:var(--bg-card,#fff);border-color:var(--color-border,#DCE5ED);border-radius:var(--radius-lg,16px);box-shadow:var(--shadow-soft,0 4px 14px rgba(24,61,90,.08))}
.tcs-intro__icon{background:var(--color-primary-light,#EAF2F9)}
.tcs-wrap a:focus-visible,.tcs-footer-module a:focus-visible{outline:2px solid var(--focus-color,#2D79B7);outline-offset:3px}


/* ===== BDC Comfortable Typography — v29 ===== */
/* Shared type scale aligned with media/templates/site/cassiopeia_hydra_msmsj/css/bdc.css.
   Metric-specific colors and report identities above remain intentionally unchanged. */
.tcs-wrap,
.tcs-footer-module,
.tcs-intro {
    font-family: var(--font-sans, "Cairo", "Segoe UI", Tahoma, Arial, sans-serif);
    font-size: var(--font-body, 18px);
    line-height: var(--line-body, 1.85);
    font-weight: var(--weight-body, 400);
    color: var(--color-text, #243447);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.tcs-wrap p,
.tcs-footer-module p,
.tcs-intro p {
    font-size: var(--font-body, 18px);
    line-height: var(--line-body, 1.85);
}
.tcs-wrap h1,
.tcs-wrap .tcs-hero h1,
.tcs-wrap .tcs-report-hero h1 {
    font-family: var(--font-sans, "Cairo", "Segoe UI", Tahoma, Arial, sans-serif);
    font-size: clamp(26px, 2.5vw, 36px);
    line-height: var(--line-title, 1.4);
    font-weight: 800;
}
.tcs-wrap .tcs-card h2,
.tcs-wrap .tcs-toolbar,
.tcs-wrap .tcs-record-count,
.tcs-footer-module .tcsfm-heading h2,
.tcs-intro .tcs-intro__hero h2 {
    font-family: var(--font-sans, "Cairo", "Segoe UI", Tahoma, Arial, sans-serif);
}
.tcs-wrap .tcs-card h2 {
    font-size: 22px;
    line-height: 1.55;
    font-weight: 800;
}
.tcs-wrap .tcs-report-hero p,
.tcs-wrap .tcs-note,
.tcs-wrap .tcs-neutral,
.tcs-footer-module .tcsfm-meta,
.tcs-intro .tcs-intro__note {
    font-size: var(--font-meta, 14px);
    line-height: var(--line-meta, 1.7);
}
.tcs-wrap .tcs-table th,
.tcs-wrap .tcs-table td,
.tcs-wrap .tcs-toolbar,
.tcs-wrap .tcs-record-count,
.tcs-footer-module .tcsfm-label,
.tcs-footer-module .tcsfm-value,
.tcs-footer-module .tcsfm-item-title,
.tcs-intro .tcs-intro__label {
    font-size: 16px;
    line-height: 1.7;
}
.tcs-wrap .tcs-table th,
.tcs-wrap .tcs-table a,
.tcs-footer-module .tcsfm-item-title,
.tcs-intro .tcs-intro__label {
    font-weight: 700;
}
.tcs-wrap .tcs-open,
.tcs-wrap .tcs-back,
.tcs-wrap .tcs-pagination a,
.tcs-wrap .tcs-pagination span,
.tcs-footer-module .tcsfm-card-heading > a {
    font-family: var(--font-sans, "Cairo", "Segoe UI", Tahoma, Arial, sans-serif);
    font-size: var(--font-button, 16px);
    line-height: 1.5;
}
.tcs-wrap input,
.tcs-wrap select,
.tcs-wrap textarea,
.tcs-wrap .form-control {
    font-family: var(--font-sans, "Cairo", "Segoe UI", Tahoma, Arial, sans-serif);
    font-size: 16px;
    line-height: 1.65;
}
.tcs-wrap a:focus-visible,
.tcs-wrap button:focus-visible,
.tcs-wrap input:focus-visible,
.tcs-wrap select:focus-visible,
.tcs-wrap textarea:focus-visible,
.tcs-footer-module a:focus-visible,
.tcs-intro a:focus-visible {
    outline: 2px solid var(--focus-color, #2D79B7);
    outline-offset: 3px;
}
.tcs-intro .tcs-intro__eyebrow {
    font-size: 14px;
    line-height: 1.7;
}
.tcs-intro .tcs-intro__hero h2 {
    font-size: clamp(26px, 2.5vw, 34px);
    line-height: 1.4;
}
.tcs-intro .tcs-intro__hero p {
    font-size: 16px;
    line-height: 1.85;
}
.tcs-intro .tcs-intro__value {
    font-size: clamp(26px, 3vw, 30px);
    line-height: 1.35;
}
@media (max-width: 600px) {
    .tcs-wrap,
    .tcs-footer-module,
    .tcs-intro {
        font-size: 18px;
        line-height: 1.9;
    }
    .tcs-wrap .tcs-hero h1,
    .tcs-wrap .tcs-report-hero h1 {
        font-size: 26px;
    }
    .tcs-wrap .tcs-card h2,
    .tcs-footer-module .tcsfm-heading h2,
    .tcs-intro .tcs-intro__label {
        font-size: 20px;
    }
    .tcs-wrap .tcs-table th,
    .tcs-wrap .tcs-table td,
    .tcs-wrap .tcs-toolbar,
    .tcs-wrap .tcs-record-count,
    .tcs-footer-module .tcsfm-label,
    .tcs-footer-module .tcsfm-value,
    .tcs-footer-module .tcsfm-item-title,
    .tcs-intro .tcs-intro__hero p {
        font-size: 16px;
    }
    .tcs-wrap .tcs-note,
    .tcs-wrap .tcs-neutral,
    .tcs-footer-module .tcsfm-meta,
    .tcs-intro .tcs-intro__note {
        font-size: 14px;
    }
}


/* ===== BDC Comfortable Typography enforcement — v30 =====
   Explicit pixel scale for the component and both site modules.
   Scoped selectors intentionally override legacy rem/clamp rules without
   changing metric colors, layout, data, or component behavior.
*/
.tcs-wrap,
.tcs-footer-module,
.tcs-intro {
    font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-size: 18px;
    line-height: 1.85;
    font-weight: 400;
    color: var(--color-text, #243447);
}
.tcs-wrap *,
.tcs-footer-module *,
.tcs-intro * {
    font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}
.tcs-footer-module .tcsfm-heading h2 {
    font-size: 23px;
    line-height: 1.55;
    font-weight: 800;
}
.tcs-footer-module .tcsfm-card-heading h3 {
    font-size: 21px;
    line-height: 1.55;
    font-weight: 800;
}
.tcs-footer-module .tcsfm-card-heading > a {
    font-size: 16px;
    line-height: 1.5;
}
.tcs-footer-module .tcsfm-label,
.tcs-footer-module .tcsfm-value,
.tcs-footer-module .tcsfm-item-title,
.tcs-footer-module .tcsfm-rank {
    font-size: 16px;
    line-height: 1.7;
}
.tcs-footer-module .tcsfm-meta {
    font-size: 14px;
    line-height: 1.7;
}
.tcs-wrap .tcs-hero h1,
.tcs-wrap .tcs-report-hero h1 {
    font-size: 30px;
    line-height: 1.4;
}
.tcs-wrap .tcs-card h2,
.tcs-wrap .tcs-toolbar,
.tcs-wrap .tcs-record-count {
    font-size: 21px;
    line-height: 1.55;
}
.tcs-wrap .tcs-table th,
.tcs-wrap .tcs-table td,
.tcs-wrap .tcs-open,
.tcs-wrap .tcs-back,
.tcs-wrap .tcs-pagination a,
.tcs-wrap .tcs-pagination span {
    font-size: 16px;
    line-height: 1.7;
}
.tcs-wrap .tcs-note,
.tcs-wrap .tcs-neutral,
.tcs-wrap .tcs-report-hero p {
    font-size: 14px;
    line-height: 1.7;
}
.tcs-intro .tcs-intro__hero h2 {
    font-size: 30px;
    line-height: 1.4;
}
.tcs-intro .tcs-intro__hero p,
.tcs-intro .tcs-intro__label {
    font-size: 16px;
    line-height: 1.85;
}
.tcs-intro .tcs-intro__eyebrow,
.tcs-intro .tcs-intro__note {
    font-size: 14px;
    line-height: 1.7;
}
.tcs-intro .tcs-intro__value {
    font-size: 28px;
    line-height: 1.35;
    font-weight: 800;
}
@media (max-width: 600px) {
    .tcs-wrap,
    .tcs-footer-module,
    .tcs-intro {
        font-size: 18px;
        line-height: 1.9;
    }
    .tcs-footer-module .tcsfm-heading h2,
    .tcs-wrap .tcs-card h2 {
        font-size: 21px;
    }
    .tcs-footer-module .tcsfm-card-heading h3 {
        font-size: 20px;
    }
    .tcs-footer-module .tcsfm-label,
    .tcs-footer-module .tcsfm-value,
    .tcs-footer-module .tcsfm-item-title,
    .tcs-wrap .tcs-table th,
    .tcs-wrap .tcs-table td,
    .tcs-intro .tcs-intro__hero p,
    .tcs-intro .tcs-intro__label {
        font-size: 16px;
    }
    .tcs-footer-module .tcsfm-meta,
    .tcs-wrap .tcs-note,
    .tcs-wrap .tcs-neutral,
    .tcs-wrap .tcs-report-hero p,
    .tcs-intro .tcs-intro__eyebrow,
    .tcs-intro .tcs-intro__note {
        font-size: 14px;
    }
    .tcs-wrap .tcs-hero h1,
    .tcs-wrap .tcs-report-hero h1,
    .tcs-intro .tcs-intro__hero h2 {
        font-size: 26px;
    }
    .tcs-intro .tcs-intro__value {
        font-size: 26px;
    }
}


/* ===== Footer statistics mobile ranking cards — v31 =====
   Mobile only: keep blog titles on one line and place the metric below.
   Desktop layout and all data/rendering logic remain unchanged.
*/
@media (max-width: 700px) {
  .tcs-footer-module .tcsfm-list:not(.tcsfm-articles) > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 9px;
    row-gap: 5px;
  }
  .tcs-footer-module .tcsfm-list:not(.tcsfm-articles) > li > .tcsfm-label {
    order: 3;
    flex: 1 0 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-break: normal;
    text-align: center;
    line-height: 1.5;
  }
  .tcs-footer-module .tcsfm-list:not(.tcsfm-articles) > li > .tcsfm-value {
    order: 4;
    flex: 0 0 100%;
    display: block;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    line-height: 1.45;
    font-size: 16px;
  }
}
