:root {
    --bg: #050607;
    --panel: #0a0d10;
    --panel-soft: #101419;
    --gold: #d4af37;
    --gold-soft: #8f741f;
    --cyan: #2fc9ff;
    --text: #f6f3ea;
    --muted: #9ea9b8;
    --line: rgba(212, 175, 55, 0.28);
    --line-soft: rgba(255, 255, 255, 0.08);
    --danger: #ff6b6b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.06), transparent 30%),
        linear-gradient(180deg, #050607 0%, #030405 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

button,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.authority-profile-page {
    width: min(1600px, calc(100% - 40px));
    margin: 24px auto 60px;
}

/* =========================================================
   HERO
========================================================= */

.authority-profile-hero {
    border: 1px solid var(--line);
    background: var(--panel);
    overflow: hidden;
}

.authority-cover {
    position: relative;
    height: 40px;
    background-color: #080b0d;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 2px solid var(--gold);
}

.authority-profile-header {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 48px;

    min-height: 0;

    padding: 12px 48px 42px;

}

.authority-identity-main {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 850px;
}

.authority-verification-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}

.verified-badge {
    border: 1px solid rgba(47, 201, 255, 0.55);
    color: var(--cyan);
    background: rgba(47, 201, 255, 0.08);
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.authority-number {
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.11em;
    font-size: 13px;
}

.authority-name-row {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.authority-portrait-frame {
    flex: 0 0 150px;
    width: 150px;
    height: 190px;
}

.authority-portrait-placeholder {
    width: 150px;
    height: 190px;

    border-radius: 14px;
    overflow: hidden;

    display: grid;
    place-items: center;

    background: #050607;
    border: 1px solid rgba(212, 175, 55, 0.65);

    color: var(--gold);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;

    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.04),
        0 18px 38px rgba(0, 0, 0, 0.45);
}

.authority-portrait-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.official-style {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 4px;
}

.authority-name-block h1 {
    margin: 4px 0 10px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 64px);
    line-height: 0.96;
    font-weight: 500;

    color: #f4f1e8;
}

.authority-title {
    margin-top: 12px;
    color: var(--gold);
    font-size: 18px;
}

.authority-office {
    margin-top: 7px;
    color: var(--muted);
    font-size: 16px;
}

#controlCenterButton {
    grid-column: 1 / -1;
}

.profile-action {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    padding: 15px 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.profile-action:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.profile-action.primary {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold);
    border-color: var(--gold-soft);
}

/* =========================================================
   NAVIGATION
========================================================= */

.authority-profile-navigation {
    margin-top: 18px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border: 1px solid var(--line);
    background: rgba(7, 9, 11, 0.96);
    padding: 12px;
}

.profile-tab {
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
    padding: 13px 18px;
    white-space: nowrap;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.09em;
}

.profile-tab:hover {
    color: var(--gold);
}

.profile-tab.active {
    color: var(--gold);
    border-color: var(--gold-soft);
    background: rgba(212, 175, 55, 0.07);
}

/* =========================================================
   MAIN LAYOUT
========================================================= */

.authority-profile-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 300px;
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.authority-profile-sidebar,
.authority-community-sidebar {
    display: grid;
    gap: 18px;
}

.profile-panel,
.community-composer,
.community-feed-card,
.empty-state {
    border: 1px solid var(--line);
    background: linear-gradient(
        180deg,
        rgba(13, 16, 20, 0.98),
        rgba(7, 9, 11, 0.98)
    );
}

.profile-panel {
    padding: 24px;
}

.panel-kicker {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.17em;
    margin-bottom: 10px;
}

.profile-panel h2,
.community-composer h2 {
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: 26px;
}

.profile-panel p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

.authority-data-list {
    margin: 0;
}

.authority-data-row {
    padding: 15px 0;
    border-bottom: 1px solid var(--line-soft);
}

.authority-data-row:last-child {
    border-bottom: 0;
}

.authority-data-row dt {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.authority-data-row dd {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
}

.authority-statement {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.7;
}

.panel-action,
.sidebar-action {
    width: 100%;
    margin-top: 18px;
    padding: 14px 15px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--gold);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.sidebar-action {
    margin-top: 10px;
}

.panel-action:hover,
.sidebar-action:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.07);
}

/* =========================================================
   COMMUNITY COLUMN
========================================================= */

.authority-community-column {
    display: grid;
    gap: 18px;
}

.community-composer {
    padding: 24px;
}

.composer-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.composer-identity {
    border: 1px solid rgba(47, 201, 255, 0.4);
    color: var(--cyan);
    padding: 8px 10px;
    font-size: 10px;
    letter-spacing: 0.14em;
    font-weight: 800;
}

#authorityPostComposer {
    width: 100%;
    min-height: 130px;
    resize: vertical;
    margin-top: 14px;
    padding: 17px;
    background: #050607;
    color: var(--text);
    border: 1px solid var(--line-soft);
    outline: none;
    line-height: 1.6;
}

#authorityPostComposer:focus {
    border-color: var(--gold-soft);
}

.composer-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.composer-tool,
.composer-publish {
    padding: 12px 14px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.composer-tool:hover {
    color: var(--gold);
    border-color: var(--gold-soft);
}

.composer-publish {
    margin-left: auto;
    color: var(--gold);
    border-color: var(--gold-soft);
    background: rgba(212, 175, 55, 0.08);
}

.profile-tab-panel {
    display: block;
}

.community-feed-card {
    padding: 22px;
}

.feed-card-header {
    display: flex;
    gap: 13px;
    align-items: center;
}

.feed-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #030405;
    border: 1px solid var(--gold-soft);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.feed-author {
    font-weight: 800;
}

.feed-meta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.feed-card-body {
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.empty-state {
    padding: 42px 24px;
    color: var(--muted);
    text-align: center;
}

/* =========================================================
   COMMUNITY SIDEBAR
========================================================= */

.community-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.community-stat {
    border: 1px solid var(--line-soft);
    padding: 16px;
    background: rgba(255, 255, 255, 0.015);
}

.community-stat strong {
    display: block;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 500;
}

.community-stat span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.activity-placeholder {
    color: var(--muted);
    padding: 12px 0 2px;
}

/* =========================================================
   FOOTER
========================================================= */

.authority-profile-footer {
    margin-top: 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {
    .authority-profile-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .authority-community-sidebar {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, 1fr);
    }

    .authority-profile-header {
        grid-template-columns: 130px 1fr;
    }

    .authority-profile-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-left: 158px;
    }
}

@media (max-width: 820px) {
    .authority-profile-page {
        width: min(100% - 20px, 1600px);
        margin-top: 10px;
    }

    .authority-cover {
        height: 160px;
    }

    .authority-profile-header {
        grid-template-columns: 1fr;
        margin-top: -58px;
        padding: 0 20px 24px;
    }

    .authority-emblem-frame {
        justify-content: flex-start;
    }

    .authority-profile-actions {
        grid-column: auto;
        margin-left: 0;
        justify-content: flex-start;
    }

    .authority-profile-layout {
        grid-template-columns: 1fr;
    }

    .authority-community-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .authority-name-row {
        align-items: flex-start;
    }

    .authority-portrait-placeholder {
        width: 68px;
        height: 68px;
    }

    .authority-name-block h1 {
        font-size: 32px;
    }

    .profile-action {
        width: 100%;
    }

    .composer-publish {
        width: 100%;
        margin-left: 0;
    }

    .authority-profile-footer {
        flex-direction: column;
    }
}
/* =========================================================
   GCCSS–THETA AUTHORITY PROFILE
   REFINED HERO / IDENTITY HEADER
   ========================================================= */

.authority-profile-hero {
    position: relative;
    min-height: 540px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background:
        radial-gradient(
            circle at 12% 82%,
            rgba(212, 175, 55, 0.09),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #11110d 0%,
            #080c0f 48%,
            #06090b 100%
        );
}


/* ---------------------------------------------------------
   COVER / UPPER FIELD
   --------------------------------------------------------- */

.authority-profile-hero::before {
    content: "";
    display: block;
    height: 245px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.55);
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.015),
            rgba(0,0,0,0.10)
        );
}


/* ---------------------------------------------------------
   MAIN IDENTITY BAND
   --------------------------------------------------------- */

.authority-profile-header {
    position: relative;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    align-items: center;
    gap: 34px;

    min-height: 250px;

    padding:
        36px
        48px
        42px
        48px;
}


/* ---------------------------------------------------------
   COAT OF ARMS / EMBLEM
   --------------------------------------------------------- */

.authority-emblem-frame {
    position: relative;
    align-self: center;
    z-index: 2;
}

.authority-emblem-placeholder {
    width: 118px;
    height: 118px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;
    border: 3px solid #d4af37;

    background: #020304;

    color: #d4af37;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 54px;

    box-shadow:
        0 0 0 8px rgba(212, 175, 55, 0.05),
        0 12px 34px rgba(0,0,0,0.50);
}

.authority-emblem-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ---------------------------------------------------------
   IDENTITY CONTENT
   --------------------------------------------------------- */

.authority-identity-main {
    min-width: 0;
}

.authority-verification-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;

    margin-bottom: 20px;
}

.authority-name-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}


/* ---------------------------------------------------------
   PORTRAIT
   --------------------------------------------------------- */

.authority-portrait-frame {
    position: relative;

    width: 96px;
    height: 112px;

    margin: 0;

    align-self: center;
}

.authority-portrait-placeholder {
    width: 96px;
    height: 112px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.55);

    background:
        linear-gradient(
            145deg,
            #101114,
            #050607
        );

    color: #d4af37;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
}

.authority-portrait-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* ---------------------------------------------------------
   NAME / TITLE BLOCK
   --------------------------------------------------------- */

.authority-name-block {
    min-width: 0;
}

.authority-name-block .official-style {
    margin-bottom: 6px;

    color: #d4af37;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.authority-name-block h1 {
    margin: 0 0 10px 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 0.98;
    font-weight: 500;

    color: #f5f1e8;
}

.authority-title {
    margin-top: 6px;

    color: #d4af37;

    font-size: 19px;
    line-height: 1.45;
}

.authority-office {
    margin-top: 3px;

    color: #9fb8d0;

    font-size: 17px;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   PROFILE ACTIONS
   --------------------------------------------------------- */

.authority-profile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    flex-wrap: wrap;

    max-width: 520px;
}

.authority-profile-actions .profile-action {
    min-height: 58px;

    padding: 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 0;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   REMOVE OLD VISUAL COLLISION
   --------------------------------------------------------- */

.authority-profile-header,
.authority-name-row,
.authority-portrait-frame,
.authority-emblem-frame {
    border-top: none;
}

.authority-portrait-frame {
    transform: none;
    top: auto;
    bottom: auto;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1050px) {

    .authority-profile-header {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .authority-profile-actions {
        grid-column: 1 / -1;

        justify-content: flex-start;

        padding-left: 144px;

        max-width: none;
    }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .authority-profile-hero::before {
        height: 165px;
    }

    .authority-profile-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        gap: 22px;

        padding: 28px 22px 34px;
    }

    .authority-name-row {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 16px;
    }

    .authority-portrait-frame,
    .authority-portrait-placeholder {
        width: 78px;
        height: 92px;
    }

    .authority-emblem-placeholder {
        width: 92px;
        height: 92px;

        font-size: 42px;
    }

    .authority-profile-actions {
        width: 100%;
        padding-left: 0;
    }

    .authority-profile-actions .profile-action {
        flex: 1 1 100%;
        width: 100%;
    }

}
/* =========================================================
   EOCC AUTHORITY ROOM SEAL
   ========================================================= */

.authority-room-seal {
    position: absolute;

    top: 24px;
    right: 36px;

    width: 132px;
    height: 132px;

    z-index: 20;

    border-radius: 50%;
    overflow: hidden;

    background: #050607;

    border: 2px solid rgba(212, 175, 55, 0.85);

    box-shadow:
        0 0 0 6px rgba(212, 175, 55, 0.05),
        0 16px 36px rgba(0, 0, 0, 0.55);

    pointer-events: none;
}

.authority-room-seal img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    display: block;
}
/* =========================================================
   AUTHORITY PROFILE HERO — FINAL CONSOLIDATED OVERRIDE
   Must remain at END of profile.css
   ========================================================= */

.authority-profile-hero {
    position: relative !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
}

.authority-cover {
    position: relative !important;
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;

    background:
        radial-gradient(
            circle at 18% 35%,
            rgba(212, 175, 55, 0.10),
            transparent 34%
        ),
        linear-gradient(
            110deg,
            #16150f 0%,
            #080b0d 48%,
            #030405 100%
        ) !important;

    border-bottom: 2px solid var(--gold) !important;
}

.authority-profile-header {
    position: relative !important;
    z-index: 5 !important;

    min-height: 0 !important;
    height: auto !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;

    align-items: center !important;
    gap: 36px !important;

    padding: 32px 48px 38px !important;
}

.authority-identity-main {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

.authority-verification-row {
    margin-bottom: 18px !important;
}

.authority-name-row {
    display: flex !important;
    align-items: center !important;
    gap: 28px !important;
    width: 100% !important;
}

.authority-portrait-frame {
    flex: 0 0 auto !important;
}

.authority-portrait-placeholder {
    width: 130px !important;
    height: 160px !important;
}

.authority-name-block {
    min-width: 0 !important;
}

.authority-name-block h1 {
    margin: 4px 0 10px !important;

    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(38px, 4vw, 62px) !important;
    line-height: 0.98 !important;

    color: #f4f1e8 !important;
}

.authority-profile-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(165px, 1fr)) !important;

    width: 390px !important;
    max-width: 390px !important;

    gap: 12px !important;
    padding: 0 !important;
}

.authority-profile-actions .profile-action {
    width: 100% !important;
    min-width: 0 !important;
}

#controlCenterButton {
    grid-column: 1 / -1 !important;
}

.authority-room-seal {
    position: absolute !important;

    top: 20px !important;
    right: 32px !important;

    width: 125px !important;
    height: 125px !important;

    z-index: 20 !important;

    border-radius: 50% !important;
    overflow: hidden !important;

    background: #050607 !important;
    border: 2px solid rgba(212, 175, 55, 0.85) !important;

    box-shadow:
        0 0 0 5px rgba(212, 175, 55, 0.05),
        0 14px 32px rgba(0, 0, 0, 0.55) !important;
}

.authority-room-seal img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    border-radius: 50% !important;

    display: block !important;
}

@media (max-width: 900px) {
    .authority-profile-header {
        grid-template-columns: 1fr !important;
        padding: 28px 24px 32px !important;
    }

    .authority-profile-actions {
        width: 100% !important;
        max-width: none !important;
    }

    .authority-room-seal {
        width: 96px !important;
        height: 96px !important;
        top: 16px !important;
        right: 18px !important;
    }
}
/* =========================================================
   AUTHORITY PROFILE — IDENTITY SPACING REFINEMENT
   Prevent portrait from colliding with profile typography
   ========================================================= */

#profileOfficialStyle,
#profileName,
#profileTitle,
#profileOffice {
    margin-left: 48px;
}

#profilePortrait {
    display: block;
    width: 168px;
    height: 200px;
    max-width: 168px;
    object-fit: cover;
}
/* ============================================================
   AUTHORITY PROFILE — HERO + IDENTITY FINAL REFINEMENT
   2026-08-27
   ============================================================ */

.authority-cover {
    position: relative;
    display: block !important;
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #111;
}

.authority-cover-edit {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d4af37;
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    z-index: 3;
}


/* ------------------------------------------------------------
   MAIN PROFILE HERO
   ------------------------------------------------------------ */

.authority-profile-hero {
    position: relative !important;

    margin: 32px 24px 0 !important;
    padding: 0 !important;

    border: 1px solid rgba(212, 175, 55, 0.42) !important;
    border-bottom: 3px solid #d4af37 !important;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(212, 175, 55, 0.10),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            rgba(24, 21, 11, 0.96),
            rgba(4, 8, 12, 0.99) 58%
        ) !important;

    overflow: hidden !important;
}


/* ------------------------------------------------------------
   INSTITUTIONAL HEADER
   ------------------------------------------------------------ */

.authority-profile-hero::before {
    content: "GCCSS–THETA CONSTITUTIONAL AUTHORITY NETWORK";

    display: block;

    padding: 34px 300px 8px 54px;

    color: #d4af37;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.19em;
    line-height: 1.4;
}

.authority-profile-hero::after {
    content:
        "Constitutional Authority\A"
        "Verified institutional identity, official public record, constitutional service, and Commonwealth presence.";

    white-space: pre-line;
    display: block;

    padding: 0 300px 36px 54px;

    color: #f5f0e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.02em;

    border-bottom: 1px solid rgba(212, 175, 55, 0.55);
}


/* Smaller descriptive second line */
.authority-profile-hero::after {
    line-height: 1.35;
}


/* ------------------------------------------------------------
   E.O.C.C. SEAL
   ------------------------------------------------------------ */

.authority-room-seal {
    position: absolute !important;

    top: 32px !important;
    right: 48px !important;

    width: 170px !important;
    height: 170px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    z-index: 5 !important;
}

.authority-room-seal img {
    display: block !important;

    width: 150px !important;
    height: 150px !important;

    object-fit: contain !important;

    border-radius: 50% !important;

    filter:
        drop-shadow(0 0 2px rgba(212, 175, 55, 0.85))
        drop-shadow(0 12px 22px rgba(0, 0, 0, 0.75)) !important;
}


/* ------------------------------------------------------------
   PROFILE IDENTITY AREA
   ------------------------------------------------------------ */

.authority-profile-header {
    position: relative !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 505px !important;
    gap: 50px !important;
    align-items: center !important;

    padding: 34px 52px 38px !important;

    min-height: 300px !important;

    background:
        linear-gradient(
            90deg,
            rgba(212, 175, 55, 0.055),
            transparent 42%
        ) !important;
}


/* Left identity column */
.authority-identity-main {
    min-width: 0 !important;
    width: 100% !important;
}


/* Badge + Authority ID */
.authority-verification-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 18px 28px !important;

    margin-bottom: 28px !important;
}

.verified-badge {
    display: inline-flex !important;
    align-items: center !important;

    min-height: 48px !important;
    padding: 0 20px !important;

    border: 1px solid rgba(34, 211, 238, 0.62) !important;
    background: rgba(4, 36, 45, 0.52) !important;

    color: #40d9ff !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
}

.authority-number {
    color: #d4af37 !important;

    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
}


/* ------------------------------------------------------------
   PORTRAIT + NAME — PREVENT COLLISION
   ------------------------------------------------------------ */

.authority-name-row {
    display: grid !important;

    grid-template-columns: 174px minmax(0, 1fr) !important;

    gap: 42px !important;
    align-items: center !important;

    width: 100% !important;
}


/* Portrait gets its own permanent column */
.authority-portrait-frame {
    position: relative !important;

    width: 174px !important;
    height: 214px !important;

    margin: 0 !important;

    flex: none !important;

    border: 1px solid rgba(212, 175, 55, 0.72) !important;
    border-radius: 24px !important;

    background:
        linear-gradient(
            145deg,
            rgba(24, 24, 18, 0.96),
            rgba(2, 6, 10, 0.98)
        ) !important;

    box-shadow:
        0 0 0 6px rgba(212, 175, 55, 0.035),
        0 18px 34px rgba(0, 0, 0, 0.42) !important;

    overflow: hidden !important;
}


/* Works whether profilePortrait is still placeholder DIV
   or later replaced/rendered as image */
#profilePortrait {
    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    object-fit: cover !important;

    color: #d4af37 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 54px !important;

    background: transparent !important;
}


/* Text column */
.authority-name-block {
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Cancel the old manual margin hack */
#profileOfficialStyle,
#profileName,
#profileTitle,
#profileOffice {
    margin-left: 0 !important;
}


/* Official style */
#profileOfficialStyle {
    margin-bottom: 8px !important;

    color: #d4af37 !important;

    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
}


/* Main name */
#profileName {
    margin-top: 0 !important;
    margin-bottom: 10px !important;

    max-width: 100% !important;

    color: #f7f3e8 !important;

    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(38px, 4.2vw, 68px) !important;
    font-weight: 400 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.025em !important;

    overflow-wrap: break-word !important;
}


/* Authority title */
#profileTitle {
    margin-top: 0 !important;
    margin-bottom: 7px !important;

    color: #d4af37 !important;

    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(21px, 2.1vw, 30px) !important;
    line-height: 1.25 !important;
}


/* Authority office */
#profileOffice {
    margin: 0 !important;

    color: #a9c3dc !important;

    font-size: 18px !important;
    line-height: 1.4 !important;
}


/* ------------------------------------------------------------
   ACTION BUTTONS
   ------------------------------------------------------------ */

.authority-profile-actions {
    width: 100% !important;

    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;

    align-self: center !important;
}

.authority-profile-actions .profile-action {
    width: 100% !important;
    min-height: 72px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;

    border: 1px solid rgba(212, 175, 55, 0.48) !important;
    background: rgba(8, 11, 14, 0.78) !important;

    font-weight: 800 !important;
    letter-spacing: 0.12em !important;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease !important;
}

.authority-profile-actions .profile-action:hover {
    border-color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.08) !important;
    transform: translateY(-1px) !important;
}


/* Control Center spans full button row */
.authority-profile-actions .profile-action:last-child {
    grid-column: 1 / -1 !important;
}


/* ------------------------------------------------------------
   TABLET / MOBILE
   ------------------------------------------------------------ */

@media (max-width: 1050px) {

    .authority-profile-hero::before,
    .authority-profile-hero::after {
        padding-right: 225px !important;
    }

    .authority-room-seal {
        right: 28px !important;
        width: 135px !important;
        height: 135px !important;
    }

    .authority-room-seal img {
        width: 120px !important;
        height: 120px !important;
    }

    .authority-profile-header {
        grid-template-columns: 1fr !important;
    }

    .authority-profile-actions {
        max-width: 100% !important;
    }
}


@media (max-width: 700px) {

    .authority-profile-hero {
        margin: 14px 10px 0 !important;
    }

    .authority-profile-hero::before {
        padding:
            28px
            28px
            10px
            28px !important;
    }

    .authority-profile-hero::after {
        padding:
            0
            28px
            30px
            28px !important;

        font-size: 34px !important;
    }

    .authority-room-seal {
        position: relative !important;

        top: auto !important;
        right: auto !important;

        width: 100% !important;
        height: auto !important;

        justify-content: flex-start !important;

        padding: 22px 28px 0 !important;
    }

    .authority-room-seal img {
        width: 96px !important;
        height: 96px !important;
    }

    .authority-profile-header {
        padding: 28px !important;
    }

    .authority-name-row {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .authority-portrait-frame {
        width: 150px !important;
        height: 185px !important;
    }

    .authority-profile-actions {
        grid-template-columns: 1fr !important;
    }

    .authority-profile-actions .profile-action:last-child {
        grid-column: auto !important;
    }
/* ================================================
   RESTORE AUTHORITY HEADER SEAL
   ================================================ */

.authority-room-seal {
    position: absolute !important;
    top: 34px !important;
    right: 42px !important;
    width: 150px !important;
    height: 150px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
}

.authority-room-seal img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.authority-profile-hero {
    position: relative !important;
}
}
/* =========================================================
   FIX — REMOVE DUPLICATE OVERSIZED HERO TEXT
   Preserve real profile identity section
   ========================================================= */

/* Kill generated duplicate hero copy */
.authority-profile-hero::before,
.authority-profile-hero::after,
.authority-cover::before,
.authority-cover::after {
    content: none !important;
    display: none !important;
}

/* The cover is architectural background only */
.authority-cover {
    display: block !important;
    min-height: 370px !important;
    height: 370px !important;
    overflow: hidden !important;
}

/* Do not allow stray hero headings/descriptions
   outside the actual profile header */
.authority-profile-hero > h1,
.authority-profile-hero > h2,
.authority-profile-hero > p {
    display: none !important;
}

/* =========================================================
   REAL PROFILE IDENTITY
   ========================================================= */

.authority-profile-header {
    position: relative !important;
    z-index: 5 !important;
    padding: 42px 66px 48px !important;
}

.authority-name-row {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) !important;
    gap: 52px !important;
    align-items: center !important;
}

.authority-portrait-frame {
    width: 220px !important;
    height: 260px !important;
    min-width: 220px !important;
    overflow: hidden !important;
}

.authority-name-block {
    min-width: 0 !important;
    max-width: 650px !important;
}

/* Actual authority name — elegant, not billboard-sized */
#profileName {
    font-size: clamp(46px, 4vw, 64px) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.035em !important;
    max-width: 620px !important;
    margin: 10px 0 18px !important;
}

/* Official style */
#profileOfficialStyle {
    font-size: 17px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.20em !important;
    text-transform: uppercase !important;
    margin-bottom: 14px !important;
}

/* Official title */
#profileTitle {
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin: 0 0 8px !important;
}

/* Authority office */
#profileOffice {
    font-size: 17px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Keep buttons clear of the identity typography */
.authority-profile-actions {
    position: relative !important;
    z-index: 6 !important;
    margin-left: 48px !important;
    align-self: center !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .authority-profile-header {
        padding: 36px !important;
    }

    .authority-name-row {
        grid-template-columns: 180px minmax(0, 1fr) !important;
        gap: 34px !important;
    }

    .authority-portrait-frame {
        width: 180px !important;
        height: 220px !important;
        min-width: 180px !important;
    }

    #profileName {
        font-size: 48px !important;
    }
}

@media (max-width: 700px) {
    .authority-cover {
        min-height: 240px !important;
        height: 240px !important;
    }

    .authority-name-row {
        grid-template-columns: 1fr !important;
    }

    .authority-profile-actions {
        margin-left: 0 !important;
        margin-top: 28px !important;
    }

    #profileName {
        font-size: 40px !important;
    }
}
/* =========================================================
   AUTHORITY PROFILE — HERO TYPOGRAPHY REFINEMENT
   Clean architectural hierarchy
   ========================================================= */

.authority-profile-hero {
    position: relative !important;
    overflow: hidden !important;
}

/* Main institutional header area */
.authority-profile-hero .authority-cover {
    min-height: 330px !important;
}

/* GCCSS–THETA heading */
.authority-profile-hero .authority-network-title,
.authority-profile-hero .authority-hero-eyebrow,
.authority-profile-hero .authority-cover-eyebrow {
    font-size: 15px !important;
    line-height: 1.4 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    color: #d4af37 !important;
    margin: 0 0 24px !important;
}

/* Main Constitutional Authority title */
.authority-profile-hero .authority-cover h1,
.authority-profile-hero .authority-hero-title,
.authority-profile-hero .authority-cover-title {
    font-size: clamp(42px, 5vw, 72px) !important;
    line-height: 0.98 !important;
    font-weight: 500 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 22px !important;
    max-width: 850px !important;
}

/* Description below hero title */
.authority-profile-hero .authority-cover p,
.authority-profile-hero .authority-hero-description,
.authority-profile-hero .authority-cover-description {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    max-width: 900px !important;
    margin: 0 !important;
    color: #9fb3c8 !important;
}

/* Prevent accidental giant inherited serif text */
.authority-profile-hero p {
    font-size: 15px !important;
}

.authority-profile-hero .authority-profile-header p {
    font-size: inherit !important;
}

/* Keep profile identity title elegant and contained */
#profileName {
    font-size: clamp(44px, 4.4vw, 68px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.03em !important;
    max-width: 650px !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

/* Official title + office hierarchy */
#profileTitle {
    font-size: 25px !important;
    line-height: 1.25 !important;
    margin-top: 16px !important;
}

#profileOffice {
    font-size: 18px !important;
    line-height: 1.45 !important;
    margin-top: 8px !important;
}

/* Better profile composition */
.authority-name-row {
    grid-template-columns: 220px minmax(0, 1fr) !important;
    gap: 56px !important;
    align-items: center !important;
}

.authority-portrait-frame {
    width: 220px !important;
    height: 260px !important;
    flex-shrink: 0 !important;
}

.authority-name-block {
    min-width: 0 !important;
    padding-right: 24px !important;
}

/* Responsive correction */
@media (max-width: 900px) {
    .authority-name-row {
        grid-template-columns: 170px minmax(0, 1fr) !important;
        gap: 30px !important;
    }

    .authority-portrait-frame {
        width: 170px !important;
        height: 210px !important;
    }

    #profileName {
        font-size: clamp(38px, 7vw, 54px) !important;
    }
}

@media (max-width: 700px) {
    .authority-name-row {
        grid-template-columns: 1fr !important;
    }

    .authority-portrait-frame {
        width: 150px !important;
        height: 185px !important;
    }

    #profileName {
        font-size: 42px !important;
    }
}
/* =========================================================
   GCCSS–THETA AUTHORITY PROFILE
   ARCHITECTURAL SOVEREIGN FRAME
   ========================================================= */

/* Main profile structure becomes the framed institution */
.authority-profile-page {
    position: relative !important;
    width: calc(100% - 44px) !important;
    max-width: 1540px !important;
    margin: 22px auto 36px !important;

    border: 3px solid #b58b16 !important;

    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, 0.045),
            transparent 24%,
            transparent 76%,
            rgba(212, 175, 55, 0.035)
        ),
        #050809 !important;

    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.30),
        0 0 0 7px #050708,
        0 0 0 8px rgba(212, 175, 55, 0.72),
        0 16px 50px rgba(0, 0, 0, 0.65),
        inset 0 0 40px rgba(212, 175, 55, 0.025) !important;

    overflow: hidden !important;
}


/* =========================================================
   SECOND INNER ARCHITECTURAL LINE
   ========================================================= */

.authority-profile-page::before {
    content: "" !important;
    display: block !important;

    position: absolute !important;
    top: 9px !important;
    right: 9px !important;
    bottom: 9px !important;
    left: 9px !important;

    border: 1px solid rgba(212, 175, 55, 0.55) !important;

    pointer-events: none !important;
    z-index: 100 !important;
}


/* =========================================================
   GOLD ARCHITECTURAL CORNER DETAILS
   ========================================================= */

.authority-profile-page::after {
    content: "" !important;
    display: block !important;

    position: absolute !important;
    top: 14px !important;
    left: 14px !important;

    width: 30px !important;
    height: 30px !important;

    border-top: 4px solid #d4af37 !important;
    border-left: 4px solid #d4af37 !important;

    box-shadow:
        -5px -5px 0 -3px #d4af37 !important;

    pointer-events: none !important;
    z-index: 101 !important;
}


/* =========================================================
   PROFILE HERO — KEEP CONTENT INSIDE FRAME
   ========================================================= */

.authority-profile-hero {
    position: relative !important;
    margin: 0 !important;
    border: 0 !important;
    width: 100% !important;
}


/* =========================================================
   HEADER / COVER
   ========================================================= */

.authority-cover {
    position: relative !important;

    height: 390px !important;
    min-height: 390px !important;

    margin: 0 !important;

    border-bottom:
        2px solid rgba(212, 175, 55, 0.85) !important;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(212, 175, 55, 0.08),
            transparent 34%
        ),
        linear-gradient(
            110deg,
            #101009 0%,
            #080b0c 43%,
            #020607 100%
        ) !important;
}


/* =========================================================
   NETWORK LABEL
   ========================================================= */

.authority-cover .authority-network-label,
.authority-network-label {
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: #d4af37 !important;
}


/* =========================================================
   OFFICIAL SEAL
   ========================================================= */

.authority-room-seal {
    position: absolute !important;

    top: 42px !important;
    right: 58px !important;

    width: 190px !important;
    height: 190px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    z-index: 20 !important;

    border-radius: 50% !important;

    filter:
        drop-shadow(0 0 3px rgba(212, 175, 55, 0.75))
        drop-shadow(0 12px 18px rgba(0, 0, 0, 0.8)) !important;
}


.authority-room-seal img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
}


/* =========================================================
   PROFILE IDENTITY SECTION
   ========================================================= */

.authority-profile-header {
    position: relative !important;

    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        500px !important;

    gap: 64px !important;

    align-items: center !important;

    padding:
        54px
        64px
        42px !important;

    background:
        linear-gradient(
            90deg,
            rgba(212, 175, 55, 0.045),
            transparent 38%
        ) !important;
}


/* =========================================================
   PORTRAIT + NAME
   ========================================================= */

.authority-name-row {
    display: grid !important;

    grid-template-columns:
        220px
        minmax(0, 1fr) !important;

    gap: 46px !important;

    align-items: center !important;
}


.authority-portrait-frame {
    width: 220px !important;
    height: 260px !important;

    min-width: 220px !important;

    position: relative !important;

    border:
        1px solid rgba(212, 175, 55, 0.95) !important;

    border-radius: 26px !important;

    overflow: hidden !important;

    background:
        radial-gradient(
            circle at center,
            rgba(212, 175, 55, 0.06),
            transparent 65%
        ),
        #070a0b !important;

    box-shadow:
        0 0 0 7px rgba(212, 175, 55, 0.025),
        0 12px 28px rgba(0, 0, 0, 0.50) !important;
}


#profilePortrait {
    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;

    margin: 0 !important;
}


/* =========================================================
   IDENTITY TYPOGRAPHY
   ========================================================= */

.authority-name-block {
    min-width: 0 !important;
    max-width: 670px !important;
}


#profileOfficialStyle {
    color: #d4af37 !important;

    font-size: 17px !important;
    font-weight: 800 !important;

    letter-spacing: 0.19em !important;
    line-height: 1.2 !important;

    text-transform: uppercase !important;

    margin:
        0
        0
        15px !important;
}


#profileName {
    color: #f4f0e7 !important;

    font-size:
        clamp(44px, 3.6vw, 61px) !important;

    line-height: 0.98 !important;

    letter-spacing: -0.035em !important;

    margin:
        0
        0
        20px !important;

    max-width: 640px !important;
}


#profileTitle {
    color: #d4af37 !important;

    font-size: 22px !important;

    line-height: 1.25 !important;

    margin:
        0
        0
        8px !important;
}


#profileOffice {
    color: #9fc6ee !important;

    font-size: 17px !important;

    line-height: 1.4 !important;

    margin: 0 !important;
}


/* =========================================================
   PROFILE ACTIONS
   ========================================================= */

.authority-profile-actions {
    display: grid !important;

    grid-template-columns:
        1fr
        1fr !important;

    gap: 16px !important;

    margin: 0 !important;

    align-self: center !important;
}


.authority-profile-actions .profile-action {
    min-height: 88px !important;

    border:
        1px solid rgba(212, 175, 55, 0.58) !important;

    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, 0.035),
            rgba(0, 0, 0, 0.10)
        ) !important;

    letter-spacing: 0.11em !important;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease !important;
}


.authority-profile-actions .profile-action:hover {
    border-color: #d4af37 !important;

    background:
        rgba(212, 175, 55, 0.07) !important;

    transform:
        translateY(-2px) !important;
}


/* CONTROL CENTER SPANS BOTH COLUMNS */

.authority-profile-actions .profile-action:last-child {
    grid-column:
        1 / -1 !important;
}


/* =========================================================
   VERIFICATION ROW
   ========================================================= */

.authority-verification-row {
    margin-bottom: 30px !important;
}


.verified-badge {
    border:
        1px solid rgba(39, 210, 255, 0.60) !important;

    background:
        rgba(20, 181, 220, 0.055) !important;

    padding:
        16px
        22px !important;

    letter-spacing:
        0.14em !important;
}


.authority-number {
    margin-left: 30px !important;

    color: #d4af37 !important;

    font-weight: 800 !important;

    letter-spacing:
        0.12em !important;
}


/* =========================================================
   NAVIGATION BAR
   ========================================================= */

.authority-profile-nav {
    margin:
        0
        38px
        24px !important;

    border:
        1px solid rgba(212, 175, 55, 0.45) !important;

    background:
        #050809 !important;

    box-shadow:
        inset 0 1px 0 rgba(212, 175, 55, 0.08) !important;
}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .authority-profile-page {
        width:
            calc(100% - 24px) !important;
    }

    .authority-profile-header {
        grid-template-columns:
            1fr !important;

        gap:
            34px !important;

        padding:
            42px
            36px !important;
    }

    .authority-profile-actions {
        max-width:
            600px !important;
    }

    .authority-room-seal {
        width:
            145px !important;

        height:
            145px !important;

        right:
            32px !important;
    }
}


@media (max-width: 700px) {

    .authority-cover {
        height:
            280px !important;

        min-height:
            280px !important;
    }

    .authority-name-row {
        grid-template-columns:
            1fr !important;
    }

    .authority-portrait-frame {
        width:
            175px !important;

        height:
            210px !important;

        min-width:
            175px !important;
    }

    #profileName {
        font-size:
            40px !important;
    }

    .authority-profile-actions {
        grid-template-columns:
            1fr !important;
    }

    .authority-profile-actions .profile-action:last-child {
        grid-column:
            auto !important;
    }

    .authority-room-seal {
        width:
            110px !important;

        height:
            110px !important;

        top:
            28px !important;

        right:
            24px !important;
    }
}
/* =========================================================
   AUTHORITY PROFILE — FINAL TYPOGRAPHY / STRUCTURE POLISH
   Keeps the recovered architecture, fixes oversized text
   ========================================================= */

/* HEADER / INSTITUTIONAL INTRO */
.authority-profile-hero {
    position: relative !important;
}

.authority-profile-hero .authority-profile-header {
    padding: 42px 58px 38px !important;
}

.authority-profile-hero .authority-profile-header h1,
.authority-profile-hero h1 {
    font-size: clamp(34px, 3.1vw, 54px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    max-width: 820px !important;
    margin: 12px 0 16px !important;
}

.authority-profile-hero .authority-profile-header p,
.authority-profile-hero .authority-profile-header .authority-subtitle {
    font-size: clamp(14px, 1.15vw, 18px) !important;
    line-height: 1.7 !important;
    letter-spacing: 0.12em !important;
    max-width: 900px !important;
    margin: 0 !important;
}

/* NETWORK EYEBROW */
.authority-profile-hero .authority-eyebrow,
.authority-profile-hero .profile-eyebrow {
    font-size: 14px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.22em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* PROFILE IDENTITY AREA */
.authority-profile-header {
    align-items: center !important;
}

.authority-name-row {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    gap: 42px !important;
    align-items: center !important;
}

.authority-name-block {
    min-width: 0 !important;
    padding-right: 24px !important;
}

/* OFFICIAL STYLE LABEL */
#profileOfficialStyle,
.official-style {
    font-size: 15px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.22em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
}

/* MAIN PROFILE NAME */
#profileName {
    font-size: clamp(38px, 3.4vw, 58px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 16px !important;
    max-width: 720px !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}

/* TITLE + OFFICE */
#profileTitle {
    font-size: clamp(20px, 1.65vw, 29px) !important;
    line-height: 1.25 !important;
    margin: 0 0 10px !important;
}

#profileOffice {
    font-size: clamp(16px, 1.2vw, 20px) !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

/* VERIFIED / AUTHORITY ID ROW */
.authority-verification-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 24px 34px !important;
    margin-bottom: 28px !important;
}

.verified-badge {
    font-size: 14px !important;
    letter-spacing: 0.16em !important;
    padding: 15px 20px !important;
}

#profileAuthorityNumber,
.authority-number {
    font-size: 15px !important;
    letter-spacing: 0.14em !important;
    white-space: nowrap !important;
}

/* PORTRAIT */
.authority-portrait-frame {
    width: 220px !important;
    height: 270px !important;
    flex: 0 0 220px !important;
}

#profilePortrait,
.authority-portrait-placeholder {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ACTION BUTTON AREA */
.authority-profile-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(190px, 1fr)) !important;
    gap: 14px !important;
    align-self: center !important;
}

.authority-profile-actions .profile-action {
    min-height: 74px !important;
    padding: 16px 22px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.12em !important;
}

.authority-profile-actions .profile-action:last-child {
    grid-column: 1 / -1 !important;
}

/* REMOVE ANY GIANT TEXT OVERRIDES */
.authority-profile-page h1,
.authority-profile-page h2,
.authority-profile-page h3,
.authority-profile-page p {
    max-width: 100% !important;
}

.authority-profile-page h2 {
    font-size: clamp(27px, 2.2vw, 38px) !important;
    line-height: 1.12 !important;
}

.authority-profile-page h3 {
    font-size: clamp(20px, 1.55vw, 27px) !important;
    line-height: 1.2 !important;
}

.authority-profile-page p {
    font-size: clamp(15px, 1vw, 18px) !important;
    line-height: 1.65 !important;
}

/* TAB BAR */
.authority-profile-tabs,
.profile-tabs {
    min-height: 74px !important;
}

.authority-profile-tabs button,
.profile-tabs button,
.profile-tab {
    font-size: 13px !important;
    line-height: 1 !important;
    letter-spacing: 0.11em !important;
    padding: 22px 18px !important;
}

/* TABLET */
@media (max-width: 1100px) {
    .authority-name-row {
        grid-template-columns: 180px minmax(0, 1fr) !important;
        gap: 30px !important;
    }

    .authority-portrait-frame {
        width: 180px !important;
        height: 225px !important;
        flex-basis: 180px !important;
    }

    #profileName {
        font-size: clamp(34px, 4.5vw, 48px) !important;
    }

    .authority-profile-actions {
        grid-template-columns: 1fr !important;
    }

    .authority-profile-actions .profile-action:last-child {
        grid-column: auto !important;
    }
}

/* MOBILE */
@media (max-width: 700px) {
    .authority-profile-hero .authority-profile-header {
        padding: 28px 22px 26px !important;
    }

    .authority-name-row {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .authority-portrait-frame {
        width: 150px !important;
        height: 185px !important;
    }

    #profileName {
        font-size: clamp(32px, 10vw, 44px) !important;
        line-height: 1 !important;
    }

    #profileTitle {
        font-size: 20px !important;
    }

    #profileOffice {
        font-size: 16px !important;
    }

    .authority-profile-actions {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .authority-profile-tabs,
    .profile-tabs {
        overflow-x: auto !important;
    }

    .authority-profile-tabs button,
    .profile-tabs button,
    .profile-tab {
        white-space: nowrap !important;
        flex: 0 0 auto !important;
    }
}
/* =========================================================
   AUTHORITY PROFILE — HEADER HEIGHT / SPACING REFINEMENT
   ========================================================= */

.authority-profile-hero {
    min-height: 0 !important;
    height: auto !important;
}

.authority-profile-hero .authority-cover {
    min-height: 0 !important;
    height: auto !important;
}

.authority-profile-hero .authority-profile-header {
    min-height: 0 !important;
}

.authority-profile-hero {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Compact institutional header */
.authority-profile-hero > .authority-cover {
    padding: 34px 48px 32px !important;
}

/* Bring identity chamber closer to header */
.authority-profile-header {
    margin-top: 0 !important;
    padding-top: 38px !important;
    padding-bottom: 38px !important;
}

/* Prevent inherited giant spacing */
.authority-cover,
.authority-profile-header {
    margin-bottom: 0 !important;
}

/* Keep seal properly positioned */
.authority-room-seal {
    top: 30px !important;
    right: 48px !important;
    width: 145px !important;
    height: 145px !important;
}

/* Header text width */
.authority-cover h1 {
    max-width: 720px !important;
}

.authority-cover p {
    max-width: 950px !important;
}
/* =========================================================
   AUTHORITY PROFILE — FINAL LOGO POSITION FIX
   ========================================================= */

.authority-room-seal {
    position: absolute !important;

    top: 28px !important;
    right: 52px !important;

    width: 138px !important;
    height: 138px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    z-index: 20 !important;

    margin: 0 !important;
    padding: 0 !important;
}

.authority-room-seal img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Give the header enough right-side breathing room
   so text can never run beneath the seal */
.authority-profile-hero .authority-cover {
    padding-right: 245px !important;
}

/* Keep divider safely below the seal */
.authority-profile-header {
    position: relative !important;
    z-index: 1 !important;
}

/* Tablet */
@media (max-width: 1000px) {
    .authority-room-seal {
        width: 112px !important;
        height: 112px !important;
        top: 26px !important;
        right: 34px !important;
    }

    .authority-profile-hero .authority-cover {
        padding-right: 185px !important;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .authority-room-seal {
        width: 86px !important;
        height: 86px !important;
        top: 22px !important;
        right: 22px !important;
    }

    .authority-profile-hero .authority-cover {
        padding-right: 125px !important;
    }
}
/* =========================================================
   AUTHORITY PROFILE — FOOTER ARCHITECTURAL REFINEMENT
   ========================================================= */

.authority-profile-footer {
    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    min-height: 74px !important;

    margin: 0 !important;

    padding:
        18px
        34px
        20px
        34px !important;

    border-top:
        1px solid rgba(212, 175, 55, 0.42) !important;

    background:
        linear-gradient(
            90deg,
            rgba(212, 175, 55, 0.025),
            rgba(0, 0, 0, 0.72) 40%,
            rgba(0, 0, 0, 0.88)
        ) !important;

    box-sizing: border-box !important;

    overflow: hidden !important;
}

/* subtle upper ceremonial accent */
.authority-profile-footer::before {
    content: "" !important;

    position: absolute !important;

    top: 7px !important;
    left: 22px !important;
    right: 22px !important;

    height: 1px !important;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 175, 55, 0.55),
            transparent
        ) !important;
}

/* FOOTER TEXT */
.authority-profile-footer span,
.authority-profile-footer strong {
    position: relative !important;
    z-index: 2 !important;

    margin: 0 !important;

    font-family:
        "Arial Narrow",
        "Helvetica Neue",
        Arial,
        sans-serif !important;

    font-size: 12px !important;
    line-height: 1.2 !important;

    font-weight: 700 !important;

    letter-spacing: 2.4px !important;

    text-transform: uppercase !important;

    white-space: nowrap !important;
}

/* left footer identity */
.authority-profile-footer span {
    color: #aebfd6 !important;
}

/* right footer identity */
.authority-profile-footer strong {
    color: #d4af37 !important;
}

/* =========================================================
   KEEP FOOTER CLEAR OF OUTER GOLD FRAME
   ========================================================= */

.authority-profile-page {
    padding-bottom: 18px !important;
}

.authority-profile-footer {
    margin-left: 14px !important;
    margin-right: 14px !important;
    margin-bottom: 14px !important;
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .authority-profile-footer {
        flex-direction: column !important;
        align-items: flex-start !important;

        gap: 10px !important;

        min-height: 0 !important;

        padding:
            20px
            22px
            22px !important;
    }

    .authority-profile-footer span,
    .authority-profile-footer strong {
        white-space: normal !important;
        font-size: 10px !important;
        letter-spacing: 1.8px !important;
    }
}
#editProfileButton {
    text-decoration: none !important;
}

#editProfileButton:hover,
#editProfileButton:focus,
#editProfileButton:visited,
#editProfileButton:active {
    text-decoration: none !important;
}
.authority-portrait-frame {
    position: relative;
}

.authority-portrait-edit {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d4af37;
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    z-index: 2;
}
.authority-cover-brand {
    display: none !important;
}

.authority-cover {
    height: 220px !important;
    background-size: cover !important;
    background-position: center !important;
}
.authority-cover {
    height: 340px !important;
    background-size: cover !important;
    background-position: center !important;
}

.authority-room-seal {
    top: 24px !important;
    right: 72px !important;
    z-index: 4 !important;
}

.authority-cover-edit {
    top: 24px !important;
    right: 16px !important;
    bottom: auto !important;
}
.authority-cover {
    height: 340px !important;
    min-height: 340px !important;

    background-size: 100% auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    background-color: #050809 !important;
}

.authority-room-seal {
    top: 24px !important;
    right: 72px !important;
    z-index: 4 !important;
}

/* =========================================================
   AUTHORITY PERSONAL HERALDRY — LEFT MATCHING ROUND SEAL
   ========================================================= */

.authority-personal-heraldry {
    position: absolute !important;

    top: 20px !important;
    left: 72px !important;

    width: 170px !important;
    height: 170px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;
    overflow: hidden !important;

    background: #050607 !important;
    border: 2px solid rgba(212, 175, 55, 0.85) !important;

    box-shadow:
        0 0 0 5px rgba(212, 175, 55, 0.05),
        0 14px 32px rgba(0, 0, 0, 0.55) !important;

    z-index: 20 !important;
}

/* =========================================================
   AUTHORITY PERSONAL HERALDRY — SQUARE FRAME / ROUND EMBLEM
   ========================================================= */

.authority-cover > .authority-personal-heraldry {
    position: absolute !important;

    top: 24px !important;
    left: 72px !important;

    width: 190px !important;
    height: 190px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    padding: 10px !important;

    background:
        linear-gradient(
            145deg,
            rgba(18, 19, 20, 0.98),
            rgba(2, 3, 4, 0.98)
        ) !important;

    border: 2px solid #d4af37 !important;
    border-radius: 12px !important;

    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.22),
        0 12px 30px rgba(0, 0, 0, 0.65) !important;

    overflow: visible !important;

    z-index: 30 !important;
}


/* ROUND HERALDRY AREA INSIDE SQUARE */

.authority-cover
> .authority-personal-heraldry
> .authority-heraldry-image-shell {

    position: relative !important;

    width: 160px !important;
    height: 160px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    border-radius: 50% !important;

    border: 2px solid #d4af37 !important;

    background: #020304 !important;

    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.75),
        0 0 14px rgba(212, 175, 55, 0.15) !important;
}


/* ACTUAL UPLOADED COAT OF ARMS */

.authority-cover
> .authority-personal-heraldry
> .authority-heraldry-image-shell
> #profileHeraldry {

    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    display: block !important;

    object-fit: contain !important;
    object-position: center !important;

    border-radius: 50% !important;

    background: #020304 !important;

    opacity: 1 !important;
    visibility: visible !important;

    z-index: 3 !important;
}


/* PLACEHOLDER WHEN NO HERALDRY EXISTS */

.authority-heraldry-placeholder {
    position: absolute !important;

    inset: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #d4af37 !important;

    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 58px !important;
    font-weight: 700 !important;

    z-index: 1 !important;
}


/* EDIT PENCIL */

.authority-cover
> .authority-personal-heraldry
> .authority-personal-heraldry-edit {

    position: absolute !important;

    right: -10px !important;
    bottom: -10px !important;

    width: 42px !important;
    height: 42px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 2px solid #050809 !important;
    border-radius: 50% !important;

    background: #d4af37 !important;
    color: #050809 !important;

    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    cursor: pointer !important;

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.55) !important;

    z-index: 40 !important;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease !important;
}


.authority-personal-heraldry-edit:hover {
    transform: scale(1.08) !important;

    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.18),
        0 7px 18px rgba(0, 0, 0, 0.65) !important;
}


#profileHeraldryFile {
    display: none !important;
}

/* =========================================================
   FINAL AUTHORITY COVER SIZE — HIGH SPECIFICITY OVERRIDE
   ========================================================= */

.authority-profile-hero > .authority-cover {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;

    padding: 0 !important;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    background-color: #050809 !important;
}
.authority-cover {
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;

    background-size: 100% auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    background-color: #050809 !important;
}
/* AUTHORITY ACTIVE STATUS */
.authority-data-row:last-child dd {
    color: #42f5a7 !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(66, 245, 167, 0.28);
}
/* THETA EMPTY-STATE MARK */
.theta-placeholder-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 150px;
    height: 150px;

    border: 2px solid #d4af37;
    border-radius: 50%;

    color: #d4af37;
    background: rgba(0, 0, 0, 0.45);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 88px;
    font-weight: 400;
    line-height: 1;

    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.10),
        0 0 26px rgba(212, 175, 55, 0.15);

    text-shadow:
        0 0 18px rgba(212, 175, 55, 0.20);

    user-select: none;
}
.authority-profile-actions .profile-action[hidden] {
    display: none !important;
}
[hidden]{display:none!important}#profilePortrait img{width:100%;height:100%;object-fit:cover;display:block}#profileHeraldry{object-fit:contain}

/* Cover is one photograph. Identity emblems have a separate bounded record. */
#profileCover{overflow:hidden!important;background-repeat:no-repeat!important;background-size:cover!important;background-position:center!important}
.authority-heraldic-record{margin:20px 0;padding:16px 22px;border:1px solid #685727;border-radius:12px;background:#0b1117}
.authority-heraldic-record summary{min-height:44px;display:list-item;cursor:pointer;color:#d8bd76;font:600 14px system-ui;align-content:center}
.authority-heraldic-items{display:flex;align-items:center;flex-wrap:wrap;gap:24px;padding:18px 0}
.authority-heraldic-record .authority-personal-heraldry,.authority-heraldic-record .authority-room-seal,.authority-heraldic-record #profileEmblem{position:relative!important;inset:auto!important;width:150px!important;height:150px!important;min-width:0!important;margin:0!important;overflow:hidden!important;border:1px solid #a98d45!important;border-radius:14px!important;box-shadow:none!important;flex:none!important;background:#080d13!important}
.authority-heraldic-record .authority-heraldry-image-shell{position:relative!important;width:100%!important;height:100%!important;overflow:hidden!important}
.authority-heraldic-record img{width:100%!important;height:100%!important;object-fit:contain!important;display:block}
.authority-heraldic-record img[hidden]{display:none!important}
.authority-heraldic-record .authority-personal-heraldry-edit{position:absolute!important;right:0!important;bottom:0!important;left:auto!important;top:auto!important;min-width:44px!important;min-height:44px!important;display:grid!important;place-items:center!important;z-index:5}
.authority-heraldic-record .authority-emblem-edit{min-height:44px;min-width:44px;display:grid;place-items:center;border:1px solid #a98d45;border-radius:10px;color:#d8bd76;cursor:pointer}

/* Preserve the visible identity image and EOCC seal over the single cover. */
#profileCover > .authority-personal-heraldry{display:flex!important}
#profileCover > .authority-room-seal{display:block!important}
@media(max-width:650px){
 #profileCover > .authority-personal-heraldry{left:16px!important;top:16px!important;width:108px!important;height:108px!important;padding:6px!important}
 #profileCover > .authority-personal-heraldry > .authority-heraldry-image-shell{width:92px!important;height:92px!important}
 #profileCover > .authority-room-seal{right:64px!important;top:16px!important;width:92px!important;height:92px!important}
}
/* Remove the inset frame that crossed service text; retain the exterior frame. */
.authority-profile-page::before{content:none!important;display:none!important;border:0!important}
