/* ==========================================================================
   TUPOKSI PERANGKAT KAMPONG - MODERN EXECUTIVE GREEN-GOLD STYLING
   Pemerintah Kampong Bukit Alim - Kec. Longkib, Kota Subulussalam
   ========================================================================== */

.tupoksi-page {
    background: #022016;
    color: #e6f4ed;
    min-height: 100vh;
}

/* --- Hero Banner --- */
.tupoksi-hero {
    position: relative;
    padding: 130px 0 50px;
    background: linear-gradient(180deg, #021a12 0%, #063829 60%, #03251c 100%);
    border-bottom: 1px solid rgba(229, 195, 85, 0.25);
    overflow: hidden;
}

.tupoksi-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(229, 195, 85, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: 0 0, 14px 14px;
    pointer-events: none;
    opacity: 0.8;
}

.tupoksi-hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(229, 195, 85, 0.18) 0%, rgba(16, 185, 129, 0.08) 45%, transparent 70%);
    pointer-events: none;
}

.tupoksi-hero-inner {
    position: relative;
    z-index: 2;
}

.tupoksi-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(2, 24, 17, 0.7);
    border: 1px solid rgba(229, 195, 85, 0.3);
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.tupoksi-breadcrumb a {
    color: #fde68a;
    text-decoration: none;
    transition: color 0.2s;
}

.tupoksi-breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.tupoksi-breadcrumb i {
    font-size: 10px;
    color: rgba(229, 195, 85, 0.6);
}

.tupoksi-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(229, 195, 85, 0.2), rgba(16, 185, 129, 0.15));
    border: 1px solid #e5c355;
    color: #fde68a;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tupoksi-hero h1 {
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 850;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.tupoksi-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #fde68a 0%, #e5c355 60%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tupoksi-hero-desc {
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 820px;
    margin: 0 0 28px;
}

/* Quick Stats Strip */
.tupoksi-stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.tupoksi-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(2, 24, 17, 0.8);
    border: 1px solid rgba(229, 195, 85, 0.25);
    border-radius: 12px;
    font-size: 13px;
    color: #e2e8f0;
}

.tupoksi-stat-pill i {
    color: #fde68a;
}

.tupoksi-stat-pill b {
    color: #ffffff;
    font-weight: 800;
}

/* --- Control Toolbar: Search & Filter --- */
.tupoksi-toolbar-section {
    position: sticky;
    top: 65px;
    z-index: 30;
    background: rgba(2, 24, 17, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 195, 85, 0.22);
    padding: 16px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.tupoksi-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tupoksi-search-box {
    position: relative;
    flex: 1 1 320px;
    max-width: 460px;
}

.tupoksi-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #e5c355;
    font-size: 14px;
    pointer-events: none;
}

.tupoksi-search-input {
    width: 100%;
    height: 42px;
    padding: 0 40px 0 40px;
    background: rgba(4, 38, 28, 0.8);
    border: 1px solid rgba(229, 195, 85, 0.35);
    border-radius: 999px;
    color: #ffffff;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
}

.tupoksi-search-input:focus {
    border-color: #fde68a;
    background: rgba(6, 56, 41, 0.95);
    box-shadow: 0 0 0 3px rgba(229, 195, 85, 0.2);
}

.tupoksi-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    display: none;
}

.tupoksi-search-clear:hover {
    color: #fde68a;
}

/* Category Filter Tabs */
.tupoksi-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tupoksi-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: rgba(6, 45, 33, 0.7);
    border: 1px solid rgba(229, 195, 85, 0.25);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tupoksi-tab-btn:hover {
    color: #fde68a;
    background: rgba(6, 56, 41, 0.9);
    border-color: rgba(229, 195, 85, 0.5);
}

.tupoksi-tab-btn.is-active {
    background: linear-gradient(135deg, rgba(229, 195, 85, 0.25), rgba(16, 185, 129, 0.3));
    border-color: #fde68a;
    color: #fde68a;
    box-shadow: 0 2px 10px rgba(229, 195, 85, 0.2);
}

.tupoksi-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(229, 195, 85, 0.25);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
}

/* --- Cards Container --- */
.tupoksi-cards-section {
    padding: 40px 0 80px;
}

.tupoksi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 26px;
}

@media (max-width: 480px) {
    .tupoksi-grid {
        grid-template-columns: 1fr;
    }
}

/* Apparatus Card */
.tupoksi-card {
    background: linear-gradient(165deg, rgba(6, 48, 35, 0.95) 0%, rgba(3, 27, 20, 0.98) 100%);
    border: 1px solid rgba(229, 195, 85, 0.3);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}

.tupoksi-card:hover {
    transform: translateY(-4px);
    border-color: #e5c355;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(229, 195, 85, 0.35);
}

.tupoksi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e5c355, #10b981, #fde68a);
    opacity: 0.85;
}

.tupoksi-card.is-chief-card {
    border-color: rgba(229, 195, 85, 0.55);
    background: linear-gradient(165deg, rgba(8, 62, 45, 0.97) 0%, rgba(4, 32, 23, 0.99) 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(229, 195, 85, 0.12);
}

/* Card Header: Photo + Info */
.tupoksi-card-head {
    display: flex;
    gap: 16px;
    align-items: center;
}

.tupoksi-photo-wrapper {
    position: relative;
    width: 76px;
    height: 94px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #04241b;
    border: 2px solid rgba(229, 195, 85, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.tupoksi-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tupoksi-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5c355;
    font-size: 32px;
    background: linear-gradient(135deg, #063829, #021a12);
}

.tupoksi-rank-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(2, 24, 17, 0.88);
    color: #fde68a;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid rgba(229, 195, 85, 0.4);
}

.tupoksi-head-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.tupoksi-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(229, 195, 85, 0.15);
    border: 1px solid rgba(229, 195, 85, 0.4);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    color: #fde68a;
    margin-bottom: 6px;
}

.tupoksi-card-name {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.35;
    word-break: break-word;
}

.tupoksi-card-role {
    font-size: 13px;
    font-weight: 700;
    color: #a7f3d0;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tupoksi-card-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #34d399;
}

.tupoksi-card-status .status-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Card Section: Tugas Pokok */
.tupoksi-duty-box {
    background: rgba(2, 24, 17, 0.75);
    border: 1px solid rgba(229, 195, 85, 0.22);
    border-radius: 12px;
    padding: 14px;
}

.tupoksi-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fde68a;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tupoksi-box-title i {
    font-size: 13px;
    color: #e5c355;
}

.tupoksi-duty-copy {
    font-size: 13px;
    line-height: 1.65;
    color: #e2e8f0;
    margin: 0;
}

/* Card Section: Rincian Fungsi */
.tupoksi-function-box {
    background: rgba(2, 24, 17, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 12px;
    padding: 14px;
}

.tupoksi-function-box .tupoksi-box-title {
    color: #a7f3d0;
}

.tupoksi-function-box .tupoksi-box-title i {
    color: #10b981;
}

.tupoksi-function-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tupoksi-function-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #cbd5e1;
}

.tupoksi-func-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(229, 195, 85, 0.18);
    border: 1px solid rgba(229, 195, 85, 0.35);
    color: #fde68a;
    font-size: 10.5px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Card Foot */
.tupoksi-card-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(229, 195, 85, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
}

.tupoksi-card-unit {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tupoksi-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fde68a;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.tupoksi-card-action:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Empty State for Search */
.tupoksi-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(4, 32, 23, 0.7);
    border: 1px dashed rgba(229, 195, 85, 0.35);
    border-radius: 18px;
}

.tupoksi-empty-icon {
    font-size: 48px;
    color: #e5c355;
    margin-bottom: 16px;
}

.tupoksi-empty-state h3 {
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 8px;
}

.tupoksi-empty-state p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* Bottom CTA Strip */
.tupoksi-cta-section {
    background: linear-gradient(180deg, #03251c 0%, #021a12 100%);
    border-top: 1px solid rgba(229, 195, 85, 0.25);
    padding: 60px 0;
}

.tupoksi-cta-box {
    background: linear-gradient(135deg, rgba(6, 48, 35, 0.95), rgba(4, 32, 23, 0.95));
    border: 1px solid rgba(229, 195, 85, 0.4);
    border-radius: 20px;
    padding: 36px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.tupoksi-cta-copy h3 {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
}

.tupoksi-cta-copy p {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
    max-width: 600px;
}

.tupoksi-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-tupoksi-sotk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f3d266, #d49f26);
    color: #04281d;
    font-weight: 800;
    font-size: 13.5px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid #fde68a;
    box-shadow: 0 4px 14px rgba(229, 195, 85, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-tupoksi-sotk:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 195, 85, 0.45);
    color: #04281d;
}

.btn-tupoksi-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(2, 24, 17, 0.8);
    border: 1px solid rgba(229, 195, 85, 0.4);
    border-radius: 999px;
    color: #fde68a;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-tupoksi-home:hover {
    background: rgba(6, 48, 35, 0.95);
    border-color: #fde68a;
    color: #ffffff;
}

/* ==========================================================================
   DARK THEME REFINEMENTS
   ========================================================================== */
:root[data-theme="dark"] .tupoksi-page {
    background: #01140e;
}
:root[data-theme="dark"] .tupoksi-card {
    background: linear-gradient(165deg, rgba(4, 38, 28, 0.98) 0%, rgba(2, 20, 15, 0.99) 100%);
}

/* Match the public home palette while keeping Tupoksi's own content layout. */
.tupoksi-page {
    color: var(--ink);
    background: var(--paper);
}

.tupoksi-hero {
    padding: clamp(58px, 7vw, 92px) 0 54px;
    background: radial-gradient(ellipse at 84% 4%, #176b4c 0%, #0b543b 34%, #073b2d 76%);
    border-bottom-color: #e5c35550;
}

.tupoksi-hero-glow {
    width: min(760px, 90vw);
    height: 480px;
    opacity: .8;
}

.tupoksi-breadcrumb,
.tupoksi-stat-pill {
    color: #e9f4ec;
    background: #04281db8;
    border-color: #e5c35555;
}

.tupoksi-hero-desc { color: #d2e3d9; }

.tupoksi-toolbar-section {
    top: 72px;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px #153c2d12;
}

.tupoksi-search-input {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}

.tupoksi-search-input::placeholder { color: #819087; }
.tupoksi-search-input:focus { background: #fff; border-color: var(--forest-3); box-shadow: 0 0 0 3px #15916b20; }
.tupoksi-search-icon { color: var(--forest-3); }

.tupoksi-tab-btn {
    color: var(--muted);
    background: #fff;
    border-color: var(--line);
}

.tupoksi-tab-btn:hover,
.tupoksi-tab-btn.is-active {
    color: var(--forest);
    background: #e8f5ed;
    border-color: #b8ddc8;
}

.tupoksi-tab-count { color: var(--forest-2); background: #dff1e6; }

.tupoksi-cards-section { padding: 42px 0 64px; background: var(--paper); }
.tupoksi-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }

.tupoksi-card,
:root[data-theme="dark"] .tupoksi-card {
    color: var(--ink);
    background: linear-gradient(160deg, #fff 0%, #f8fbf8 100%);
    border: 1px solid #dfe9e1;
    border-radius: 22px;
    box-shadow: 0 14px 38px #173e2c0d;
}

.tupoksi-card:hover { border-color: #93c9aa; box-shadow: 0 20px 44px #173e2c18; }
.tupoksi-card.is-chief-card { background: linear-gradient(160deg, #fffdf4 0%, #fff 65%); border-color: #eadb9f; }
.tupoksi-card-name { color: var(--ink); }
.tupoksi-card-role { color: var(--forest-2); }
.tupoksi-card-status { color: #16805b; }
.tupoksi-duty-box, .tupoksi-function-box { background: #f1f7f2; border: 1px solid #e3ece4; }
.tupoksi-duty-copy, .tupoksi-function-list li { color: #506158; }
.tupoksi-box-title { color: var(--forest); }
.tupoksi-function-box .tupoksi-box-title { color: var(--forest-2); }
.tupoksi-card-unit { color: var(--muted); }
.tupoksi-card-action { color: var(--forest-2); }
.tupoksi-empty-state { color: var(--ink); background: #fff; border: 1px dashed #cddbd0; border-radius: 22px; }
.tupoksi-empty-state p { color: var(--muted); }

.tupoksi-cta-section { padding: 0 0 76px; background: var(--paper); }
.tupoksi-cta-box {
    color: var(--ink);
    background: linear-gradient(120deg, #fff 0%, #edf7f0 100%);
    border: 1px solid #dce9df;
    border-radius: 24px;
    box-shadow: 0 16px 42px #173e2c0d;
}
.tupoksi-cta-copy h3 { color: var(--ink); }
.tupoksi-cta-copy p { color: var(--muted); }
.btn-tupoksi-home { color: var(--forest); background: #fff; border-color: #cbded0; }
.btn-tupoksi-home:hover { color: var(--forest); background: #edf7f0; border-color: #9bc9aa; }

:root[data-theme="dark"] body.tupoksi-page,
html[data-theme="dark"] .tupoksi-cards-section,
html[data-theme="dark"] .tupoksi-cta-section { color: #e5efe9; background: #081b14; }
html[data-theme="dark"] .tupoksi-toolbar-section { background: #0c2119ed; border-color: #254334; }
html[data-theme="dark"] .tupoksi-search-input,
html[data-theme="dark"] .tupoksi-tab-btn { color: #e4eee8; background: #10291f; border-color: #294a39; }
html[data-theme="dark"] .tupoksi-search-input::placeholder { color: #9ab0a3; }
html[data-theme="dark"] .tupoksi-search-input:focus { background: #10291f; border-color: #40b889; }
html[data-theme="dark"] .tupoksi-tab-btn:hover,
html[data-theme="dark"] .tupoksi-tab-btn.is-active { color: #d8f4e5; background: #164432; border-color: #347555; }
html[data-theme="dark"] .tupoksi-tab-count { color: #bcebd0; background: #1b4934; }
:root[data-theme="dark"] .tupoksi-card { color: #e5efe9; background: linear-gradient(160deg, #10271e, #0b1e17); border-color: #294536; }
html[data-theme="dark"] .tupoksi-card.is-chief-card { background: linear-gradient(160deg, #302c18, #10251c 65%); border-color: #736331; }
html[data-theme="dark"] .tupoksi-card-name,
html[data-theme="dark"] .tupoksi-cta-copy h3 { color: #f0f6f2; }
html[data-theme="dark"] .tupoksi-card-role,
html[data-theme="dark"] .tupoksi-card-action { color: #75d6a5; }
html[data-theme="dark"] .tupoksi-duty-box,
html[data-theme="dark"] .tupoksi-function-box { background: #0a1c15; border-color: #233c2e; }
html[data-theme="dark"] .tupoksi-duty-copy,
html[data-theme="dark"] .tupoksi-function-list li,
html[data-theme="dark"] .tupoksi-card-unit,
html[data-theme="dark"] .tupoksi-cta-copy p { color: #b5c9bd; }
html[data-theme="dark"] .tupoksi-empty-state { color: #e5efe9; background: #10271e; border-color: #355743; }
html[data-theme="dark"] .tupoksi-empty-state p { color: #b5c9bd; }
html[data-theme="dark"] .tupoksi-cta-box { color: #e5efe9; background: linear-gradient(120deg, #10271e, #123526); border-color: #294536; }
html[data-theme="dark"] .btn-tupoksi-home { color: #d9f1e2; background: #10291f; border-color: #355744; }
html[data-theme="dark"] .btn-tupoksi-home:hover { color: #fff; background: #174432; border-color: #4d8c68; }

@media (max-width: 700px) {
    .tupoksi-hero { padding: 42px 0 36px; }
    .tupoksi-toolbar-section { top: 58px; }
    .tupoksi-toolbar-inner { gap: 10px; }
    .tupoksi-search-box { flex-basis: 100%; max-width: none; }
    .tupoksi-filter-tabs { flex-wrap: nowrap; width: calc(100vw - 32px); overflow-x: auto; padding: 2px 1px 8px; }
    .tupoksi-tab-btn { flex: 0 0 auto; white-space: nowrap; }
    .tupoksi-grid { grid-template-columns: minmax(0, 1fr); }
    .tupoksi-card-head { align-items: flex-start; }
    .tupoksi-cta-box { padding: 24px; }
    .tupoksi-cta-buttons > * { justify-content: center; flex: 1 1 100%; }
}

/* Keep Tupoksi content readable in both saved themes. */
html[data-theme="dark"] body.tupoksi-page .tupoksi-card-name,
html[data-theme="dark"] body.tupoksi-page .tupoksi-box-title,
html[data-theme="dark"] body.tupoksi-page .tupoksi-box-title i,
html[data-theme="dark"] body.tupoksi-page .tupoksi-rank-tag { color: #e5f5eb !important; }
html[data-theme="dark"] body.tupoksi-page .tupoksi-category-badge { color: #8fe0b5 !important; background: rgba(25, 150, 96, .18); border-color: rgba(100, 220, 160, .24); }
html[data-theme="dark"] body.tupoksi-page .tupoksi-card-foot,
html[data-theme="dark"] body.tupoksi-page .tupoksi-card-role,
html[data-theme="dark"] body.tupoksi-page .tupoksi-function-list li,
html[data-theme="dark"] body.tupoksi-page .tupoksi-func-num { color: #c1d7ca !important; }
html[data-theme="light"] body.tupoksi-page .tupoksi-box-title { color: #174c39; }
html[data-theme="light"] body.tupoksi-page .tupoksi-category-badge {
    color: #075b43 !important;
    background: #e7f5ec !important;
    border-color: #b9dfc8 !important;
}
html[data-theme="light"] body.tupoksi-page .tupoksi-func-num {
    color: #075b43 !important;
    background: #e4f3e9 !important;
    border: 1px solid #b7ddc6;
    font-weight: 800;
}
