/*************************
**  Our Tasmania Website
**  survey styles sheet
**  Build V. 0.2
**  Build Notes: the elements that relate to the survey pages & components of the site dark build
**
**********************/

/* ═══════════════════════════════════════════════════
    CONTACT LAYOUT
═══════════════════════════════════════════════════ */

/* survey meta pills */
.survey-meta-pills { display: flex; gap: .65rem; flex-wrap: wrap; }
.survey-pill {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
    padding: .32rem .85rem; border-radius: 100px;
    color: var(--survey); background: var(--survey-dim);
}
.survey-pill--teal { color: var(--teal); background: var(--teal-dim); }

/* ═══════════════════════════════════════════════════
    SURVEY ACTION BUTTONS — 5 column
═══════════════════════════════════════════════════ */
.survey-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1199px) { .survey-actions { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px)  { .survey-actions { grid-template-columns: repeat(2, 1fr); } }

.survey-action-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg); text-decoration: none;
    position: relative; overflow: hidden;
    transition: transform .25s, box-shadow .25s, background .25s;
}
.survey-action-btn::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: var(--survey); transform: scaleX(0); transform-origin: left;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.survey-action-btn:hover { transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,.4); background: var(--bg-2);
}

.survey-action-btn-active {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem;
    padding: 1.5rem 1rem;
    background: var(--bg-2);
    border-radius: var(--radius-lg); text-decoration: none;
    position: relative; overflow: hidden;
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.4) !important;
}
.survey-action-btn-active .survey-action-btn__label { color: var(--survey); }
.survey-action-btn-active .survey-action-btn__icon { background: var(--survey-dim); box-shadow: 0 0 16px var(--survey-dim); }
.survey-action-btn-active::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: var(--survey); transform: scaleX(1); transform-origin: left;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.survey-action-btn:hover::before { transform: scaleX(1); }
.survey-action-btn__icon {
    width: 46px; height: 46px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    background: var(--survey-dim);
    color: var(--survey); font-size: 1.1rem;
    transition: background .2s, box-shadow .2s;
}
.survey-action-btn:hover .survey-action-btn__icon { background: var(--survey-dim); box-shadow: 0 0 16px var(--survey-dim); }
.survey-action-btn__label {
    font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-2); transition: color .2s; text-align: center; line-height: 1.3;
}
.survey-action-btn:hover .survey-action-btn__label { color: var(--survey); }

/* ═══════════════════════════════════════════════════
    DETAILS + SIDEBAR
═══════════════════════════════════════════════════ */
.survey-detail-card {
    background: var(--bg-card); 
    border-radius: var(--radius-lg); padding: 2.5rem 3rem;
    position: relative; overflow: hidden;
}
.survey-detail-card::after {
    content: ''; position: absolute; bottom: -60px; right: -60px;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, var(--survey-ltdim) 0%, transparent 70%);
    pointer-events: none;
}
.survey-detail-card__over {
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--survey); display: block; margin-bottom: .75rem;
}
.survey-detail-card__title {
    font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
    color: var(--ink); margin-bottom: .85rem; line-height: 1.1;
}
.survey-detail-card__body { color: var(--ink-3); font-size: .9rem; line-height: 1.85; }

/* Sidebar stat widgets */
.survey-stat-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg); overflow: hidden; position: relative;
}
.survey-stat-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--survey), transparent);
}
.survey-stat-box__header {
    padding: .82rem 1.25rem .63rem; background: #1e352b57;
    font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink-4);
}
.survey-stat-row {
    display: flex; align-items: center; gap: 1rem;
    padding: .9rem 1.25rem; 
    transition: background .15s;
}
.survey-stat-row:last-child { border-bottom: none; }
.survey-stat-row:hover { background: rgba(255,255,255,.02); }
.survey-stat-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--survey-dim);
    border-radius: var(--radius); color: var(--survey); font-size: .85rem;
}
.survey-stat-info { flex: 1; }
.survey-stat-label {
    font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-4); display: block; margin-bottom: .15rem;
}
.survey-stat-value {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 800;
    color: var(--ink); line-height: 1;
}
/* smaller value for dates */
.survey-stat-value--date {
    font-family: var(--font-mono); font-size: .82rem; font-weight: 500;
    color: var(--ink-2); line-height: 1;
}

/* ═══════════════════════════════════════════════════
    GOOGLE MAP EMBED
═══════════════════════════════════════════════════ */
.map-wrap {
    background: var(--bg-card);
    border-radius: var(--radius-lg); overflow: hidden; position: relative;
}
.map-wrap::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2;
    background: linear-gradient(90deg, transparent, var(--survey), transparent);
    pointer-events: none;
}
.map-wrap iframe { display: block; width: 100%; height: 580px; border: none; }

/* iNaturalist row */
.inat-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.inat-row h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--ink); margin: 0; }
.btn-inat {
    display: inline-flex; align-items: center; gap: .55rem;
    background: var(--survey-dim); color: var(--survey);
    font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
    padding: .69rem 1.2rem .61rem; border-radius: var(--radius); text-decoration: none; transition: all .2s;
}
.btn-inat:hover { background: var(--survey); color: #0e100f; }



/* ═══════════════════════════════════════════════════
    FEATURED SPECIES CARDS
═══════════════════════════════════════════════════ */
.sp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1199px) { .sp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .sp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .sp-grid { grid-template-columns: 1fr; } }

.sp-card {
    position: relative; aspect-ratio: 3/4;
    border-radius: var(--radius-lg); overflow: hidden;
    display: block; text-decoration: none; 
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, border-color .3s;
}
.sp-card:hover { transform: translateY(-5px); box-shadow: 0 24px 56px rgba(0,0,0,.65); border-color: var(--survey-rule); }
.sp-card__img { position: absolute; inset: 0; background: var(--bg-3); }
.sp-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.25,.46,.45,.94); }
.sp-card:hover .sp-card__img img { transform: scale(1.08); }
.sp-card__veil {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,12,10,.95) 0%, rgba(8,12,10,.5) 38%, rgba(8,12,10,.1) 65%, transparent 100%);
}
.sp-card__accent {
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--survey); z-index: 2;
    transform: scaleY(0); transform-origin: bottom;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.sp-card:hover .sp-card__accent { transform: scaleY(1); }
.sp-card__badges {
    position: absolute; top: .75rem; left: .85rem; z-index: 4; display: flex; gap: .35rem;
}
.sp-card__badges img { width: auto; height: 35px; filter: drop-shadow(0 1px 6px rgba(0,0,0,.7)); }
.sp-card__body {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    padding: 1rem 1.1rem 1.15rem 1.25rem;
}
.sp-card__name {
    font-family: var(--font-display); font-size: 1rem; font-weight: 700;
    color: var(--ink); display: block; margin-bottom: .2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.7); line-height: 1.2;
}
.sp-card__latin {
    font-family: var(--font-mono); font-size: .65rem; font-style: italic;
    color: rgba(240,237,230,.55); letter-spacing: .04em;
}
.sp-card__cta {
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--survey); margin-top: .55rem; display: block;
    opacity: 0; transform: translateY(6px); transition: opacity .25s .05s, transform .25s .05s;
}
.sp-card:hover .sp-card__cta { opacity: 1; transform: translateY(0); }

.td-surv-name { font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: var(--ink); display: block; }
.td-surv-desc { font-size: .78rem; color: var(--ink-4); line-height: 1.5; margin-top: .2rem; display: block; }

.td-date { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.td-date--end { color: var(--survey); }


/* Status badge */
.status-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
    padding: .3rem .75rem; border-radius: 100px; white-space: nowrap;
}
.status-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.status-badge--ongoing {
    background: rgba(200,149,90,.15); color: var(--survey);
}
.status-badge--ongoing::before { background: var(--survey); box-shadow: 0 0 6px var(--survey); }
.status-badge--complete {
    background: var(--emerald-dim); color: var(--emerald-lt);
}
.status-badge--complete::before { background: var(--emerald-lt); }

.hero-pill {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
    padding: .32rem .85rem; border-radius: 100px; margin-right: .5rem;
    color: var(--survey); background: var(--survey-dim);
}
/* ═══════════════════════════════════════════════════
    INTRO SECTION
═══════════════════════════════════════════════════ */
.intro-card {
    background: var(--bg-card); border: none;
    border-radius: var(--radius-lg); padding: 2.5rem 3rem;
    position: relative; overflow: hidden;
}
.intro-card::before {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
    background: linear-gradient(to bottom, var(--survey), transparent);
}
.intro-card::after {
    content: ''; position: absolute; bottom: -60px; right: -60px;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, var(--survey-glow) 0%, transparent 65%);
    pointer-events: none;
}
.intro-card__over {
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--survey); display: block; margin-bottom: .75rem;
}
.intro-card h2 {
    font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
    color: var(--ink); margin-bottom: 1.25rem; line-height: 1.1;
}
.intro-card p {
    font-size: .9rem; color: var(--ink-3); line-height: 1.9; margin-bottom: 1rem;
}
.intro-card p:last-child { margin-bottom: 0; }
.intro-card a { color: var(--survey); text-decoration: none; transition: color .15s; }
.intro-card a:hover { color: var(--survey); text-decoration: underline; }
@media (max-width: 767px) { .intro-card { padding: 1.75rem 1.5rem; } }
/* ═══════════════════════════════════════════════════
   FEATURED SURVEY CARDS
═══════════════════════════════════════════════════ */
.surv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1199px) { .surv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .surv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .surv-grid { grid-template-columns: 1fr; } }

.surv-card {
    position: relative; aspect-ratio: 3/4;
    border-radius: var(--radius-lg); overflow: hidden;
    display: block; text-decoration: none; border: none;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, border-color .3s;
    background: var(--bg-3);
}
.surv-card:hover { transform: translateY(-5px); box-shadow: 0 24px 56px rgba(0,0,0,.65); border-color: var(--survey-rule); }
.surv-card__img { position: absolute; inset: 0; }
.surv-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.25,.46,.45,.94); }
.surv-card:hover .surv-card__img img { transform: scale(1.08); }

/* Placeholder when no image available */
.surv-card__placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
    background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
}
.surv-card__placeholder i { font-size: 2.5rem; color: var(--ink-4); opacity: .4; }
.surv-card__placeholder span {
    font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-4);
}

.surv-card__veil {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,12,10,.97) 0%, rgba(8,12,10,.55) 38%, rgba(8,12,10,.1) 65%, transparent 100%);
}
.surv-card__accent {
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--survey); z-index: 2;
    transform: scaleY(0); transform-origin: bottom;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.surv-card:hover .surv-card__accent { transform: scaleY(1); }

/* Status badge top-right */
.surv-card__status {
    position: absolute; top: .75rem; right: .75rem; z-index: 4;
    font-family: var(--font-mono); font-size: .55rem; letter-spacing: .12em; text-transform: uppercase;
    padding: .25rem .7rem; border-radius: 100px;
}
.surv-card__status--ongoing {
    background: var(--warning-bold); color: var(--black);
}
.surv-card__status--complete {
    background: var(--success-bold); color: var(--white);
}

.surv-card__body {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    padding: 1rem 1.1rem 1.25rem 1.25rem;
}
.surv-card__icon {
    width: 32px; height: 32px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    background: var(--survey-dim);
    color: var(--survey); font-size: 1.4rem; margin-bottom: .65rem;
}
.surv-card__name {
    font-family: var(--font-display); font-size: 1rem; font-weight: 700;
    color: var(--ink); display: block; margin-bottom: .2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.7); line-height: 1.2;
}
.surv-card__cta {
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--survey); display: block; margin-top: .4rem;
    opacity: 0; transform: translateY(6px);
    transition: opacity .25s .05s, transform .25s .05s;
}
.surv-card:hover .surv-card__cta { opacity: 1; transform: translateY(0); }

.td-thumb {
    width: 80px; height: 54px; object-fit: cover;
    border-radius: var(--radius);
    display: block; transition: transform .25s;
}
tr:hover .td-thumb { transform: scale(1.06); }

.td-thumb-placeholder {
    width: 80px; height: 54px; border-radius: var(--radius);
    background: var(--bg-3); display: flex; align-items: center; justify-content: center;
    color: var(--ink-4); font-size: .75rem;
}

/* ═══════════════════════════════════════════════════
    GEAR GRID
═══════════════════════════════════════════════════ */
.gear-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 991px) { .gear-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .gear-grid { grid-template-columns: 1fr; } }

.gear-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    position: relative;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.gear-card:hover {
    border-color: var(--survey-rule);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
/* survey colour top accent strip */
.gear-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--survey), transparent);
    opacity: 0; transition: opacity .25s;
}
.gear-card:hover::before { opacity: 1; }

/* Image area */
.gear-card__img-wrap {
    position: relative; overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-3);
    flex-shrink: 0;
}
.gear-card__img-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .65s cubic-bezier(.25,.46,.45,.94);
}
.gear-card:hover .gear-card__img-wrap img { transform: scale(1.06); }
/* gradient veil over image */
.gear-card__img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,14,12,.55) 0%, transparent 55%);
    pointer-events: none;
}

/* Body */
.gear-card__body {
    padding: 1.5rem 1.5rem 1rem;
    display: flex; flex-direction: column; flex: 1;
}
.gear-card__name {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 700; color: var(--ink);
    margin-bottom: .65rem; line-height: 1.2;
}
.gear-card__desc {
    font-size: .82rem; font-weight: 300;
    color: var(--ink-3); line-height: 1.8;
    margin-bottom: 1.25rem; flex: 1;
}

/* Usage notes block */
.gear-card__notes {
    background: rgba(200,149,90,.06);
    border-left: 3px solid var(--survey);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
    position: relative;
}
.gear-card__notes-label {
    font-family: var(--font-mono); font-size: .55rem;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--survey); display: block; margin-bottom: .45rem;
}
.gear-card__notes p {
    font-size: .8rem; color: var(--ink-3); line-height: 1.7; margin: 0;
}

/* Footer: details link + affiliate buttons */
.gear-card__footer {
    padding: 0 1.5rem 1.25rem;
    display: flex; flex-direction: column; gap: .65rem;
}

.gear-card__detail-btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .62rem 1rem; border-radius: var(--radius);
    font-family: var(--font-mono); font-size: .68rem;
    letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
    background: var(--survey-dim);
    color: var(--survey); text-decoration: none;
    transition: background .2s, color .2s;
}
.gear-card__detail-btn:hover { background: var(--survey); color: #0e100f; }

.gear-card__affiliates {
    display: flex; gap: .5rem;
}
.gear-card__aff-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: .5rem .6rem; border-radius: var(--radius); text-decoration: none;
    transition: background .2s, transform .15s;
}
.gear-card__aff-btn:hover { transform: translateY(-1px); }
.gear-card__aff-btn img { max-height: 18px; width: auto; display: block; }
.gear-card__aff-btn--amazon { background: rgba(254,189,105,.64); }
.gear-card__aff-btn--amazon:hover { background: rgba(254,189,105,.28); }
.gear-card__aff-btn--aliexpress { background: rgba(255, 12, 0, 0.28); }
.gear-card__aff-btn--aliexpress:hover { background: rgba(255, 12, 0, 0.08); }

/* empty state */
.gear-empty {
    background: var(--bg-card);
    border-radius: var(--radius-lg); padding: 3.5rem 2rem;
    text-align: center;
}
.gear-empty__icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--survey-dim); border: 1px solid var(--survey-rule);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--survey); margin: 0 auto 1.25rem;
}
.gear-empty__title {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
    color: var(--ink); margin-bottom: .5rem;
}
.gear-empty__text { font-size: .85rem; color: var(--ink-3); }

/* ═══════════════════════════════════════════════════
    JOURNAL TABLE
═══════════════════════════════════════════════════ */
.journal-wrap {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
/* warm survey top accent */
.journal-wrap::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--survey), transparent);
    pointer-events: none;
}
.journal-wrap__header {
    padding: 1.35rem 1.75rem;
    border-bottom: 1px solid var(--rule);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.journal-wrap__title {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0;
}
.journal-count-badge {
    font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em;
    background: var(--survey-dim); border: 1px solid var(--survey-rule);
    color: var(--survey); padding: .18rem .65rem; border-radius: 100px;
}

/* Table */
.journal-table { width: 100%; border-collapse: collapse; }
.journal-table thead tr { border-bottom: 1px solid var(--rule); }
.journal-table thead th {
    padding: .85rem 1.25rem;
    font-family: var(--font-mono); font-size: .58rem;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--ink-4); font-weight: 500; white-space: nowrap;
}
.journal-table thead th.col-center { text-align: center; }

.journal-table tbody tr {
    border-bottom: 1px solid var(--rule);
    transition: background .15s;
}
.journal-table tbody tr:last-child { border-bottom: none; }
.journal-table tbody tr:hover { background: rgba(255,255,255,.025); }
.journal-table td {
    padding: 1rem 1.25rem; vertical-align: middle; color: var(--ink-2);
    font-size: .85rem;
}
.journal-table td.col-center { text-align: center; }

/* Note type badge */
.note-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    padding: .12rem .45rem;
    font-size: 0.68rem;
    text-transform: uppercase;
}
.note-type-badge-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    height: 40px;
    width: 40px;
    font-size: 1.2rem;
    text-transform: uppercase;
}
.note-type-badge--info    { background: rgba(90,180,200,.12); color: var(--note-info); }
.note-type-badge--warning { background: rgba(200,180,90,.12); color: var(--note-warning); }
.note-type-badge--danger  { background: rgba(200,90,90,.12);  color: var(--note-danger); }
.note-type-badge--success { background: rgba(90,158,58,.12);  color: var(--note-success); }

/* Note title + preview */
.note-title {
    font-family: var(--font-display); font-size: .9rem; font-weight: 700;
    color: var(--ink); display: block; margin-bottom: .25rem; line-height: 1.2;
}
.note-preview {
    font-size: .78rem; color: var(--ink-4); line-height: 1.5;
    line-clamp: 1;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* User badge */
.user-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em;
}
.user-role {
    background: var(--amber-dim);
    color: var(--amber); padding: .12rem .45rem;
    border-radius: 100px; font-size: .56rem; letter-spacing: .1em; text-transform: uppercase;
}
.user-name { color: var(--ink-2); }

/* Date cell */
.note-date {
    font-family: var(--font-mono); font-size: .72rem;
    color: var(--ink-3); white-space: nowrap;
}

/* View action button */
.note-view-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: var(--radius);
    background: rgba(255,255,255,.04);
    /* A <button>: see .btn-view — the browser's own border shows without this. */
    border: 0;
    color: var(--ink-3); text-decoration: none; cursor: pointer;
    transition: background .2s, color .2s, transform .15s;
    font-size: .85rem;
}
.note-view-btn:hover {
    background: var(--survey-dim);
    color: var(--survey); transform: scale(1.1);
}

/* Table footer */
.journal-table tfoot td {
    padding: .85rem 1.25rem;
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em;
    color: var(--ink-4); border-top: 1px solid var(--rule);
    background: rgba(255,255,255,.015); text-align: right;
}
.journal-total { color: var(--survey); font-weight: 600; }

/* ═══════════════════════════════════════════════════
   NOTE MODAL — dark-styled Bootstrap modal
═══════════════════════════════════════════════════ */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--rule-warm);
    border-radius: var(--radius-lg);
    color: var(--ink);
}
.modal-header {
    background: var(--bg-2);
    border-bottom: 1px solid var(--rule);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
}
/* survey gold top accent on modal */
.modal-header::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--survey), transparent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-title {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink);
}
.btn-close {
    filter: invert(1) grayscale(1) brightness(.8);
    opacity: .6;
}
.btn-close:hover { opacity: 1; }
.modal-body {
    padding: 1.75rem;
    background: var(--bg-card);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Modal meta rows */
.modal-meta-row {
    display: flex; align-items: baseline; gap: .6rem;
    padding: .5rem 0; border-bottom: 1px solid var(--rule);
    font-size: .82rem;
}
.modal-meta-row:last-of-type { border-bottom: none; }
.modal-meta-label {
    font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-4); flex-shrink: 0; min-width: 100px;
}
.modal-meta-value { color: var(--ink-2); }

/* Modal divider */
.modal-divider {
    height: 1px; margin: 1.25rem 0;
    background: linear-gradient(90deg, transparent, var(--rule-warm), transparent);
}

/* Modal note body */
.modal-note-body {
    font-size: .88rem; font-weight: 300; color: var(--ink-3); line-height: 1.85;
}
.modal-note-body p { margin-bottom: .75rem; }
.modal-note-body p:last-child { margin-bottom: 0; }

/* Modal timestamp footer */
.modal-timestamp {
    margin-top: 1.25rem; padding-top: .85rem;
    border-top: 1px solid var(--rule);
    font-family: var(--font-mono); font-size: .58rem;
    letter-spacing: .1em; color: var(--ink-4); text-align: right;
}
.file-type-sm{
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--ink-2);
}
.file-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .06em;
    padding: .4rem .85rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
    margin: .15rem;
}
.file-btn--dl {
    color: var(--emerald);
    border-color: var(--emerald-rule);
    background: var(--emerald-dim);
}
.file-btn--dl:hover {
    background: var(--emerald);
    color: var(--white);
    border-color: var(--emerald);
}
.file-btn--info {
    color: var(--teal) !important;
    border-color: var(--teal-rule) !important;
    background: var(--teal-dim) !important;
}
.file-btn--info:hover {
    color: var(--white) !important;
    border-color: var(--teal) !important;
    background: var(--teal) !important;
}
/* ═══════════════════════════════════════════════════
   EMPTY STATES
═══════════════════════════════════════════════════ */
.section-empty {
    background: var(--bg-card);
    border-radius: var(--radius-lg); padding: 3rem 2rem; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.section-empty__icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--survey-dim); border: 1px solid var(--survey-rule);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--survey); margin: 0 auto;
}
.section-empty__text {
    font-family: var(--font-mono); font-size: .7rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4);
}

/* Light theme: shared community cards use a quiet ivory field-guide surface. */
html[data-theme="light"] .gear-card,
html[data-theme="light"] .intro-card,
html[data-theme="light"] .journal-wrap,
html[data-theme="light"] .map-wrap,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .sp-card,
html[data-theme="light"] .surv-card,
html[data-theme="light"] .survey-detail-card,
html[data-theme="light"] .survey-stat-box {
    background: var(--bg-card);

    color: var(--ink);
    box-shadow: 0 8px 24px rgba(55,45,28,.06);
}

html[data-theme="light"] .gear-card__desc,
html[data-theme="light"] .gear-card__notes,
html[data-theme="light"] .modal-meta-value,
html[data-theme="light"] .modal-note-body,
html[data-theme="light"] .note-preview,
html[data-theme="light"] .survey-stat-label {
    color: var(--ink-2);
}

/* These labels sit on image veils, so they intentionally retain light ink. */
html[data-theme="light"] .sp-card__name,
html[data-theme="light"] .surv-card__name {
    color: #fff;
}

html[data-theme="light"] .sp-card__latin {
    color: #f7f2e8;
}

html[data-theme="light"] .modal-header .btn-close {
    filter: none;
    opacity: 1;
}

/* ── Contrast (2026-09-15) ── */
/* Light: the card eyebrow (--survey, 3.0:1), body (--ink-3, 4.2:1) and the stat-box
   header (grey on a dark 34% wash, 1.6:1). */
html[data-theme="light"] .survey-detail-card__over { color: #1f6b52; }
html[data-theme="light"] .survey-detail-card__body { color: var(--ink-2); }
html[data-theme="light"] .survey-stat-box__header { background: var(--parchment-dim); color: var(--ink-2); }

/* Hero pills sit on the photograph, where the thin tints fell under 3:1 over its
   brighter parts. A near-opaque backing matched to each theme's veil. The <a>
   pill also needs the teal back from the light-theme link colour. */
.ot-hero .survey-pill { background: rgba(14,16,15,.85); color: #5fc9a3; text-decoration: none; }
.ot-hero .survey-pill--teal { color: var(--teal); }
html[data-theme="light"] .ot-hero .survey-pill { background: rgba(247,242,232,.92); color: #1f6b52; }
html[data-theme="light"] .ot-hero .survey-pill--teal,
html[data-theme="light"] .ot-hero a.survey-pill--teal { color: var(--teal); }
