/* =========================================================
   BASE / PAGE STYLES
   All standard styles are kept above responsive rules.
========================================================= */

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: #f4f7fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
.container {
    max-width: 1180px;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0 24px;
}
.topbar {
    height: auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px max(24px, calc((100% - 1180px) / 2));
    background: #fff;
    border-bottom: 1px solid #e1e7f0;
}
.brand {
    font-size: 25px;
    font-weight: 800;
    color: #175b9b;
    text-decoration: none;
}
.topbar nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.topbar nav a {
    color: #172033;
    text-decoration: none;
}
.topbar nav a:hover,
a {
    color: #1769aa;
}
.nav-cta,
.btn {
    display: inline-block;
    background: #176db1;
    color: white !important;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
    border: 0;
    font-weight: 700;
    cursor: pointer;
}
.hero {
    padding: 92px 0 76px;
    max-width: 900px;
}
.eyebrow {
    color: #176db1;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 13px;
}
.hero h1 {
    font-size: clamp(38px, 5.5vw, 58px);
    line-height: 1.12;
    margin: 12px 0 20px;
}
.lead {
    font-size: 18px;
    color: #53647c;
    max-width: 760px;
}
.actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.btn.secondary {
    background: #fff;
    color: #1769aa !important;
    border: 1px solid #cbd8e8;
}
.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 64px;
}
.cards article,
.form-card {
    background: white;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    padding: 24px;
}
.cards h2 {
    font-size: 19px;
}
.cards p {
    color: #596b83;
}
.form-card {
    max-width: 500px;
    margin: 54px auto;
    padding: 30px;
}
.form-card h1 {
    margin-top: 0;
}
.form-card label {
    display: block;
    font-weight: 700;
    margin: 14px 0 6px;
}
.form-card input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd6e3;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 8px;
}
.form-card button {
    margin-top: 16px;
}
.page-heading {
    padding: 48px 0 24px;
}
.notice {
    padding: 13px 16px;
    background: #eaf3fb;
    border-radius: 8px;
    margin: 16px 0;
}
.notice.success {
    background: #e7f7ed;
    color: #17633a;
}
.notice.error {
    background: #fff0f0;
    color: #a21d1d;
}
.footer {
    border-top: 1px solid #e1e7f0;
    padding: 24px 0;
    color: #708096;
    margin-top: 60px;
}
.table-wrap {
    overflow: auto;
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e7f0;
}
table {
    border-collapse: collapse;
    width: 100%;
}
th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e8edf3;
}
th {
    background: #f7f9fc;
}
.panel {
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    padding: 22px;
    margin: 18px 0;
}
.panel h2 {
    margin-top: 0;
}
.panel label {
    display: block;
    font-weight: 700;
    margin: 12px 0;
}
.panel input:not([type="hidden"]),
.panel textarea,
.panel select {
    display: block;
    width: 100%;
    max-width: 720px;
    padding: 11px;
    border: 1px solid #cbd6e3;
    border-radius: 8px;
    font: inherit;
    margin-top: 5px;
}
.panel small,
.muted {
    color: #64748b;
}
.btn.secondary {
    background: #eef3f8;
    color: #174b76 !important;
    border: 1px solid #cbd8e8;
}

.search-form {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}
.search-form label {
    flex: 1;
    min-width: 180px;
    font-weight: 700;
}
.search-form input,
.search-form select {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1px solid #cbd6e3;
    border-radius: 8px;
    font: inherit;
    margin-top: 5px;
}
.article-list {
    max-width: 900px;
}
.article-card h2 {
    margin: 6px 0;
}
.article-card h2 a {
    color: #174b76;
    text-decoration: none;
}
.article-card h2 a:hover {
    text-decoration: underline;
}
.knowledge-article {
    max-width: 900px;
    margin: 28px auto;
    padding: clamp(22px, 5vw, 48px);
}
.knowledge-article h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
}
.article-body {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 17px;
    line-height: 1.85;
}
.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Wikipedia-inspired PCQMS Knowledge Base */
.wiki-shell {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 0;
    margin: 0 -24px;
    min-height: calc(100vh - 150px);
    background: #fff;
    border-top: 1px solid #d8e0e8;
    border-bottom: 1px solid #d8e0e8;
    color: #202122;
}
.wiki-sidebar {
    padding: 22px 17px;
    border-right: 1px solid #c8ccd1;
    background: #f8f9fa;
    font-size: 14px;
}
.wiki-mark {
    font-size: 21px;
    font-weight: 800;
    color: #245b83;
    line-height: 1.1;
    padding: 3px 5px 22px;
    border-bottom: 1px solid #c8ccd1;
    margin-bottom: 13px;
}
.wiki-mark span {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: #72777d;
    margin-top: 5px;
}
.wiki-sidebar > a {
    display: block;
    padding: 6px 8px;
    color: #245b83;
    text-decoration: none;
    border-radius: 3px;
}
.wiki-sidebar > a:hover {
    background: #eaecf0;
    text-decoration: underline;
}
.wiki-sidebar > a.wiki-side-active {
    font-weight: 700;
    color: #202122;
    background: #eaecf0;
}
.wiki-sidebar h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #54595d;
    border-bottom: 1px solid #c8ccd1;
    padding: 17px 5px 6px;
    margin: 10px 0 6px;
}
.wiki-sidebar a small {
    float: right;
    color: #72777d;
}
.wiki-sidebar-note {
    font-size: 12px;
    color: #72777d;
    padding: 0 7px;
}
.wiki-main {
    min-width: 0;
    padding: 0 30px 42px;
    background: #fff;
}
.wiki-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #c8ccd1;
    padding: 15px 0 11px;
    color: #72777d;
    font-size: 12px;
}
.wiki-titlebar {
    padding: 32px 0 10px;
}
.wiki-kicker {
    font-size: 11px;
    letter-spacing: 0.11em;
    font-weight: 700;
    color: #72777d;
    text-transform: uppercase;
}
.wiki-titlebar h1,
.wiki-article-heading h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 400;
    line-height: 1.15;
    margin: 8px 0 12px;
    color: #202122;
}
.wiki-titlebar p {
    color: #54595d;
    max-width: 760px;
    margin: 0;
}
.wiki-search {
    display: flex;
    max-width: 760px;
    margin: 20px 0 28px;
    border: 1px solid #72777d;
    border-radius: 2px;
}
.wiki-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 12px 14px;
    font: inherit;
    outline-offset: -2px;
}
.wiki-search button {
    border: 0;
    border-left: 1px solid #a2a9b1;
    background: #eaecf0;
    padding: 0 22px;
    color: #202122;
    font-weight: 700;
    cursor: pointer;
}
.wiki-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
}
.wiki-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #a2a9b1;
    margin-bottom: 4px;
}
.wiki-section-heading h2 {
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 8px;
}
.wiki-section-heading span {
    font-size: 12px;
    color: #72777d;
}
.wiki-result {
    padding: 17px 0;
    border-bottom: 1px solid #eaecf0;
}
.wiki-result-meta {
    font-size: 12px;
    color: #72777d;
}
.wiki-result-meta span {
    padding: 0 5px;
}
.wiki-result h3 {
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 400;
    margin: 4px 0;
}
.wiki-result h3 a {
    color: #245b83;
    text-decoration: none;
}
.wiki-result h3 a:hover {
    text-decoration: underline;
}
.wiki-result p {
    margin: 5px 0;
    color: #202122;
}
.wiki-byline {
    font-size: 12px;
    color: #72777d;
}
.wiki-infobox {
    border: 1px solid #a2a9b1;
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 16px;
    font-size: 13px;
}
.wiki-infobox h3 {
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 400;
    margin: 0 0 9px;
    border-bottom: 1px solid #c8ccd1;
    padding-bottom: 7px;
}
.wiki-infobox p {
    margin: 5px 0 10px;
    color: #54595d;
}
.wiki-infobox ul {
    padding-left: 18px;
    margin: 7px 0;
}
.wiki-infobox li {
    margin: 7px 0;
}
.wiki-infobox a {
    color: #245b83;
    text-decoration: none;
}
.wiki-infobox a:hover {
    text-decoration: underline;
}
.wiki-action {
    display: inline-block;
    border: 1px solid #a2a9b1;
    background: #fff;
    padding: 7px 10px;
    font-weight: 700;
}
.wiki-empty {
    padding: 25px 5px;
    color: #54595d;
}
.wiki-empty h3 {
    font-family: Georgia, serif;
    font-weight: 400;
}
.wiki-tabs {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid #c8ccd1;
    padding: 11px 0 0;
    font-size: 13px;
}
.wiki-tabs a {
    padding: 0 3px 9px;
    color: #245b83;
    text-decoration: none;
}
.wiki-tabs a.selected {
    border-bottom: 2px solid #202122;
    color: #202122;
    font-weight: 700;
}
.wiki-article-heading {
    padding: 26px 0 15px;
    border-bottom: 1px solid #c8ccd1;
}
.wiki-article-heading h1 {
    margin: 8px 0 13px;
}
.wiki-abstract {
    font-size: 16px;
    color: #54595d;
    max-width: 900px;
}
.wiki-article-meta {
    font-size: 12px;
    color: #72777d;
    margin-top: 15px;
}
.wiki-article-tools {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: #72777d;
    font-size: 12px;
}
.wiki-toc-box {
    display: table;
    max-width: 100%;
    border: 1px solid #a2a9b1;
    background: #f8f9fa;
    padding: 13px 22px;
    margin: 4px 0 24px;
    font-size: 13px;
}
.wiki-toc-box strong {
    display: block;
    text-align: center;
    margin-bottom: 5px;
}
.wiki-toc-box ol {
    margin: 0;
    padding-left: 20px;
}
.wiki-toc-box li {
    margin: 3px 0;
}
.wiki-toc-box li.level-3 {
    margin-left: 14px;
}
.wiki-toc-box li.level-4 {
    margin-left: 28px;
}
.wiki-toc-box a,
.wiki-toc-side a {
    color: #245b83;
    text-decoration: none;
}
.wiki-toc-box a:hover,
.wiki-toc-side a:hover {
    text-decoration: underline;
}
.wiki-toc-side {
    padding-left: 20px;
    font-size: 12px;
}
.wiki-toc-side li {
    margin: 5px 0;
}
.wiki-toc-side .level-3 {
    margin-left: 8px;
}
.wiki-toc-side .level-4 {
    margin-left: 16px;
}
.wiki-prose {
    max-width: 900px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.78;
    color: #202122;
    overflow-wrap: anywhere;
}
.wiki-prose h2,
.wiki-prose h3,
.wiki-prose h4 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 5px;
    margin: 30px 0 12px;
    scroll-margin-top: 15px;
}
.wiki-prose h2 {
    font-size: 25px;
}
.wiki-prose h3 {
    font-size: 21px;
}
.wiki-prose h4 {
    font-size: 18px;
}
.wiki-prose p {
    margin: 0 0 16px;
}
.wiki-prose li {
    margin: 4px 0;
}
.wiki-prose a {
    color: #245b83;
}
.wiki-article-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #c8ccd1;
    margin-top: 36px;
    padding-top: 14px;
    font-size: 12px;
    color: #72777d;
}
.wiki-editor-wrap {
    max-width: 900px;
    margin: 35px auto;
}
.wiki-editor-head h1 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 34px;
}
.wiki-editor {
    background: #fff;
    border: 1px solid #c8ccd1;
    padding: 24px;
}
.wiki-editor label {
    display: block;
    font-weight: 700;
    margin: 13px 0;
}
.wiki-editor input,
.wiki-editor textarea,
.wiki-editor select {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1px solid #a2a9b1;
    font: inherit;
    margin-top: 5px;
}
.wiki-editor textarea {
    font-family: monospace;
    line-height: 1.5;
}
.wiki-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.wiki-markup-help {
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    padding: 14px;
    margin: 16px 0;
    font-size: 13px;
}
.wiki-markup-help code {
    display: inline-block;
    background: #eaecf0;
    padding: 3px 6px;
    margin: 5px 5px 0 0;
}
.wiki-markup-help small {
    display: block;
    color: #72777d;
    margin-top: 8px;
}
/* Lightweight CV builder and CV Bank */
.cv-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}
.cv-form-grid label {
    display: block;
    font-weight: 700;
}
.cv-form-grid input,
.cv-form-grid textarea,
.cv-form-grid select {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd6e3;
    border-radius: 8px;
    font: inherit;
    margin-top: 5px;
    background: #fff;
}
.cv-form-grid small {
    display: block;
    color: #64748b;
    font-weight: 400;
}
.cv-form-grid .wide {
    grid-column: 1/-1;
}
.cv-item-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e8edf3;
}
.text-button {
    border: 0;
    background: none;
    color: #b42318;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}
.cv-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.cv-paper {
    max-width: 850px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    padding: 42px 48px;
    box-shadow: 0 5px 24px rgba(20, 40, 70, 0.06);
    color: #202938;
}
.cv-person {
    border-bottom: 2px solid #1d5f91;
    padding-bottom: 18px;
    margin-bottom: 22px;
}
.cv-person h1 {
    font-size: 30px;
    color: #175b9b;
    margin: 0;
}
.cv-person p {
    margin: 4px 0;
}
.cv-headline {
    font-weight: 700;
    color: #4b5c70;
}
.cv-section {
    margin: 20px 0;
}
.cv-section h2 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #174f7b;
    border-bottom: 1px solid #cbd6e3;
    padding-bottom: 6px;
}
.cv-entry {
    margin: 14px 0;
}
.cv-entry h3 {
    font-size: 16px;
    margin: 0 0 3px;
}
.cv-preline {
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.cv-search {
    display: flex;
    gap: 10px;
    margin: 10px 0 24px;
}
.cv-search input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #cbd6e3;
    border-radius: 8px;
    font: inherit;
}
.cv-bank-list {
    max-width: 850px;
}
.cv-bank-list .panel {
    margin: 12px 0;
}
.cv-bank-list h2 {
    margin: 0 0 4px;
}
.cv-bank-list p {
    margin: 8px 0;
}
/* CV builder v2 — lightweight, responsive section navigation */
.cv-progress {
    margin: 16px 0 20px;
}
.cv-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.cv-progress-track {
    height: 9px;
    background: #e8eef5;
    border-radius: 20px;
    overflow: hidden;
    margin: 9px 0;
}
.cv-progress-track span {
    display: block;
    height: 100%;
    background: #1672a5;
    border-radius: 20px;
}
.cv-step-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0 14px;
    margin-bottom: 8px;
}
.cv-step-nav a {
    white-space: nowrap;
    padding: 9px 12px;
    border: 1px solid #d6e0ea;
    border-radius: 8px;
    text-decoration: none;
    background: #fff;
    color: #164e75;
    font-weight: 650;
    font-size: 13px;
}
.cv-step {
    margin: 18px 0;
    scroll-margin-top: 18px;
}
.cv-step h2 {
    margin-top: 0;
}
.cv-privacy-options {
    display: grid;
    gap: 8px;
    padding: 14px 0;
}
.cv-privacy-options label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-weight: 500;
}
.cv-add-record {
    border: 1px solid #dbe4ed;
    border-radius: 9px;
    padding: 12px 14px;
    margin: 12px 0;
}
.cv-add-record summary {
    cursor: pointer;
    color: #155c88;
    font-weight: 700;
}
.cv-add-record form {
    margin-top: 14px;
}
.cv-expertise-list {
    display: block;
    color: #536477;
    margin-top: 5px;
}
.cv-bank-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 10px;
}
.cv-bank-filters label {
    font-size: 13px;
    font-weight: 650;
}
.cv-bank-filters input {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 11px;
    border: 1px solid #cbd6e3;
    border-radius: 8px;
    font: inherit;
}
.cv-profile-photo {
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d7e0e9;
    display: block;
    margin: 12px 0;
}
.cv-photo-form {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}
.cv-photo-form label {
    display: grid;
    gap: 7px;
}
.cv-person-with-photo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.cv-paper-photo {
    width: 112px;
    height: 132px;
    object-fit: cover;
    border: 1px solid #dbe2e9;
    border-radius: 4px;
    order: 2;
}
.cv-person-with-photo > div {
    flex: 1;
}

/* PCQMS Professional Resource Centre */
:root {
    --doc-ink: #142c3b;
    --doc-muted: #607383;
    --doc-line: #dce5e8;
    --doc-paper: #fff;
    --doc-soft: #f3f7f6;
    --doc-teal: #087e78;
    --doc-deep: #103b45;
    --doc-gold: #c79b54;
}
.doc-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 -24px 0;
    padding: 66px max(24px, calc((100% - 1120px) / 2)) 28px;
    background: linear-gradient(115deg, #102f3b 0%, #174b53 55%, #0d6662 100%);
    color: #fff;
    min-height: 390px;
}
.doc-hero:after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -100px;
    top: -230px;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(255, 255, 255, 0.025),
        0 0 0 110px rgba(255, 255, 255, 0.02);
}
.doc-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 620px;
}
.doc-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b7d2ce;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}
.doc-kicker-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 11px;
    letter-spacing: 1px;
    color: #fff;
}
.doc-hero h1,
.doc-admin-hero h1 {
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    margin: 23px 0 15px;
    font-weight: 650;
    color: #fff;
}
.doc-hero h1 em,
.doc-admin-hero h1 em {
    font-style: normal;
    color: #b9d9cf;
}
.doc-hero-copy > p,
.doc-admin-hero p {
    font-size: 15px;
    line-height: 1.8;
    color: #d2e1df;
    max-width: 570px;
    margin: 0;
}
.doc-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}
.doc-primary-btn,
.doc-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 17px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    border-radius: 3px;
    transition: 0.18s ease;
}
.doc-primary-btn {
    background: #d9eee6;
    color: #103b45 !important;
    border: 1px solid #d9eee6;
}
.doc-primary-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}
.doc-outline-btn {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff !important;
}
.doc-outline-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.doc-hero-art {
    position: absolute;
    right: max(7%, calc((100% - 1120px) / 2 + 18px));
    top: 45px;
    width: 340px;
    height: 280px;
    opacity: 0.96;
}
.doc-art-ring {
    position: absolute;
    width: 260px;
    height: 260px;
    right: 22px;
    top: 2px;
    border: 1px solid rgba(206, 230, 222, 0.28);
    border-radius: 50%;
    box-shadow:
        0 0 0 24px rgba(255, 255, 255, 0.025),
        0 0 0 48px rgba(255, 255, 255, 0.02);
}
.doc-art-sheet {
    position: absolute;
    width: 158px;
    height: 206px;
    border-radius: 3px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
}
.doc-art-back {
    right: 125px;
    top: 38px;
    background: #d9e5e0;
    transform: rotate(-10deg);
    padding: 24px 18px;
    color: #315b5b;
}
.doc-art-back span {
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: 700;
}
.doc-art-back i {
    display: block;
    height: 4px;
    background: #a9c0b9;
    margin-top: 17px;
    width: 80%;
}
.doc-art-back i:nth-of-type(2) {
    width: 65%;
    margin-top: 9px;
}
.doc-art-back i:nth-of-type(3) {
    width: 72%;
    margin-top: 9px;
}
.doc-art-front {
    right: 52px;
    top: 28px;
    background: #f7f8f4;
    color: #193b43;
    padding: 20px 18px;
    transform: rotate(5deg);
}
.doc-art-front > b {
    font-family: Georgia, serif;
    font-size: 24px;
    color: #087e78;
}
.doc-art-front > strong {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1.5;
    margin-top: 14px;
}
.doc-art-front > small {
    display: block;
    font-size: 7px;
    letter-spacing: 1px;
    margin-top: 12px;
    color: #748a87;
}
.doc-art-lines {
    height: 45px;
    margin-top: 13px;
    background: repeating-linear-gradient(to bottom, transparent 0 8px, #c9d5d0 8px 9px);
}
.doc-art-seal {
    position: absolute;
    right: 15px;
    bottom: 13px;
    width: 30px;
    height: 30px;
    border: 1px solid #0b8980;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #0b8980;
    font-size: 16px;
}
.doc-art-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    color: #b7d2ce;
    font-size: 8px;
    letter-spacing: 1.5px;
}
.doc-hero-stats {
    display: flex;
    gap: 52px;
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 660px;
}
.doc-hero-stats div {
    display: grid;
    gap: 1px;
}
.doc-hero-stats strong {
    font-family: Georgia, serif;
    font-size: 23px;
    color: #fff;
    font-weight: 500;
}
.doc-hero-stats span {
    font-size: 10px;
    color: #bdd2ce;
    letter-spacing: 0.4px;
}
.doc-layout {
    display: grid;
    grid-template-columns: 226px minmax(0, 1fr);
    gap: 38px;
    padding: 36px 0 48px;
}
.doc-sidebar {
    border-right: 1px solid var(--doc-line);
    padding: 4px 22px 15px 0;
}
.doc-side-title,
.doc-eyebrow {
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.8px;
    color: #73868a;
}
.doc-side-title {
    margin: 8px 0 13px;
}
.doc-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 9px;
    margin: 2px 0;
    border-radius: 3px;
    text-decoration: none;
    color: #405966;
    font-size: 12px;
    font-weight: 600;
}
.doc-side-link:hover,
.doc-side-link.active {
    background: #eaf3f0;
    color: #075e5a;
}
.doc-side-link small {
    margin-left: auto;
    color: #87989b;
    font-size: 10px;
}
.doc-side-icon {
    font-size: 16px;
    color: #087e78;
}
.doc-side-dot {
    width: 6px;
    height: 6px;
    border: 1px solid #6b9b91;
    border-radius: 50%;
    flex: 0 0 auto;
}
.doc-side-divider {
    height: 1px;
    background: var(--doc-line);
    margin: 17px 0;
}
.doc-sidebar-note {
    margin-top: 35px;
    padding: 16px;
    background: #eff5f2;
    border-left: 2px solid #0a8179;
}
.doc-sidebar-note b {
    font-family: Georgia, serif;
    font-size: 16px;
    color: #183d43;
}
.doc-sidebar-note p {
    font-size: 11px;
    color: #647a7c;
    line-height: 1.65;
}
.doc-sidebar-note a {
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    color: #087e78;
}
.doc-main {
    min-width: 0;
}
.doc-main-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 19px;
}
.doc-main-heading h2,
.doc-admin-heading h2 {
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #173843;
    margin: 5px 0;
}
.doc-main-heading p,
.doc-admin-heading p {
    font-size: 12px;
    color: #70838b;
    margin: 0;
}
.doc-curated-pill,
.doc-queue-count {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #27766f;
    background: #edf5f1;
    padding: 8px 10px;
    border: 1px solid #d9e9e2;
    border-radius: 2px;
    white-space: nowrap;
}
.doc-searchbar {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #d3e0df;
    background: #fff;
    min-height: 52px;
    box-shadow: 0 4px 18px rgba(18, 57, 60, 0.04);
}
.doc-search-symbol {
    font-size: 24px;
    color: #7e9692;
    padding: 0 13px;
}
.doc-searchbar input {
    flex: 1;
    min-width: 80px;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 12px;
    color: #203d46;
    padding: 14px 0;
}
.doc-searchbar select {
    border: 0;
    border-left: 1px solid #e0e8e6;
    background: #fff;
    padding: 0 12px;
    height: 30px;
    color: #61777a;
    font: inherit;
    font-size: 11px;
}
.doc-searchbar button {
    align-self: stretch;
    border: 0;
    background: #0d6863;
    color: #fff;
    padding: 0 18px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.doc-searchbar button:hover {
    background: #104d51;
}
.doc-filter-note {
    font-size: 11px;
    color: #63787d;
    margin-top: 12px;
}
.doc-filter-note a {
    margin-left: 8px;
    color: #087e78;
    font-weight: 700;
}
.doc-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 12px;
    color: #7b8c91;
    font-size: 10px;
}
.doc-results-head strong {
    color: #27454d;
    font-size: 12px;
}
.doc-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}
.doc-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #dce6e5;
    padding: 17px 17px 0;
    transition:
        border-color 0.18s,
        box-shadow 0.18s;
}
.doc-card:hover {
    border-color: #9bbfba;
    box-shadow: 0 8px 24px rgba(21, 68, 67, 0.07);
}
.doc-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.doc-file-icon {
    width: 42px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf2f0;
    color: #216c66;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.5px;
    clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%);
}
.doc-file-icon:after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 12px;
    height: 12px;
    background: #c5dcd4;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.doc-file-pdf {
    background: #f9ece9;
    color: #a94f42;
}
.doc-file-pdf:after {
    background: #f0c9c2;
}
.doc-file-xls {
    background: #eaf3e9;
    color: #477c48;
}
.doc-file-ppt {
    background: #f7efe4;
    color: #a76b28;
}
.doc-file-img {
    background: #eef0f8;
    color: #59699a;
}
.doc-access-chip {
    font-size: 9px;
    color: #668079;
    background: #f1f6f3;
    border: 1px solid #e0ebe5;
    padding: 5px 7px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.doc-card-category {
    font-size: 9px;
    color: #0c8179;
    font-weight: 850;
    letter-spacing: 1.15px;
    margin-top: 14px;
}
.doc-card h3 {
    font-size: 15px;
    line-height: 1.35;
    color: #183b45;
    margin: 5px 0 7px;
    font-weight: 750;
}
.doc-card-description {
    font-size: 11px;
    line-height: 1.6;
    color: #6b7d83;
    min-height: 35px;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.doc-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid #edf1ef;
    color: #8a9a9b;
    font-size: 8px;
    letter-spacing: 0.5px;
}
.doc-card-meta span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.doc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-top: 1px solid #edf1ef;
    font-size: 10px;
    color: #809193;
}
.doc-card-footer a {
    font-weight: 800;
    color: #08766f;
    text-decoration: none;
}
.doc-card-footer a b {
    font-size: 14px;
    margin-left: 5px;
}
.doc-empty {
    text-align: center;
    padding: 50px 20px;
    border: 1px dashed #cbdad6;
    background: #fbfdfc;
}
.doc-empty-icon {
    font-size: 29px;
    color: #7fa8a0;
}
.doc-empty h3 {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    color: #25464d;
    margin: 8px;
}
.doc-empty p {
    font-size: 12px;
    color: #73868a;
}
.doc-empty > a {
    font-size: 11px;
    font-weight: 800;
    color: #087e78;
}
.doc-contribute {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 50px;
    background: #f0f5f2;
    border-top: 1px solid #dce7e1;
    border-bottom: 1px solid #dce7e1;
    margin: 0 -24px;
    padding: 55px max(24px, calc((100% - 1120px) / 2));
}
.doc-contribute-intro h2 {
    font-family: Georgia, serif;
    font-size: 35px;
    line-height: 1.14;
    font-weight: 500;
    color: #183d43;
    margin: 13px 0;
}
.doc-contribute-intro > p {
    font-size: 13px;
    line-height: 1.8;
    color: #657b7b;
    max-width: 400px;
}
.doc-upload-guidelines {
    display: grid;
    gap: 9px;
    margin-top: 25px;
    color: #47736b;
    font-size: 11px;
    font-weight: 700;
}
.doc-upload-form {
    background: #fff;
    border: 1px solid #dce7e2;
    padding: 25px 27px;
    box-shadow: 0 8px 30px rgba(24, 65, 60, 0.05);
}
.doc-form-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #edf1ef;
    padding-bottom: 17px;
    margin-bottom: 17px;
}
.doc-form-step {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: #eaf3ef;
    color: #087e78;
    font-family: Georgia, serif;
    font-size: 17px;
}
.doc-form-heading b,
.doc-form-heading small {
    display: block;
}
.doc-form-heading b {
    font-size: 14px;
    color: #24454c;
}
.doc-form-heading small {
    font-size: 10px;
    color: #879795;
    margin-top: 2px;
}
.doc-upload-form label {
    display: block;
    font-size: 11px;
    font-weight: 750;
    color: #39545a;
    margin: 12px 0;
}
.doc-upload-form input:not([type="file"]),
.doc-upload-form textarea,
.doc-upload-form select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid #d6e1de;
    border-radius: 2px;
    background: #fff;
    font: inherit;
    font-size: 12px;
    color: #29464c;
}
.doc-upload-form textarea {
    resize: vertical;
}
.doc-form-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.doc-file-drop {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 115px;
    border: 1px dashed #a9c7bc;
    background: #f8fbf9;
    padding: 14px;
    text-align: center;
    cursor: pointer;
}
.doc-file-drop input {
    max-width: 100%;
    font-size: 10px;
}
.doc-file-drop b {
    font-size: 11px;
    color: #275d57;
}
.doc-file-drop small {
    font-size: 9px;
    color: #81928d;
    font-weight: 400;
}
.doc-drop-icon {
    font-size: 22px;
    color: #087e78;
}
.doc-submit-btn {
    width: 100%;
    border: 0;
    cursor: pointer;
    margin-top: 6px;
}
.doc-form-footnote {
    font-size: 9px;
    color: #8b9995;
    text-align: center;
    margin: 10px 0 0;
}
.doc-my-submissions {
    padding: 35px 0 15px;
}
.doc-submission-list {
    border-top: 1px solid var(--doc-line);
}
.doc-submission-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--doc-line);
    font-size: 11px;
}
.doc-submission-row > div {
    flex: 1;
    min-width: 0;
}
.doc-submission-row b,
.doc-submission-row small {
    display: block;
}
.doc-submission-row b {
    color: #27474e;
}
.doc-submission-row small {
    font-size: 9px;
    color: #83928f;
    margin-top: 3px;
}
.doc-submission-row > a {
    font-weight: 800;
    color: #087e78;
    text-decoration: none;
}
.doc-rejection {
    color: #a94f42 !important;
}
.doc-status {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 8px;
    background: #edf2ef;
    color: #6d8077;
}
.doc-status-approved {
    background: #e7f4eb;
    color: #31754c;
}
.doc-status-pending {
    background: #fbf2df;
    color: #946c25;
}
.doc-status-rejected {
    background: #faeae8;
    color: #a34e43;
}
.doc-join-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    margin: 24px 0;
    background: #f0f5f2;
    border: 1px solid #dce7e1;
}
.doc-join-strip b,
.doc-join-strip span {
    display: block;
}
.doc-join-strip b {
    font-family: Georgia, serif;
    font-size: 19px;
    color: #1d4248;
}
.doc-join-strip span {
    font-size: 11px;
    color: #718580;
    margin-top: 4px;
}
.doc-join-strip .doc-primary-btn {
    background: #0c6b64;
    color: #fff !important;
    border-color: #0c6b64;
    white-space: nowrap;
}
/* Resource review console */
.doc-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 -24px;
    padding: 44px max(24px, calc((100% - 1120px) / 2));
    background: linear-gradient(115deg, #102f3b, #1a5556);
    color: #fff;
}
.doc-admin-hero h1 {
    font-size: clamp(30px, 4vw, 43px);
    margin: 16px 0 10px;
}
.doc-admin-seal {
    width: 110px;
    height: 110px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c9e2d8;
    font-family: Georgia, serif;
    font-size: 21px;
    line-height: 1.1;
}
.doc-admin-seal b {
    font-size: 13px;
    letter-spacing: 1px;
}
.doc-admin-seal small {
    font-family: Arial, sans-serif;
    font-size: 6px;
    letter-spacing: 1px;
    margin-top: 7px;
}
.doc-admin-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #dce7e3;
    border: 1px solid #dce7e3;
    margin: 22px 0;
}
.doc-admin-metrics > div {
    background: #fff;
    padding: 17px 20px;
    display: grid;
    gap: 4px;
}
.doc-admin-metrics span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #7c8e8c;
}
.doc-admin-metrics b {
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 500;
    color: #21474b;
}
.doc-admin-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 34px 0 18px;
}
.doc-admin-heading h2 {
    font-size: 28px;
}
.doc-review-list {
    display: grid;
    gap: 13px;
}
.doc-review-card {
    background: #fff;
    border: 1px solid #dce6e3;
    padding: 20px 22px;
}
.doc-review-top {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.doc-review-title {
    flex: 1;
    min-width: 0;
}
.doc-review-title .doc-card-category {
    margin-top: 0;
}
.doc-review-title h3 {
    font-size: 17px;
    color: #1d4149;
    margin: 4px 0;
}
.doc-review-title p {
    font-size: 11px;
    color: #72858a;
    margin: 0;
    line-height: 1.6;
}
.doc-review-meta {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 15px;
    margin: 18px 0;
    padding: 14px 0;
    border-top: 1px solid #edf1ef;
    border-bottom: 1px solid #edf1ef;
}
.doc-review-meta > span > * {
    display: block;
}
.doc-review-meta small {
    font-size: 8px;
    color: #829491;
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.doc-review-meta b {
    font-size: 11px;
    color: #3c5960;
    overflow-wrap: anywhere;
}
.doc-review-meta span span {
    font-size: 9px;
    color: #84938f;
    margin-top: 3px;
    overflow-wrap: anywhere;
}
.doc-review-actions {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}
.doc-review-reason {
    flex: 1;
    min-width: 230px;
    font-size: 10px;
    font-weight: 750;
    color: #536d70;
}
.doc-review-reason input {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #d6e1de;
    font: inherit;
    font-weight: 400;
}
.doc-approve-btn,
.doc-reject-btn {
    border: 0;
    padding: 11px 14px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
.doc-approve-btn {
    background: #0d7169;
    color: #fff;
}
.doc-reject-btn {
    background: #f8ece9;
    color: #9c5147;
}

/* Membership and account recovery */
.membership-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin: 0 -24px;
    padding: 52px max(24px, calc((100% - 1120px) / 2));
    background: linear-gradient(115deg, #102f3b, #1a5556);
    color: #fff;
}
.membership-hero > div:first-child {
    max-width: 760px;
}
.membership-hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.12;
    margin: 10px 0 14px;
}
.membership-hero p:not(.eyebrow) {
    color: #d1e1dc;
    max-width: 700px;
}
.membership-seal {
    width: 108px;
    height: 108px;
    flex: 0 0 auto;
    border: 1px solid #85aaa0;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 23px;
    line-height: 1.1;
    color: #e1eee8;
}
.membership-seal small {
    font: 700 8px Arial;
    letter-spacing: 1.5px;
    margin-top: 7px;
}
.membership-intro {
    padding: 30px 0 8px;
}
.membership-intro h2,
.membership-history h2 {
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: 500;
    color: #183d43;
    margin-bottom: 5px;
}
.membership-intro p {
    color: #71827f;
}
.membership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0 45px;
}
.membership-plan {
    background: #fff;
    border: 1px solid #dce7e2;
    padding: 25px;
    box-shadow: 0 8px 26px rgba(24, 65, 60, 0.035);
}
.membership-plan-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.membership-label,
.membership-duration {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #0c756d;
}
.membership-duration {
    color: #82928e;
}
.membership-plan h3 {
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    color: #1d4248;
    margin: 14px 0 8px;
}
.membership-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.membership-price strong {
    font-family: Georgia, serif;
    font-size: 28px;
    color: #183d43;
    font-weight: 500;
}
.membership-price small {
    font-size: 11px;
    color: #80908c;
}
.membership-plan > p {
    min-height: 42px;
    color: #6b7d79;
    font-size: 12px;
    line-height: 1.7;
}
.membership-request {
    border-top: 1px solid #edf1ef;
    margin-top: 18px;
    padding-top: 13px;
}
.membership-request label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #49635e;
    margin: 10px 0;
}
.membership-request input,
.membership-request select {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #d6e1de;
    border-radius: 3px;
    background: #fff;
    font: inherit;
    font-size: 12px;
}
.membership-request .btn {
    width: 100%;
    text-align: center;
    background: #0c6b64;
    margin-top: 8px;
}
.membership-history {
    margin: 35px 0;
}
.membership-status {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.status-active {
    color: #26754a;
}
.status-pending {
    color: #a47723;
}
.status-rejected,
.status-expired,
.status-cancelled {
    color: #a34e43;
}

/* Site-wide developer-branded footer */
.site-footer {
    margin-top: 64px;
    background: #102b3d;
    color: #d5e1e9;
    border-top: 3px solid #178b83;
    padding: 23px 0 25px;
}
.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.site-footer-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #b8c8d3;
}
.site-footer-brand {
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 1.4px;
    color: #fff;
}
.site-footer-credit {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 11px;
}
.site-footer-credit-label {
    color: #a9bdca;
}
.site-footer-credit strong {
    color: #fff;
    font-size: 12px;
    letter-spacing: 1.1px;
    font-weight: 850;
}

/* Member profile, navigation and responsive profile workspace */
.nav-profile-link {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 6px;
    border: 1px solid #e1e8f0;
    border-radius: 999px;
    background: #f8fafc;
    font-weight: 700;
}
.nav-profile-avatar {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #d5e0ec;
}
.profile-cover {
    position: relative;
    isolation: isolate;
    min-height: 220px;
    margin: 24px 0 0;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(115deg, #0b3345, #176a78 58%, #4a8790);
    background-image: var(--profile-cover-image, linear-gradient(115deg, #0b3345, #176a78 58%, #4a8790));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.profile-cover:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 27, 42, 0.82), rgba(5, 27, 42, 0.35) 65%, rgba(5, 27, 42, 0.08));
    z-index: -1;
}
.profile-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(4, 22, 34, 0.55), transparent 80%);
    z-index: -1;
}
.profile-cover-content {
    padding: 30px 38px;
    color: #fff;
    max-width: 800px;
}
.profile-cover-kicker {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 800;
    color: #b9e6e1;
}
.profile-cover h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    margin: 8px 0;
    color: #fff;
}
.profile-cover p {
    margin: 0;
    color: #e2f0f1;
    font-size: 15px;
}
.profile-shell {
    margin-bottom: 45px;
}
.profile-identity {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px 18px;
    background: #fff;
    border: 1px solid #e2e9f1;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    min-height: 112px;
}
.profile-avatar {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 3px 16px rgba(20, 48, 72, 0.18);
    margin-top: -38px;
    background: #edf2f7;
}
.profile-identity-main {
    min-width: 0;
    flex: 1;
}
.profile-identity-main h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    color: #172d42;
}
.profile-identity-main p {
    margin: 4px 0;
    color: #3d6175;
    font-weight: 600;
}
.profile-identity-main span {
    font-size: 12px;
    color: #77879a;
}
.profile-credit-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 10px 14px;
    background: #eff8f6;
    border: 1px solid #d8ece7;
    border-radius: 12px;
}
.profile-credit-pill strong {
    font-size: 23px;
    color: #126d65;
    line-height: 1.1;
}
.profile-credit-pill small {
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: 800;
    color: #5c817b;
}
.profile-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px 4px;
    border-bottom: 1px solid #dce5ee;
    scrollbar-width: thin;
}
.profile-tabs a {
    flex: 0 0 auto;
    text-decoration: none;
    color: #52677c;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 13px;
    border-radius: 8px;
    transition: background .18s ease, color .18s ease;
}
.profile-tabs a:hover,
.profile-tabs a.active {
    background: #eaf3f8;
    color: #145e87;
}

/* Credits & Rewards internal AJAX sections */
.credits-rewards-workspace {
    min-width: 0;
    padding-top: 18px;
}
.credits-rewards-subtabs {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    padding: 0 0 12px;
    border-bottom: 1px solid #dce5ee;
    scrollbar-width: thin;
}
.credits-rewards-subtabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 1px solid #dce5ee;
    border-radius: 9px;
    background: #fff;
    color: #52677c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.credits-rewards-subtabs a:hover,
.credits-rewards-subtabs a.active {
    background: #eaf3f8;
    border-color: #b9d5e6;
    color: #145e87;
}
.credits-rewards-tab-content {
    min-width: 0;
    padding-top: 18px;
    transition: opacity .15s ease;
}
.credits-rewards-tab-content.is-loading {
    opacity: .48;
    pointer-events: none;
}
.credits-rewards-tab-content > .profile-tab-panel {
    margin: 0;
}
@media (max-width: 640px) {
    .credits-rewards-subtabs {
        gap: 6px;
    }
    .credits-rewards-subtabs a {
        padding: 9px 11px;
        font-size: 12px;
    }
}
.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 20px;
    padding-top: 22px;
}
.profile-content-grid .panel,
.profile-tab-panel {
    background: #fff;
    border: 1px solid #e1e8ef;
    border-radius: 14px;
    padding: 24px;
}
.profile-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}
.profile-section-heading h2 {
    font-size: 23px;
    margin: 3px 0;
    color: #1c3448;
}
.profile-section-heading p {
    margin: 3px 0;
    color: #75869a;
    font-size: 13px;
}
.profile-bio {
    color: #52677a;
    line-height: 1.8;
}
.profile-muted {
    color: #8997a7;
}
.profile-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    margin: 22px 0;
}
.profile-facts div {
    min-width: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f5;
}
.profile-facts dt {
    font-size: 11px;
    color: #8492a2;
    font-weight: 700;
    margin-bottom: 4px;
}
.profile-facts dd {
    margin: 0;
    color: #263d51;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.profile-private-contact {
    display: grid;
    gap: 5px;
    padding: 14px;
    background: #f7f9fc;
    border-radius: 9px;
    color: #607287;
    font-size: 12px;
}
.profile-private-contact b {
    color: #344b60;
}
.profile-side-panel {
    display: grid;
    align-content: start;
    gap: 14px;
}
.profile-side-panel .panel {
    padding: 20px;
}
.profile-credit-big {
    font-size: 38px;
    font-weight: 800;
    color: #126d65;
    line-height: 1.2;
    margin-top: 10px;
}
.profile-side-panel p {
    font-size: 12px;
    color: #718297;
}
.profile-side-panel .btn {
    font-size: 12px;
    padding: 8px 12px;
}
.profile-shortcuts h3 {
    margin: 0 0 10px;
}
.profile-shortcuts a {
    display: block;
    padding: 8px 0;
    border-top: 1px solid #edf1f5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.profile-tab-panel {
    margin-top: 22px;
}
.profile-document-list {
    display: grid;
}
.profile-document-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f5;
}
.profile-document-icon {
    width: 42px;
    height: 48px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #edf4fa;
    color: #27658d;
    font-size: 10px;
    font-weight: 800;
}
.profile-document-copy {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 3px;
}
.profile-document-copy b {
    color: #253d51;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.profile-document-copy span,
.profile-document-copy small {
    color: #8391a0;
    font-size: 11px;
    overflow-wrap: anywhere;
}
.profile-document-status {
    font-size: 10px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef2f6;
    color: #647487;
}
.profile-document-status.status-approved {
    background: #e8f6ee;
    color: #28764b;
}
.profile-document-status.status-pending {
    background: #fff6df;
    color: #98701f;
}
.profile-document-status.status-rejected {
    background: #fff0ef;
    color: #a64d48;
}
.profile-document-row > a {
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.profile-empty-state {
    padding: 35px 15px;
    text-align: center;
    color: #75869a;
}
.profile-empty-state b {
    color: #2a4257;
}
.profile-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 20px;
}
.profile-edit-grid label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #40586e;
}
.profile-edit-grid input,
.profile-edit-grid textarea {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #d5e0ea;
    border-radius: 8px;
    background: #fff;
    color: #20364a;
    font: inherit;
    font-size: 14px;
}
.profile-edit-grid input:focus,
.profile-edit-grid textarea:focus {
    outline: 3px solid rgba(31, 117, 163, 0.13);
    border-color: #4b91b8;
}
.profile-edit-grid input[type="file"] {
    font-size: 12px;
    background: #f8fafc;
}
.profile-edit-grid small {
    font-size: 10px;
    color: #8a98a7;
    font-weight: 400;
}
.profile-field-wide {
    grid-column: 1/-1;
}
.credit-positive {
    color: #20814f;
    font-weight: 800;
}
.credit-negative {
    color: #b34b45;
    font-weight: 800;
}
.member-search {
    display: flex;
    gap: 10px;
    max-width: 650px;
    margin: 0 0 24px;
}
.member-search input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #d4dfeb;
    border-radius: 9px;
    font: inherit;
}
.member-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.member-card {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    gap: 7px;
    padding: 20px 14px;
    background: #fff;
    border: 1px solid #e0e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: #263e52;
    box-shadow: 0 5px 18px rgba(20, 48, 72, 0.04);
}
.member-card img {
    display: block;
    width: 82px;
    height: 82px;
    max-width: 82px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #d9e3ed;
}
.member-card strong {
    text-align: center;
    overflow-wrap: anywhere;
}
.member-card span {
    font-size: 11px;
    color: #16756c;
    font-weight: 700;
}

/* Phase 1: bilingual institutional pages */
.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid #dce5f0;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 13px;
    white-space: nowrap;
}
.language-switch a {
    font-weight: 700;
    text-decoration: none;
    color: #53647c;
}
.language-switch a[aria-current="page"] {
    color: #1769aa;
}
.about-hero {
    margin: 34px 0 24px;
    padding: clamp(34px, 6vw, 68px);
    border-radius: 22px;
    background: linear-gradient(125deg, #0c3458, #176ba3 65%, #3a8aaf);
    color: #fff;
    box-shadow: 0 14px 38px rgba(15, 55, 90, 0.14);
}
.about-hero .eyebrow {
    color: #c5e7ff;
}
.about-hero h1 {
    max-width: 820px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
    margin: 12px 0 16px;
}
.about-hero > p:last-child {
    max-width: 760px;
    color: #e3f1fb;
    font-size: 18px;
    margin: 0;
}
.about-content-card {
    background: #fff;
    border: 1px solid #e0e8f1;
    border-radius: 16px;
    padding: clamp(22px, 4vw, 34px);
    margin: 18px 0;
    box-shadow: 0 5px 22px rgba(20, 40, 70, 0.035);
}
.about-content-card h2 {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    margin: 5px 0 15px;
    color: #173b5b;
}
.about-content-card h3 {
    margin: 24px 0 12px;
}
.about-copy {
    font-size: 16px;
    line-height: 1.85;
    color: #53647c;
    white-space: normal;
    overflow-wrap: anywhere;
}
.about-leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.about-leader-card {
    border: 1px solid #e3eaf2;
    border-radius: 13px;
    padding: 18px;
    background: #fbfdff;
}
.about-leader-card > img,
.about-leader-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8f0f6;
    display: grid;
    place-items: center;
    color: #175b9b;
    font-size: 36px;
    font-weight: 800;
}
.about-leader-card h3 {
    margin: 12px 0 2px;
}
.about-leader-card p {
    margin: 0 0 8px;
    color: #1769aa;
    font-weight: 700;
}
.about-leader-card div {
    font-size: 14px;
    color: #5b6c80;
    line-height: 1.65;
}
.about-organogram {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}
.about-org-node {
    margin-left: calc(var(--org-depth) * clamp(10px, 3vw, 34px));
    max-width: 760px;
    padding: 15px 18px;
    border: 1px solid #dce7f1;
    border-left: 4px solid #2779ad;
    border-radius: 10px;
    background: #f8fbfe;
    display: grid;
    gap: 3px;
}
.about-org-node strong {
    color: #194d73;
}
.about-org-node span {
    font-weight: 700;
}
.about-org-node small {
    color: #64748b;
}
.about-draft-note {
    font-size: 13px;
    color: #8a5a17;
    background: #fff8e8;
    border: 1px solid #f3dfb5;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 18px;
}
.cms-edit-section {
    border: 1px solid #e0e8f1;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}
.cms-edit-section legend {
    font-weight: 800;
    color: #174f7b;
    padding: 0 7px;
}
.cms-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}
.cms-edit-grid label {
    display: block;
    font-weight: 700;
}
.cms-edit-grid input,
.cms-edit-grid textarea,
.cms-edit-grid select {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd6e3;
    border-radius: 8px;
    font: inherit;
    margin-top: 5px;
    background: #fff;
}
.cms-publish {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    font-weight: 600;
}
.cms-publish input {
    width: auto !important;
    margin: 0 !important;
}
.cms-inline-edit {
    padding: 12px 0;
    border-bottom: 1px solid #e8edf3;
}
.cms-inline-edit .btn {
    margin-top: 8px;
}

/* ==========================================================
   PCQMS PHASE 2 — homepage hero, institutional About page,
   and responsive layout refinements
   ========================================================== */
:root {
    --pcqms-navy: #102c46;
    --pcqms-blue: #1769a6;
    --pcqms-teal: #147b79;
    --pcqms-ink: #172b3e;
    --pcqms-muted: #607386;
    --pcqms-line: #dce5ed;
    --pcqms-paper: #fff;
    --pcqms-soft: #f2f6fa;
}
html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
}
button,
input,
select,
textarea {
    font: inherit;
}
a {
    transition: color 0.18s ease;
}
.topbar {
    position: relative;
    z-index: 30;
    min-height: 68px;
    gap: 22px;
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 2px 12px rgba(16, 44, 70, 0.035);
}
.topbar nav {
    gap: clamp(10px, 1.45vw, 21px);
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}
.topbar nav > a {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: #20384e;
    text-decoration: none;
}
.topbar nav > a:hover {
    color: var(--pcqms-blue);
}
.topbar nav .nav-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid #dce6ef;
    border-radius: 999px;
    background: #f8fbfd;
}
.topbar nav .nav-cta {
    padding: 10px 16px;
    border-radius: 8px;
    background: #176db1;
    color: #fff !important;
}
.language-switch {
    flex: 0 0 auto;
}


/* Full-bleed homepage carousel */
body.home-page main.container {
    padding-top: 0;
}
.home-portal-hero {
    position: relative;
    isolation: isolate;
    width: 100vw;
    height: clamp(430px, 46vw, 620px);
    min-height: 420px;
    margin: 0 0 0 calc(50% - 50vw);
    overflow: hidden;
    background: #102d45;
    color: #fff;
}
.home-banner-track {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.home-banner-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition:
        transform 0.78s cubic-bezier(0.22, 0.72, 0.2, 1),
        opacity 0.78s ease,
        visibility 0.78s;
}
.home-banner-slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}
.home-banner-slide.is-leaving {
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
}
.home-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: center 46%;
    z-index: -2;
}
.home-banner-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
            90deg,
            rgba(7, 25, 43, 0.88) 0%,
            rgba(9, 35, 57, 0.76) 38%,
            rgba(11, 42, 64, 0.35) 70%,
            rgba(9, 32, 49, 0.12) 100%
        ),
        linear-gradient(0deg, rgba(8, 27, 43, 0.32), transparent 42%);
}
.home-banner-content {
    position: relative;
    width: min(100%, 1180px);
    padding: 30px 24px 54px;
    margin: 0 auto;
    color: #fff;
}
.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.1px;
    color: #c9e9f5;
    text-transform: uppercase;
}
.home-kicker:before {
    content: "";
    width: 30px;
    height: 2px;
    background: #68c6c0;
}
.home-banner-content h1 {
    max-width: 760px;
    margin: 18px 0 16px;
    color: #fff;
    font-size: clamp(38px, 5.2vw, 68px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -1.6px;
    text-wrap: balance;
}
.home-banner-content p {
    max-width: 650px;
    margin: 0;
    color: #e3edf5;
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.75;
}
.home-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
    padding: 14px 19px;
    border: 1px solid #fff;
    border-radius: 7px;
    background: #fff;
    color: #123b5a !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
.home-banner-cta:hover {
    background: #eaf6f8;
    border-color: #eaf6f8;
    transform: translateY(-2px);
}
.home-slider-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(100%, 1180px);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    pointer-events: none;
}
.home-slider-controls > button {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(9, 34, 54, 0.45);
    color: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.home-slider-controls > button:hover {
    background: #fff;
    color: #123b5a;
}
.home-slider-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    pointer-events: auto;
}
.home-slider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    transition:
        width 0.2s ease,
        background 0.2s ease;
}
.home-slider-dots button.active {
    width: 26px;
    background: #fff;
}
.home-banner-fallback {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 28%, rgba(73, 160, 173, 0.38), transparent 28%),
        linear-gradient(115deg, #102d45, #145a75 60%, #176f83);
}
.home-banner-fallback:after {
    content: "";
    position: absolute;
    right: 8%;
    top: 8%;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(255, 255, 255, 0.035),
        0 0 0 72px rgba(255, 255, 255, 0.025);
    z-index: -1;
}





.home-quick-access {
    padding: 62px 0 58px;
}
.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
}
.home-section-kicker {
    display: block;
    margin-bottom: 7px;
    color: #177b82;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.7px;
}
.home-section-heading h2,
.home-community-band h2,
.home-join-strip h2 {
    margin: 0;
    color: #18364e;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.6px;
}
.home-section-heading > p {
    max-width: 420px;
    margin: 0;
    color: #65788a;
    font-size: 14px;
    line-height: 1.7;
}
.home-access-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}
.home-access-card {
    display: flex;
    min-height: 218px;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px 20px;
    border: 1px solid #e0e8ef;
    border-radius: 12px;
    background: #fff;
    color: #203b52;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(24, 55, 78, 0.035);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.home-access-card:hover {
    transform: translateY(-4px);
    border-color: #b9d4e0;
    box-shadow: 0 14px 32px rgba(24, 55, 78, 0.09);
}
.home-access-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-bottom: 20px;
    border-radius: 11px;
    background: #eaf4f7;
    color: #176d80;
    font-size: 22px;
}
.home-access-card strong {
    font-size: 17px;
    color: #173c58;
}
.home-access-card small {
    display: block;
    margin: 8px 0 18px;
    color: #6c7e8e;
    font-size: 12px;
    line-height: 1.6;
}
.home-access-card b {
    margin-top: auto;
    color: #176da2;
    font-size: 11px;
}
.home-access-card b i {
    font-style: normal;
    margin-left: 8px;
}
.home-community-band {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    align-items: center;
    gap: 35px;
    margin: 0 -24px;
    padding: 48px max(24px, calc((100% - 1132px) / 2));
    background: linear-gradient(115deg, #102f49, #174f68);
    color: #fff;
}
.home-community-band .home-section-kicker {
    color: #8ed2d1;
}
.home-community-band h2 {
    max-width: 650px;
    color: #fff;
}
.home-community-band > div:first-child p {
    max-width: 640px;
    margin: 13px 0 0;
    color: #d0e0e9;
    line-height: 1.75;
    font-size: 14px;
}
.home-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.home-stat-grid > div {
    padding: 17px 13px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.home-stat-grid strong {
    display: block;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}
.home-stat-grid span {
    display: block;
    margin-top: 8px;
    color: #c7dce5;
    font-size: 10px;
    line-height: 1.4;
}
.home-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 58px 0;
}
.home-latest-panel {
    min-width: 0;
    padding: 23px 24px;
    border: 1px solid #e0e8ef;
    border-radius: 12px;
    background: #fff;
}
.home-section-heading.compact {
    align-items: center;
    margin-bottom: 12px;
}
.home-section-heading.compact h2 {
    font-size: 23px;
}
.home-section-heading.compact > a {
    flex: 0 0 auto;
    color: #176da2;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}
.home-latest-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid #edf1f4;
}
.home-latest-mark {
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #e9f3f8;
    color: #176da2;
    font-size: 11px;
    font-weight: 850;
}
.home-latest-mark.document {
    background: #eef4ed;
    color: #4c7853;
}
.home-latest-item h3 {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.45;
}
.home-latest-item h3 a {
    color: #1a3e59;
    text-decoration: none;
}
.home-latest-item h3 a:hover {
    color: #176da2;
    text-decoration: underline;
}
.home-latest-item p {
    margin: 0 0 5px;
    color: #6c7d8b;
    font-size: 11px;
    line-height: 1.6;
}
.home-latest-item small {
    color: #8996a2;
    font-size: 10px;
}
.home-empty {
    padding: 18px 0;
    color: #7b8b98;
    font-size: 13px;
}
.home-join-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 0 0 28px;
    padding: 30px 32px;
    border: 1px solid #dbe8ed;
    border-radius: 13px;
    background: #edf5f7;
}
.home-join-strip h2 {
    font-size: 26px;
}
.home-join-strip p {
    margin: 8px 0 0;
    color: #617787;
    font-size: 13px;
}
.home-join-button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    flex: 0 0 auto;
    padding: 13px 18px;
    border-radius: 7px;
    background: #176da2;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}
.home-join-button:hover {
    background: #105780;
}

/* Professional About PCQMS page */
body.about-page main.container {
    padding-top: 18px;
}
.about-hero-pro {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 380px;
    margin: 18px 0 38px;
    padding: clamp(32px, 5.5vw, 66px);
    overflow: hidden;
    border-radius: 17px;
    background: radial-gradient(circle at 85% 15%, rgba(67, 161, 172, 0.38), transparent 27%),
        linear-gradient(115deg, #102d47 0%, #14536b 65%, #176d78 100%);
    color: #fff;
    box-shadow: 0 18px 44px rgba(17, 55, 77, 0.13);
}
.about-hero-pro:after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 7%;
    top: 11%;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 25px rgba(255, 255, 255, 0.035),
        0 0 0 55px rgba(255, 255, 255, 0.025);
}
.about-hero-copy {
    max-width: 760px;
}
.about-hero-pro .eyebrow {
    color: #9ce0dc;
    letter-spacing: 2px;
}
.about-hero-pro h1 {
    max-width: 720px;
    margin: 12px 0 16px;
    color: #fff;
    font-size: clamp(34px, 4.7vw, 57px);
    line-height: 1.08;
    letter-spacing: -1.1px;
}
.about-hero-pro .about-hero-copy > p:not(.eyebrow) {
    max-width: 690px;
    margin: 0;
    color: #dceaf0;
    font-size: 16px;
    line-height: 1.8;
}
.about-hero-actions {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    margin-top: 25px;
}
.about-action-primary,
.about-action-secondary {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}
.about-action-primary {
    background: #fff;
    color: #143f5c !important;
}
.about-action-secondary {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff !important;
}
.about-action-primary:hover {
    background: #e9f5f4;
}
.about-action-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}
.about-hero-mark {
    flex: 0 0 205px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 205px;
    height: 205px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    box-shadow:
        0 0 0 13px rgba(255, 255, 255, 0.035),
        inset 0 0 25px rgba(255, 255, 255, 0.06);
}
.about-hero-mark span {
    font-size: 45px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
}
.about-hero-mark b {
    font-size: 21px;
    letter-spacing: 6px;
    margin-left: 6px;
}
.about-hero-mark small {
    margin-top: 12px;
    color: #b9e1e2;
    font-size: 7px;
    letter-spacing: 1.5px;
}
.about-hero-foot {
    position: absolute;
    left: clamp(32px, 5.5vw, 66px);
    right: clamp(32px, 5.5vw, 66px);
    bottom: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #b8d1db;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.1px;
}
.about-background-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: 45px;
    padding: 10px 0 45px;
    border-bottom: 1px solid #e1e9ef;
}
.about-section-intro .eyebrow,
.about-section-heading .eyebrow {
    color: #177d80;
}
.about-section-intro h2,
.about-section-heading h2 {
    margin: 7px 0 0;
    color: #173c58;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.about-background-copy {
    padding-top: 22px;
}
.about-background-copy p {
    margin: 0;
    color: #5d7182;
    font-size: 15px;
    line-height: 1.9;
    white-space: pre-line;
}
.about-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 36px 0 58px;
}
.about-principle-card {
    position: relative;
    min-height: 225px;
    padding: 24px 22px;
    border: 1px solid #e0e8ee;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(24, 55, 78, 0.035);
}
.about-principle-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-bottom: 18px;
    border-radius: 11px;
    background: #eaf4f5;
    color: #177b7c;
    font-size: 23px;
}
.about-principle-card .eyebrow {
    margin: 0 0 7px;
    color: #177b80;
    font-size: 9px;
}
.about-principle-card h2 {
    margin: 0 0 10px;
    color: #193f5a;
    font-size: 20px;
}
.about-principle-card > div {
    color: #647787;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-line;
}
.about-leadership-section,
.about-organogram-section {
    padding: 38px 0 48px;
    border-top: 1px solid #e1e9ef;
}
.about-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 25px;
}
.about-section-heading > p {
    max-width: 480px;
    margin: 0;
    color: #687b8a;
    font-size: 13px;
    line-height: 1.8;
}
.about-leadership-group {
    margin: 28px 0 34px;
}
.about-subheading {
    display: flex;
    align-items: baseline;
    gap: 13px;
    margin-bottom: 14px;
}
.about-subheading h3 {
    margin: 0;
    color: #1b405a;
    font-size: 19px;
}
.about-subheading span {
    color: #84929d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.about-leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}
.about-leader-card {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e0e8ee;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(24, 55, 78, 0.03);
}
.about-leader-card > img,
.about-leader-avatar {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border: 3px solid #edf4f7;
    border-radius: 50%;
    object-fit: cover;
    background: #e6f0f4;
}
.about-leader-avatar {
    display: grid;
    place-items: center;
    color: #176a92;
    font-size: 30px;
    font-weight: 850;
}
.about-leader-details {
    min-width: 0;
}
.about-leader-details h3 {
    margin: 3px 0 4px;
    color: #1b405a;
    font-size: 16px;
}
.about-leader-designation {
    margin: 0 0 8px;
    color: #147b79;
    font-size: 11px;
    font-weight: 800;
}
.about-leader-bio {
    color: #687b8a;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.about-empty-state {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px dashed #cbdbe4;
    border-radius: 10px;
    background: #f7fafc;
}
.about-empty-state > span {
    display: grid;
    place-items: center;
    flex: 0 0 55px;
    height: 55px;
    border-radius: 50%;
    background: #e7f1f5;
    color: #176b8e;
    font-size: 11px;
    font-weight: 850;
}
.about-empty-state p {
    margin: 0;
    color: #718291;
    font-size: 12px;
    line-height: 1.7;
}
.about-organogram {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}
.about-org-item {
    margin-left: calc(var(--org-depth) * 20px);
}
.about-org-node {
    max-width: 760px;
    padding: 15px 18px;
    border: 1px solid #dce7ed;
    border-left: 4px solid #1a7d83;
    border-radius: 8px;
    background: #f8fbfc;
    display: grid;
    gap: 4px;
    box-shadow: 0 3px 12px rgba(20, 55, 70, 0.025);
}
.about-org-level {
    color: #8796a1;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 1.1px;
}
.about-org-node strong {
    color: #1b4660;
    font-size: 14px;
}
.about-org-person {
    color: #426579;
    font-size: 12px;
    font-weight: 700;
}
.about-org-node small {
    color: #738593;
    font-size: 11px;
    line-height: 1.6;
}
.about-org-children {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 10px 0 0 22px;
    padding-left: 15px;
    border-left: 1px solid #cbdde3;
}
.about-draft-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 760px;
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid #efdfba;
    border-radius: 7px;
    background: #fff9eb;
    color: #8b682b;
    font-size: 11px;
    line-height: 1.65;
}
.about-draft-note span {
    font-size: 15px;
}
.about-closing-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 10px 0 28px;
    padding: 29px 30px;
    border-radius: 11px;
    background: #edf5f7;
}
.about-closing-band .eyebrow {
    margin: 0 0 6px;
    color: #177b80;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.4px;
}
.about-closing-band h2 {
    margin: 0;
    color: #173c58;
    font-size: 25px;
}
.about-closing-band p:not(.eyebrow) {
    margin: 7px 0 0;
    color: #687d8c;
    font-size: 12px;
}
.about-closing-band > a {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
    padding: 12px 17px;
    border-radius: 6px;
    background: #176da2;
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}
/* Homepage banner administration */
.home-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start;
}
.home-admin-form h2,
.home-admin-list h2 {
    margin-top: 0;
    color: #183d59;
}
.home-admin-form label {
    display: block;
    margin: 13px 0;
    color: #344f64;
    font-size: 12px;
    font-weight: 750;
}
.home-admin-form input:not([type="hidden"]):not([type="checkbox"]),
.home-admin-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid #d2dfe8;
    border-radius: 7px;
    background: #fff;
    font: inherit;
    font-size: 13px;
}
.home-admin-form input[type="file"] {
    padding: 9px;
    background: #f8fbfd;
}
.home-admin-form small {
    display: block;
    color: #758694;
    font-size: 11px;
    line-height: 1.6;
}
.home-admin-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}
.home-admin-check {
    display: flex !important;
    align-items: center;
    gap: 9px;
    padding-top: 28px;
}
.home-admin-check input {
    width: 17px;
    height: 17px;
}
.home-admin-preview {
    display: block;
    width: 100%;
    max-height: 170px;
    object-fit: cover;
    margin: 12px 0;
    border-radius: 7px;
}
.home-admin-list {
    display: grid;
    gap: 12px;
}
.home-admin-banner {
    display: flex;
    gap: 14px;
    overflow: hidden;
    border: 1px solid #dce6ed;
    border-radius: 10px;
    background: #fff;
}
.home-admin-banner > img {
    width: 145px;
    min-height: 110px;
    object-fit: cover;
}
.home-admin-banner-info {
    min-width: 0;
    flex: 1;
    padding: 13px 13px 13px 0;
}
.home-admin-banner-info > strong {
    display: block;
    color: #1b405b;
    font-size: 13px;
}
.home-admin-banner-info > small {
    display: block;
    margin: 4px 0 10px;
    color: #82909b;
    font-size: 10px;
}
.home-admin-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.home-admin-actions a,
.home-admin-actions button {
    padding: 0;
    border: 0;
    background: none;
    color: #1769a6;
    font-size: 11px;
    font-weight: 750;
    text-decoration: underline;
    cursor: pointer;
}
.home-admin-actions button.danger {
    color: #b42318;
}

/* PCQMS community chat and member-directory refinements (append-only) */
.chat-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin: 24px 0 20px;
    padding: 24px 26px;
    border: 1px solid #dfe8ef;
    border-radius: 16px;
    background: linear-gradient(120deg, #f7fbfd, #edf5f8);
}
.chat-page-head > div:first-child {
    min-width: 0;
}
.chat-page-head h1 {
    margin: 4px 0 7px;
    color: #173b56;
    font-size: clamp(25px, 3vw, 34px);
}
.chat-page-head p:not(.eyebrow) {
    margin: 0;
    color: #687d8d;
    line-height: 1.65;
    font-size: 13px;
}
.chat-room-meta {
    flex: 0 0 140px;
    display: grid;
    gap: 2px;
    padding: 13px 15px;
    border: 1px solid #d8e5eb;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}
.chat-room-meta strong {
    font-size: 25px;
    color: #176c8d;
}
.chat-room-meta span,
.chat-room-meta small {
    font-size: 10px;
    color: #728594;
}
.chat-room-meta small i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #25a56b;
    margin-right: 5px;
}
.community-chat {
    display: flex;
    flex-direction: column;
    min-height: 540px;
    max-height: calc(100svh - 210px);
    border: 1px solid #dce6ee;
    border-radius: 16px;
    overflow: hidden;
    background: #f6f9fc;
    box-shadow: 0 8px 28px rgba(21, 53, 78, 0.06);
}
.chat-room-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 17px;
    background: #fff;
    border-bottom: 1px solid #e2eaf0;
}
.chat-room-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: #e8f2f7;
    color: #176a91;
    font-weight: 850;
}
.chat-room-bar > div:nth-child(2) {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.chat-room-bar strong {
    font-size: 13px;
    color: #1c3b53;
}
.chat-room-bar small {
    font-size: 10px;
    color: #80909e;
}
.chat-room-online {
    margin-left: auto;
    font-size: 10px;
    font-weight: 750;
    color: #21865d;
    white-space: nowrap;
}
.chat-messages {
    flex: 1;
    min-height: 240px;
    overflow: auto;
    padding: 18px clamp(12px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 13px;
    scroll-behavior: smooth;
}
.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    max-width: min(780px, 92%);
}
.chat-message.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.chat-message-avatar {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e1edf4;
    color: #226587;
    font-size: 12px;
    font-weight: 800;
}
.chat-bubble {
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid #e0e8ee;
    border-radius: 13px 13px 13px 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 48, 72, 0.035);
}
.chat-message.own .chat-bubble {
    border-color: #d5e9e4;
    background: #eff8f5;
    border-radius: 13px 13px 4px 13px;
}
.chat-message-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.chat-message-meta strong {
    font-size: 11px;
    color: #24516d;
}
.chat-message-meta time {
    font-size: 9px;
    color: #91a0ac;
}
.chat-message-text {
    margin: 7px 0 0;
    color: #40586a;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.chat-file-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #e7edf1;
}
.chat-file-name {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #526a7a;
    font-size: 11px;
}
.chat-file-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid #d4e2eb;
    border-radius: 7px;
    background: #fff;
    color: #176b96;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}
.chat-file-link:hover {
    border-color: #8eb8cf;
    background: #f5fafc;
}
.chat-compose {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 13px;
    background: #fff;
    border-top: 1px solid #e1e9ef;
}
.chat-attach {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border: 1px solid #dce6ed;
    border-radius: 10px;
    color: #286d8f;
    font-size: 23px;
    cursor: pointer;
}
.chat-compose-main {
    flex: 1;
    min-width: 0;
}
.chat-compose textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    max-height: 130px;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid #d5e0e8;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
}
.chat-compose-main > small {
    display: block;
    margin-top: 4px;
    color: #8b99a5;
    font-size: 9px;
}
.chat-send {
    height: 39px;
    padding: 0 17px;
    border: 0;
    border-radius: 9px;
    background: #176e94;
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}
.chat-send:disabled {
    opacity: 0.55;
    cursor: wait;
}
.chat-error {
    padding: 0 14px 10px;
    color: #b23e3e;
    font-size: 11px;
    background: #fff;
}
.chat-loading,
.chat-empty {
    margin: auto;
    padding: 25px;
    text-align: center;
    color: #82919d;
    font-size: 13px;
}
.chat-pdf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    padding: 3vh 3vw;
    background: rgba(9, 24, 37, 0.78);
    align-items: center;
    justify-content: center;
}
.chat-pdf-modal.is-open {
    display: flex;
}
.chat-pdf-dialog {
    display: flex;
    flex-direction: column;
    width: min(1100px, 100%);
    height: min(92vh, 900px);
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
}
.chat-pdf-dialog header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 15px;
    border-bottom: 1px solid #e3eaf0;
}
.chat-pdf-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1e3c52;
    font-size: 13px;
}
.chat-pdf-dialog header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-pdf-download {
    font-size: 11px;
    font-weight: 750;
    color: #176c94;
    text-decoration: none;
}
.chat-pdf-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 7px;
    background: #edf2f5;
    color: #344e60;
    font-size: 22px;
    cursor: pointer;
}
.chat-pdf-dialog iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    border: 0;
    background: #e7edf1;
}
.member-search {
    align-items: center;
}
.member-search input {
    min-height: 44px;
    background: #fff;
}
.member-search .btn {
    min-height: 44px;
    white-space: nowrap;
}
.member-grid {
    align-items: stretch;
}
.member-card {
    min-height: 178px;
    justify-content: center;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}
.member-card:hover {
    transform: translateY(-2px);
    border-color: #c5d8e6;
    box-shadow: 0 10px 25px rgba(20, 48, 72, 0.09);
}
.member-card img {
    flex: 0 0 auto;
}
.member-card strong {
    max-width: 100%;
    line-height: 1.4;
}
.member-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef7f5;
    color: #18766c;
}
.member-card:focus-visible,
.chat-file-link:focus-visible {
    outline: 3px solid rgba(30, 117, 164, 0.3);
    outline-offset: 2px;
}

/* =========================================================
   PCQMS PHASE 8 — PHOTO GALLERY (scoped; safe to append)
   ========================================================= */
.home-gallery-section {
    padding: 12px 0 58px;
}
.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.home-gallery-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 14px;
    background: #e8eff5;
    border: 1px solid #dce6ee;
    box-shadow: 0 8px 24px rgba(23, 55, 78, 0.07);
    text-decoration: none;
}
.home-gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.home-gallery-card:hover img {
    transform: scale(1.055);
}
.home-gallery-card:after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(9, 28, 44, 0.78));
}
.home-gallery-card span {
    position: absolute;
    z-index: 1;
    left: 15px;
    right: 15px;
    bottom: 13px;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}
.gallery-page {
    background: #f4f7fb;
}
.gallery-hero {
    padding: 54px 0 30px;
    max-width: 790px;
}
.gallery-kicker {
    display: block;
    color: #177b82;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.7px;
    margin-bottom: 9px;
}
.gallery-hero h1 {
    margin: 0;
    color: #18364e;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.7px;
}
.gallery-hero p {
    margin: 13px 0 0;
    color: #63788a;
    font-size: 15px;
    line-height: 1.75;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 8px 0 64px;
}
.gallery-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #dce6ee;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(23, 55, 78, 0.055);
}
.gallery-photo-link {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #eaf0f5;
}
.gallery-photo-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.gallery-photo-link:hover img {
    transform: scale(1.045);
}
.gallery-view-mark {
    position: absolute;
    right: 13px;
    top: 13px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #175b86;
    font-size: 18px;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
}
.gallery-photo-link:hover .gallery-view-mark,
.gallery-photo-link:focus-visible .gallery-view-mark {
    opacity: 1;
    transform: translateY(0);
}
.gallery-card figcaption {
    padding: 15px 17px 17px;
}
.gallery-card figcaption strong {
    display: block;
    color: #183d59;
    font-size: 15px;
    line-height: 1.45;
}
.gallery-card figcaption p {
    margin: 6px 0 0;
    color: #718292;
    font-size: 12px;
    line-height: 1.6;
}
.gallery-empty {
    margin: 10px 0 60px;
    padding: 42px 24px;
    text-align: center;
    border: 1px dashed #cbd9e4;
    border-radius: 14px;
    background: #fff;
    color: #31536b;
}
.gallery-empty p {
    margin: 7px 0 0;
    color: #718292;
}
.gallery-admin-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 22px;
    align-items: start;
}
.gallery-admin-form label {
    display: block;
    margin: 13px 0;
    color: #344f64;
    font-size: 12px;
    font-weight: 750;
}
.gallery-admin-form input:not([type="hidden"]):not([type="checkbox"]),
.gallery-admin-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid #d2dfe8;
    border-radius: 7px;
    background: #fff;
    font: inherit;
    font-size: 13px;
}
.gallery-admin-form input[type="file"] {
    padding: 9px;
    background: #f8fbfd;
}
.gallery-admin-form small {
    display: block;
    color: #758694;
    font-size: 11px;
    line-height: 1.6;
}
.gallery-admin-preview {
    display: block;
    width: 100%;
    max-height: 190px;
    object-fit: cover;
    margin: 12px 0;
    border-radius: 9px;
}
.gallery-admin-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}
.gallery-admin-check {
    display: flex !important;
    align-items: center;
    gap: 9px;
    padding-top: 28px;
}
.gallery-admin-check input {
    width: 17px;
    height: 17px;
}
.gallery-admin-list {
    display: grid;
    gap: 12px;
    min-width: 0;
}
.gallery-admin-list h2 {
    margin: 0;
    color: #183d59;
}
.gallery-admin-item {
    display: flex;
    gap: 14px;
    overflow: hidden;
    border: 1px solid #dce6ed;
    border-radius: 10px;
    background: #fff;
}
.gallery-admin-item > img {
    width: 145px;
    min-height: 108px;
    object-fit: cover;
}
.gallery-admin-item-body {
    min-width: 0;
    flex: 1;
    padding: 13px 13px 13px 0;
}
.gallery-admin-item-body > strong {
    display: block;
    color: #1b405b;
    font-size: 13px;
}
.gallery-admin-item-body > small {
    display: block;
    margin: 4px 0 10px;
    color: #82909b;
    font-size: 10px;
}
.gallery-admin-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.gallery-admin-actions a,
.gallery-admin-actions button {
    padding: 0;
    border: 0;
    background: none;
    color: #1769a6;
    font-size: 11px;
    font-weight: 750;
    text-decoration: underline;
    cursor: pointer;
}
.gallery-admin-actions button.danger {
    color: #b42318;
}

/* =========================================================
   RESPONSIVE STYLES
   Breakpoints are consolidated and ordered large to small.
========================================================= */

@media (max-width: 1000px) {
    .topbar {
        align-items: center;
    }
    .topbar nav {
        gap: 10px;
    }
    .topbar nav > a {
        font-size: 12px;
    }
    .home-access-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .about-hero-mark {
        flex-basis: 155px;
        width: 155px;
        height: 155px;
    }
    .about-hero-mark span {
        font-size: 36px;
    }
    .about-hero-mark b {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .wiki-shell {
        grid-template-columns: 175px minmax(0, 1fr);
    }
    .wiki-content-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .wiki-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .wiki-main {
        padding: 0 20px 35px;
    }
    .doc-hero-art {
        right: 10px;
        transform: scale(0.8);
        transform-origin: top right;
        opacity: 0.55;
    }
    .doc-hero-copy {
        max-width: 570px;
    }
    .doc-layout {
        grid-template-columns: 185px minmax(0, 1fr);
        gap: 24px;
    }
    .doc-card-grid {
        grid-template-columns: 1fr;
    }
    .doc-contribute {
        gap: 25px;
    }
    .doc-hero-stats {
        gap: 28px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gallery-admin-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .member-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .topbar nav {
        gap: 12px;
    }
    .language-switch {
        order: 10;
    }
    .home-admin-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .cv-bank-filters {
        grid-template-columns: 1fr;
    }
    .cv-person-with-photo {
        gap: 12px;
    }
    .cv-paper-photo {
        width: 84px;
        height: 100px;
    }
    .topbar {
        gap: 10px;
        padding: 10px 18px;
    }
    .topbar nav {
        gap: 8px 13px;
    }
    .topbar nav a {
        font-size: 13px;
    }
    .profile-cover {
        min-height: 185px;
        margin-top: 16px;
    }
    .profile-cover-content {
        padding: 22px;
    }
    .profile-identity {
        gap: 13px;
        padding: 0 15px 15px;
    }
    .profile-avatar {
        width: 88px;
        height: 88px;
        flex-basis: 88px;
        margin-top: -28px;
        border-width: 4px;
    }
    .profile-identity-main h2 {
        font-size: 18px;
    }
    .profile-identity-main p {
        font-size: 12px;
    }
    .profile-identity-main span {
        font-size: 10px;
    }
    .profile-credit-pill {
        padding: 8px 10px;
    }
    .profile-credit-pill strong {
        font-size: 18px;
    }
    .profile-credit-pill small {
        font-size: 8px;
    }
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
    .profile-side-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding: 10px 18px;
    }
    .topbar nav {
        width: 100%;
        justify-content: flex-start;
        gap: 8px 15px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 3px 0 7px;
        scrollbar-width: thin;
    }
    .topbar nav > a {
        font-size: 12px;
    }
    .language-switch {
        font-size: 11px;
        padding: 5px 8px;
    }
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }
    .home-portal-hero {
        height: 500px;
        min-height: 440px;
    }
    .home-banner-content {
        padding: 20px 22px 65px;
    }
    .home-banner-content h1 {
        font-size: clamp(36px, 7vw, 54px);
    }
    .home-banner-shade {
        background: linear-gradient(90deg, rgba(7, 25, 43, 0.88), rgba(9, 35, 57, 0.56) 75%, rgba(9, 32, 49, 0.25)),
            linear-gradient(0deg, rgba(8, 27, 43, 0.35), transparent 55%);
    }
    .home-slider-controls {
        padding: 0 20px;
        bottom: 17px;
    }
    
    
    
    .home-quick-access {
        padding: 42px 0;
    }
    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .home-community-band {
        grid-template-columns: 1fr;
        gap: 22px;
        margin: 0 -18px;
        padding: 35px 18px;
    }
    .home-stat-grid {
        max-width: 500px;
    }
    .home-latest-grid {
        grid-template-columns: 1fr;
        padding: 38px 0;
    }
    .home-join-strip {
        align-items: flex-start;
        flex-direction: column;
        padding: 23px 20px;
    }
    .about-hero-pro {
        min-height: 0;
        margin: 10px 0 28px;
        padding: 32px 23px 62px;
    }
    .about-hero-mark {
        display: none;
    }
    .about-hero-pro h1 {
        font-size: clamp(32px, 7vw, 45px);
    }
    .about-hero-foot {
        left: 23px;
        right: 23px;
        bottom: 14px;
        font-size: 7px;
    }
    .about-background-section {
        grid-template-columns: 1fr;
        gap: 5px;
        padding-bottom: 28px;
    }
    .about-background-copy {
        padding-top: 0;
    }
    .about-principles {
        grid-template-columns: 1fr;
        padding: 26px 0 38px;
    }
    .about-principle-card {
        min-height: 0;
    }
    .about-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .about-leader-grid {
        grid-template-columns: 1fr;
    }
    .about-org-item {
        margin-left: calc(var(--org-depth) * 8px);
    }
    .about-org-children {
        grid-template-columns: 1fr;
        margin-left: 8px;
    }
    .about-closing-band {
        align-items: flex-start;
        flex-direction: column;
        padding: 23px 20px;
    }
    .about-org-item {
        margin-left: 0;
    }
    .chat-page-head {
        align-items: flex-start;
        padding: 18px;
        flex-direction: column;
    }
    .chat-room-meta {
        width: 100%;
        grid-template-columns: auto 1fr;
        align-items: center;
        text-align: left;
    }
    .chat-room-meta strong {
        grid-row: span 2;
    }
    .community-chat {
        min-height: 500px;
        max-height: calc(100svh - 190px);
    }
    .chat-message {
        max-width: 98%;
    }
    .chat-compose {
        gap: 7px;
        padding: 9px;
    }
    .chat-send {
        padding: 0 12px;
    }
    .chat-pdf-modal {
        padding: 0;
    }
    .chat-pdf-dialog {
        height: 100svh;
        border-radius: 0;
    }
    .member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }
    .home-gallery-section {
        padding: 0 0 40px;
    }
    .gallery-hero {
        padding: 38px 0 24px;
    }
    .gallery-grid {
        gap: 14px;
        padding-bottom: 42px;
    }
}

@media (max-width: 650px) {
    .doc-hero {
        margin: 0 -18px;
        padding: 42px 20px 23px;
        min-height: 0;
    }
    .doc-hero-art {
        display: none;
    }
    .doc-hero h1 {
        font-size: 37px;
    }
    .doc-hero-stats {
        gap: 15px;
        justify-content: space-between;
        margin-top: 30px;
    }
    .doc-hero-stats strong {
        font-size: 20px;
    }
    .doc-hero-stats span {
        font-size: 8px;
    }
    .doc-layout {
        display: block;
        padding: 20px 0 35px;
    }
    .doc-sidebar {
        border: 0;
        padding: 0 0 13px;
        display: flex;
        gap: 5px;
        overflow: auto;
        white-space: nowrap;
    }
    .doc-side-title,
    .doc-side-divider,
    .doc-sidebar-note,
    .doc-side-link small {
        display: none;
    }
    .doc-side-link {
        border: 1px solid #dce7e3;
        padding: 8px 10px;
        flex: 0 0 auto;
    }
    .doc-main-heading {
        align-items: flex-start;
    }
    .doc-curated-pill {
        display: none;
    }
    .doc-searchbar {
        flex-wrap: wrap;
        padding: 6px;
    }
    .doc-search-symbol {
        padding: 0 8px;
    }
    .doc-searchbar input {
        font-size: 11px;
    }
    .doc-searchbar select {
        order: 3;
        width: 100%;
        border: 1px solid #e5ece9;
        margin-top: 5px;
        height: 36px;
    }
    .doc-searchbar button {
        min-height: 38px;
        padding: 0 10px;
    }
    .doc-card-grid {
        grid-template-columns: 1fr;
    }
    .doc-contribute {
        display: block;
        margin: 0 -18px;
        padding: 35px 18px;
    }
    .doc-contribute-intro {
        margin-bottom: 22px;
    }
    .doc-contribute-intro h2 {
        font-size: 30px;
    }
    .doc-upload-form {
        padding: 18px;
    }
    .doc-form-two {
        grid-template-columns: 1fr;
    }
    .doc-submission-row {
        flex-wrap: wrap;
    }
    .doc-submission-row > div {
        flex-basis: 100%;
    }
    .doc-join-strip {
        align-items: flex-start;
        flex-direction: column;
    }
    .doc-admin-hero {
        margin: 0 -18px;
        padding: 34px 20px;
    }
    .doc-admin-seal {
        width: 78px;
        height: 78px;
        font-size: 16px;
    }
    .doc-admin-seal b {
        font-size: 10px;
    }
    .doc-admin-metrics {
        grid-template-columns: 1fr;
    }
    .doc-admin-metrics > div {
        padding: 11px 15px;
    }
    .doc-review-card {
        padding: 15px;
    }
    .doc-review-top {
        flex-wrap: wrap;
    }
    .doc-review-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .doc-review-actions {
        align-items: stretch;
    }
    .doc-review-reason {
        flex-basis: 100%;
    }
    .doc-review-actions button {
        flex: 1;
    }
    .membership-hero {
        margin: 0 -18px;
        padding: 36px 20px;
    }
    .membership-seal {
        width: 72px;
        height: 72px;
        font-size: 16px;
    }
    .membership-seal small {
        font-size: 6px;
    }
    .membership-grid {
        grid-template-columns: 1fr;
    }
    .membership-plan {
        padding: 19px;
    }
}

@media (max-width: 620px) {
    .wiki-shell {
        display: block;
        margin: 0 -18px;
    }
    .wiki-sidebar {
        border-right: 0;
        border-bottom: 1px solid #c8ccd1;
        padding: 12px 16px;
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
    }
    .wiki-mark {
        width: 100%;
        padding-bottom: 10px;
        margin-bottom: 4px;
    }
    .wiki-sidebar h3,
    .wiki-sidebar-note,
    .wiki-sidebar > a:nth-of-type(n + 5) {
        display: none;
    }
    .wiki-sidebar > a {
        font-size: 12px;
        padding: 5px 8px;
    }
    .wiki-main {
        padding: 0 16px 30px;
    }
    .wiki-right {
        display: block;
    }
    .wiki-topline span:last-child {
        display: none;
    }
    .wiki-form-row {
        grid-template-columns: 1fr;
    }
    .wiki-article-footer {
        flex-direction: column;
    }
    .cv-form-grid {
        grid-template-columns: 1fr;
    }
    .cv-form-grid .wide {
        grid-column: auto;
    }
    .cv-paper {
        padding: 24px 18px;
    }
    .cv-search {
        flex-direction: column;
    }
    .cv-item-row {
        align-items: flex-start;
    }
    .site-footer {
        margin-top: 42px;
        padding: 19px 0;
    }
    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .site-footer-copy {
        gap: 7px;
        flex-direction: column;
        align-items: flex-start;
    }
    .site-footer-credit {
        justify-content: flex-start;
    }
    .about-hero {
        margin: 18px 0;
        padding: 28px 22px;
        border-radius: 15px;
    }
    .about-hero > p:last-child {
        font-size: 16px;
    }
    .about-content-card {
        padding: 20px 17px;
    }
    .cms-edit-grid {
        grid-template-columns: 1fr;
    }
    .about-org-node {
        margin-left: calc(var(--org-depth) * 10px);
    }
}

@media (max-width: 560px) {
    .topbar {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .topbar nav {
        width: 100%;
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 3px 0 6px;
        white-space: nowrap;
    }
    .topbar nav a {
        flex: 0 0 auto;
    }
    .nav-profile-link {
        padding: 3px 8px 3px 4px;
    }
    .nav-profile-avatar {
        width: 25px;
        height: 25px;
    }
    .profile-cover {
        min-height: 155px;
        border-radius: 12px;
    }
    .profile-cover-content {
        padding: 17px;
    }
    .profile-cover-kicker {
        font-size: 8px;
    }
    .profile-cover h1 {
        font-size: 27px;
    }
    .profile-cover p {
        font-size: 12px;
    }
    .profile-identity {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 12px 13px;
    }
    .profile-avatar {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
        margin-top: -22px;
    }
    .profile-identity-main {
        flex: 1 1 calc(100% - 100px);
    }
    .profile-identity-main h2 {
        font-size: 16px;
    }
    .profile-credit-pill {
        margin-left: 86px;
        align-items: flex-start;
        flex-direction: row;
        gap: 8px;
    }
    .profile-credit-pill strong {
        font-size: 15px;
    }
    .profile-content-grid {
        padding-top: 14px;
    }
    .profile-content-grid .panel,
    .profile-tab-panel {
        padding: 16px;
    }
    .profile-facts {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .profile-side-panel {
        grid-template-columns: 1fr;
    }
    .profile-edit-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }
    .profile-field-wide {
        grid-column: auto;
    }
    .profile-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .profile-document-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .profile-document-copy {
        flex-basis: calc(100% - 60px);
    }
    .profile-document-status {
        margin-left: 55px;
    }
    .profile-tabs a {
        font-size: 12px;
        padding: 8px 10px;
    }
    .table-wrap {
        max-width: 100%;
    }
    .member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .member-card {
        padding: 15px 9px;
    }
    .member-card img {
        width: 68px;
        height: 68px;
        max-width: 68px;
    }
    .member-search {
        flex-wrap: wrap;
    }
    .member-search .btn {
        flex: 0 0 100%;
    }
    .home-admin-two {
        grid-template-columns: 1fr;
    }
    .home-admin-check {
        padding-top: 0;
    }
    .home-admin-banner > img {
        width: 100px;
    }
    .home-admin-banner-info {
        padding-right: 9px;
    }
}

@media (max-width: 520px) {
    .cards {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 54px 0;
    }
    .topbar nav {
        gap: 12px;
    }
    .container {
        padding: 0 18px;
    }
}

@media (max-width: 480px) {
    .home-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .home-gallery-card span {
        left: 10px;
        right: 10px;
        bottom: 9px;
        font-size: 11px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-admin-two {
        grid-template-columns: 1fr;
    }
    .gallery-admin-check {
        padding-top: 0;
    }
    .gallery-admin-item > img {
        width: 105px;
    }
    .gallery-admin-item-body {
        padding-right: 9px;
    }
}

@media (max-width: 430px) {
    .home-portal-hero {
        height: 470px;
        min-height: 430px;
    }
    .home-banner-content h1 {
        font-size: 35px;
    }
    .home-banner-content p {
        font-size: 14px;
    }
    .home-kicker {
        font-size: 9px;
        letter-spacing: 1.3px;
    }
    .home-access-grid {
        grid-template-columns: 1fr;
    }
    .home-access-card {
        min-height: 175px;
    }
    .home-stat-grid {
        gap: 4px;
    }
    .home-stat-grid > div {
        padding: 13px 8px;
    }
    .home-stat-grid strong {
        font-size: 23px;
    }
    .home-stat-grid span {
        font-size: 9px;
    }
    .home-latest-panel {
        padding: 18px 15px;
    }
    .about-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .about-action-primary,
    .about-action-secondary {
        justify-content: space-between;
    }
    .about-leader-card {
        gap: 12px;
        padding: 14px;
    }
    .about-leader-card > img,
    .about-leader-avatar {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
    }
    .chat-room-bar {
        padding: 10px;
    }
    .chat-room-online {
        font-size: 9px;
    }
    .chat-message-avatar {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }
    .chat-bubble {
        padding: 9px 10px;
    }
    .chat-compose-main > small {
        font-size: 8px;
    }
    .member-grid {
        gap: 9px;
    }
    .member-card {
        min-height: 150px;
        padding: 13px 8px;
    }
    .member-card img {
        width: 64px;
        height: 64px;
    }
    .member-search {
        gap: 7px;
    }
    .member-search input {
        width: 100%;
        flex-basis: 100%;
    }
    .member-search .btn {
        flex: 1;
    }
}

@media print {
    body {
        background: #fff !important;
    }
    .topbar,
    .footer,
    .cv-actions,
    .notice,
    .page-heading {
        display: none !important;
    }
    .container {
        max-width: none;
        padding: 0 !important;
    }
    .cv-paper {
        max-width: none;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 8mm 10mm;
    }
    .cv-section {
        break-inside: avoid;
    }
    .cv-entry {
        break-inside: avoid;
    }
    a {
        color: inherit;
        text-decoration: none;
    }
    .cv-progress {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .home-banner-slide,
    .home-access-card,
    .home-banner-cta {
        transition: none !important;
    }
    .home-gallery-card img,
    .gallery-photo-link img,
    .gallery-view-mark {
        transition: none !important;
    }
}
/* ==========================================================
   PCQMS ABOUT PAGE — FOUNDER & ADMINISTRATION TEAM CARDS
   Append this block to the bottom of assets/css/pcqms.css
   Scoped to .about-page; does not change other page cards.
   ========================================================== */
.about-page .about-leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    align-items: stretch;
    margin-top: 18px;
}

.about-page .about-leader-card-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    padding: 28px 24px 26px;
    text-align: center;
    border: 1px solid #e2eaf2;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    box-shadow: 0 12px 30px rgba(23, 55, 82, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.about-page .about-leader-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(23, 55, 82, .12);
}

.about-page .about-leader-photo-wrap {
    width: 142px;
    height: 142px;
    flex: 0 0 142px;
    margin: 0 auto 18px;
    overflow: hidden;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, #d9eaf4, #e9f2f7);
    box-shadow: 0 5px 18px rgba(23, 75, 112, .12);
}

.about-page .about-leader-photo,
.about-page .about-leader-photo-wrap .about-leader-avatar {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: #e7f0f5;
}

.about-page .about-leader-photo-wrap .about-leader-avatar {
    display: grid;
    place-items: center;
    color: #17649a;
    font-size: 48px;
    font-weight: 800;
}

.about-page .about-leader-details-v2 {
    width: 100%;
    min-width: 0;
}

.about-page .about-leader-details-v2 h3 {
    margin: 0 0 8px;
    color: #153e5e;
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.about-page .about-leader-details-v2 .about-leader-designation {
    display: block;
    margin: 0 0 13px;
    color: #087d80;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.about-page .about-leader-details-v2 .about-leader-bio {
    margin: 0;
    color: #617386;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.about-page .about-leader-photo-wrap [hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .about-page .about-leader-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }
    .about-page .about-leader-card-v2 {
        padding: 20px 13px;
    }
    .about-page .about-leader-photo-wrap {
        width: 112px;
        height: 112px;
        flex-basis: 112px;
    }
    .about-page .about-leader-details-v2 h3 {
        font-size: 17px;
    }
    .about-page .about-leader-details-v2 .about-leader-designation,
    .about-page .about-leader-details-v2 .about-leader-bio {
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .about-page .about-leader-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   PCQMS NAVBAR, BRANDING & FOOTER LINKS — APPEND ONLY
   ========================================================= */
.topbar .brand{display:inline-flex;align-items:center;flex:0 0 auto;min-width:110px;text-decoration:none}
.topbar .site-brand-logo{display:block;width:auto;max-width:158px;height:auto;max-height:44px;object-fit:contain}
.topbar nav{align-items:center}
.topbar nav>a{transition:color .18s ease}
.topbar nav>a:hover{color:#087c83}
.topbar nav .nav-profile-link{min-height:42px;padding:4px 11px 4px 5px;gap:9px;background:#f7fafc;border:1px solid #dce7ef;box-shadow:0 2px 8px rgba(20,55,80,.045);text-decoration:none}
.topbar nav .nav-profile-avatar{width:32px;height:32px;flex:0 0 32px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 0 0 1px #d5e2eb}
.topbar nav .nav-profile-initials{display:inline-flex;align-items:center;justify-content:center;background:#e4f0f4;color:#175b78;font-size:13px;font-weight:800}
.topbar nav .nav-profile-name{max-width:142px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:750;color:#24445c}
.topbar nav .nav-profile-chevron{font-size:14px;color:#73889a;line-height:1}
.site-footer-inner{flex-wrap:wrap}
.site-footer-links{display:flex;align-items:center;justify-content:center;gap:17px;flex-wrap:wrap}
.site-footer-links a{color:#c5d7e1;text-decoration:none;font-size:12px;font-weight:650}
.site-footer-links a:hover{color:#fff;text-decoration:underline}
.brand-settings-panel{margin:22px 0}
.brand-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}
.brand-upload-card{min-width:0;padding:18px;border:1px solid #dce6ef;border-radius:13px;background:#fbfdff}
.brand-upload-card h3{margin:0 0 13px;color:#203d55}
.brand-logo-preview{display:flex;width:100%;height:88px;object-fit:contain;object-position:left center;background:#fff;border:1px solid #e5edf3;border-radius:9px;padding:12px;margin-bottom:12px}
.brand-favicon-preview{width:64px;height:64px;object-fit:contain;background:#fff;border:1px solid #e5edf3;border-radius:12px;padding:8px;margin-bottom:12px}
.brand-preview-placeholder{display:flex;align-items:center;width:100%;height:88px;padding:12px;margin-bottom:12px;background:#fff;border:1px dashed #cbd9e4;border-radius:9px;color:#175b9b;font-size:25px;font-weight:850}
.brand-favicon-placeholder{display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin-bottom:12px;border-radius:14px;background:#175b9b;color:#fff;font-size:28px;font-weight:850}
.brand-upload-card>label:not(.brand-remove-option){display:grid;gap:7px;font-weight:700;font-size:13px}
.brand-upload-card input[type=file]{max-width:100%;padding:9px;border:1px solid #d5e0e9;border-radius:8px;background:#fff}
.brand-upload-card small{display:block;color:#738397;font-size:11px;margin-top:7px}
.brand-upload-card .brand-remove-option{display:flex;align-items:center;gap:7px;margin-top:12px;font-size:12px;font-weight:600}
@media(max-width:760px){.topbar .site-brand-logo{max-width:135px;max-height:38px}.topbar nav .nav-profile-name{max-width:110px}.site-footer-links{justify-content:flex-start}}
@media(max-width:560px){.brand-upload-grid{grid-template-columns:1fr}.topbar .brand{min-width:0}.topbar nav .nav-profile-link{flex:0 0 auto}.site-footer-inner{align-items:flex-start}.site-footer-links{gap:12px 16px}}

/* PCQMS membership checkout cards — additive page-specific styling */
.membership-page-head{padding:38px 0 24px;max-width:850px}
.membership-page-head .eyebrow{margin:0 0 8px;font-size:11px;letter-spacing:2px;color:#176db1;font-weight:800}
.membership-page-head h1{margin:0 0 10px;color:#102b46;font-size:clamp(30px,4vw,42px);line-height:1.15;letter-spacing:-.7px}
.membership-page-head>p:last-child{margin:0;color:#66778b;font-size:15px}
.membership-checkout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(310px,.8fr);align-items:start;gap:24px;margin:12px 0 34px}
.membership-packages,.membership-payment-panel{min-width:0}
.membership-packages h2,.membership-payment-panel h2{margin:0 0 16px;color:#142f4b;font-size:21px;font-weight:750;letter-spacing:-.25px}
.membership-package-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.membership-package{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:14px;width:100%;min-width:0;min-height:190px;padding:20px 19px 17px;text-align:left;color:#1a3047;background:linear-gradient(145deg,#fff 0%,#f9fbfe 100%);border:1px solid #dbe5ef;border-radius:16px;box-shadow:0 5px 18px rgba(21,54,85,.045);cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.membership-package:hover{transform:translateY(-2px);border-color:#8bb8df;box-shadow:0 10px 24px rgba(21,75,120,.10)}
.membership-package.selected{border:2px solid #176db1;padding:19px 18px 16px;background:linear-gradient(145deg,#f1f8ff 0%,#fff 100%);box-shadow:0 8px 24px rgba(23,109,177,.13)}
.membership-package:focus-visible{outline:3px solid rgba(23,109,177,.25);outline-offset:3px}
.package-copy{display:flex;flex-direction:column;gap:5px;padding-right:22px}
.package-copy strong{font-size:17px;line-height:1.3;color:#173c60}
.package-copy small{font-size:12px;color:#6d8094;font-weight:650}
.package-copy em{font-size:12px;line-height:1.55;color:#718196;font-style:normal}
.package-cost{display:block;margin-top:auto;padding-top:11px;border-top:1px solid #e8eef5;color:#145f9c;font-size:22px;font-weight:800;letter-spacing:-.4px}
.package-radio{position:absolute;top:17px;right:17px;width:19px;height:19px;border:1.5px solid #bdcad8;border-radius:50%;background:#fff}
.membership-package.selected .package-radio{border:6px solid #176db1}
.membership-payment-panel{position:sticky;top:18px;padding:24px;background:#fff;border:1px solid #dce6f0;border-radius:18px;box-shadow:0 12px 32px rgba(20,50,80,.07)}
.checkout-kicker{margin-bottom:8px;color:#176db1;font-size:10px;font-weight:850;letter-spacing:1.7px}
.membership-payment-panel h2{margin:0 0 4px;font-size:23px}
.selected-plan-price{margin:0 0 20px;color:#176db1;font-size:28px;font-weight:850;letter-spacing:-.7px}
.membership-payment-panel h3{margin:18px 0 5px;color:#213b56;font-size:16px}
.payment-help,.membership-payment-panel>p{margin:4px 0 14px;color:#718196;font-size:13px;line-height:1.6}
.payment-method-list{display:grid;gap:9px;margin:13px 0}
.payment-method-option{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #dce6f0;border-radius:11px;background:#fbfdff;cursor:pointer}
.payment-method-option:has(input:checked){border-color:#3988c5;background:#f1f8ff;box-shadow:inset 0 0 0 1px #3988c5}
.payment-method-option input{accent-color:#176db1;width:16px;height:16px;flex:0 0 auto}
.payment-method-option span{display:flex;flex-direction:column;gap:2px}
.payment-method-option strong{color:#233d57;font-size:13px}
.payment-method-option small{color:#7a8b9e;font-size:11px}
.payment-instructions{padding:13px 14px;margin:12px 0;background:#f4f8fc;border:1px solid #e1eaf3;border-radius:11px;color:#425a72;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.payment-instructions>strong{display:block;margin-bottom:5px;color:#183d60}
.payment-instructions p{margin:7px 0 0;color:#718196}
.transaction-label{display:block;margin:15px 0 12px;color:#344e68;font-size:12px;font-weight:750}
.transaction-label input{display:block;width:100%;margin-top:7px;padding:12px 13px;border:1px solid #d5e0eb;border-radius:9px;background:#fff;color:#1b3046;font:inherit;font-size:13px}
.transaction-label input:focus{outline:3px solid rgba(23,109,177,.12);border-color:#3988c5}
.membership-submit{width:100%;min-height:46px;border-radius:10px;background:#176db1;font-size:14px}
.membership-submit:hover{background:#10588f}
.payment-empty{padding:14px;background:#fff8e9;border:1px solid #f1dfb7;border-radius:10px;color:#866322;font-size:13px;line-height:1.6}
.payment-review-note{padding-top:14px!important;margin-top:15px!important;border-top:1px solid #edf1f5;color:#748398!important;font-size:11px!important}
.membership-history{margin:34px 0 48px}
.membership-history h2{margin:0 0 13px;color:#163956;font-size:25px;font-weight:750}
.membership-history .table-wrap{border:1px solid #dce6f0;border-radius:13px;box-shadow:0 5px 18px rgba(20,50,80,.035)}
.membership-history table{min-width:720px}
.membership-history th{padding:14px 15px;background:#f3f7fb;color:#38536e;font-size:12px;font-weight:800;white-space:nowrap}
.membership-history td{padding:13px 15px;color:#50647a;font-size:12px;vertical-align:middle}
.membership-history tr:last-child td{border-bottom:0}
.membership-status{display:inline-flex;padding:4px 9px;border-radius:20px;background:#eef3f8;font-size:10px;font-weight:800;letter-spacing:.3px}
.membership-status.status-active{background:#e8f7ee;color:#207344}
.membership-status.status-pending{background:#fff5df;color:#946719}
.membership-status.status-rejected,.membership-status.status-expired,.membership-status.status-cancelled{background:#fff0ee;color:#a3483e}
@media(max-width:900px){.membership-checkout{grid-template-columns:minmax(0,1fr) minmax(280px,.85fr);gap:16px}.membership-payment-panel{padding:19px}.membership-package-list{gap:10px}.membership-package{padding:17px;min-height:180px}}
@media(max-width:720px){.membership-page-head{padding:27px 0 18px}.membership-checkout{grid-template-columns:1fr}.membership-payment-panel{position:static}.membership-package-list{grid-template-columns:repeat(2,minmax(0,1fr))}.membership-history{margin-top:27px}}
@media(max-width:480px){.membership-package-list{grid-template-columns:1fr}.membership-package{min-height:0;flex-direction:row;align-items:center;padding:16px;gap:10px}.membership-package.selected{padding:15px}.package-copy{flex:1;min-width:0}.package-cost{margin:0;padding:0;border:0;white-space:nowrap;font-size:17px}.package-radio{top:12px;right:12px;width:15px;height:15px}.membership-package .package-copy{padding-right:13px}.membership-package .package-copy strong{font-size:15px}.membership-payment-panel{padding:18px}.selected-plan-price{font-size:25px}}
@media(prefers-reduced-motion:reduce){.membership-package{transition:none}.membership-package:hover{transform:none}}

/* ==========================================================
   PCQMS ADMIN WORKSPACE — FULL-WIDTH STICKY NAVIGATION
   Append this section to assets/css/pcqms.css
   ========================================================== */
.pcqms-admin-layout{display:block!important;width:100%;max-width:none;margin:18px 0 36px!important}
.pcqms-admin-main{display:block!important;width:100%;min-width:0;min-height:65vh}
.pcqms-admin-sidebar,.admin-sidebar-mobile-toggle{display:none!important}
.pcqms-admin-topnav{position:sticky;top:8px;z-index:80;width:100%;margin:0 0 28px;background:rgba(255,255,255,.97);border:1px solid #dce6f0;border-radius:16px;box-shadow:0 10px 30px rgba(18,45,75,.09);backdrop-filter:blur(14px)}
.pcqms-admin-topnav-head{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 18px;border-bottom:1px solid #edf1f6}
.pcqms-admin-topnav-brand{display:inline-flex;align-items:center;gap:11px;color:#132f4d;text-decoration:none}
.pcqms-admin-brand-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:linear-gradient(145deg,#176db1,#124a7a);color:#fff;font-size:21px;font-weight:900;box-shadow:0 5px 12px rgba(23,109,177,.2)}
.pcqms-admin-topnav-brand small{display:block;color:#71849b;font-size:9px;font-weight:800;letter-spacing:.14em;line-height:1.4}
.pcqms-admin-topnav-brand strong{display:block;color:#173653;font-size:16px;line-height:1.4}
.pcqms-admin-public-link{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #dce6ef;border-radius:999px;color:#42617e;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap}
.pcqms-admin-public-link:hover{background:#f3f8fd;color:#075db8}
.pcqms-admin-topnav-menu{padding:0 12px}
.pcqms-admin-nav-groups{display:flex;align-items:center;gap:5px;min-height:53px;flex-wrap:wrap}
.pcqms-admin-nav-group{position:relative}
.pcqms-admin-nav-trigger{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:11px 13px;border-radius:9px;color:#3b526b;font-size:12px;font-weight:750;white-space:nowrap;transition:background .15s,color .15s}
.pcqms-admin-nav-trigger::-webkit-details-marker{display:none}
.pcqms-admin-nav-trigger:hover,.pcqms-admin-nav-group[open]>.pcqms-admin-nav-trigger,.pcqms-admin-nav-group[data-current-group]>.pcqms-admin-nav-trigger{background:#eaf3ff;color:#075db8}
.pcqms-admin-nav-chevron{font-size:14px;color:#8294a9;transition:transform .16s ease}
.pcqms-admin-nav-group[open] .pcqms-admin-nav-chevron{transform:rotate(180deg)}
.pcqms-admin-dropdown{position:absolute;top:calc(100% + 7px);left:0;z-index:90;min-width:250px;max-width:min(340px,calc(100vw - 36px));padding:7px;background:#fff;border:1px solid #dce6f0;border-radius:13px;box-shadow:0 16px 38px rgba(16,42,70,.16)}
.pcqms-admin-dropdown-link{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:8px;color:#3c526a;text-decoration:none;font-size:12px;line-height:1.35}
.pcqms-admin-dropdown-link:hover{background:#f2f7fc;color:#075db8}
.pcqms-admin-dropdown-link.is-active{background:#eaf3ff;color:#075db8;font-weight:800}
.pcqms-admin-dropdown-icon{display:inline-grid;place-items:center;flex:0 0 20px;width:20px;color:#6b86a3;font-size:15px}
.pcqms-admin-active-dot{width:6px;height:6px;margin-left:auto;border-radius:50%;background:#0875d1}
.pcqms-admin-mobile-toggle{display:none}
@media(min-width:761px){.pcqms-admin-nav-group:hover>.pcqms-admin-dropdown{display:block}.pcqms-admin-nav-group:not([open]):hover>.pcqms-admin-dropdown{display:block}}
@media(max-width:760px){.pcqms-admin-layout{margin-top:10px!important}.pcqms-admin-topnav{top:5px;margin-bottom:20px;border-radius:13px}.pcqms-admin-topnav-head{min-height:58px;padding:9px 12px}.pcqms-admin-brand-mark{width:35px;height:35px}.pcqms-admin-topnav-brand strong{font-size:14px}.pcqms-admin-public-link{font-size:11px;padding:7px 9px}.pcqms-admin-public-link span{display:none}.pcqms-admin-topnav-menu{padding:9px 10px}.pcqms-admin-mobile-toggle{display:flex;align-items:center;gap:9px;width:100%;padding:10px 12px;border:1px solid #dce6f0;border-radius:9px;background:#f7faff;color:#244563;font:inherit;font-size:13px;font-weight:800;text-align:left}.pcqms-admin-mobile-toggle[aria-expanded=true]{background:#eaf3ff;color:#075db8}.pcqms-admin-nav-groups{display:none;align-items:stretch;flex-direction:column;gap:4px;padding-top:9px}.pcqms-admin-topnav-menu.is-open .pcqms-admin-nav-groups{display:flex}.pcqms-admin-nav-group{width:100%}.pcqms-admin-nav-trigger{justify-content:space-between;width:100%;padding:12px 11px;background:#f7f9fc}.pcqms-admin-dropdown{position:static;display:none;max-width:none;min-width:0;margin:5px 0 3px;padding:5px;border-radius:10px;box-shadow:none;background:#fbfdff}.pcqms-admin-nav-group[open]>.pcqms-admin-dropdown{display:block}.pcqms-admin-dropdown-link{padding:11px 10px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.pcqms-admin-nav-trigger,.pcqms-admin-nav-chevron{transition:none}}


/* =========================================================
   PCQMS ABOUT ADMIN — TEAM MANAGEMENT
   Append-only, scoped styles. Does not change public cards.
   ========================================================= */
.about-team-admin-panel{padding:26px!important}
.about-team-admin-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.about-team-admin-heading h2{margin:0 0 7px}
.about-team-admin-heading .muted{margin:0;max-width:680px}
.about-team-admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px}
.about-team-admin-stats>div{display:flex;flex-direction:column;gap:4px;padding:15px 17px;border:1px solid #e1eaf2;border-radius:13px;background:#f7fafd}
.about-team-admin-stats strong{font-size:24px;line-height:1.1;color:#174c73}
.about-team-admin-stats span{font-size:12px;color:#64788b;font-weight:650}
.about-team-add-panel{margin:0 0 24px;padding:22px;border:1px solid #cfe0ee;border-radius:16px;background:linear-gradient(145deg,#f8fbff,#fff)}
.about-team-form-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
.about-team-form-heading h3{margin:0 0 5px;color:#173d5d}
.about-team-form-heading p{margin:0}
.about-modal-close{display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid #d8e3ed;border-radius:50%;background:#fff;color:#23445f;font-size:25px;line-height:1;cursor:pointer}
.about-team-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.about-team-form-grid>label{display:flex;flex-direction:column;gap:7px;min-width:0;color:#243f57;font-size:13px;font-weight:700}
.about-team-form-grid label>span{color:#b42318}
.about-team-form-grid label small{font-size:11px;color:#718397;font-weight:500}
.about-team-form-grid input:not([type=file]),.about-team-form-grid select,.about-team-form-grid textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #cbd9e6;border-radius:9px;background:#fff;padding:11px 12px;color:#18334b;font:inherit;font-weight:500;outline:none}
.about-team-form-grid input:focus,.about-team-form-grid select:focus,.about-team-form-grid textarea:focus{border-color:#287bb4;box-shadow:0 0 0 3px rgba(40,123,180,.12)}
.about-team-form-grid input[type=file]{width:100%;box-sizing:border-box;padding:10px;border:1px dashed #b7c9d9;border-radius:9px;background:#fff;font-size:12px}
.about-team-bio-field{grid-column:span 1}
.about-team-photo-field{align-self:start}
.about-team-file-note{font-size:11px;color:#718397;font-weight:500}
.about-team-form-bottom{display:flex;align-items:center;gap:16px;margin-top:18px;padding-top:17px;border-top:1px solid #e2eaf1}
.about-team-preview{display:grid;place-items:center;flex:0 0 74px;width:74px;height:74px;overflow:hidden;border:1px solid #d8e5ee;border-radius:50%;background:#edf4f8;color:#7890a3;font-size:10px;font-weight:800}
.about-team-preview img{display:block;width:100%;height:100%;object-fit:cover}
.about-team-avatar-placeholder{font-size:10px;letter-spacing:.08em}
.about-team-publish{display:flex;align-items:center;gap:9px;min-width:0;margin-right:auto;color:#27435b;font-size:13px;cursor:pointer}
.about-team-publish input{width:17px;height:17px;accent-color:#176fa8}
.about-team-publish span{display:flex;flex-direction:column;gap:2px}
.about-team-publish small{font-size:11px;color:#718397;font-weight:500}
.about-team-table-wrap{width:100%;overflow-x:auto;border:1px solid #e1e9f0;border-radius:13px}
.about-team-table{width:100%;min-width:680px;border-collapse:separate;border-spacing:0;background:#fff}
.about-team-table th{padding:13px 15px;background:#f4f8fb;color:#536b80;text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.055em;white-space:nowrap}
.about-team-table td{padding:13px 15px;border-top:1px solid #edf1f5;color:#29445b;font-size:13px;vertical-align:middle}
.about-team-person-row{cursor:pointer;transition:background .15s ease}
.about-team-person-row:hover,.about-team-person-row:focus{background:#f6faff;outline:none}
.about-team-table td strong{display:block;color:#173c5b;font-size:13px}
.about-team-table td small{display:block;margin-top:4px;color:#7b8b9b;font-size:11px}
.about-team-table-photo{display:grid;place-items:center;width:46px;height:46px;overflow:hidden;border:2px solid #e0edf5;border-radius:50%;background:#edf4f8;color:#23658f;font-weight:800}
.about-team-table-photo img{width:100%;height:100%;object-fit:cover}
.about-team-status{display:inline-flex;padding:5px 9px;border-radius:30px;font-size:11px;font-weight:750;white-space:nowrap}
.about-team-status.is-visible{background:#e7f7ef;color:#167448}
.about-team-status.is-hidden{background:#fff3e4;color:#98601b}
.about-team-row-actions{display:flex;align-items:center;gap:9px;white-space:nowrap}
.about-team-row-actions form{margin:0}
.about-team-action{padding:0;border:0;background:none;color:#176fa8;font:inherit;font-size:12px;font-weight:750;text-decoration:underline;cursor:pointer}
.about-team-action.is-danger{color:#b42318}
.about-team-empty{display:flex;flex-direction:column;align-items:center;gap:5px;padding:28px;color:#61778a}
.about-team-empty strong{color:#25445e}
.about-team-modal[hidden],.about-team-add-panel[hidden],.about-team-edit-form[hidden]{display:none!important}
.about-team-modal{position:fixed;z-index:10050;inset:0;display:grid;place-items:center;padding:22px}
.about-team-modal-backdrop{position:absolute;inset:0;background:rgba(11,29,45,.62);backdrop-filter:blur(3px)}
.about-team-modal-dialog{position:relative;z-index:1;width:min(760px,100%);max-height:min(88vh,900px);overflow:auto;padding:28px;border:1px solid #dce6ee;border-radius:19px;background:#fff;box-shadow:0 25px 80px rgba(8,29,48,.28)}
.about-team-modal-x{position:absolute;top:14px;right:14px;z-index:2}
.about-team-modal-profile{display:grid;grid-template-columns:116px minmax(0,1fr);gap:22px;align-items:center;padding:8px 32px 22px 0}
.about-team-modal-photo{display:grid;place-items:center;width:116px;height:116px;overflow:hidden;border:4px solid #e5f0f6;border-radius:50%;background:#edf4f8;color:#1d6594;font-size:34px;font-weight:800}
.about-team-modal-photo img{width:100%;height:100%;object-fit:cover}
.about-team-modal-profile .eyebrow{margin:0 0 5px;color:#2478a9;font-size:10px;font-weight:800;letter-spacing:.12em}
.about-team-modal-profile h3{margin:0 0 5px;color:#183d5c;font-size:24px}
.about-team-modal-profile strong{display:block;color:#087d80;font-size:14px}
.about-team-modal-profile p:last-child{margin:10px 0 0;color:#607589;font-size:13px;line-height:1.7;white-space:pre-line}
.about-team-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;padding-top:17px;border-top:1px solid #e8eef3}
.about-team-edit-form{margin-top:18px;padding-top:18px;border-top:1px solid #e8eef3}
body.about-team-modal-open{overflow:hidden}
@media(max-width:760px){.about-team-admin-panel{padding:18px!important}.about-team-admin-heading{align-items:flex-start;flex-direction:column}.about-team-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.about-team-form-grid{grid-template-columns:1fr}.about-team-bio-field{grid-column:auto}.about-team-form-bottom{flex-wrap:wrap}.about-team-form-bottom>.btn{width:100%}.about-team-modal{padding:10px}.about-team-modal-dialog{padding:22px 17px;border-radius:15px}.about-team-modal-profile{grid-template-columns:76px minmax(0,1fr);gap:13px}.about-team-modal-photo{width:76px;height:76px}.about-team-modal-profile h3{font-size:19px}.about-team-modal-actions{flex-wrap:wrap}.about-team-modal-actions .btn{flex:1}}

/* ==========================================================
   PCQMS ABOUT ADMIN — COMMUNITY ORGANOGRAM TABLE & MODAL
   Append this section to assets/css/pcqms.css
   ========================================================== */
.about-org-admin-panel{margin-top:28px;scroll-margin-top:110px}
.about-org-admin-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.about-org-admin-heading h2{margin:4px 0 8px}
.about-org-admin-heading .muted{margin:0;max-width:760px}
.about-org-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 22px}
.about-org-stats>div{padding:16px 18px;border:1px solid #dce6f0;border-radius:14px;background:#f8fbff;display:flex;flex-direction:column;gap:4px}
.about-org-stats strong{font-size:25px;line-height:1.2;color:#174d7b}
.about-org-stats span{font-size:13px;color:#66788b}
.about-org-add-panel{padding:22px;margin:18px 0 22px;border:1px solid #cbdced;border-radius:16px;background:#f8fbff}
.about-org-form-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
.about-org-form-heading h3{margin:0 0 5px}
.about-org-form-heading .muted{margin:0}
.about-org-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.about-org-form-grid label{display:flex;flex-direction:column;gap:7px;font-weight:650;color:#20364c;min-width:0}
.about-org-form-grid label>span{color:#c0392b}
.about-org-form-grid input,.about-org-form-grid select,.about-org-form-grid textarea{width:100%;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid #cbd8e6;border-radius:9px;background:#fff;color:#18324a;font:inherit;font-weight:400;box-sizing:border-box}
.about-org-form-grid textarea{min-height:94px;resize:vertical}
.about-org-form-grid small{font-size:12px;font-weight:400;color:#718096}
.about-org-form-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:20px}
.about-org-form-bottom>.muted{font-size:13px}
.about-org-table-wrap{width:100%;overflow-x:auto;border:1px solid #dce5ef;border-radius:14px;background:#fff}
.about-org-table{width:100%;min-width:760px;border-collapse:separate;border-spacing:0}
.about-org-table th{padding:14px 16px;background:#f2f6fb;color:#52677d;text-align:left;font-size:12px;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap}
.about-org-table td{padding:14px 16px;border-top:1px solid #e8eef5;color:#31475c;vertical-align:middle}
.about-org-table tbody tr{transition:background .16s ease}
.about-org-table tbody tr:hover{background:#f7faff}
.about-org-position-row{cursor:pointer}
.about-org-table td strong{display:block;color:#183b5a;font-weight:700}
.about-org-table td small{display:block;margin-top:4px;color:#718096;font-size:12px}
.about-org-row-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}
.about-org-row-actions form{display:inline-flex;margin:0}
.about-org-modal[hidden],.about-org-add-panel[hidden],.about-org-edit-form[hidden]{display:none!important}
.about-org-modal{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px}
.about-org-modal-backdrop{position:absolute;inset:0;background:rgba(12,27,43,.62);backdrop-filter:blur(3px)}
.about-org-modal-dialog{position:relative;z-index:1;width:min(720px,100%);max-height:min(88vh,900px);overflow:auto;padding:28px;border:1px solid #dce6ef;border-radius:20px;background:#fff;box-shadow:0 24px 80px rgba(8,28,48,.25)}
.about-org-modal-x{position:absolute;right:16px;top:14px}
.about-org-modal-summary>.eyebrow{margin:0 0 8px}
.about-org-modal-summary h3{margin:0;color:#183b5a;font-size:26px}
.about-org-modal-bn{margin:6px 0 22px;color:#547087}
.about-org-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.about-org-detail-grid>div{padding:13px 15px;border:1px solid #e1eaf2;border-radius:12px;background:#f8fbfe;min-width:0}
.about-org-detail-grid small{display:block;margin-bottom:5px;color:#718096;font-size:12px}
.about-org-detail-grid strong{display:block;color:#203c56;overflow-wrap:anywhere}
.about-org-modal-description{padding-top:14px;border-top:1px solid #e7edf3}
.about-org-modal-description h4{margin:0 0 8px;color:#203c56}
.about-org-modal-description p{margin:6px 0;color:#536b80;line-height:1.65;white-space:pre-wrap}
.about-org-edit-form{margin-top:20px;padding-top:18px;border-top:1px solid #e7edf3}
.about-org-edit-form .about-team-publish{display:flex;align-items:center;gap:10px}
.about-org-modal-dialog .about-team-modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}
body.about-org-modal-open{overflow:hidden}
@media(max-width:760px){.about-org-admin-heading{flex-direction:column}.about-org-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.about-org-stats>div{padding:12px}.about-org-stats strong{font-size:21px}.about-org-form-grid{grid-template-columns:1fr}.about-org-modal{padding:10px}.about-org-modal-dialog{padding:22px 17px;border-radius:16px}.about-org-detail-grid{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.about-org-stats{grid-template-columns:1fr}.about-org-detail-grid{grid-template-columns:1fr}.about-org-form-bottom{align-items:stretch}.about-org-form-bottom>.btn{width:100%}}


/* =========================================================
   PCQMS — COMMUNITY CREDITS REQUIRED PAGE
   Scoped styles: will not affect other pages or components.
   Append this block to assets/css/pcqms.css
   ========================================================= */
.pcqms-credit-required{width:min(100% - 32px,900px);margin:clamp(32px,7vw,76px) auto 80px}
.pcqms-credit-card{background:var(--surface,#fff);border:1px solid var(--border,#dce5ef);border-radius:24px;box-shadow:0 18px 55px rgba(20,49,78,.08);padding:clamp(24px,5vw,48px);text-align:center}
.pcqms-credit-icon{width:68px;height:68px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;background:#eaf3ff;color:#176da8;font-size:38px;font-weight:700}
.pcqms-credit-eyebrow{margin:0 0 10px;color:#176da8;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.pcqms-credit-card h1{margin:0;color:var(--heading,#173653);font-size:clamp(27px,4vw,38px);line-height:1.2}
.pcqms-credit-intro{max-width:650px;margin:14px auto 24px;color:var(--muted,#64748b);font-size:16px;line-height:1.7}
.pcqms-credit-resource{max-width:650px;margin:0 auto 18px;padding:14px 18px;border:1px solid var(--border,#dce5ef);border-radius:14px;background:var(--surface-soft,#f7f9fc);text-align:left;display:grid;gap:5px}
.pcqms-credit-resource span,.pcqms-credit-stats span{color:var(--muted,#64748b);font-size:12px;font-weight:700}
.pcqms-credit-resource strong{color:var(--heading,#173653);overflow-wrap:anywhere}
.pcqms-credit-stats{max-width:650px;margin:0 auto 26px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pcqms-credit-stats>div{padding:17px 12px;border:1px solid var(--border,#dce5ef);border-radius:14px;background:var(--surface-soft,#f7f9fc);display:grid;gap:7px}
.pcqms-credit-stats strong{color:var(--heading,#173653);font-size:clamp(20px,3vw,27px)}
.pcqms-credit-stats strong small{font-size:12px;font-weight:600;color:var(--muted,#64748b)}
.pcqms-credit-stats .pcqms-credit-shortfall{background:#fff8eb;border-color:#f3dfb7}
.pcqms-credit-stats .pcqms-credit-shortfall strong{color:#9a5b08}
.pcqms-credit-next{max-width:650px;margin:0 auto 25px;padding:20px 22px;border-radius:16px;background:var(--surface-soft,#f7f9fc);text-align:left}
.pcqms-credit-next h2{margin:0 0 10px;color:var(--heading,#173653);font-size:18px}
.pcqms-credit-next ul{margin:0;padding-left:21px;color:var(--muted,#52677d);line-height:1.8}
.pcqms-credit-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px}
.pcqms-credit-primary,.pcqms-credit-secondary{min-height:46px;padding:12px 20px;border-radius:10px;text-decoration:none!important;font-weight:750;display:inline-flex;align-items:center;justify-content:center;transition:transform .18s ease,box-shadow .18s ease}
.pcqms-credit-primary{background:#176fa8;color:#fff!important;border:1px solid #176fa8;box-shadow:0 7px 18px rgba(23,111,168,.18)}
.pcqms-credit-secondary{background:#fff;color:#17466a!important;border:1px solid var(--border,#dce5ef)}
.pcqms-credit-primary:hover,.pcqms-credit-secondary:hover{transform:translateY(-1px)}
.pcqms-credit-note{margin:22px 0 0;color:var(--muted,#718096);font-size:12px;line-height:1.6}
@media(max-width:640px){.pcqms-credit-required{width:min(100% - 22px,900px);margin:24px auto 48px}.pcqms-credit-card{border-radius:18px;padding:24px 17px}.pcqms-credit-stats{grid-template-columns:1fr;gap:8px}.pcqms-credit-stats>div{grid-template-columns:1fr auto;align-items:center;text-align:left}.pcqms-credit-actions{display:grid;grid-template-columns:1fr;width:100%}.pcqms-credit-primary,.pcqms-credit-secondary{width:100%;box-sizing:border-box}}

/* =========================================================
   PCQMS KNOWLEDGE SUBMISSION PAGE
   Append this section to assets/css/pcqms.css
   All selectors are scoped to .knowledge-submit-page.
   ========================================================= */
.knowledge-submit-page{max-width:1120px;margin:0 auto;padding:28px 0 64px}
.knowledge-submit-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:30px 0 34px}
.knowledge-submit-heading-copy{max-width:690px}
.knowledge-submit-heading h1{font-size:clamp(32px,4vw,46px);line-height:1.12;letter-spacing:-.035em;margin:10px 0 14px;color:#142c49}
.knowledge-submit-heading-copy>p:last-child{font-size:17px;color:#60718a;margin:0;max-width:650px}
.knowledge-submit-review-note{display:flex;align-items:center;gap:13px;max-width:330px;padding:16px 18px;background:#eaf3fb;border:1px solid #d5e6f5;border-radius:14px;color:#214b70}
.knowledge-submit-review-note strong,.knowledge-submit-review-note span{display:block}
.knowledge-submit-review-note strong{font-size:13px;margin-bottom:3px}
.knowledge-submit-review-note span{font-size:12px;line-height:1.5;color:#55718d}
.knowledge-submit-review-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#fff;color:#176db1;font-size:20px}
.knowledge-submit-errors{margin:0 0 20px}
.knowledge-submit-errors ul{margin:7px 0 0;padding-left:20px}
.knowledge-submit-form{display:grid;gap:20px}
.knowledge-submit-card{background:#fff;border:1px solid #dce6f1;border-radius:18px;padding:clamp(20px,3vw,32px);box-shadow:0 8px 26px rgba(22,54,88,.045)}
.knowledge-submit-section-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:25px;padding-bottom:18px;border-bottom:1px solid #edf1f6}
.knowledge-submit-step{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#eaf3fb;color:#1769aa;font-size:13px;font-weight:800;letter-spacing:.04em}
.knowledge-submit-section-heading h2{font-size:21px;line-height:1.3;margin:0 0 4px;color:#183653}
.knowledge-submit-section-heading p{margin:0;color:#718096;font-size:13px}
.knowledge-submit-field{display:block;margin:0 0 21px}
.knowledge-submit-field:last-child{margin-bottom:0}
.knowledge-submit-field label{display:block;margin:0 0 8px;font-size:14px;font-weight:700;color:#243b55}
.knowledge-submit-field .required-mark{color:#c24141}
.knowledge-submit-field input,.knowledge-submit-field select,.knowledge-submit-field textarea{display:block;width:100%;min-width:0;margin:0;padding:13px 15px;border:1px solid #cbd8e7;border-radius:10px;background:#fff;color:#172b43;font:inherit;font-size:15px;line-height:1.5;box-shadow:inset 0 1px 2px rgba(15,40,70,.025);transition:border-color .18s,box-shadow .18s}
.knowledge-submit-field input,.knowledge-submit-field select{min-height:49px}
.knowledge-submit-field textarea{min-height:100px;resize:vertical}
.knowledge-submit-field #knowledge-body{min-height:390px;line-height:1.75}
.knowledge-submit-field input:focus,.knowledge-submit-field select:focus,.knowledge-submit-field textarea:focus{outline:0;border-color:#3985c2;box-shadow:0 0 0 4px rgba(35,117,181,.12)}
.knowledge-submit-field input::placeholder,.knowledge-submit-field textarea::placeholder{color:#9aa8b8}
.knowledge-submit-field small{display:block;margin-top:7px;color:#7a899b;font-size:12px;line-height:1.5}
.knowledge-submit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.knowledge-submit-format-guide{border:1px solid #dce7f2;border-radius:12px;background:#f8fbfe;overflow:hidden}
.knowledge-submit-format-guide summary{cursor:pointer;padding:14px 16px;color:#24577f;font-weight:700;font-size:13px;list-style-position:inside}
.knowledge-submit-format-content{padding:0 16px 16px;color:#5f7187;font-size:13px}
.knowledge-submit-format-content p{margin:0 0 10px}
.knowledge-submit-format-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
.knowledge-submit-format-grid code{display:block;padding:9px 10px;border:1px solid #e0e8f1;border-radius:8px;background:#fff;color:#315a7c;font-size:12px;overflow-wrap:anywhere}
.knowledge-submit-format-content small{display:block;line-height:1.6}
.knowledge-submit-submitbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;background:#edf5fa;border:1px solid #d8e7f1;border-radius:16px}
.knowledge-submit-submitbar strong,.knowledge-submit-submitbar span{display:block}
.knowledge-submit-submitbar strong{color:#183653;font-size:15px;margin-bottom:3px}
.knowledge-submit-submitbar span{color:#647b91;font-size:12px}
.knowledge-submit-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.knowledge-submit-actions .btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:10px}
.knowledge-submit-actions .btn.secondary{background:#fff;border:1px solid #cbd9e7;color:#245b86!important}
@media(max-width:760px){
 .knowledge-submit-page{padding:18px 0 42px}
 .knowledge-submit-heading{display:block;padding:24px 0}
 .knowledge-submit-review-note{max-width:none;margin-top:20px}
 .knowledge-submit-submitbar{align-items:flex-start;flex-direction:column}
 .knowledge-submit-actions{width:100%}
 .knowledge-submit-actions .btn{flex:1}
}
@media(max-width:520px){
 .knowledge-submit-grid,.knowledge-submit-format-grid{grid-template-columns:1fr}
 .knowledge-submit-card{padding:19px 16px;border-radius:14px}
 .knowledge-submit-field #knowledge-body{min-height:300px}
 .knowledge-submit-section-heading h2{font-size:19px}
 .knowledge-submit-actions{flex-direction:column}
 .knowledge-submit-actions .btn{width:100%}
}

/* =========================================================
   PCQMS JOBS CHAT V2 — fixed chat workspace, sticky room bar,
   per-message unread tracking and jump-to-latest control.
   Append to assets/css/pcqms.css. Scoped to page-jobs-chat.
   ========================================================= */
body.page-jobs-chat{height:100dvh;overflow:hidden}
body.page-jobs-chat .container{height:calc(100dvh - 74px);min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-top:8px;padding-bottom:8px}
body.page-jobs-chat .site-footer{display:none}
body.page-jobs-chat .chat-page-head{flex:0 0 auto;margin:5px 0 10px;padding:12px 18px;flex-direction:row;align-items:center;border-radius:14px}
body.page-jobs-chat .chat-page-head h1{font-size:clamp(20px,2.4vw,27px);margin:2px 0 4px}
body.page-jobs-chat .chat-page-head p:not(.eyebrow){font-size:12px}
body.page-jobs-chat .chat-room-meta{width:auto;flex:0 0 150px;grid-template-columns:auto 1fr;text-align:left}
body.page-jobs-chat .community-chat{position:relative;flex:1 1 auto;min-height:0;height:auto;max-height:none;overflow:hidden;border-radius:18px;box-shadow:0 12px 34px rgba(18,49,77,.09)}
body.page-jobs-chat .chat-room-bar{position:sticky;top:0;z-index:5;min-height:76px;padding:14px 20px;gap:14px;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);box-shadow:0 1px 0 rgba(25,61,92,.07)}
body.page-jobs-chat .chat-room-avatar{width:48px;height:48px;flex-basis:48px;font-size:15px}
body.page-jobs-chat .chat-room-title{display:grid;gap:4px;min-width:0}
body.page-jobs-chat .chat-room-title strong{font-size:15px;color:#173b56}
body.page-jobs-chat .chat-room-title small{font-size:12px;color:#718398}
body.page-jobs-chat .chat-room-status{margin-left:auto;display:flex;align-items:center;gap:7px;color:#16835d;font-size:12px;font-weight:750;white-space:nowrap}
body.page-jobs-chat .chat-room-status i{width:8px;height:8px;border-radius:50%;background:#20aa72;box-shadow:0 0 0 4px rgba(32,170,114,.12)}
body.page-jobs-chat .chat-unread-indicator{padding:7px 11px;border:1px solid #dce7ef;border-radius:999px;background:#f7fafc;color:#718398;font-size:11px;font-weight:750;white-space:nowrap}
body.page-jobs-chat .chat-unread-indicator span{font-variant-numeric:tabular-nums}
body.page-jobs-chat .chat-unread-indicator.has-unread{border-color:#f3d3a0;background:#fff7e9;color:#a65b08}
body.page-jobs-chat .chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;padding:5px 18px;background:#f9fbfd;border-bottom:1px solid #e8eef3}
body.page-jobs-chat #chatReadHint{font-size:10px;color:#8291a0}
body.page-jobs-chat .chat-tool-button{border:0;background:transparent;color:#176d9d;font-size:11px;font-weight:750;cursor:pointer}
body.page-jobs-chat .chat-messages{flex:1 1 auto;min-height:0;max-height:none;padding:20px clamp(14px,3vw,42px);gap:15px;background:linear-gradient(180deg,#f7fafd,#f3f7fb);overscroll-behavior:contain}
body.page-jobs-chat .chat-message{max-width:min(850px,88%);gap:10px;scroll-margin-top:12px}
body.page-jobs-chat .chat-message-avatar{width:36px;height:36px;flex-basis:36px;font-size:13px}
body.page-jobs-chat .chat-bubble{padding:13px 16px;border-radius:15px 15px 15px 5px;box-shadow:0 4px 14px rgba(20,48,72,.045)}
body.page-jobs-chat .chat-message.own .chat-bubble{border-radius:15px 15px 5px 15px}
body.page-jobs-chat .chat-message-meta strong{font-size:12px}
body.page-jobs-chat .chat-message-meta time{font-size:10px}
body.page-jobs-chat .chat-message-text{font-size:14px;line-height:1.7}
body.page-jobs-chat .chat-message.is-unread .chat-bubble{border-color:#e9bd70;box-shadow:0 0 0 2px rgba(231,171,70,.12),0 4px 14px rgba(20,48,72,.04)}
body.page-jobs-chat .chat-unread-tag{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#fff1d9;color:#9a5a08;font-size:9px;font-weight:800}
body.page-jobs-chat .chat-jump-bottom{position:absolute;z-index:7;right:22px;bottom:100px;display:flex;align-items:center;gap:9px;padding:10px 15px;border:1px solid #cfe0ec;border-radius:999px;background:#fff;color:#176b9b;box-shadow:0 8px 25px rgba(19,57,88,.16);cursor:pointer}
body.page-jobs-chat .chat-jump-bottom[hidden],body.page-jobs-chat .chat-tool-button[hidden]{display:none}
body.page-jobs-chat .chat-jump-bottom span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e9f3fa;font-size:17px}
body.page-jobs-chat .chat-jump-bottom b{font-size:11px}
body.page-jobs-chat .chat-compose{position:relative;z-index:4;flex:0 0 auto;align-items:flex-end;padding:13px 16px;background:#fff;box-shadow:0 -5px 18px rgba(24,54,80,.035)}
body.page-jobs-chat .chat-compose textarea{min-height:48px;max-height:130px;padding:12px 14px;border-radius:13px;font-size:14px}
body.page-jobs-chat .chat-attach{width:44px;height:44px;flex-basis:44px;border-radius:12px;background:#f7fafc}
body.page-jobs-chat .chat-send{height:44px;padding:0 20px;border-radius:12px;background:linear-gradient(135deg,#1675ad,#155d91);box-shadow:0 5px 13px rgba(23,105,157,.18)}
body.page-jobs-chat .chat-error{flex:0 0 auto;padding:0 16px 8px}
body.page-jobs-chat .chat-empty{margin:auto}
@media(max-width:760px){
 body.page-jobs-chat{height:100dvh}
 body.page-jobs-chat .container{height:calc(100dvh - 62px);padding:5px 10px}
 body.page-jobs-chat .chat-page-head{display:none}
 body.page-jobs-chat .chat-room-bar{min-height:66px;padding:10px 12px;gap:9px}
 body.page-jobs-chat .chat-room-avatar{width:40px;height:40px;flex-basis:40px}
 body.page-jobs-chat .chat-room-title strong{font-size:12px}
 body.page-jobs-chat .chat-room-title small{font-size:10px}
 body.page-jobs-chat .chat-room-status{font-size:0}
 body.page-jobs-chat .chat-room-status i{width:9px;height:9px}
 body.page-jobs-chat .chat-unread-indicator{padding:6px 8px;font-size:10px}
 body.page-jobs-chat .chat-toolbar{padding:4px 12px}
 body.page-jobs-chat .chat-messages{padding:13px 10px}
 body.page-jobs-chat .chat-message{max-width:96%}
 body.page-jobs-chat .chat-bubble{padding:10px 12px}
 body.page-jobs-chat .chat-compose{padding:9px;gap:7px}
 body.page-jobs-chat .chat-send{padding:0 12px}
 body.page-jobs-chat .chat-jump-bottom{right:12px;bottom:91px}
}
@media(max-height:620px){
 body.page-jobs-chat .chat-page-head{display:none}
 body.page-jobs-chat .container{height:calc(100dvh - 74px)}
}
/* =========================================================
   PCQMS JOBS CHAT V3 — conversation-first layout polish
   Append AFTER the existing V2 chat CSS in pcqms.css.
   Scoped to body.page-jobs-chat; no global component changes.
   ========================================================= */

/* Use the available viewport instead of the narrow site container. */
body.page-jobs-chat{height:100dvh;min-height:0;overflow:hidden;background:#f2f6fa}
body.page-jobs-chat .container{
  width:100%;max-width:none;height:calc(100dvh - 104px);min-height:0;
  margin:0;padding:8px clamp(8px,1.5vw,24px) 10px;
  display:flex;flex-direction:column;overflow:hidden
}

/* The page title is redundant with the room header; reclaim its height. */
body.page-jobs-chat .chat-page-head{display:none!important}
body.page-jobs-chat .community-chat{
  position:relative;display:flex;flex:1 1 auto;flex-direction:column;
  width:100%;min-width:0;min-height:0;height:100%;max-height:none;
  overflow:hidden;border:1px solid #dce7f0;border-radius:20px;
  background:#fff;box-shadow:0 12px 38px rgba(23,55,82,.075)
}

/* Compact room identity bar stays visible above the scrolling messages. */
body.page-jobs-chat .chat-room-bar{
  position:relative;top:auto;z-index:10;flex:0 0 auto;min-height:62px;
  padding:9px clamp(12px,2vw,24px);gap:12px;
  background:rgba(255,255,255,.98);border-bottom:1px solid #e7edf3;
  box-shadow:0 2px 10px rgba(22,52,78,.035);backdrop-filter:blur(14px)
}
body.page-jobs-chat .chat-room-avatar{width:42px;height:42px;flex:0 0 42px;font-size:14px}
body.page-jobs-chat .chat-room-title{display:grid;gap:2px;min-width:0}
body.page-jobs-chat .chat-room-title strong{font-size:15px;line-height:1.25;color:#173b56}
body.page-jobs-chat .chat-room-title small{font-size:11px;line-height:1.3;color:#718398}
body.page-jobs-chat .chat-room-status{margin-left:auto;font-size:11px}
body.page-jobs-chat .chat-unread-indicator{padding:6px 10px;font-size:10px}

/* Make the toolbar a discreet utility line, not a second header. */
body.page-jobs-chat .chat-toolbar{
  position:relative;z-index:3;flex:0 0 auto;min-height:29px;
  padding:3px 16px;background:#fbfdff;border-bottom:1px solid #edf1f5
}
body.page-jobs-chat #chatReadHint{font-size:10px;color:#8191a1}
body.page-jobs-chat .chat-tool-button{font-size:10px;padding:3px 0}

/* Conversation gets all remaining height and is the only scrolling region. */
body.page-jobs-chat .chat-messages{
  display:flex;flex:1 1 auto;flex-direction:column;min-height:0;height:auto;
  max-height:none;overflow-y:auto;overflow-x:hidden;
  padding:clamp(14px,2.2vh,24px) clamp(12px,4vw,64px);
  gap:clamp(10px,1.7vh,17px);
  background:radial-gradient(ellipse at top,#f9fcff 0%,#f3f7fb 70%);
  overscroll-behavior:contain;scrollbar-gutter:stable
}
body.page-jobs-chat .chat-message{width:fit-content;max-width:min(760px,82%);gap:9px}
body.page-jobs-chat .chat-message.own{margin-left:auto}
body.page-jobs-chat .chat-message-avatar{width:32px;height:32px;flex:0 0 32px;font-size:12px}
body.page-jobs-chat .chat-bubble{
  max-width:100%;padding:11px 14px;border:1px solid #e0e9f1;
  border-radius:15px 15px 15px 5px;background:#fff;
  box-shadow:0 3px 12px rgba(20,48,72,.035)
}
body.page-jobs-chat .chat-message.own .chat-bubble{
  border-color:#d2e9e1;border-radius:15px 15px 5px 15px;background:#edf8f4
}
body.page-jobs-chat .chat-message-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;margin-bottom:5px}
body.page-jobs-chat .chat-message-meta strong{font-size:11px;color:#234a68}
body.page-jobs-chat .chat-message-meta time{font-size:10px;color:#91a0af}
body.page-jobs-chat .chat-message-text{margin:0;font-size:14px;line-height:1.6;color:#3f5b73;overflow-wrap:anywhere}
body.page-jobs-chat .chat-file-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:10px;padding-top:9px;border-top:1px solid rgba(80,115,140,.12)}
body.page-jobs-chat .chat-file-name{min-width:0;max-width:100%;font-size:11px;overflow-wrap:anywhere}
body.page-jobs-chat .chat-file-link{min-height:32px;padding:6px 10px;border-radius:9px;font-size:10px}
body.page-jobs-chat .chat-message.is-unread .chat-bubble{border-color:#e8c47f;box-shadow:0 0 0 2px rgba(231,171,70,.1)}

/* Compact fixed composer: more room for conversation above it. */
body.page-jobs-chat .chat-compose{
  position:relative;z-index:5;display:flex;flex:0 0 auto;align-items:flex-end;
  gap:9px;padding:9px clamp(10px,2vw,22px) 10px;
  background:rgba(255,255,255,.985);border-top:1px solid #e6edf3;
  box-shadow:0 -4px 15px rgba(24,54,80,.025)
}
body.page-jobs-chat .chat-compose-main{flex:1 1 auto;min-width:0}
body.page-jobs-chat .chat-compose textarea{
  display:block;width:100%;min-height:44px;max-height:112px;resize:vertical;
  padding:10px 13px;border:1px solid #d5e1ec;border-radius:12px;
  background:#fbfdff;font-size:13px;line-height:1.45
}
body.page-jobs-chat .chat-compose textarea:focus{outline:0;border-color:#6ba5ce;box-shadow:0 0 0 3px rgba(39,121,179,.1)}
body.page-jobs-chat .chat-compose-main>small{display:block;margin:4px 2px 0;font-size:9px;color:#91a0af}
body.page-jobs-chat .chat-attach{width:40px;height:40px;flex:0 0 40px;border:1px solid #dce7f0;border-radius:11px;font-size:21px}
body.page-jobs-chat .chat-send{height:42px;min-width:82px;padding:0 16px;border-radius:11px;font-size:12px;box-shadow:0 4px 12px rgba(23,105,157,.14)}
body.page-jobs-chat .chat-error{flex:0 0 auto;padding:0 14px 6px;font-size:11px}
body.page-jobs-chat .chat-jump-bottom{right:20px;bottom:86px;padding:8px 12px}
body.page-jobs-chat .chat-jump-bottom b{font-size:10px}

/* Cleaner scrollbars and keyboard focus. */
body.page-jobs-chat .chat-messages::-webkit-scrollbar{width:9px}
body.page-jobs-chat .chat-messages::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:20px;background:#c7d4df;background-clip:padding-box}
body.page-jobs-chat .chat-messages::-webkit-scrollbar-track{background:transparent}
body.page-jobs-chat .chat-jump-bottom:focus-visible,
body.page-jobs-chat .chat-tool-button:focus-visible,
body.page-jobs-chat .chat-send:focus-visible,
body.page-jobs-chat .chat-attach:focus-visible{outline:3px solid rgba(34,119,180,.25);outline-offset:2px}

@media(max-width:760px){
  body.page-jobs-chat .container{height:calc(100dvh - 66px);padding:4px 6px 6px}
  body.page-jobs-chat .community-chat{border-radius:14px}
  body.page-jobs-chat .chat-room-bar{min-height:56px;padding:7px 9px;gap:8px}
  body.page-jobs-chat .chat-room-avatar{width:36px;height:36px;flex-basis:36px}
  body.page-jobs-chat .chat-room-title small{font-size:9px}
  body.page-jobs-chat .chat-unread-indicator{padding:5px 7px;font-size:9px}
  body.page-jobs-chat .chat-toolbar{min-height:25px;padding:2px 10px}
  body.page-jobs-chat .chat-messages{padding:12px 8px;gap:11px}
  body.page-jobs-chat .chat-message{max-width:94%}
  body.page-jobs-chat .chat-bubble{padding:9px 11px}
  body.page-jobs-chat .chat-message-text{font-size:13px}
  body.page-jobs-chat .chat-compose{gap:6px;padding:7px}
  body.page-jobs-chat .chat-compose textarea{min-height:42px;padding:9px 10px;font-size:12px}
  body.page-jobs-chat .chat-attach{width:36px;height:36px;flex-basis:36px}
  body.page-jobs-chat .chat-send{height:38px;min-width:60px;padding:0 10px;font-size:11px}
  body.page-jobs-chat .chat-compose-main>small{font-size:8px}
  body.page-jobs-chat .chat-jump-bottom{right:10px;bottom:75px}
}
@media(max-height:560px) and (min-width:761px){
  body.page-jobs-chat .container{height:calc(100dvh - 80px)}
  body.page-jobs-chat .chat-room-bar{min-height:52px;padding:5px 14px}
  body.page-jobs-chat .chat-toolbar{min-height:23px}
  body.page-jobs-chat .chat-compose{padding:6px 12px}
  body.page-jobs-chat .chat-compose textarea{min-height:38px;max-height:78px}
}

/* PCQMS homepage announcement + policy page additions. Append to assets/css/pcqms.css. */

.policy-page-shell{max-width:980px;margin:34px auto 64px;}
.policy-page-hero{padding:30px clamp(20px,4vw,42px);border:1px solid #dce8ee;border-radius:18px;background:linear-gradient(135deg,#f3f8fb,#fff);margin-bottom:20px;}
.policy-page-hero .eyebrow{color:#177b82;font-size:10px;font-weight:800;letter-spacing:1.5px;}
.policy-page-hero h1{margin:8px 0 10px;color:#17354c;font-size:clamp(26px,4vw,38px);}
.policy-page-hero p{max-width:760px;color:#5b7080;line-height:1.7;margin:0;}
.policy-page-content{padding:clamp(20px,4vw,38px);border:1px solid #e0e8ed;border-radius:16px;background:#fff;color:#344b5c;line-height:1.85;white-space:normal;}
.policy-page-content p{margin:0 0 14px;}
.policy-page-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;color:#718392;font-size:12px;}
.policy-page-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;}
.policy-page-links a{color:#1769a6;font-weight:700;text-decoration:none;}
@media(max-width:850px){}
@media(prefers-reduced-motion:reduce){}
.site-footer-policies{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-left:auto;margin-right:24px;}
.site-footer-policies a{color:inherit;text-decoration:none;font-size:12px;font-weight:650;}
.site-footer-policies a:hover{text-decoration:underline;}
@media(max-width:700px){.site-footer-policies{margin:8px 0;justify-content:center;width:100%;}}

/* PCQMS public header wordmark — append only; scoped to the public topbar. */
.topbar .pcqms-public-brand{display:inline-flex;align-items:center;gap:10px;min-width:0;flex:0 0 auto;color:#175b9b;text-decoration:none}
.topbar .pcqms-public-brand .site-brand-logo{width:44px;height:44px;max-width:44px;max-height:44px;flex:0 0 44px;object-fit:contain}
.topbar .pcqms-brand-fallback{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:2px solid #d6a642;border-radius:50%;color:#175b9b;font-size:10px;font-weight:850}
.topbar .pcqms-brand-divider{width:1px;height:39px;flex:0 0 1px;background:#d7e0e8}
.topbar .pcqms-brand-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;line-height:1.05}
.topbar .pcqms-brand-copy strong{display:block;color:#175b9b;font-size:23px;font-weight:850;letter-spacing:.15px;line-height:1.05}
.topbar .pcqms-brand-copy small{display:block;max-width:205px;margin-top:3px;color:#647589;font-size:8px;font-weight:550;line-height:1.2;letter-spacing:.05px;white-space:normal}
@media(max-width:1050px){.topbar .pcqms-brand-copy small{display:none}.topbar .pcqms-brand-copy strong{font-size:21px}}
@media(max-width:760px){.topbar .pcqms-public-brand{gap:7px}.topbar .pcqms-public-brand .site-brand-logo,.topbar .pcqms-brand-fallback{width:38px;height:38px;max-width:38px;max-height:38px;flex-basis:38px}.topbar .pcqms-brand-divider{height:32px}.topbar .pcqms-brand-copy strong{font-size:19px}}
@media(max-width:420px){.topbar .pcqms-public-brand{gap:6px}.topbar .pcqms-public-brand .site-brand-logo,.topbar .pcqms-brand-fallback{width:34px;height:34px;max-width:34px;max-height:34px;flex-basis:34px}.topbar .pcqms-brand-divider{height:29px}.topbar .pcqms-brand-copy strong{font-size:17px}}


/* PCQMS Credit Economy additions */
.credit-market-balance{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:24px;border:1px solid var(--border,#dce4e8);border-radius:18px;background:var(--surface,#fff);margin:22px 0}.credit-market-balance span{display:block;font-size:11px;letter-spacing:.12em;font-weight:800;color:var(--muted,#64748b)}.credit-market-balance strong{font-size:clamp(25px,4vw,38px);color:var(--primary,#123c50)}.credit-market-section{margin:30px 0}.credit-market-section h2{margin:0 0 16px}.credit-package-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.credit-package-card{padding:20px;border:1px solid var(--border,#dce4e8);border-radius:16px;background:var(--surface,#fff);display:grid;gap:9px}.credit-package-name{font-weight:800;color:var(--muted,#64748b)}.credit-package-card>strong{font-size:25px;color:var(--primary,#123c50)}.credit-package-price{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.credit-package-price del{color:#87939c}.credit-package-price b{font-size:20px}.credit-save{color:#16764a;font-weight:800}.credit-market-form,.credit-admin-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;align-items:end}.credit-market-form label,.credit-admin-form label{display:grid;gap:6px;font-weight:650}.credit-market-form input,.credit-market-form select,.credit-admin-form input{width:100%;min-width:0}.credit-admin-review-note{grid-column:1/-1;padding:12px;border-radius:10px;background:#f1f6f8;color:#405664}.credit-check{display:flex!important;align-items:center;gap:9px}.credit-check input{width:auto}.credit-review-form{display:flex;gap:6px;flex-wrap:wrap}.credit-review-form input[name=review_note]{min-width:130px;max-width:180px}.credit-review-form button{padding:7px 10px;border:0;border-radius:7px;cursor:pointer}.credit-review-form button[value=approve]{background:#e3f5eb;color:#17633c}.credit-review-form button[value=reject]{background:#fff0ed;color:#9d352b}.pcqms-global-credit-timer{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;padding:9px 16px;background:#123c50;color:#fff;font-size:13px}.pcqms-global-credit-timer strong{font-variant-numeric:tabular-nums;letter-spacing:.04em}.membership-benefits{margin:24px 0;padding:24px;border:1px solid var(--border,#dce4e8);border-radius:18px;background:var(--surface,#fff)}.membership-benefit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-top:16px}.membership-benefit-grid article{padding:15px;border-radius:12px;background:var(--surface-muted,#f5f8fa);display:grid;gap:7px}.membership-benefit-grid article b{color:var(--primary,#123c50)}.membership-benefit-grid article span{font-size:13px;color:var(--muted,#64748b);line-height:1.5}@media(max-width:640px){.credit-market-balance{align-items:flex-start;flex-direction:column}.credit-market-form,.credit-admin-form{grid-template-columns:1fr}.credit-review-form{min-width:180px}}

/* Profile-embedded Credit Marketplace tab */
.profile-credit-marketplace{margin-top:18px}
.profile-credit-marketplace .profile-section-heading{margin-bottom:18px}
.profile-credit-marketplace .credit-market-section{margin:28px 0}
.profile-credit-marketplace .credit-market-section h3{margin:0 0 14px}
.profile-credit-marketplace .profile-market-form{padding:18px;border:1px solid var(--border,#dce4e8);border-radius:14px;background:var(--surface,#fff)}
.profile-credit-marketplace .credit-market-balance{margin-top:16px}

/* Membership plan regular/discount pricing and package benefits */
.membership-package{align-items:flex-start}
.membership-package .package-copy{min-width:0}
.membership-package .package-cost{display:grid;gap:5px;justify-items:end;white-space:nowrap}
.membership-package .package-cost del{font-size:12px;color:#87939c;font-weight:500}
.membership-package .package-cost strong{font-size:20px;color:var(--primary,#176eae)}
.membership-plan-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 14px;margin:10px 0 4px;padding-left:18px;color:var(--muted,#52677a);font-size:12px;line-height:1.45}
.membership-plan-credit-reward{display:block;margin-top:5px;color:#176eae;font-weight:750}
.selected-plan-price{display:grid;gap:5px}
.selected-plan-price del{font-size:14px;color:#87939c;font-weight:500}
.selected-plan-price strong{font-size:clamp(22px,3vw,30px);color:var(--primary,#176eae)}
.selected-plan-price small{font-size:12px;color:var(--muted,#52677a);font-weight:650}
@media(max-width:640px){.membership-plan-benefits{grid-template-columns:1fr}.membership-package .package-cost{white-space:normal}.membership-package{gap:10px}}

/* PCQMS source-aware credit wallet and earned-credit withdrawals */
.profile-withdrawals .credit-wallet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 22px}
.profile-withdrawals .credit-wallet-grid>div{padding:16px;border:1px solid var(--border-color,#e5e7eb);border-radius:14px;background:var(--surface,#fff);display:flex;flex-direction:column;gap:7px;min-width:0}
.profile-withdrawals .credit-wallet-grid span{font-size:.78rem;color:var(--text-muted,#64748b);font-weight:650}
.profile-withdrawals .credit-wallet-grid strong{font-size:1.45rem;line-height:1.2;overflow-wrap:anywhere}
.profile-withdrawals .credit-market-form h3{margin-top:0}
.profile-withdrawals .credit-market-form>p{color:var(--text-muted,#64748b)}
.profile-withdrawals .table-wrap{margin-top:12px}
.profile-withdrawals .btn-small{padding:6px 10px;font-size:.8rem;margin-top:6px}
@media(max-width:700px){.profile-withdrawals .credit-wallet-grid{grid-template-columns:1fr}.profile-withdrawals .credit-wallet-grid>div{padding:13px}.profile-withdrawals .table-wrap{overflow-x:auto}}

/* Membership offer notification bar */
.pcqms-global-credit-timer{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(14px,3vw,38px);
  min-height:40px;
  padding:8px 54px 8px 18px;
  background:#123c50;
  color:#fff;
  font-size:13px;
  line-height:1.4;
  box-sizing:border-box;
}
.pcqms-global-credit-timer__message{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  text-align:center;
}
.pcqms-global-credit-timer__message strong{
  font-variant-numeric:tabular-nums;
  letter-spacing:.025em;
  white-space:nowrap;
}
.pcqms-global-credit-timer__link{
  color:#fff;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
  white-space:nowrap;
}
.pcqms-global-credit-timer__link:hover,
.pcqms-global-credit-timer__link:focus{color:#d7edf7}
.pcqms-global-credit-timer__close{
  position:absolute;
  top:50%;
  right:12px;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  padding:0;
  border:1px solid rgba(255,255,255,.45);
  border-radius:50%;
  background:transparent;
  color:#fff;
  font-size:23px;
  line-height:1;
  cursor:pointer;
}
.pcqms-global-credit-timer__close:hover,
.pcqms-global-credit-timer__close:focus{background:rgba(255,255,255,.16);outline:2px solid rgba(255,255,255,.7);outline-offset:2px}
@media(max-width:640px){
  .pcqms-global-credit-timer{gap:7px;padding:8px 42px 8px 10px;font-size:12px}
  .pcqms-global-credit-timer__message{gap:5px}
  .pcqms-global-credit-timer__link{font-size:11px}
  .pcqms-global-credit-timer__close{right:7px;width:27px;height:27px}
}


/* Homepage notice area: single source of truth for the two-row layout */
.home-announcement{
  display:flex;
  flex-direction:column;
  width:100%;
  gap:0;
  padding:0 max(24px,calc((100% - 1132px)/2));
  background:#edf5f9;
  border:1px solid #d7e5ec;
  border-radius:0;
}
.home-announcement-row{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
  min-height:48px;
  padding:9px 0;
}
.home-announcement-latest{order:1;}
.home-announcement-community{
  order:2;
  border-top:1px solid #d5e3ea;
}
.home-announcement-label,
.home-announcement-latest-label{
  flex:0 0 auto;
  white-space:nowrap;
  color:#176c79;
  font-size:9px;
  font-weight:850;
  letter-spacing:1px;
}
.home-announcement-notice-window{
  position:relative;
  display:block;
  flex:1 1 auto;
  min-width:0;
  min-height:26px;
  overflow:hidden;
}

.home-announcement-notice{
  position:absolute;
  inset:0 auto auto 0;
  display:block;
  width:100%;
  min-width:0;
  overflow:hidden;
  color:#1769a6;
  font-size:12px;
  line-height:26px;
  text-decoration:none;
  white-space:nowrap;
  text-overflow:ellipsis;
  opacity:0;
  visibility:hidden;
  transform:translateX(100%);
}
.home-announcement-notice.is-active{
  visibility:visible;
  opacity:1;
  transform:translateX(0);
  animation:pcqmsLatestNoticeIn .6s ease both;
}
.home-announcement-notice.is-exiting{
  visibility:visible;
  opacity:0;
  transform:translateX(-100%);
  animation:pcqmsLatestNoticeOut .6s ease both;
}
.home-announcement-notice strong{font-weight:800;}
.home-announcement-notice span{margin-left:7px;color:#526879;font-weight:400;}
.home-announcement-all-link{
  flex:0 0 auto;
  color:#1769a6;
  font-size:11px;
  font-weight:750;
  text-decoration:none;
  white-space:nowrap;
}
.home-announcement-all-link:hover{text-decoration:underline;}
.home-announcement-welcome{
  flex:1 1 auto;
  min-width:0;
  color:#24445c;
  font-size:12px;
  line-height:1.55;
}
.home-announcement-no-notice{
  flex:1 1 auto;
  color:#1769a6;
  font-size:12px;
  text-decoration:none;
}
@keyframes pcqmsLatestNoticeIn{
  from{opacity:0;transform:translateX(100%)}
  to{opacity:1;transform:translateX(0)}
}
@keyframes pcqmsLatestNoticeOut{
  from{opacity:1;transform:translateX(0)}
  to{opacity:0;transform:translateX(-100%)}
}
@media(max-width:700px){
  .home-announcement{padding:0 16px;}
  .home-announcement-row{align-items:flex-start;gap:10px;min-height:0;padding:10px 0;}
  .home-announcement-label,.home-announcement-latest-label{font-size:9px;letter-spacing:.7px;}
  .home-announcement-welcome{font-size:11px;}
  .home-announcement-notice-window{min-height:24px;}
  .home-announcement-notice{font-size:11px;line-height:24px;}
  .home-announcement-all-link{font-size:10px;}
}
@media(max-width:460px){
  .home-announcement-row{flex-wrap:wrap;}
  .home-announcement-welcome{flex-basis:100%;}
  .home-announcement-latest .home-announcement-notice-window{flex-basis:calc(100% - 100px);}
}
@media(prefers-reduced-motion:reduce){
  .home-announcement-notice.is-active,
  .home-announcement-notice.is-exiting{animation:none;transition:none;}
  .home-announcement-notice.is-active{transform:none;opacity:1;}
}

/* PCQMS Credit Centre consolidated navigation */
.credit-centre-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 16px;padding:2px 0 14px;border-bottom:1px solid var(--border-color,#dbe4ee)}
.credit-centre-head h2{margin:5px 0 6px;font-size:1.55rem;line-height:1.2}
.credit-centre-head p{margin:0;color:var(--text-muted,#64748b);font-size:.92rem}
.credit-centre-subnav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;padding:6px;border:1px solid var(--border-color,#dbe4ee);border-radius:13px;background:var(--surface-muted,#f7f9fc)}
.credit-centre-subnav a{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border-radius:9px;color:var(--text-color,#17324d);text-decoration:none;font-weight:650;font-size:.9rem;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
.credit-centre-subnav a:hover{background:rgba(24,112,183,.08)}
.credit-centre-subnav a.active{background:var(--primary,#176fb3);color:#fff;box-shadow:0 2px 6px rgba(20,75,120,.14)}
.credit-centre-subnav+section.panel,.credit-centre-subnav+div{margin-top:0}
@media(max-width:640px){.credit-centre-head{align-items:flex-start}.credit-centre-subnav{display:grid;grid-template-columns:1fr;gap:5px}.credit-centre-subnav a{justify-content:flex-start;padding:11px 12px}}


/* =========================================================
   PCQMS HOME — CONTINUOUS RIGHT-TO-LEFT LATEST NOTICE MARQUEE
   The two identical groups make the -50% animation loop seamlessly.
========================================================= */
.home-announcement-notice-window {
    display: block;
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 26px;
    overflow: hidden;
}
.home-announcement-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: max-content;
    will-change: transform;
    animation: pcqmsNoticeMarqueeRTL 20s linear infinite;
    animation-play-state: running;
}
.home-announcement-marquee-track.is-paused,
.home-announcement-notice-window:hover .home-announcement-marquee-track,
.home-announcement-notice-window:focus-within .home-announcement-marquee-track {
    animation-play-state: paused;
}
.home-announcement-marquee-group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: max-content;
}
.home-announcement-marquee-group .home-announcement-notice {
    position: static;
    display: inline-flex !important;
    align-items: center;
    flex: 0 0 auto;
    width: max-content;
    max-width: none;
    min-width: 0;
    padding-right: 72px;
    overflow: visible;
    color: #1769a6;
    line-height: 26px;
    white-space: nowrap;
    text-overflow: clip;
    text-decoration: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    animation: none !important;
}
@keyframes pcqmsNoticeMarqueeRTL {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 850px) {
    .home-announcement-notice-window { min-height: 24px; }
    .home-announcement-marquee-group .home-announcement-notice {
        padding-right: 48px;
        line-height: 24px;
    }
}
/* Intentionally keep the user-requested ticker running even when the OS
   requests reduced motion; the notice strip is a key live-information area. */
/* PCQMS earned-credit withdrawal refinement */
.profile-withdrawals .credit-wallet-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.profile-withdrawals .credit-earned-highlight{background:linear-gradient(145deg,#f0f8ff,#f7fbff);border-color:#b9d7ef}
.profile-withdrawals .credit-earned-highlight small{color:#1769a6;font-weight:650;line-height:1.45}
.profile-withdrawals .credit-withdraw-form{display:grid;grid-template-columns:1fr;gap:20px;padding:22px;border:1px solid var(--border,#dce4e8);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(20,55,80,.045)}
.profile-withdrawals .credit-withdraw-form-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.profile-withdrawals .credit-withdraw-form-heading h3{margin:3px 0 5px}
.profile-withdrawals .credit-withdraw-form-heading p{margin:0;color:var(--muted,#64748b)}
.profile-withdrawals .credit-rate-pill{padding:9px 13px;border-radius:999px;background:#edf6fc;color:#145b8d;font-weight:750;font-size:.88rem}
.profile-withdrawals .credit-withdraw-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.profile-withdrawals .credit-withdraw-fields label{display:grid;gap:7px;font-weight:700;color:var(--text,#172b3a);min-width:0}
.profile-withdrawals .credit-withdraw-fields input,.profile-withdrawals .credit-withdraw-fields select{width:100%;min-width:0;min-height:46px;border:1px solid var(--border,#cbd8e2);border-radius:10px;padding:10px 12px;background:#fff}
.profile-withdrawals .credit-payout-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px;border:1px solid #dce8ef;border-radius:14px;background:#f6fafc}
.profile-withdrawals .credit-payout-preview>div{display:grid;gap:6px;min-width:0;padding:8px}
.profile-withdrawals .credit-payout-preview span{font-size:.8rem;color:#617487;font-weight:650}
.profile-withdrawals .credit-payout-preview strong{font-size:1.1rem;color:#173b52;overflow-wrap:anywhere}
.profile-withdrawals .credit-payout-preview .credit-payout-net{border-left:1px solid #d7e4ec;padding-left:18px}
.profile-withdrawals .credit-payout-preview .credit-payout-net strong{font-size:1.35rem;color:#087443}
.profile-withdrawals .credit-withdraw-form .credit-admin-review-note{margin:0}
.credit-admin-form{align-items:end}
.credit-admin-form label{min-width:0}
.credit-admin-form input[type=number]{min-height:44px}
@media(max-width:760px){.profile-withdrawals .credit-wallet-grid{grid-template-columns:1fr}.profile-withdrawals .credit-withdraw-fields{grid-template-columns:1fr}.profile-withdrawals .credit-payout-preview{grid-template-columns:1fr}.profile-withdrawals .credit-payout-preview .credit-payout-net{border-left:0;border-top:1px solid #d7e4ec;padding:12px 8px 4px}.profile-withdrawals .credit-withdraw-form{padding:16px}}
