/**
 * HWY 35 Investor Portal - Frontend Styles
 * Modern professional dashboard layout
 */

:root {
    --hwy35-ink: #0f172a;
    --hwy35-ink-soft: #334155;
    --hwy35-muted: #64748b;
    --hwy35-border: #e2e8f0;
    --hwy35-bg: #f5f7fb;
    --hwy35-surface: #ffffff;
    --hwy35-surface-alt: #f1f5f9;
    --hwy35-sidebar: #0f172a;
    --hwy35-sidebar-soft: #111c33;
    --hwy35-accent: #136f54;
    --hwy35-accent-2: #0d9488;
    --hwy35-accent-soft: #e6f4ef;
    --hwy35-warning: #f59e0b;
    --hwy35-urgent: #ef4444;
    --hwy35-radius: 16px;
    --hwy35-radius-sm: 10px;
    --hwy35-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* ─── Base ─────────────────────────────────────── */
.hwy35-ip-portal {
    width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--hwy35-bg);
    color: var(--hwy35-ink);
    font-family: 'IBM Plex Sans', 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

body.hwy35-ip-blank {
    margin: 0;
    background: var(--hwy35-bg);
}

body.hwy35-ip-no-scroll {
    overflow: hidden;
}

.hwy35-ip-portal *,
.hwy35-ip-portal *::before,
.hwy35-ip-portal *::after {
    box-sizing: border-box;
}

.hwy35-ip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 35;
}

.hwy35-ip-portal.is-left-open .hwy35-ip-overlay,
.hwy35-ip-portal.is-right-open .hwy35-ip-overlay {
    opacity: 1;
    pointer-events: auto;
}

.hwy35-ip-mobile-only {
    display: none;
}

.hwy35-ip-shell {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 100vh;
    background: var(--hwy35-bg);
}

/* ─── Sidebar ─────────────────────────────────── */
.hwy35-ip-sidebar {
    background: linear-gradient(180deg, var(--hwy35-sidebar), #0b1224 60%, #0b1220 100%);
    color: #e2e8f0;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hwy35-ip-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hwy35-ip-brand-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hwy35-ip-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hwy35-ip-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.hwy35-ip-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hwy35-ip-brand-title {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: 0.2px;
}

.hwy35-ip-brand-subtitle {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.7);
}

.hwy35-ip-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hwy35-ip-nav-item {
    text-decoration: none;
    color: rgba(226, 232, 240, 0.8);
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.hwy35-ip-nav-item:hover,
.hwy35-ip-nav-item.active {
    background: rgba(19, 111, 84, 0.2);
    color: #ffffff;
}

.hwy35-ip-nav-dot {
    display: none;
}

.hwy35-ip-nav-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hwy35-ip-nav-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.6;
}

.hwy35-ip-nav-label {
    flex: 1;
}


.hwy35-ip-sidebar-footer {
    margin-top: auto;
    background: rgba(255,255,255,0.05);
    padding: 16px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hwy35-ip-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hwy35-ip-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(19, 111, 84, 0.35);
    color: #e2f7f0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.hwy35-ip-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hwy35-ip-user-name {
    font-size: 14px;
    color: #f8fafc;
    font-weight: 600;
}

.hwy35-ip-user-role {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.7);
}

/* ─── Main Layout ─────────────────────────────── */
.hwy35-ip-main {
    padding: 26px 28px 60px;
}

.hwy35-ip-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* gap: 20px; */
    margin-bottom: 28px;
}

.hwy35-ip-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hwy35-ip-topbar-brand {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 14px;
    border: 1px solid var(--hwy35-border);
    background: var(--hwy35-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.hwy35-ip-topbar-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--hwy35-surface-alt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--hwy35-ink);
    font-size: 16px;
}

.hwy35-ip-topbar-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.hwy35-ip-topbar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hwy35-ip-topbar-brand-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--hwy35-ink);
}

.hwy35-ip-topbar-brand-subtitle {
    font-size: 11px;
    color: var(--hwy35-muted);
}

.hwy35-ip-topbar-welcome {
    flex: 1;
    min-width: 0;
}

.hwy35-ip-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.hwy35-ip-desktop-only {
    display: flex;
}

.hwy35-ip-topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    border: 1px solid var(--hwy35-border);
    background: var(--hwy35-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.hwy35-ip-topbar-user-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 8px;
    border-right: 1px solid var(--hwy35-border);
}

.hwy35-ip-topbar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--hwy35-surface-alt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--hwy35-ink);
}

.hwy35-ip-topbar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--hwy35-ink);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hwy35-ip-topbar-user-action {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.hwy35-ip-topbar-user-action svg {
    width: 16px;
    height: 16px;
}

.hwy35-ip-topbar h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    color: var(--hwy35-ink);
}

.hwy35-ip-topbar p {
    margin: 0;
    color: var(--hwy35-muted);
    font-size: 14px;
}

.hwy35-ip-search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.hwy35-ip-search-form .hwy35-ip-btn,
.hwy35-ip-search-form .hwy35-ip-btn-ghost {
    height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
}

.hwy35-ip-search-pill {
    display: flex;
    align-items: center;
    background: var(--hwy35-surface);
    border: 1.5px solid var(--hwy35-border);
    border-radius: 999px;
    padding: 0 8px 0 18px;
    gap: 10px;
    height: 40px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hwy35-ip-search-pill:focus-within {
    border-color: var(--hwy35-accent);
    box-shadow: 0 0 0 3px rgba(19, 111, 84, 0.12);
}

.hwy35-ip-search-pill .hwy35-ip-input-icon {
    position: static;
    color: var(--hwy35-muted);
}

.hwy35-ip-search-pill:focus-within .hwy35-ip-input-icon {
    color: var(--hwy35-accent);
}

.hwy35-ip-search-pill .hwy35-ip-search-input {
    flex: 1;
    min-width: 180px;
    background: transparent;
    border: none;
    padding: 10px 0;
    height: auto;
    box-shadow: none;
    border-radius: 0;
}

.hwy35-ip-search-pill .hwy35-ip-search-input:focus {
    border-color: transparent;
    box-shadow: none;
}

.hwy35-ip-search-pill kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    color: var(--hwy35-muted);
    background: var(--hwy35-bg);
    border: 1px solid var(--hwy35-border);
    border-radius: 6px;
    padding: 2px 7px;
    white-space: nowrap;
}

.hwy35-ip-input-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 40px;
}

.hwy35-ip-input-icon {
    position: absolute;
    left: 16px;
    color: var(--hwy35-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.hwy35-ip-input-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
}

.hwy35-ip-search-input {
    min-width: 260px;
    padding: 10px 14px 10px 56px;
    border-radius: 12px;
    border: 1px solid var(--hwy35-border);
    background: var(--hwy35-surface);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    height: 40px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}


.hwy35-ip-search-form .hwy35-ip-btn.hwy35-ip-btn-sm,
.hwy35-ip-search-form .hwy35-ip-btn-ghost.hwy35-ip-btn-sm {
    height: 40px;
    border-radius: 50px;
}

.hwy35-ip-search-input:focus {
    border-color: var(--hwy35-accent);
    box-shadow: 0 0 0 4px rgba(19, 111, 84, 0.12);
}

.hwy35-ip-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
}

/* ─── Buttons ─────────────────────────────────── */
.hwy35-ip-btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    background: var(--hwy35-accent);
    color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.hwy35-ip-btn:visited,
.hwy35-ip-btn:active,
.hwy35-ip-btn:focus {
    color: #ffffff;
}

.hwy35-ip-btn:hover {
    background: #0f5f47;
    color: #ffffff;
    transform: translateY(-1px);
}

.hwy35-ip-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: #e2e8f0;
}

.hwy35-ip-btn-outline:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

.hwy35-ip-btn-ghost {
    background: transparent;
    color: var(--hwy35-muted);
    border: 1px solid var(--hwy35-border);
}

.hwy35-ip-btn-ghost:hover {
    color: var(--hwy35-ink);
    border-color: var(--hwy35-accent);
}

.hwy35-ip-btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    height: 36px;
}

.hwy35-ip-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--hwy35-border);
    background: var(--hwy35-surface);
    color: var(--hwy35-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hwy35-ip-icon-btn.hwy35-ip-mobile-only {
    display: none;
}

.hwy35-ip-icon-btn:hover {
    border-color: rgba(19, 111, 84, 0.35);
    color: var(--hwy35-accent);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.hwy35-ip-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

/* ─── Tabs ────────────────────────────────────── */
.hwy35-ip-category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hwy35-ip-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
    color: var(--hwy35-muted);
    background: var(--hwy35-surface);
    border: 1px solid var(--hwy35-border);
    transition: all 0.2s ease;
}

.hwy35-ip-tab:hover,
.hwy35-ip-tab.active {
    color: var(--hwy35-accent);
    border-color: rgba(19, 111, 84, 0.35);
    background: var(--hwy35-accent-soft);
}

.hwy35-ip-tab-count {
    background: rgba(15, 118, 110, 0.12);
    color: var(--hwy35-accent-2);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

/* ─── Cards ───────────────────────────────────── */
.hwy35-ip-card {
    background: var(--hwy35-surface);
    border: 1px solid var(--hwy35-border);
    border-radius: var(--hwy35-radius);
    box-shadow: var(--hwy35-shadow);
    padding: 18px;
}

.hwy35-ip-card + .hwy35-ip-card {
    margin-top: 16px;
}

.hwy35-ip-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--hwy35-ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hwy35-ip-section-title i {
    color: var(--hwy35-muted);
}

.hwy35-ip-section-title span {
    color: var(--hwy35-muted);
    font-weight: 500;
    font-size: 13px;
    margin-left: 6px;
}

/* ─── Update Detail ───────────────────────────── */
.hwy35-ip-update-detail {
    margin-top: 16px;
    padding: 16px;
    background: var(--hwy35-surface-alt);
    border: 1px solid var(--hwy35-border);
    border-radius: var(--hwy35-radius-sm);
}

.hwy35-ip-update-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--hwy35-muted);
    margin-bottom: 12px;
}

.hwy35-ip-update-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hwy35-ip-update-meta i,
.hwy35-ip-card-date i,
.hwy35-ip-card-docs i,
.hwy35-ip-quick-stat i {
    margin-right: 6px;
    width: 14px;
    height: 14px;
    stroke-width: 1.8;
}

.hwy35-ip-update-content {
    color: var(--hwy35-ink-soft);
    font-size: 14px;
    line-height: 1.6;
}

.hwy35-ip-update-content p {
    margin: 0 0 12px;
}

.hwy35-ip-detail-thumb {
    margin-bottom: 12px;
}

.hwy35-ip-detail-thumbnail {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.hwy35-ip-detail-documents {
    margin-top: 16px;
}

.hwy35-ip-detail-documents h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--hwy35-ink);
}

/* ─── Documents Section ───────────────────────── */
.hwy35-ip-documents {
    margin-top: 28px;
}

.hwy35-ip-documents-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hwy35-ip-documents-card {
    background: var(--hwy35-surface);
    border: 1px solid var(--hwy35-border);
    border-radius: var(--hwy35-radius);
    padding: 16px;
    box-shadow: var(--hwy35-shadow);
}

.hwy35-ip-documents-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hwy35-ip-documents-title {
    font-weight: 700;
    color: var(--hwy35-ink);
}

.hwy35-ip-documents-date {
    font-size: 12px;
    color: var(--hwy35-muted);
}

.hwy35-ip-documents-items {
    display: grid;
    gap: 10px;
}

/* ─── Settings Section ────────────────────────── */
.hwy35-ip-settings {
    margin-top: 28px;
}

.hwy35-ip-settings-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--hwy35-ink);
}

.hwy35-ip-settings-card p {
    margin: 0 0 16px;
    color: var(--hwy35-muted);
    font-size: 14px;
}

.hwy35-ip-settings-form {
    display: grid;
    gap: 12px;
}

.hwy35-ip-pill-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hwy35-ip-field.hwy35-ip-pill-field input {
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--hwy35-border);
    background: var(--hwy35-surface);
    font-size: 14px;
    color: var(--hwy35-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.hwy35-ip-field.hwy35-ip-pill-field input::placeholder {
    color: var(--hwy35-muted);
}

.hwy35-ip-field.hwy35-ip-pill-field input:focus {
    outline: none;
    border-color: var(--hwy35-border);
    box-shadow: 0 0 0 3px rgba(19, 111, 84, 0.12);
}

.hwy35-ip-settings-form .hwy35-ip-btn {
    align-self: start;
    justify-self: start;
    height: 40px;
}

.hwy35-ip-field label {
    display: block;
    font-size: 12px;
    color: var(--hwy35-muted);
    margin-bottom: 6px;
}

.hwy35-ip-field input:not(.hwy35-ip-pill-input) {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--hwy35-border);
    background: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    height: 40px;
}

.hwy35-ip-field input:focus {
    outline: none;
    border-color: var(--hwy35-accent);
    box-shadow: 0 0 0 4px rgba(19, 111, 84, 0.12);
}

.hwy35-ip-form-message {
    margin-top: 10px;
}

/* ─── Update Cards ─────────────────────────────── */
.hwy35-ip-date-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 14px;
    color: var(--hwy35-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hwy35-ip-date-divider::before,
.hwy35-ip-date-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hwy35-border);
}

.hwy35-ip-date-divider span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--hwy35-border);
    background: var(--hwy35-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    color: var(--hwy35-ink-soft);
}

.hwy35-ip-update-card {
    background: var(--hwy35-surface);
    border: 1px solid var(--hwy35-border);
    border-radius: var(--hwy35-radius);
    padding: 20px 22px;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.hwy35-ip-update-card:hover {
    border-color: rgba(19, 111, 84, 0.35);
    box-shadow: var(--hwy35-shadow);
}

.hwy35-ip-update-card.pinned {
    border-left: 4px solid var(--hwy35-accent);
}

.hwy35-ip-update-card.priority-urgent {
    border-left: 4px solid var(--hwy35-urgent);
}

.hwy35-ip-update-card.priority-important {
    border-left: 4px solid var(--hwy35-warning);
}

.hwy35-ip-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hwy35-ip-card-date {
    font-size: 12px;
    color: var(--hwy35-muted);
    display: inline-flex;
    align-items: center;
}

.hwy35-ip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

.hwy35-ip-badge i {
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

.hwy35-ip-badge-urgent {
    background: rgba(239, 68, 68, 0.1);
    color: var(--hwy35-urgent);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.hwy35-ip-badge-important {
    background: rgba(245, 158, 11, 0.12);
    color: var(--hwy35-warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.hwy35-ip-badge-cat {
    background: rgba(15, 118, 110, 0.12);
    color: var(--hwy35-accent-2);
    border: 1px solid rgba(15, 118, 110, 0.2);
}

.hwy35-ip-card-title {
    margin: 12px 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.hwy35-ip-card-title a {
    color: var(--hwy35-ink);
    text-decoration: none;
}

.hwy35-ip-card-title a:hover {
    color: var(--hwy35-accent);
}

.hwy35-ip-card-excerpt {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--hwy35-muted);
    line-height: 1.6;
}

.hwy35-ip-card-thumbnail {
    margin: 12px 0;
    border-radius: var(--hwy35-radius-sm);
    overflow: hidden;
}

.hwy35-ip-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--hwy35-border);
}

.hwy35-ip-card-docs {
    font-size: 12px;
    color: var(--hwy35-muted);
    display: inline-flex;
    align-items: center;
}

/* ─── Right Rail ──────────────────────────────── */
.hwy35-ip-rail {
    display: block;
}

.hwy35-ip-rail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--hwy35-muted);
    margin-bottom: 12px;
}

.hwy35-ip-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.hwy35-ip-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hwy35-accent-soft);
    color: var(--hwy35-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hwy35-ip-profile-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.hwy35-ip-profile-role {
    font-size: 13px;
    color: var(--hwy35-muted);
    margin: 0;
}

.hwy35-ip-quick-stats {
    display: grid;
    gap: 12px;
}

.hwy35-ip-quick-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--hwy35-surface-alt);
    font-size: 13px;
    color: var(--hwy35-ink-soft);
}

.hwy35-ip-quick-stat i {
    color: var(--hwy35-muted);
}

.hwy35-ip-quick-stat span {
    font-weight: 700;
    color: var(--hwy35-ink);
}

.hwy35-ip-activity {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.hwy35-ip-activity li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--hwy35-muted);
}

.hwy35-ip-activity strong {
    color: var(--hwy35-ink);
    font-weight: 600;
}

/* ─── Pinned Section ───────────────────────────── */
.hwy35-ip-pinned-section {
    margin: 18px 0 24px;
}

.hwy35-ip-pinned-grid {
    display: grid;
    gap: 16px;
}

/* ─── Modal / Detail View ──────────────────────── */
.hwy35-ip-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.hwy35-ip-modal {
    background: var(--hwy35-surface);
    border: 1px solid var(--hwy35-border);
    border-radius: 18px;
    max-width: 820px;
    width: 100%;
    padding: 32px;
    position: relative;
    animation: hwy35-slide-up 0.3s ease;
    color: var(--hwy35-ink);
}

@keyframes hwy35-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hwy35-ip-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none;
    border: none;
    color: var(--hwy35-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

.hwy35-ip-modal-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.hwy35-ip-modal-date {
    font-size: 13px;
    color: var(--hwy35-muted);
}

.hwy35-ip-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--hwy35-ink);
    line-height: 1.3;
}

.hwy35-ip-modal-thumbnail {
    width: 100%;
    border-radius: var(--hwy35-radius);
    margin-bottom: 20px;
}

.hwy35-ip-modal-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--hwy35-ink-soft);
}

.hwy35-ip-modal-content p { margin: 0 0 15px; }
.hwy35-ip-modal-content h2,
.hwy35-ip-modal-content h3,
.hwy35-ip-modal-content h4 {
    color: var(--hwy35-ink);
    margin: 25px 0 10px;
}
.hwy35-ip-modal-content ul,
.hwy35-ip-modal-content ol {
    padding-left: 25px;
    margin-bottom: 15px;
}
.hwy35-ip-modal-content img {
    max-width: 100%;
    border-radius: var(--hwy35-radius-sm);
}

.hwy35-ip-modal-documents {
    margin-top: 25px;
    padding: 20px;
    background: var(--hwy35-surface-alt);
    border: 1px solid var(--hwy35-border);
    border-radius: var(--hwy35-radius);
}

.hwy35-ip-modal-documents h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--hwy35-accent);
}

.hwy35-ip-doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: #ffffff;
    border-radius: var(--hwy35-radius-sm);
    border: 1px solid var(--hwy35-border);
}

.hwy35-ip-doc-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hwy35-muted);
}

.hwy35-ip-doc-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.6;
}

.hwy35-ip-doc-item a:not(.hwy35-ip-doc-download) {
    color: var(--hwy35-ink);
    text-decoration: none;
    flex: 1;
    font-size: 14px;
}

.hwy35-ip-doc-item a:hover {
    color: #ffffff;
}

.hwy35-ip-doc-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--hwy35-accent);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--hwy35-accent);
    border-radius: 999px;
    white-space: nowrap;
    margin-left: auto;
}

.hwy35-ip-doc-download:hover {
    background: var(--hwy35-muted);
    color: var(--hwy35-accent);
}

/* ─── Empty / Pagination / Notices ────────────── */
.hwy35-ip-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--hwy35-muted);
}

.hwy35-ip-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.hwy35-ip-empty-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.4;
}

.hwy35-ip-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.hwy35-ip-pagination a,
.hwy35-ip-pagination span {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
}

.hwy35-ip-pagination a {
    background: var(--hwy35-surface);
    color: var(--hwy35-muted);
    border: 1px solid var(--hwy35-border);
}

.hwy35-ip-pagination a:hover {
    border-color: var(--hwy35-accent);
    color: var(--hwy35-accent);
}

.hwy35-ip-pagination .current {
    background: var(--hwy35-accent);
    color: #fff;
    border: 1px solid var(--hwy35-accent);
}

.hwy35-ip-notice {
    padding: 12px 18px;
    border-radius: var(--hwy35-radius-sm);
    margin-bottom: 15px;
    font-size: 14px;
}

.hwy35-ip-notice-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--hwy35-urgent);
}

.hwy35-ip-notice-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #0f766e;
}

/* ─── Login Page ───────────────────────────────── */
.hwy35-ip-login-wrapper {
    min-height: 100vh;
    background: transparent;
    padding: 50px 20px;
    font-family: 'IBM Plex Sans', 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: #1c2433;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hwy35-ip-login-page {
    background-color: hsl(220, 20%, 97%);
    background-image:
        radial-gradient(900px 520px at 15% 10%, hsla(222, 47%, 11%, 0.08), transparent 60%),
        radial-gradient(700px 480px at 85% 0%, hsla(220, 60%, 20%, 0.10), transparent 65%),
        radial-gradient(520px 420px at 80% 90%, hsla(210, 60%, 45%, 0.10), transparent 60%);
    background-attachment: fixed;
}

.hwy35-ip-login-page .site,
.hwy35-ip-login-page .site-content,
.hwy35-ip-login-page .content-area,
.hwy35-ip-login-page .entry-content {
    max-width: none;
    width: 100%;
    background: transparent;
    margin: 0;
    padding: 0;
}

.hwy35-ip-login-wrapper::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 95vw;
    border-bottom: 1px solid #e2e8f0;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

.hwy35-ip-login-shell {
    position: relative;
    z-index: 2;
}

.hwy35-ip-login-shell {
    max-width: 450px;
    margin: 0 auto;
}

.hwy35-ip-login-brand {
    text-align: center;
    margin-bottom: 40px;
}

.hwy35-ip-login-brand-mark {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hwy35-ip-login-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 18px;
}

.hwy35-ip-login-brand-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1c2433;
}

.hwy35-ip-login-brand-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 0;
}

.hwy35-ip-login-brand-meta {
    display: none;
}

.hwy35-ip-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.hwy35-ip-login-form {
    margin-top: 6px;
}

.hwy35-ip-form-group {
    margin-bottom: 20px;
}

.hwy35-ip-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.hwy35-ip-form-group input[type="text"],
.hwy35-ip-form-group input[type="password"],
.hwy35-ip-form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #1c2433;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hwy35-ip-form-group input:focus {
    border-color: #136f54;
    box-shadow: 0 0 0 3px rgba(19, 111, 84, 0.12);
    background: #ffffff;
}

.hwy35-ip-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.hwy35-ip-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

.hwy35-ip-forgot-link,
.hwy35-ip-back-link {
    font-size: 14px;
    color: #136f54;
    text-decoration: none;
    font-weight: 600;
}

.hwy35-ip-forgot-link:hover,
.hwy35-ip-back-link:hover {
    text-decoration: underline;
}

.hwy35-ip-btn.hwy35-ip-btn-full {
    background: #136f54;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(19, 111, 84, 0.2);
    transition: all 0.2s;
}

.hwy35-ip-btn.hwy35-ip-btn-full:hover {
    background: #0f5f47;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19, 111, 84, 0.25);
}

.hwy35-ip-login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.hwy35-ip-login-footer a {
    color: #136f54;
    text-decoration: none;
    font-weight: 600;
}

.hwy35-ip-login-footer a:hover {
    text-decoration: underline;
}

/* ─── Loading ─────────────────────────────────── */
.hwy35-ip-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.hwy35-ip-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--hwy35-border);
    border-top-color: var(--hwy35-accent);
    border-radius: 50%;
    animation: hwy35-spin 0.8s linear infinite;
}

@keyframes hwy35-spin {
    to { transform: rotate(360deg); }
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 1100px) {
    .hwy35-ip-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hwy35-ip-desktop-only {
        display: none;
    }

    .hwy35-ip-shell {
        grid-template-columns: 1fr;
    }

    .hwy35-ip-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        z-index: 40;
        padding: 22px;
    }

    .hwy35-ip-nav {
        flex-direction: column;
    }

    .hwy35-ip-sidebar-footer {
        display: flex;
    }

    .hwy35-ip-main {
        padding: 24px;
    }

    .hwy35-ip-rail {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 290px;
        transform: translateX(105%);
        transition: transform 0.25s ease;
        z-index: 40;
        background: var(--hwy35-bg);
        padding: 18px;
        overflow-y: auto;
        display: none;
    }

    .hwy35-ip-portal.is-left-open .hwy35-ip-sidebar {
        transform: translateX(0);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    }

    .hwy35-ip-portal.is-right-open .hwy35-ip-rail {
        display: block;
        transform: translateX(0);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    }

    .hwy35-ip-mobile-only {
        display: inline-flex;
    }

    .hwy35-ip-icon-btn.hwy35-ip-mobile-only {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .hwy35-ip-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hwy35-ip-topbar-left {
        width: 100%;
        justify-content: space-between;
    }

    .hwy35-ip-topbar-brand {
        display: flex;
        flex: 1;
    }

    .hwy35-ip-topbar-welcome {
        width: 100%;
    }

    .hwy35-ip-topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .hwy35-ip-search-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .hwy35-ip-search-pill {
        flex: 1;
        width: 100%;
    }

    .hwy35-ip-search-pill .hwy35-ip-search-input {
        min-width: 0;
        width: 100%;
    }

    .hwy35-ip-search-input {
        min-width: 0;
        width: 100%;
    }

    .hwy35-ip-search-form .hwy35-ip-btn,
    .hwy35-ip-search-form .hwy35-ip-btn-ghost {
        height: 40px;
    }

    .hwy35-ip-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hwy35-ip-login-card {
        padding: 25px;
    }
}

@media (max-width: 520px) {
    .hwy35-ip-portal {
        margin-left: 0;
        margin-right: 0;
    }

    .hwy35-ip-sidebar {
        padding: 18px;
    }

    .hwy35-ip-search-pill kbd {
        display: none;
    }

    .hwy35-ip-nav-item {
        padding: 8px 10px;
        font-size: 12px;
    }
}
