/* ========================================================================
   KingsAdmin Stage 7.11.7 — Readability / Typography Accessibility Pass

   Purpose:
   - remove 5–9px text from normal portal interfaces
   - preserve hierarchy without making the UI oversized
   - load AFTER module CSS so this becomes the final readability floor
   ======================================================================== */

:root{
    --ka-type-body:13px;
    --ka-type-secondary:12px;
    --ka-type-meta:11px;
    --ka-type-label:10.5px;
    --ka-type-control:12px;
}

/* General authenticated application text */
body:not(.ks-login-body){
    font-size:14px;
    line-height:1.45;
}

body:not(.ks-login-body) p{
    font-size:var(--ka-type-body) !important;
    line-height:1.5 !important;
}

body:not(.ks-login-body) small,
body:not(.ks-login-body) time{
    font-size:var(--ka-type-meta) !important;
    line-height:1.4 !important;
}

body:not(.ks-login-body) label,
body:not(.ks-login-body) dt,
body:not(.ks-login-body) th{
    font-size:var(--ka-type-label) !important;
    line-height:1.35 !important;
}

body:not(.ks-login-body) td{
    font-size:var(--ka-type-secondary) !important;
    line-height:1.4 !important;
}

body:not(.ks-login-body) input,
body:not(.ks-login-body) textarea,
body:not(.ks-login-body) select,
body:not(.ks-login-body) button{
    font-size:var(--ka-type-control) !important;
}

/* Shared navigation / controls */
.nav-link,
.topbar-actions,
.topbar-signout,
.church-pill,
.mobile-dock a,
.mobile-more-sheet a,
.disc-nav a,
.disc-subnav a,
.fc-nav-links a,
.fc-mobile-dock a,
.pcs-nav a,
.pcs-tabs a{
    font-size:12px !important;
}

.disc-btn,
.pcs-btn,
.mp-btn,
.ac-mark-all,
.platform-button,
.table-action,
.pcs-open,
.notification-view-all,
.disc-activity-view-all{
    font-size:11px !important;
    line-height:1.3 !important;
}

/* Eyebrows/kickers stay visually small, but no longer microscopic */
.disc-kicker,
.pcs-kicker,
.mp-kicker,
.mp-panel-kicker,
.ac-kicker,
.eyebrow,
[class*="-kicker"],
[class*="_kicker"]{
    font-size:10px !important;
    line-height:1.2 !important;
}

/* Chips/status labels */
.pcs-chip,
.prayer-status,
.status-chip,
.role-chip,
.spx-status,
.spx-chip,
.fc-chip,
[class*="-chip"]{
    font-size:10px !important;
    line-height:1.2 !important;
}

/* ==========================================================
   Discipleship
   ========================================================== */
.disc-body,
.disc-main{
    font-size:14px;
}

.course-body p,
.continue-card p,
.live-card p,
.path-card p,
.manage-row p,
.study-showcase-card p{
    font-size:12px !important;
}

.course-meta,
.study-showcase-meta,
.spx-meta,
.spx-card-meta,
.spx-plan-meta{
    font-size:11px !important;
}

.course-meta span,
.study-showcase-meta span,
.study-showcase-meta b,
.spx-meta span,
.spx-meta b{
    font-size:11px !important;
}

.spx-day-row small{
    font-size:10.5px !important;
}

.spx-day-row strong{
    font-size:13px !important;
    line-height:1.3 !important;
}

.spx-day-row p{
    font-size:11px !important;
    line-height:1.4 !important;
}

.spx-day-number{
    font-size:13px !important;
}

.spx-lock-state strong{
    font-size:10px !important;
}

.spx-lock-state small{
    font-size:9.5px !important;
}

.spx-available-today,
.spx-done{
    font-size:10px !important;
}

/* Keep the compact activity tray compact but readable */
.disc-activity-head strong{
    font-size:12px !important;
}

.disc-activity-head small{
    font-size:10px !important;
}

.disc-activity-item strong{
    font-size:11px !important;
}

.disc-activity-item span{
    font-size:10px !important;
    line-height:1.35 !important;
}

.disc-activity-item small{
    font-size:9px !important;
}

/* ==========================================================
   Pastoral Care / Spiritual Pulse / Pastor Prayer
   ========================================================== */
.pcs-hero p,
body.portal-pastor .content-header p{
    font-size:13px !important;
}

.pcs-metrics small,
.pcs-rating-grid small,
.pcs-panel-head small,
.pcs-row small,
.pcs-table th,
.pcs-table td small,
.pcs-detail-side dt,
.pcs-field small,
.pcs-timeline small{
    font-size:10px !important;
}

.pcs-metrics p,
.pcs-panel-head p,
.pcs-row p,
.pcs-callout p,
.pcs-timeline p,
.pcs-empty{
    font-size:12px !important;
}

.pcs-row strong,
.pcs-table td strong,
.pcs-callout strong,
.pcs-timeline strong{
    font-size:12px !important;
}

.pcs-table td,
.pcs-detail-side dd,
.pcs-detail-text{
    font-size:12px !important;
}

.pcs-field label,
.pcs-filter input,
.pcs-filter select,
.pcs-field input,
.pcs-field textarea,
.pcs-field select{
    font-size:12px !important;
}

/* ==========================================================
   Member Prayer
   ========================================================== */
.mp-hero-copy>p,
.mp-form-hero p,
.mp-wall-hero p,
.mp-answered-hero p,
.mp-detail-hero p{
    font-size:13px !important;
}

.mp-metrics small,
.mp-request-meta,
.mp-message-list small,
.mp-wall-card-top>div>span,
.mp-journey small,
.mp-field>small{
    font-size:10px !important;
}

.mp-metrics p,
.mp-request-main>p,
.mp-message-list p,
.mp-privacy-row p,
.mp-wall-card>p,
.mp-journey p,
.mp-form-side>p{
    font-size:12px !important;
}

.mp-request-title strong,
.mp-message-list strong,
.mp-privacy-row strong,
.mp-wall-card-top small,
.mp-detail-label strong,
.mp-journey strong{
    font-size:12px !important;
}

/* ==========================================================
   Member 360 + Member Activity + intelligence dashboards
   ========================================================== */
.panel-subtext,
.timeline-content p,
.ac-copy>p,
.ac-note p{
    font-size:12px !important;
}

.timeline-meta small,
.timeline-meta time,
.ac-item-top small,
.ac-item-top time{
    font-size:10px !important;
}

.timeline-content h3,
.ac-copy>strong{
    font-size:12px !important;
}

.activity-stream-summary span,
.activity-stream-legend span{
    font-size:10px !important;
}

/* ==========================================================
   Faith Community
   ========================================================== */
.fc-body{
    font-size:14px;
}

.fc-body p{
    font-size:13px !important;
}

.fc-body small{
    font-size:10px !important;
}

.fc-nav-stat small,
.fc-mobile-dock small{
    font-size:10px !important;
}

.fc-nav-links a,
.fc-return{
    font-size:12px !important;
}

/* ==========================================================
   Platform Administration / Profile
   ========================================================== */
.platform-hero p,
.platform-page-head p,
.platform-card p,
.platform-note p,
.platform-table-head p,
.church-overview-card dd,
.tenant-control-panel p,
.onboarding-step small{
    font-size:12px !important;
}

.platform-card small,
.platform-stats small,
.platform-table th,
.church-overview-card dt,
.onboarding-summary>span{
    font-size:10px !important;
}

.platform-table td,
.platform-field label,
.platform-field input,
.platform-field textarea,
.platform-field select{
    font-size:12px !important;
}

/* ==========================================================
   Login: only raise the truly tiny helper/footer text.
   The primary login layout keeps its dedicated sizing.
   ========================================================== */
.ks-login-body small,
.ks-login-body .help-copy,
.ks-login-body .login-footer,
.ks-login-body .login-legal,
.ks-login-body label{
    font-size:11px !important;
    line-height:1.4 !important;
}

/* Phones need a little more breathing room than desktop. */
@media(max-width:650px){
    :root{
        --ka-type-body:14px;
        --ka-type-secondary:13px;
        --ka-type-meta:12px;
        --ka-type-label:11px;
        --ka-type-control:13px;
    }

    .disc-kicker,
    .pcs-kicker,
    .mp-kicker,
    .mp-panel-kicker,
    .ac-kicker,
    .eyebrow,
    [class*="-kicker"],
    [class*="_kicker"]{
        font-size:10.5px !important;
    }

    .spx-day-row strong{
        font-size:14px !important;
    }

    .spx-day-row p{
        font-size:12px !important;
    }

    .disc-activity-item strong{
        font-size:12px !important;
    }

    .disc-activity-item span{
        font-size:11px !important;
    }

    .disc-activity-item small{
        font-size:10px !important;
    }
}
