/* static/css/project.css
   Project Hub — project list & detail pages.
   Built on top of common.css design tokens.
   Visual language mirrors event.css (Event Hub) on purpose, so the two
   modules feel like one product: same hero, chips, cards, pagination.
------------------------------------------------------------------ */

/* ============================================================
   SHARED — page container & focus states (used by both templates)
============================================================ */
.pr-page {
    width: 95%;
    margin: 0 auto;
    padding: var(--gap-smm) var(--gap-smmm);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.pr-page a:focus-visible,
.pr-page button:focus-visible,
.pr-detail-page a:focus-visible,
.pr-detail-page button:focus-visible,
.pr-select-wrap select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ================================================================
   ================================================================
   project_list.html
   ================================================================
   ================================================================ */

/* ============================================================
   project_list.html — BREADCRUMB
============================================================ */
.pr-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-2xl);
    color: var(--ink-900);
    position: absolute;
    top: 30px;
    right: 40px;
}

.pr-breadcrumb a {
    color: var(--ink-900);
    text-decoration: none;
}

.pr-breadcrumb .current {
    color: var(--ink-900);
    font-weight: 600;
}

/* ============================================================
   project_list.html — HERO (mirrors eh-hero exactly)
============================================================ */
.pr-hero {
    position: relative;
    overflow: hidden;
    padding: var(--gap-smmm) var(--gap-2xl);
    width: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
}

.pr-hero-glow-1 {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    background: var(--primary);
    top: -120px;
    inset-inline-end: -80px;
    pointer-events: none;
}

.pr-hero-glow-2 {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .30;
    background: var(--accent);
    bottom: -140px;
    inset-inline-start: -60px;
    pointer-events: none;
}

.pr-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gap-xl);
    width: 100%;
}

.pr-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 14px;
    border-radius: 999px;
    background: #46464629;
    color: var(--ink-900);
    font-size: var(--text-lg);
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.pr-hero-content h1 {
    color: var(--ink-900);
    font-size: var(--text-7xl);
    font-weight: 800;
    line-height: 1.35;
}

.pr-hero-content p {
    color: var(--ink-600);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.9;
    margin-bottom: var(--gap-sm);
}

.pr-search-wrap {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    background: var(--card);
    border-radius: 999px;
    padding: 4px 10px 4px 5px;
    box-shadow: var(--shadow-elevated);
    margin: 0 auto;
    width: 70%;
}

.pr-hero-content-heder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gap-lg);
}

.pr-hero-content-eyebrow {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gap-smmm);
    width: 100%;
}

.pr-search-icon {
    color: var(--ink-400);
    flex-shrink: 0;
}

.pr-search-wrap input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: var(--text-xl);
    color: var(--ink-900);
    padding: 8px 4px;
}

.pr-search-wrap input[type="text"]::placeholder {
    color: var(--ink-400);
}

.pr-search-wrap button {
    border: none;
    cursor: pointer;
    padding: 9px 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: var(--text-lg);
    transition: filter var(--transition), transform var(--transition);
}

.pr-search-wrap button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.pr-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

/* ============================================================
   project_list.html — TOOLBAR (category chips + status/collab selects)
============================================================ */
.pr-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--gap-md);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-smmm) var(--gap-sm);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    position: relative;
    z-index: 20;
}

.pr-toolbar-sticky {
    position: sticky;
    top: 8px;
}

.pr-toolbar-cats-wrap {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    flex: 1;
    min-width: 0;
}

.pr-toolbar-cats {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    overflow-x: auto;
    scrollbar-width: none;
}

.pr-toolbar-cats::-webkit-scrollbar {
    display: none;
}

.pr-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--ink-600);
    background: var(--card-soft);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
}

.pr-chip:hover {
    color: var(--primary);
    background: var(--purple-soft);
}

.pr-chip.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(47, 92, 245, .25);
}

.pr-toolbar-filters {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.pr-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
}

.pr-select-wrap label {
    font-size: var(--text-lg);
    color: var(--ink-600);
    font-weight: 500;
    white-space: nowrap;
}

.pr-select-wrap select {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--card-soft);
    color: var(--ink-900);
    font-weight: 500;
    font-size: var(--text-lg);
    border-radius: var(--radius-sm);
    padding: 8px 32px 8px 14px;
    cursor: pointer;
    transition: border-color var(--transition);
}

.pr-select-wrap select:hover,
.pr-select-wrap select:focus {
    border-color: var(--primary);
    outline: none;
}

.pr-select-wrap svg {
    position: absolute;
    inset-inline-start: 10px;
    color: var(--ink-400);
    pointer-events: none;
}

/* ============================================================
   project_list.html — ACTIVE FILTERS
============================================================ */
.pr-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--purple-soft);
    border: 1px solid rgba(47, 92, 245, .18);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    margin: var(--gap-xs) 0;
    font-size: var(--text-base);
}

.pr-active-filters-label {
    color: var(--ink-600);
    font-weight: 600;
}

.pr-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    color: var(--ink-900);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: 500;
}

.pr-filter-pill a {
    color: var(--ink-400);
    text-decoration: none;
    font-weight: 700;
}

.pr-filter-pill a:hover {
    color: var(--red);
}

.pr-clear-all {
    margin-inline-start: auto;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.pr-clear-all:hover {
    text-decoration: underline;
}

/* ============================================================
   project_list.html — CONTENT HEAD
============================================================ */
.pr-content-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: var(--gap-md) 0 var(--gap-sm);
    flex-wrap: wrap;
    gap: var(--gap-xs);
}

.pr-content-head h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--ink-900);
}

.pr-result-count {
    font-size: var(--text-lg);
    color: var(--ink-600);
    background: var(--card-soft);
    padding: 4px 12px;
    border-radius: 999px;
}

/* ============================================================
   project_list.html — GRID / CARD
============================================================ */
.pr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap-sm);
}

.pr-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: box-shadow .15s ease, transform .15s ease;
    overflow: hidden;
}

.pr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.pr-card-a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pr-card-top {
    padding: var(--gap-smmm) var(--gap-smmm) 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pr-card-body {
    padding: var(--gap-smmmm) var(--gap-smmm) 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pr-card-title {
    font-weight: 700;
    font-size: var(--text-2xl);
    color: var(--ink-900);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pr-card-desc {
    font-size: var(--text-lg);
    color: var(--ink-600);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pr-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.pr-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-base);
    color: var(--ink-600);
}

.pr-meta-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.pr-meta-collab svg {
    color: var(--green);
}

.pr-card-keywords {
    font-size: var(--text-base);
    color: var(--ink-400);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pr-card-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: var(--gap-smmmm) var(--gap-smmm);
    margin: var(--gap-smmmm) var(--gap-smmm) 0;
    background: var(--card-soft);
    border-radius: var(--radius-sm);
}

.pr-stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pr-stat-mini b {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--ink-900);
}

.pr-stat-mini span {
    font-size: var(--text-sm);
    color: var(--ink-600);
}

.pr-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-xs);
    padding: var(--gap-smmm);
    border-top: 1px solid var(--rule);
    margin-top: var(--gap-smmm);
}

.pr-footer-note {
    font-size: var(--text-base);
    color: var(--ink-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pr-footer-note b {
    color: var(--green);
    font-weight: 700;
}

.pr-btn-view {
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: var(--text-lg);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: filter var(--transition), transform var(--transition);
    flex-shrink: 0;
}

.pr-btn-view:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

/* ============================================================
   project_list.html — EMPTY STATE
============================================================ */
.pr-empty {
    text-align: center;
    padding: var(--gap-2xl) var(--gap-lg);
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-xs);
}

.pr-empty-icon {
    font-size: 2.6rem;
    margin-bottom: var(--gap-xs);
}

.pr-empty h3 {
    color: var(--ink-900);
    font-size: var(--text-2xl);
    margin-bottom: 2px;
}

.pr-empty p {
    color: var(--ink-600);
    font-size: var(--text-lg);
    margin-bottom: var(--gap-xs);
}

/* ============================================================
   project_list.html — PAGINATION
============================================================ */
.pr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--gap-lg);
    flex-wrap: wrap;
}

.pr-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pr-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--ink-700);
    font-weight: 600;
    font-size: var(--text-lg);
    text-decoration: none;
    transition: all var(--transition);
}

.pr-page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pr-page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

.pr-page-btn.disabled {
    opacity: .4;
    pointer-events: none;
}

.pr-page-dots {
    color: var(--ink-400);
    padding: 0 4px;
}

/* ============================================================
   project_list.html — BACK TO TOP
============================================================ */
.pr-back-to-top {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-elevated);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 30;
}

.pr-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================================================================
   ================================================================
   project_detail.html
   ================================================================
   ================================================================ */

.pr-detail-page {
    width: 95%;
    margin: 0 auto;
    padding: var(--gap-smm) var(--gap-smmm);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

/* ============================================================
   project_detail.html — TOP NAV / BREADCRUMB
============================================================ */
.pr-detail-topnav {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}

.pr-breadcrumb-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-2xl);
    color: var(--ink-600);
}

.pr-breadcrumb-detail a {
    color: var(--ink-600);
    text-decoration: none;
    transition: color var(--transition);
}

.pr-breadcrumb-detail a:hover {
    color: var(--primary);
}

.pr-breadcrumb-detail .current {
    color: var(--ink-900);
    font-weight: 600;
}

/* ============================================================
   project_detail.html — SECTION NAV (sticky tabs)
============================================================ */
.pr-section-nav {
    position: sticky;
    top: 8px;
    z-index: 15;
    display: flex;
    gap: var(--gap-sm);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px;
    width: fit-content;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.pr-section-link {
    text-decoration: none;
    color: var(--ink-600);
    font-weight: 600;
    font-size: var(--text-base);
    padding: 8px 18px;
    border-radius: 999px;
    white-space: nowrap;
    transition: all var(--transition);
}

.pr-section-link:hover {
    color: var(--primary);
}

.pr-section-link.active {
    background: var(--primary);
    color: #fff;
}

/* ============================================================
   project_detail.html — HERO (info + side card)
============================================================ */
.pr-detail-hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: var(--gap-lg);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--gap-lg);
    box-shadow: var(--shadow-card);
}

.pr-detail-info {
    display: flex;
    flex-direction: column;
    gap: var(--gap-smmm);
}

.pr-category-badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--purple-soft);
    color: var(--primary);
    font-size: var(--text-lg);
    font-weight: 600;
}

.pr-detail-info h1 {
    font-size: var(--text-6xl);
    font-weight: 800;
    color: var(--ink-900);
    line-height: 1.4;
}

.pr-detail-short {
    color: var(--ink-600);
    font-size: var(--text-xl);
    line-height: 1.9;
}

.pr-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: var(--gap-smm) 0;
    border-top: 1px solid var(--rule);
}

.pr-detail-stats-row {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: var(--gap-smmm) 0;
}

.pr-detail-stats-row .pr-stat-mini {
    background: var(--card-soft);
    border-radius: var(--radius-sm);
    padding: 8px 20px;
}

.pr-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pr-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: var(--text-xl);
    padding: 12px 26px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(47, 92, 245, .25);
    transition: filter var(--transition), transform var(--transition);
}

.pr-cta-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.pr-detail-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 600;
    font-size: var(--text-lg);
    background: var(--green-soft);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    width: fit-content;
}

/* ============================================================
   project_detail.html — SIDE CARD
============================================================ */
.pr-side-card {
    background: var(--card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--gap-sm);
    display: flex;
    flex-direction: column;
    gap: var(--gap-smmm);
    height: fit-content;
}

.pr-side-card h3 {
    font-size: var(--text-xl);
    color: var(--ink-900);
    font-weight: 700;
}

.pr-side-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: var(--text-base);
    padding: 8px 0;
    border-bottom: 1px dashed var(--rule);
}

.pr-side-row:last-of-type {
    border-bottom: none;
}

.pr-side-row span {
    color: var(--ink-600);
}

.pr-side-row strong {
    color: var(--ink-900);
    font-weight: 600;
    text-align: left;
}

.pr-side-keywords h4 {
    font-size: var(--text-lg);
    color: var(--ink-900);
    font-weight: 700;
    margin-bottom: 4px;
}

.pr-side-keywords p {
    font-size: var(--text-base);
    color: var(--ink-600);
    line-height: 1.8;
}

/* ============================================================
   project_detail.html — BODY PANELS
============================================================ */
.pr-detail-body {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

#pr-overview, #pr-methodology, #pr-skills, #pr-updates, #pr-files, #pr-members {
    scroll-margin-top: 90px;
}

.pr-detail-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--gap-lg);
    box-shadow: var(--shadow-card);
}

.pr-detail-block h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: var(--gap-sm);
    padding-inline-start: 14px;
    border-inline-start: 4px solid var(--primary);
}

.pr-text-content p {
    color: var(--ink-700);
    font-size: var(--text-xl);
    line-height: 2.1;
    margin-bottom: 10px;
}

.pr-text-content p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   project_detail.html — TIMELINE (updates)
============================================================ */
.pr-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pr-timeline-item {
    display: flex;
    gap: var(--gap-smmm);
    padding: var(--gap-smmm) 0;
    border-bottom: 1px dashed var(--rule);
    position: relative;
}

.pr-timeline-item:last-child {
    border-bottom: none;
}

.pr-timeline-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-softer);
}

.pr-timeline-content {
    flex: 1;
    min-width: 0;
}

.pr-timeline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.pr-timeline-head h3 {
    font-size: var(--text-xl);
    color: var(--ink-900);
    font-weight: 700;
}

.pr-timeline-date {
    font-size: var(--text-base);
    color: var(--ink-400);
    font-weight: 500;
    white-space: nowrap;
}

.pr-timeline-text p {
    color: var(--ink-700);
    font-size: var(--text-lg);
    line-height: 1.9;
    margin-top: 4px;
}

/* ============================================================
   project_detail.html — FILES
============================================================ */
.pr-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pr-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink-700);
    background: var(--card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: var(--text-lg);
    transition: border-color var(--transition), background var(--transition);
}

.pr-file-item:hover {
    border-color: var(--primary);
    background: var(--primary-softer);
}

.pr-file-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.pr-file-item strong {
    flex: 1;
    color: var(--ink-900);
    font-weight: 600;
}

.pr-file-item small {
    color: var(--ink-400);
    font-size: var(--text-sm);
}

/* ============================================================
   project_detail.html — MEMBERS
============================================================ */
.pr-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.pr-member-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.pr-member-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-xl);
}

.pr-member-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pr-member-info strong {
    color: var(--ink-900);
    font-size: var(--text-lg);
}

.pr-member-role {
    color: var(--ink-600);
    font-size: var(--text-sm);
}

/* ============================================================
   project_detail.html — MOBILE STICKY CTA BAR
============================================================ */
.pr-mobile-cta-bar {
    display: none;
}

/* ============================================================
   RESPONSIVE (both templates)
============================================================ */
@media (max-width: 980px) {
    .pr-detail-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pr-hero {
        padding: var(--gap-lg) var(--gap-sm);
        min-height: 300px;
    }

    .pr-hero-content h1 {
        font-size: var(--text-5xl);
    }

    .pr-search-wrap {
        width: 100%;
    }

    .pr-hero-content-heder {
        flex-wrap: wrap;
    }

    .pr-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pr-toolbar-filters {
        justify-content: space-between;
    }

    .pr-cta-row {
        display: none;
    }

    .pr-mobile-cta-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 0;
        inset-inline-start: 0;
        inset-inline-end: 0;
        background: var(--card);
        border-top: 1px solid var(--border);
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -6px 20px rgba(20, 26, 46, .08);
        z-index: 40;
    }

    .pr-mobile-cta-bar .pr-cta-btn {
        width: 100%;
    }

    .pr-back-to-top {
        bottom: 84px;
    }
}

/* ================================================================
   ================================================================
   SHARED — pr-subheader
   Used by: my_projects.html, project_form.html,
            project_apply.html, project_confirm_delete.html
   A contained (non full-bleed) card header for secondary pages —
   quieter than the list page's pr-hero, same visual language.
   ================================================================
   ================================================================ */
.pr-narrow {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.pr-subheader {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: var(--gap-lg);
    display: flex;
    flex-direction: column;
    gap: var(--gap-smmm);
}

.pr-subheader-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .22;
    background: var(--primary);
    top: -100px;
    inset-inline-end: -60px;
    pointer-events: none;
}

.pr-subheader-danger .pr-subheader-glow {
    background: var(--red);
}

.pr-subheader h1 {
    position: relative;
    z-index: 1;
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--ink-900);
    line-height: 1.4;
}

.pr-subheader p {
    position: relative;
    z-index: 1;
    color: var(--ink-600);
    font-size: var(--text-xl);
    line-height: 1.8;
}

.pr-subheader-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

/* ================================================================
   ================================================================
   my_projects.html
   ================================================================
   ================================================================ */
.pr-card-inactive {
    opacity: .72;
    transition: opacity var(--transition), box-shadow .15s ease, transform .15s ease;
}

.pr-card-inactive:hover {
    opacity: 1;
}

.pr-card-footer-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.pr-card-footer-actions .btn {
    flex: 0 0 auto;
}

/* ================================================================
   ================================================================
   project_form.html
   ================================================================
   ================================================================ */
.pr-form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: var(--gap-lg);
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

.pr-form-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--red-soft);
    border: 1px solid var(--red);
    color: var(--red-deep);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: var(--text-lg);
    line-height: 1.8;
}

.pr-form-alert svg {
    flex-shrink: 0;
    color: var(--red);
    margin-top: 2px;
}

.pr-form-alert ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pr-form-section {
    display: flex;
    flex-direction: column;
    gap: var(--gap-smmm);
    padding-top: var(--gap-smmm);
    border-top: 1px solid var(--rule);
}

.pr-form-section:first-of-type {
    padding-top: 0;
    border-top: none;
}

.pr-form-section h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--ink-900);
    padding-inline-start: 14px;
    border-inline-start: 4px solid var(--primary);
}

.pr-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--gap-smmm);
}

.pr-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pr-form-label,
.pr-form-group label {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--ink-700);
}

.pr-form-group input:not([type="checkbox"]),
.pr-form-group select,
.pr-form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--card-soft-2);
    color: var(--ink-900);
    font-size: var(--text-lg);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.pr-form-group textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.8;
}

.pr-form-group input:not([type="checkbox"]):focus,
.pr-form-group select:focus,
.pr-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-softer);
}

.pr-help-text {
    color: var(--ink-400);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.pr-form-group .errorlist {
    list-style: none;
    color: var(--red);
    font-size: var(--text-sm);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pr-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--ink-700);
    cursor: pointer;
    width: fit-content;
}

.pr-checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.pr-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: var(--gap-smmm);
    border-top: 1px solid var(--rule);
}

/* ================================================================
   ================================================================
   project_apply.html
   ================================================================
   ================================================================ */
.pr-apply-project-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--purple-soft);
    border: 1px solid rgba(47, 92, 245, .18);
    border-radius: var(--radius-md);
    padding: var(--gap-sm);
}

.pr-apply-project-box h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--ink-900);
}

.pr-apply-project-box p {
    font-size: var(--text-lg);
    color: var(--ink-600);
    line-height: 1.8;
}

/* ================================================================
   ================================================================
   project_confirm_delete.html
   ================================================================
   ================================================================ */
.pr-delete-card {
    background: var(--card);
    border: 1px solid var(--red-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: var(--gap-2xl) var(--gap-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--gap-smmm);
}

.pr-delete-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.pr-delete-card h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--ink-900);
}

.pr-delete-card p {
    color: var(--ink-600);
    font-size: var(--text-lg);
    line-height: 1.8;
    max-width: 480px;
}

.pr-delete-card .pr-form-actions {
    border-top: none;
    padding-top: var(--gap-smmm);
    justify-content: center;
}

/* ================================================================
   RESPONSIVE — secondary pages (my_projects / form / apply / delete)
   ================================================================ */
@media (max-width: 640px) {
    .pr-subheader h1 {
        font-size: var(--text-4xl);
    }

    .pr-form-grid {
        grid-template-columns: 1fr;
    }

    .pr-form-card,
    .pr-delete-card {
        padding: var(--gap-sm);
    }

    .pr-form-actions,
    .pr-subheader-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pr-card-footer-actions {
        justify-content: stretch;
    }

    .pr-card-footer-actions .btn {
        flex: 1 1 0;
        justify-content: center;
    }
}