/* ========================================
   Palmer Careers — Combined Stylesheet
   ======================================== */

/* ========================================
   FONTS
   ======================================== */

/* ----------------------------------------
   Equity Sans (Admin)
   ---------------------------------------- */
/* 'a' and accented variants — ss02 (alt G) + ss05 (alt a) */
@font-face {
    font-family: 'Equity Sans Regular';
    src: url('/assets/webfonts/equity-sans-regular.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    font-feature-settings: "ss02" on, "ss05" on;
    unicode-range: U+0061, U+00C0-00C5, U+00E0-00E5, U+0100-0105, U+01CD-01CE, U+01DE-01E1, U+01FA-01FB, U+0200-0203, U+0226-0227, U+1EA0-1EB7;
}
@font-face {
    font-family: 'Equity Sans Medium';
    src: url('/assets/webfonts/equity-sans-medium.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    font-feature-settings: "ss02" on, "ss05" on;
    unicode-range: U+0061, U+00C0-00C5, U+00E0-00E5, U+0100-0105, U+01CD-01CE, U+01DE-01E1, U+01FA-01FB, U+0200-0203, U+0226-0227, U+1EA0-1EB7;
}
@font-face {
    font-family: 'Equity Sans Semibold';
    src: url('/assets/webfonts/equity-sans-semibold.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    font-feature-settings: "ss02" on, "ss05" on;
    unicode-range: U+0061, U+00C0-00C5, U+00E0-00E5, U+0100-0105, U+01CD-01CE, U+01DE-01E1, U+01FA-01FB, U+0200-0203, U+0226-0227, U+1EA0-1EB7;
}

/* I/i, J/j, M/m and accented variants — default (no ss02) */
@font-face {
    font-family: 'Equity Sans Regular';
    src: url('/assets/webfonts/equity-sans-regular.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    unicode-range: U+0049, U+004A, U+004D, U+0069, U+006A, U+006D, U+00CC-00CF, U+00EC-00EF, U+0128-0135, U+01CF-01D0, U+01F0, U+0208-020B, U+0248-0249, U+1E2C-1E2F, U+1E3E-1E43, U+1EC8-1ECB;
}
@font-face {
    font-family: 'Equity Sans Medium';
    src: url('/assets/webfonts/equity-sans-medium.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    unicode-range: U+0049, U+004A, U+004D, U+0069, U+006A, U+006D, U+00CC-00CF, U+00EC-00EF, U+0128-0135, U+01CF-01D0, U+01F0, U+0208-020B, U+0248-0249, U+1E2C-1E2F, U+1E3E-1E43, U+1EC8-1ECB;
}
@font-face {
    font-family: 'Equity Sans Semibold';
    src: url('/assets/webfonts/equity-sans-semibold.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    unicode-range: U+0049, U+004A, U+004D, U+0069, U+006A, U+006D, U+00CC-00CF, U+00EC-00EF, U+0128-0135, U+01CF-01D0, U+01F0, U+0208-020B, U+0248-0249, U+1E2C-1E2F, U+1E3E-1E43, U+1EC8-1ECB;
}

/* Everything else — ss02 (alt G) only */
@font-face {
    font-family: 'Equity Sans Regular';
    src: url('/assets/webfonts/equity-sans-regular.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    font-feature-settings: "ss02" on;
    unicode-range: U+0000-0048, U+004B-004C, U+004E-0060, U+0062-0068, U+006B-006C, U+006E-00BF, U+00C6-00CB, U+00D0-00DF, U+00E6-00EB, U+00F0-00FF, U+0106-0127, U+0132-0133, U+0136-01CC, U+01D1-01DD, U+01E2-01EF, U+01F1-01F9, U+01FC-01FF, U+0204-0207, U+020C-0225, U+0228-0247, U+024A-1E2B, U+1E30-1E3D, U+1E44-1E9F, U+1EB8-1EC7, U+1ECC-10FFFF;
}
@font-face {
    font-family: 'Equity Sans Medium';
    src: url('/assets/webfonts/equity-sans-medium.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    font-feature-settings: "ss02" on;
    unicode-range: U+0000-0048, U+004B-004C, U+004E-0060, U+0062-0068, U+006B-006C, U+006E-00BF, U+00C6-00CB, U+00D0-00DF, U+00E6-00EB, U+00F0-00FF, U+0106-0127, U+0132-0133, U+0136-01CC, U+01D1-01DD, U+01E2-01EF, U+01F1-01F9, U+01FC-01FF, U+0204-0207, U+020C-0225, U+0228-0247, U+024A-1E2B, U+1E30-1E3D, U+1E44-1E9F, U+1EB8-1EC7, U+1ECC-10FFFF;
}
@font-face {
    font-family: 'Equity Sans Semibold';
    src: url('/assets/webfonts/equity-sans-semibold.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    font-feature-settings: "ss02" on;
    unicode-range: U+0000-0048, U+004B-004C, U+004E-0060, U+0062-0068, U+006B-006C, U+006E-00BF, U+00C6-00CB, U+00D0-00DF, U+00E6-00EB, U+00F0-00FF, U+0106-0127, U+0132-0133, U+0136-01CC, U+01D1-01DD, U+01E2-01EF, U+01F1-01F9, U+01FC-01FF, U+0204-0207, U+020C-0225, U+0228-0247, U+024A-1E2B, U+1E30-1E3D, U+1E44-1E9F, U+1EB8-1EC7, U+1ECC-10FFFF;
}

/* ----------------------------------------
   Equity Sans Light (Public body alt)
   ---------------------------------------- */
/* 'a' and accented variants — ss02 (alt G) + ss05 (alt a) */
@font-face {
    font-family: 'Equity Sans Light';
    src: url('/assets/webfonts/equity-sans-light.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    font-feature-settings: "ss02" on, "ss05" on;
    unicode-range: U+0061, U+00C0-00C5, U+00E0-00E5, U+0100-0105, U+01CD-01CE, U+01DE-01E1, U+01FA-01FB, U+0200-0203, U+0226-0227, U+1EA0-1EB7;
}

/* I/i, J/j, M/m and accented variants — default (no ss02) */
@font-face {
    font-family: 'Equity Sans Light';
    src: url('/assets/webfonts/equity-sans-light.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    unicode-range: U+0049, U+004A, U+004D, U+0069, U+006A, U+006D, U+00CC-00CF, U+00EC-00EF, U+0128-0135, U+01CF-01D0, U+01F0, U+0208-020B, U+0248-0249, U+1E2C-1E2F, U+1E3E-1E43, U+1EC8-1ECB;
}

/* Everything else — ss02 (alt G) only */
@font-face {
    font-family: 'Equity Sans Light';
    src: url('/assets/webfonts/equity-sans-light.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    font-feature-settings: "ss02" on;
    unicode-range: U+0000-0048, U+004B-004C, U+004E-0060, U+0062-0068, U+006B-006C, U+006E-00BF, U+00C6-00CB, U+00D0-00DF, U+00E6-00EB, U+00F0-00FF, U+0106-0127, U+0132-0133, U+0136-01CC, U+01D1-01DD, U+01E2-01EF, U+01F1-01F9, U+01FC-01FF, U+0204-0207, U+020C-0225, U+0228-0247, U+024A-1E2B, U+1E30-1E3D, U+1E44-1E9F, U+1EB8-1EC7, U+1ECC-10FFFF;
}

/* ----------------------------------------
   Palatino Pro (Public headings)
   ---------------------------------------- */
@font-face {
    font-family: 'Palatino Pro', serif;
    src: url('/assets/webfonts/palatino-pro-roman.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------
   Palatino Light (Opportunity detail)
   ---------------------------------------- */
@font-face {
    font-family: 'Palatino Light';
    src: url('/assets/webfonts/palatino-lt-std-light.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Palatino Light';
    src: url('/assets/webfonts/palatino-lt-std-light-italic.woff2') format('woff2');
    font-style: italic;
    font-display: swap;
}

/* ----------------------------------------
   Gibson (Public body)
   ---------------------------------------- */
@font-face {
    font-family: 'Gibson Light';
    src: url('/assets/webfonts/gibson-light.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gibson Light';
    src: url('/assets/webfonts/gibson-light-italic.woff2') format('woff2');
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gibson Regular';
    src: url('/assets/webfonts/gibson-regular.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------
   Palatino Light OpenType Features
   ---------------------------------------- */
:root {
    --palatino-light-aalt: "aalt" off;
    --palatino-light-frac: "frac" off;
    --palatino-light-ordn: "ordn" off;
    --palatino-light-sups: "sups" off;
}

.palatino-aalt { --palatino-light-aalt: "aalt" on; }

.palatino-frac { --palatino-light-frac: "frac" on; }
@supports (font-variant-numeric: diagonal-fractions) {
    .palatino-frac { --palatino-light-frac: "____"; font-variant-numeric: diagonal-fractions; }
}

.palatino-ordn { --palatino-light-ordn: "ordn" on; }
@supports (font-variant-numeric: ordinal) {
    .palatino-ordn { --palatino-light-ordn: "____"; font-variant-numeric: ordinal; }
}

.palatino-sups { --palatino-light-sups: "sups" on; }
@supports (font-variant-position: super) {
    .palatino-sups { --palatino-light-sups: "____"; font-variant-position: super; }
}

.palatino-aalt,
.palatino-frac,
.palatino-ordn,
.palatino-sups {
    font-feature-settings: var(--palatino-light-aalt), var(--palatino-light-frac), var(--palatino-light-ordn), var(--palatino-light-sups);
}

/* ========================================
   RESET & BASE
   ======================================== */
* { box-sizing: border-box; }
input, select, textarea, button { font-family: inherit; font-feature-settings: inherit; }

body {
    font-family: 'Equity Sans Medium', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255,255,255,1);
    margin: 0;
    padding: 20px;
    background: rgba(40,40,40,1);
}

h1 {
    color: rgba(255,255,255,1);
    margin-bottom: 20px;
}

/* ----------------------------------------
   Layout
   ---------------------------------------- */
.container { margin: 0 auto; }
.container-xs { max-width: 600px; }
.container-sm { max-width: 800px; }
.container-ms { max-width: 900px; }
.container-md { max-width: 1000px; }
.container-lg { max-width: 1200px; }
.container-xl { max-width: 1400px; }
.hidden { display: none !important; }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* ----------------------------------------
   Page-Specific Body Layouts
   ---------------------------------------- */
body.page-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-position-form {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 85px;
}

body.page-team-form {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   SHARED COMPONENTS
   ======================================== */

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
    padding: 14px 20px 10px;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-family: 'Equity Sans Medium', sans-serif;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.btn-primary { background: rgba(0,123,255,1); color: rgba(255,255,255,1); }
.btn-primary:hover { background: rgba(0,86,179,1); }
.btn-secondary { background: rgba(108,117,125,1); color: rgba(255,255,255,1); }
.btn-secondary:hover { background: rgba(84,91,98,1); }
.btn-danger { background: rgba(220,53,69,1); color: rgba(255,255,255,1); }
.btn-danger:hover { background: rgba(200,35,51,1); }
.btn-success { background: rgba(40,167,69,1); color: rgba(255,255,255,1); }
.btn-success:hover { background: rgba(30,126,52,1); }
.btn-warning { background: rgba(255,193,7,1); color: rgba(33,37,41,1); }
.btn-warning:hover { background: rgba(224,168,0,1); }
.btn-sm { padding: 10px 14px 6px; font-size: 0.875rem; }

/* ----------------------------------------
   Cards
   ---------------------------------------- */
.card {
    background: rgba(55,55,55,1);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* ----------------------------------------
   Tables
   ---------------------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); }
th { background: rgba(30,30,30,1); font-family: 'Equity Sans Semibold', sans-serif; color: rgba(255,255,255,1); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.5px; }
tr:nth-child(odd) { background: rgba(255,255,255,0.01); }
tr:nth-child(even) { background: rgba(255,255,255,0.05); }
tr:hover { background: rgba(255,255,255,0.08); }
tr:last-child td { border-bottom: none; }
.date { color: rgba(255,255,255,1); }

/* ----------------------------------------
   Forms
   ---------------------------------------- */
.form-section {
    background: rgba(55,55,55,1);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.form-section h2 {
    margin-top: 0;
    color: rgba(255,255,255,1);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.form-group { margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.form-row-3 { display: flex; gap: 20px; }
.form-row-3 .form-group { flex: 1; }

label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Equity Sans Medium', sans-serif;
    color: rgba(255,255,255,1);
}

label .char-count {
    font-weight: normal;
    color: rgba(255,255,255,1);
    font-size: 0.9em;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    font-size: 1rem;
    background: rgba(45,45,45,1);
    color: rgba(255,255,255,1);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(0,123,255,1);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.3);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-actions-right {
    display: flex;
    gap: 10px;
}

/* ----------------------------------------
   Flash Messages & Errors
   ---------------------------------------- */
.flash-message {
    padding: 12px 20px;
    background: rgba(40,167,69,0.15);
    color: rgba(100,220,130,1);
    border: 1px solid rgba(40,167,69,0.3);
    border-radius: 4px;
    margin-bottom: 20px;
    max-height: 100px;
    overflow: hidden;
    animation: flash-in 0.5s ease;
    transition: opacity 0.5s, max-height 0.5s, margin-bottom 0.5s, padding 0.5s;
}
@keyframes flash-in {
    from { opacity: 0; max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
    to { opacity: 1; max-height: 100px; margin-bottom: 20px; padding-top: 12px; padding-bottom: 12px; }
}
.flash-message.fade-out {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.error {
    background: rgba(220,53,69,0.15);
    color: rgba(255,130,140,1);
    border: 1px solid rgba(220,53,69,0.3);
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.errors {
    background: rgba(220,53,69,0.15);
    color: rgba(255,130,140,1);
    border: 1px solid rgba(220,53,69,0.3);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.errors ul { margin: 0; padding-left: 20px; }

.form-errors {
    background: rgba(220,53,69,0.15);
    color: rgba(255,130,140,1);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(220,53,69,0.3);
}

.form-errors div { margin-bottom: 4px; }
.form-errors div:last-child { margin-bottom: 0; }

/* ----------------------------------------
   Badges (Shared)
   ---------------------------------------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.875rem; font-family: 'Equity Sans Medium', sans-serif; }
.badge-type { background: rgba(0,123,255,0.2); color: rgba(100,175,255,1); }
.badge-location { background: rgba(220,53,69,0.2); color: rgba(255,130,140,1); }

.position-meta { display: flex; flex-wrap: wrap; gap: 15px; color: rgba(255,255,255,1); }
.position-meta-item { display: flex; align-items: center; gap: 6px; }

.back-link { display: inline-block; margin-bottom: 20px; color: rgba(0,123,255,1); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ========================================
   ADMIN — Stats
   ======================================== */
.stats { display: flex; gap: 20px; margin-bottom: 30px; }

.stat {
    background: rgba(55,55,55,1);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.stat-value { font-size: 1.5rem; font-family: 'Equity Sans Semibold', sans-serif; color: rgba(255,255,255,1); }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,1); margin-top: 2px; }

a.stat {
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
}

a.stat:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transform: translateY(-1px);
}

a.stat.active {
    box-shadow: 0 0 0 2px rgba(0,123,255,1), 0 2px 8px rgba(0,123,255,0.2);
}

/* ----------------------------------------
   Empty State
   ---------------------------------------- */
.empty-state { padding: 60px 20px; text-align: center; color: rgba(255,255,255,1); }
.empty-state h3 { margin: 0 0 10px; color: rgba(255,255,255,1); }

/* ========================================
   ADMIN — Login Page
   ======================================== */
.login-container {
    background: rgba(55,55,55,1);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 400px;
}

.page-login h1 {
    margin: 0 0 30px;
    font-size: 1.5rem;
    text-align: center;
}

.login-container label {
    margin-bottom: 6px;
    color: rgba(255,255,255,1);
}

.login-container input[type="text"],
.login-container input[type="password"] {
    padding: 12px;
    font-size: 1rem;
}

.login-container .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 1rem;
    display: flex;
}

/* ========================================
   ADMIN — Positions List
   ======================================== */
.position-title { font-family: 'Equity Sans Medium', sans-serif; color: rgba(255,255,255,1); }
.position-title a { color: inherit; text-decoration: none; }
.position-title a:hover { color: rgba(0,123,255,1); }

.status-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.875rem; font-family: 'Equity Sans Medium', sans-serif; }
.status-badge.status-active { background: rgba(40,167,69,0.2); color: rgba(100,220,130,1); }
.status-badge.status-pending { background: rgba(255,193,7,0.2); color: rgba(255,220,100,1); }
.status-badge.status-filled { background: rgba(0,123,255,0.2); color: rgba(100,175,255,1); }
.status-badge.status-forthcoming { background: rgba(255,255,255,0.1); color: rgba(255,255,255,1); }

.employment-type { color: rgba(255,255,255,1); }
.team-member { color: rgba(255,255,255,1); }

/* Drag and Drop */
.drag-handle { cursor: grab; color: rgba(255,255,255,1); padding-right: 8px; user-select: none; background: rgba(0,0,0,0.15); }
.drag-handle:hover { color: rgba(255,255,255,1); }
.drag-handle:active { cursor: grabbing; }
tr.dragging { opacity: 0.5; background: rgba(0,123,255,0.15); }
tr.drag-over { border-top: 2px solid rgba(0,123,255,1); }
tr.drag-over-below { border-bottom: 2px solid rgba(0,123,255,1); }

.save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: rgba(40,167,69,1);
    color: rgba(255,255,255,1);
    border-radius: 4px;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.save-indicator.show { opacity: 1; }
.save-indicator.error { background: rgba(220,53,69,1); }

/* ========================================
   ADMIN — Activity Log
   ======================================== */

/* Filters */
.filters {
    background: rgba(55,55,55,1);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.filters-row { display: flex; gap: 15px; flex-wrap: wrap; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 5px; }
.filter-group label { font-size: 0.875rem; font-family: 'Equity Sans Medium', sans-serif; color: rgba(255,255,255,1); text-transform: uppercase; }
.filter-group select,
.filter-group input { padding: 10px 12px; border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; font-size: 1rem; min-width: 150px; }
.filter-group input[type="date"] { min-width: 140px; }
.filter-actions { display: flex; gap: 10px; }

/* Activity Table */
.datetime { white-space: nowrap; color: rgba(255,255,255,1); }
.datetime-time { color: rgba(255,255,255,1); }
.username { font-family: 'Equity Sans Medium', sans-serif; color: rgba(255,255,255,1); }

.action-badge { display: inline-block; padding: 3px 8px; border-radius: 10px; font-size: 0.875rem; font-family: 'Equity Sans Medium', sans-serif; text-transform: uppercase; }
.action-login { background: rgba(40,167,69,0.2); color: rgba(100,220,130,1); }
.action-logout { background: rgba(220,53,69,0.2); color: rgba(255,130,140,1); }
.action-created { background: rgba(0,123,255,0.2); color: rgba(100,175,255,1); }
.action-updated { background: rgba(255,193,7,0.2); color: rgba(255,220,100,1); }
.action-deleted { background: rgba(220,53,69,0.2); color: rgba(255,130,140,1); }
.action-reassigned { background: rgba(255,255,255,0.1); color: rgba(255,255,255,1); }
.action-reordered { background: rgba(0,123,255,0.2); color: rgba(100,175,255,1); }
.action-activated { background: rgba(40,167,69,0.2); color: rgba(100,220,130,1); }
.action-deactivated { background: rgba(220,53,69,0.2); color: rgba(255,130,140,1); }

.entity-type { color: rgba(255,255,255,1); }
.entity-id { color: rgba(255,255,255,1); }
.details { max-width: 250px; line-height: 1.4; }
.ip { color: rgba(255,255,255,1); letter-spacing: 0.05em; }

/* Load More */
.load-more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(50,50,50,1);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.load-more-info { color: rgba(255,255,255,1); }
.load-more .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.load-more-done { color: rgba(255,255,255,0.5); font-size: 0.875rem; }

/* ========================================
   ADMIN — Team Members
   ======================================== */
.member-name { font-family: 'Equity Sans Medium', sans-serif; color: rgba(255,255,255,1); }
.member-name a { color: inherit; text-decoration: none; }
.member-name a:hover { color: rgba(0,123,255,1); }
.member-email { color: rgba(255,255,255,1); }
.member-email a { color: rgba(0,123,255,1); text-decoration: none; }
.member-email a:hover { text-decoration: underline; }
.position-count { color: rgba(255,255,255,1); width: 1%; white-space: nowrap; }
td.actions, th.actions { width: 1%; white-space: nowrap; }
td.actions .btn + .btn { position: relative; margin-left: 29px; }
td.actions .btn + .btn::before {
    content: '';
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.2);
    pointer-events: none;
}
.id-badge { display: inline-block; padding: 4px 10px; background: rgba(255,255,255,0.1); border-radius: 12px; font-size: 0.875rem; color: rgba(255,255,255,1); }

.page-team table { width: fit-content; margin-inline: auto; margin-top: 20px; background: rgba(55,55,55,1); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.page-team .header { margin-bottom: 10px; justify-content: center; gap: 60px; }
.page-team .member-name { padding-right: 3em; }
.page-team .id-badge { display: block; text-align: center; }
.page-team .position-count { text-align: center; }
.page-team td.actions { text-align: center; }

/* ========================================
   ADMIN — Team Member Form
   ======================================== */
.help-text { color: rgba(255,255,255,1); font-size: 0.9em; margin-top: 4px; }
.help-text code { background: rgba(255,255,255,0.1); padding: 2px 5px; border-radius: 3px; }

/* ========================================
   ADMIN — Settings
   ======================================== */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; justify-content: center; }
.settings-card { text-align: center; }

.settings-card {
    background: rgba(55,55,55,1);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.settings-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.5); transform: translateY(-2px); }
.settings-card h2 { margin: 0 0 10px; font-size: 1.125rem; color: rgba(255,255,255,1); }
.settings-card p { margin: 0; color: rgba(255,255,255,1); line-height: 1.5; text-wrap: balance; max-width: 20ch; margin-inline: auto; }
.settings-card .icon { font-size: 2rem; margin-bottom: 15px; }

/* ========================================
   ADMIN — Users
   ======================================== */
.role-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.875rem; font-family: 'Equity Sans Medium', sans-serif; }
.role-admin { background: rgba(220,53,69,0.2); color: rgba(255,130,140,1); }
.role-manager { background: rgba(0,123,255,0.2); color: rgba(100,175,255,1); }
.role-user { background: rgba(40,167,69,0.2); color: rgba(100,220,130,1); }
.status-active { color: rgba(40,167,69,1); }
.status-inactive { color: rgba(220,53,69,1); }
.current-user { font-size: 0.875rem; color: rgba(255,255,255,1); margin-left: 5px; }

.page-users table { background: rgba(55,55,55,1); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* ========================================
   ADMIN — Users Form
   ======================================== */
.checkbox-group { display: flex; align-items: center; gap: 8px; }
.checkbox-group input { width: auto; }
.checkbox-group label { margin: 0; font-weight: normal; }
.hint { color: rgba(255,255,255,1); margin-top: 4px; }

/* ========================================
   ADMIN — Position Form
   ======================================== */

/* Toggle Switch */
.toggle-group { display: flex; align-items: center; gap: 10px; }
.toggle { position: relative; width: 50px; height: 26px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 26px;
    transition: 0.3s;
}
.toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    transition: 0.3s;
}
.toggle input:checked + .toggle-slider { background: rgba(0,123,255,1); }
.toggle input:checked + .toggle-slider:before { transform: translateX(24px); }

/* Character Limits */
.char-limit { color: rgba(255,255,255,1); font-size: 0.9em; margin-top: 4px; }
.char-limit.warning { color: rgba(230,126,34,1); }
.char-limit.exceeded { color: rgba(231,76,60,1); }

/* Compensation Fields */
.comp-fields { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }

.input-with-addon { display: flex; align-items: stretch; }
.input-with-addon input { border-radius: 4px 0 0 4px; border-right: none; }
.input-with-addon .addon { padding: 12px; background: rgba(50,50,50,1); border: 1px solid rgba(255,255,255,0.15); border-radius: 0 4px 4px 0; color: rgba(255,255,255,1); font-size: 1rem; white-space: nowrap; }

.input-with-prefix { display: flex; align-items: stretch; }
.input-with-prefix input { border-radius: 0 4px 4px 0; border-left: none; }
.input-with-prefix .prefix { padding: 12px; background: rgba(50,50,50,1); border: 1px solid rgba(255,255,255,0.15); border-radius: 4px 0 0 4px; color: rgba(255,255,255,1); font-size: 1rem; }

.comp-preview { margin-top: 10px; padding: 10px 15px; background: rgba(50,50,50,1); border-radius: 4px; color: rgba(255,255,255,1); }
.comp-preview strong { color: rgba(0,123,255,1); }

/* Contact Preview */
.contact-preview {
    background: rgba(55,55,55,1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 20px 40px;
    color: rgba(255,255,255,1);
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.contact-preview a { color: rgba(0,123,255,1); text-decoration: none; }
.contact-preview a:hover { text-decoration: underline; }

/* Logo Upload */
.logo-upload-area {
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.logo-upload-area:hover { border-color: rgba(0,123,255,0.5); background: rgba(0,123,255,0.05); }
.logo-upload-area.drag-over { border-color: rgba(0,123,255,0.8); background: rgba(0,123,255,0.1); }
.logo-upload-area.has-logo { cursor: default; border-style: solid; border-color: rgba(255,255,255,0.1); }

.logo-preview-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 20px;
    transition: background 0.2s;
}
.logo-preview-container.bg-white { background: rgba(255,255,255,1); }
.logo-preview-container.bg-black { background: rgba(0,0,0,1); }
.logo-preview-container.bg-transparent { background: transparent; }

.logo-preview-container img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.logo-upload-placeholder {
    color: rgba(255,255,255,0.4);
    padding: 40px 0;
}
.logo-upload-placeholder span { display: block; font-size: 0.875rem; margin-top: 8px; color: rgba(255,255,255,0.3); }

.logo-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 12px;
}

.logo-bg-toggle {
    display: flex;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    overflow: hidden;
}
.logo-bg-toggle button {
    padding: 6px 14px;
    border: none;
    cursor: pointer;
    font-size: 0.8125rem;
    font-family: 'Equity Sans Medium', sans-serif;
    transition: background 0.15s, color 0.15s;
    background: rgba(45,45,45,1);
    color: rgba(255,255,255,0.5);
}
.logo-bg-toggle button.active {
    background: rgba(0,123,255,1);
    color: rgba(255,255,255,1);
}
.logo-bg-toggle button:first-child { border-right: 1px solid rgba(255,255,255,0.15); }

.logo-actions {
    display: flex;
    gap: 8px;
}
.logo-actions button {
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    background: rgba(45,45,45,1);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 0.8125rem;
    transition: background 0.15s, color 0.15s;
}
.logo-actions button:hover { background: rgba(55,55,55,1); color: rgba(255,255,255,1); }
.logo-actions .btn-remove { color: rgba(255,130,140,1); }
.logo-actions .btn-remove:hover { background: rgba(220,53,69,0.15); }

/* Custom Date Picker */
.date-picker-wrapper { position: relative; }
.date-picker-input {
    cursor: pointer;
    background: rgba(45,45,45,1) url("/assets/img/calendar-icon.svg") no-repeat right 12px center;
    background-size: 21px 21px;
    padding-right: 36px;
}
.date-picker-input:read-only { background-color: rgba(45,45,45,1); background-image: url("/assets/img/calendar-icon.svg"); background-size: 21px 21px; background-repeat: no-repeat; background-position: right 12px center; }

.date-picker-calendar {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: rgba(55,55,55,1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    padding: 15px;
    width: 280px;
    display: none;
}
.date-picker-calendar.active { display: block; }

.date-picker-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.date-picker-header button { background: none; border: none; cursor: pointer; padding: 5px 10px; font-size: 1.125rem; color: rgba(255,255,255,1); border-radius: 4px; }
.date-picker-header button:hover { background: rgba(255,255,255,0.1); }
.date-picker-header button:disabled { color: rgba(255,255,255,1); cursor: not-allowed; }
.date-picker-header button:disabled:hover { background: none; }
.date-picker-month-year { font-family: 'Equity Sans Semibold', sans-serif; font-size: 0.9375rem; color: rgba(255,255,255,1); }

.date-picker-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 5px; }
.date-picker-weekday { font-size: 0.875rem; font-family: 'Equity Sans Semibold', sans-serif; color: rgba(255,255,255,1); padding: 5px 0; }

.date-picker-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.date-picker-day { padding: 8px; text-align: center; cursor: pointer; border-radius: 4px; font-size: 0.875rem; color: rgba(255,255,255,1); }
.date-picker-day:hover { background: rgba(0,123,255,0.15); }
.date-picker-day.other-month { color: rgba(255,255,255,1); }
.date-picker-day.today { background: rgba(0,123,255,0.4); font-family: 'Equity Sans Semibold', sans-serif; }
.date-picker-day.selected { background: rgba(0,123,255,1); color: rgba(255,255,255,1); }
.date-picker-day.selected:hover { background: rgba(0,86,179,1); }
.date-picker-day.disabled { color: rgba(255,255,255,1); cursor: not-allowed; background: rgba(255,255,255,0.03); }
.date-picker-day.disabled:hover { background: rgba(255,255,255,0.03); }

.date-picker-footer { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; }
.date-picker-footer button { padding: 6px 12px; font-size: 0.875rem; border: none; border-radius: 4px; cursor: pointer; }
.date-picker-clear { background: rgba(50,50,50,1); color: rgba(255,255,255,1); }
.date-picker-clear:hover { background: rgba(255,255,255,0.1); }

/* ========================================
   ADMIN — Tab Panels & Filled Table
   ======================================== */
html { overflow-y: scroll; }
.panel { display: none; opacity: 0; }
.panel.active { display: block; animation: fadeIn 0.3s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


#panel-filled { background: transparent; box-shadow: none; }
.filled-table { max-width: 600px; margin: 0 auto; }
.filled-table td { text-align: center; }
.filled-table tr:nth-child(odd) { background: rgba(255,255,255,0.03); }
.filled-table tr:nth-child(even) { background: rgba(255,255,255,0.08); }

/* ========================================
   PUBLIC — Career Opportunities (Listing)
   ======================================== */
body.page-opportunities {
    font-family: 'Equity Sans Regular', sans-serif;
    background: rgba(26,26,26,1);
    color: rgba(224,224,224,1);
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.page-opportunities .container { max-width: 800px; padding: 40px 20px 120px; }

.page-opportunities h2 { font-family: 'Palatino Light', serif; font-size: 2rem; font-weight: normal; color: rgba(240,240,240,1); margin: 40px 0 30px; padding-bottom: 0; border-bottom: 1px solid rgba(74,158,255,1); display: table; letter-spacing: 1px; line-height: 1; }
.page-opportunities .filled-section h2 { margin-top: 0; }

.positions-list { list-style: none; margin: 0; padding: 0; }

.position-item { display: flex; gap: 8px; margin-bottom: 15px; }
.position-item .position-link { text-decoration: none; color: inherit; flex: 1; background: rgba(42,42,42,1); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); padding: 25px 30px; display: flex; align-items: center; }
.position-item a.position-link:hover .position-title { color: rgba(74,158,255,1); }


.page-opportunities .position-title { font-family: 'Palatino Light', serif; font-size: 2rem; font-weight: normal; color: rgba(240,240,240,1); letter-spacing: 0.5px; }
.page-opportunities .position-meta { gap: 10px; font-size: 0.875rem; color: rgba(153,153,153,1); flex-shrink: 0; padding: 25px 20px; background: rgba(42,42,42,1); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); display: flex; align-items: center; }
.page-opportunities .badge { padding: 6px 14px; font-size: 0.8125rem; font-family: 'Equity Sans Medium', sans-serif; position: relative; cursor: pointer; }
.page-opportunities .badge { transition: color 0.8s ease; }
.page-opportunities .badge:hover { color: transparent; transition: color 0.15s ease; }
.page-opportunities .badge-type::after, .page-opportunities .badge-location::after, .page-opportunities .badge-forthcoming::after { content: '?'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; font-size: 0.8125rem; font-family: 'Gibson Regular', sans-serif; transition: opacity 0.8s ease; }
.page-opportunities .badge:hover::after { opacity: 1; transition: opacity 0.15s ease; }
.page-opportunities .badge-type::after { color: rgba(109,179,248,1); }
.page-opportunities .badge-location::after { color: rgba(199,125,255,1); }
.page-opportunities .badge-type { background: rgba(26,58,92,1); color: rgba(109,179,248,1); }
.page-opportunities .badge-location { background: rgba(58,26,76,1); color: rgba(199,125,255,1); }
.page-opportunities .badge-forthcoming { background: rgba(76,58,26,1); color: rgba(235,190,100,1); }
.page-opportunities .badge-forthcoming::after { color: rgba(235,190,100,1); }

.page-opportunities .empty-state { background: rgba(42,42,42,1); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); padding: 40px; color: rgba(153,153,153,1); }

/* Badge Pop-Up */
.badge-pop { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) scale(0.9); background: rgba(17,17,17,1); color: rgba(224,224,224,1); padding: 8px 14px; border-radius: 8px; font-size: 0.95rem; font-family: 'Equity Sans Regular', sans-serif; white-space: nowrap; z-index: 10; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.badge-pop::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-bottom-color: rgba(17,17,17,1); }
.badge-pop.show { opacity: 1; transform: translateX(-50%) scale(1); pointer-events: auto; }

/* Filled Positions */
.filled-section { margin-top: 80px; }
.filled-list { list-style: none; columns: 1; margin: 0; padding: 0; }
.filled-list li { padding: 8px 0; color: rgba(255, 255, 255, 0.95); font-size: 1.05rem; letter-spacing: 0.03em; border-bottom: 1px solid rgba(51,51,51,1); }

/* ========================================
   PUBLIC — Opportunity Detail
   ======================================== */
body.page-opportunity {
    font-family: 'Equity Sans Regular', sans-serif;
    background: rgba(26,26,26,1);
    color: rgba(224,224,224,1);
    line-height: 1.41;
    font-size: 1.15rem;
    padding: 0;
}

.page-opportunity .container { max-width: 1600px; padding: 60px 40px; }

.page-opportunity sup { font-size: 0.65em; vertical-align: super; line-height: 0; }
.page-opportunity .fraction sup { font-size: 0.65em; vertical-align: 0.4em; }
.page-opportunity .fraction sub { font-size: 0.65em; vertical-align: -0.1em; }

.page-opportunity .back-link { font-family: 'Palatino Light', serif; color: rgba(74,158,255,1); font-size: 1.1rem; margin-bottom: 20px; }

.page-opportunity .position-header { background: rgba(42,42,42,1); padding: 50px 60px; border-radius: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); margin-bottom: 20px; }

.position-logo-wrap {
    width: 100%;
    padding: 30px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.position-logo-wrap.bg-white { background: rgba(255,255,255,1); }
.position-logo-wrap.bg-black { background: rgba(0,0,0,1); }
.position-logo-wrap.bg-transparent { background: transparent; }
.position-logo-wrap img { max-width: 100%; max-height: 300px; object-fit: contain; }

.page-opportunity .cascade-section { visibility: hidden; }

.page-opportunity .position-title { font-family: 'Palatino Light', serif; font-size: 3.75rem; margin: 0 0 20px; color: rgba(240,240,240,1); line-height: 1.25; text-align: center; font-weight: normal; letter-spacing: 1px; font-kerning: none; }
.page-opportunity .position-meta { gap: 15px; color: rgba(153,153,153,1); font-size: 1.1rem; justify-content: center; }
.page-opportunity .badge { padding: 6px 16px; font-size: 1rem; font-family: 'Equity Sans Medium', sans-serif; position: relative; cursor: pointer; transition: color 0.8s ease; }
.page-opportunity .badge:hover { color: transparent; transition: color 0.15s ease; }
.page-opportunity .badge-type::after, .page-opportunity .badge-location::after { content: '?'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; font-size: 1rem; font-family: 'Gibson Regular', sans-serif; transition: opacity 0.8s ease; }
.page-opportunity .badge:hover::after { opacity: 1; transition: opacity 0.15s ease; }
.page-opportunity .badge-type::after { color: rgba(109,179,248,1); }
.page-opportunity .badge-location::after { color: rgba(199,125,255,1); }
.page-opportunity .badge-type { background: rgba(26,58,92,1); color: rgba(109,179,248,1); }
.page-opportunity .badge-location { background: rgba(58,26,76,1); color: rgba(199,125,255,1); }

.compensation { font-family: 'Palatino Light', serif; font-size: 1.5rem; color: rgba(218,218,218,1); margin-top: 20px; text-align: center; }
.posting-dates { font-size: 1.1rem; color: rgba(153,153,153,1); margin-top: 10px; text-align: center; }

.position-section { background: rgba(42,42,42,1); padding: 40px 60px; border-radius: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); margin-bottom: 20px; }
.position-section h2 { font-family: 'Palatino Light', serif; font-size: 2rem; font-weight: normal; color: rgba(240,240,240,1); border-bottom: 1px solid rgba(74,158,255,1); padding-bottom: 0; line-height: 1; margin: 0 auto 25px; display: table; letter-spacing: 1px; }
.position-section-content { font-family: 'Equity Sans Regular', sans-serif; color: rgba(240,240,240,1); max-width: 70ch; margin: 0 auto; letter-spacing: 0.025em; }
.position-section-content p { margin: 0 0 20px; }
.position-section-content ul { margin: 0; padding-left: 20px; list-style: none; }
.position-section-content li { margin-bottom: 28px; padding-left: 4px; line-height: 1.25; }
.position-section-content li::before { content: '\25B8'; color: rgba(74,158,255,1); margin-right: 8px; margin-left: -18px; }

.position-footer { font-family: 'Equity Sans Regular', sans-serif; background: rgba(42,42,42,1); padding: 30px 60px; border-radius: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); color: rgba(204,204,204,1); font-size: 1.35rem; line-height: 1.6; text-align: center; }
.position-footer a { font-family: 'Palatino Light', serif; color: rgba(74,158,255,1); display: inline-block; padding: 4px 0; }
.position-footer a + br + a { margin-top: 6px; }
.position-footer .footer-name { font-family: 'Palatino Pro', serif; font-size: 1.8rem; color: rgba(240,240,240,1); display: block; margin-top: 8px; margin-bottom: 2px; }
.position-footer .footer-business { font-family: 'Palatino Pro', serif; font-size: 1.65rem; display: block; margin-top: 22px; margin-bottom: 4px; }
.position-footer .footer-address { font-family: 'Palatino Light', serif; display: block; }

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 600px) {
}

@media (max-width: 600px) {
    .page-opportunities .position-item { padding: 20px; }
    .page-opportunities h2 { font-size: 1.5rem; }

    .page-opportunity .position-header,
    .position-section { padding: 25px 20px; }
    .page-opportunity .position-title { font-size: 1.5rem; }

    .team-member { flex-direction: column; align-items: center; text-align: center; }
}
