/*
 * Adventure Logbook
 * Journal-led multi-sport stories with operational records kept in a
 * deliberately quieter supporting lane.
 */

.adventure-journal-hero {
    min-height: 300px;
    border-left-color: var(--sg-cyan);
}

.adventure-journal-hero::after {
    background:
        linear-gradient(90deg, rgba(5, 11, 26, 0.95) 0%, rgba(5, 11, 26, 0.76) 38%, rgba(5, 11, 26, 0.15) 72%),
        linear-gradient(0deg, rgba(5, 11, 26, 0.58), transparent 58%);
}

.adventure-journal-hero .logbook-story-copy {
    max-width: 620px;
}

.adventure-journal-hero .logbook-story-copy h1 {
    max-width: 720px;
    font-size: clamp(3rem, 6.2vw, 6.8rem);
    line-height: 0.82;
}

.adventure-journal-hero .logbook-story-copy p {
    max-width: 610px;
    font-size: 0.83rem;
    line-height: 1.55;
}

.adventure-hero-latest {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(320px, 26vw);
    min-height: 112px;
    align-content: center;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-top: 3px solid var(--sg-cyan);
    background: rgba(5, 11, 26, 0.78);
    color: #ffffff;
    text-align: left;
    backdrop-filter: blur(14px);
    cursor: pointer;
}

.adventure-hero-latest::after {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, transparent 49%, var(--sg-cyan) 50%);
    content: "";
}

.adventure-hero-latest span,
.adventure-hero-latest small {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.adventure-hero-latest span {
    color: var(--sg-cyan);
}

.adventure-hero-latest strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.adventure-log-cta {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    margin-bottom: 2px;
}

.logbook-journal-nav {
    display: flex;
    width: min(100%, 1920px);
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.logbook-journal-nav .logbook-scope-switch {
    min-width: 0;
    padding: 0;
    border: 0;
    border: 1px solid var(--sg-line);
    border-radius: 999px;
    background: var(--sg-paper);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.logbook-journal-nav .logbook-scope-switch button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 7px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
}

.logbook-journal-nav .logbook-scope-switch button span {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--sg-paper-muted);
    color: var(--sg-ink-600);
    font-size: 0.52rem;
}

.logbook-journal-nav .logbook-scope-switch button.is-active span {
    background: rgba(255, 255, 255, 0.14);
    color: var(--sg-cyan);
}

.adventure-period-filter {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

.adventure-period-filter label {
    color: var(--sg-ink-600);
    font-size: 0.54rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.adventure-period-filter select {
    min-height: 36px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--sg-line);
    background: var(--sg-paper-muted);
    color: var(--sg-ink-950);
    font-size: 0.62rem;
    font-weight: 850;
}

.adventure-season-strip {
    display: grid;
    width: min(100%, 1920px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 14px auto 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.adventure-season-strip > div {
    min-width: 0;
    padding: 14px 17px;
    border: 1px solid var(--sg-line);
    border-top: 3px solid var(--sg-cyan);
    border-radius: 10px;
    background:
        linear-gradient(140deg, rgba(0, 207, 232, 0.05), transparent 60%),
        var(--sg-paper);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
}

.adventure-season-strip span,
.adventure-season-strip small {
    display: block;
}

.adventure-season-strip span {
    color: var(--sg-ink-950);
    font-size: 1.5rem;
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 1;
}

.adventure-season-strip small {
    margin-top: 5px;
    overflow: hidden;
    color: var(--sg-ink-600);
    font-size: 0.52rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.adventure-logbook-toolbar {
    display: flex;
    width: min(100%, 1920px);
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px auto;
}

.adventure-logbook-toolbar > span {
    flex: 0 0 auto;
    color: var(--sg-ink-600);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.adventure-sport-filters {
    display: flex;
    min-width: 0;
    max-width: 100%;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.adventure-sport-filters button {
    --adventure-filter: var(--sg-cyan);
    display: inline-flex;
    min-height: 34px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid var(--sg-line);
    border-left: 3px solid var(--adventure-filter);
    background: var(--sg-paper);
    color: var(--sg-ink-600);
    font-size: 0.56rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.adventure-sport-filters button:first-child {
    --adventure-filter: var(--sg-ink-950);
}

.adventure-sport-filters button span {
    color: var(--adventure-filter);
}

.adventure-sport-filters button.is-active {
    border-color: var(--sg-ink-950);
    background: var(--sg-ink-950);
    color: #ffffff;
}

.adventure-story-grid {
    display: grid;
    width: min(100%, 1920px);
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
    margin: 0 auto 24px;
}

.adventure-story-card {
    --adventure-accent: var(--sg-cyan);
    position: relative;
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sg-line);
    border-top: 3px solid var(--adventure-accent);
    border-radius: var(--sg-radius-object);
    background: var(--sg-paper);
    box-shadow: var(--sg-shadow-object);
    cursor: pointer;
}

/*
 * The first-generation field-record cards use the shared .logbook-event
 * hook as a two-column thumbnail row. Adventure stories deliberately keep
 * that semantic/test hook, but are full-bleed editorial cards.
 */
.main:has(.logbook-story-hero) .logbook-event.adventure-story-card,
.main:has(.logbook-story-hero) .logbook-event.adventure-shared-card {
    /* style.css keeps legacy rows on an !important grid; this is the scoped escape hatch. */
    display: block !important;
    min-height: 0;
    align-items: stretch;
}

.main:has(.logbook-story-hero) .logbook-event.adventure-story-card .adventure-story-media,
.main:has(.logbook-story-hero) .logbook-event.adventure-shared-card .adventure-story-media {
    width: 100%;
    min-width: 0;
}

.main:has(.logbook-story-hero) .logbook-event.adventure-story-card .adventure-story-footer,
.main:has(.logbook-story-hero) .logbook-event.adventure-shared-card .adventure-story-footer {
    width: 100%;
    min-width: 0;
}

.adventure-story-card.is-featured {
    grid-column: span 2;
}

.adventure-story-media {
    position: relative;
    display: flex;
    min-height: 270px;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    overflow: hidden;
    background:
        linear-gradient(0deg, rgba(5, 11, 26, 0.9), rgba(5, 11, 26, 0.08) 68%),
        var(--adventure-cover) center / cover no-repeat;
}

.adventure-story-card.is-featured .adventure-story-media {
    min-height: 410px;
    padding: 18px;
}

.adventure-story-media::after {
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 68px;
    height: 68px;
    border: 3px solid var(--adventure-accent);
    content: "";
    transform: rotate(45deg);
}

.adventure-story-topline,
.adventure-story-copy {
    position: relative;
    z-index: 1;
}

.adventure-story-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.adventure-story-topline > span {
    display: inline-flex;
    max-width: 58%;
    min-height: 26px;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    overflow: hidden;
    background: var(--adventure-accent);
    color: #06101e;
    font-size: 0.52rem;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.adventure-story-topline > span + span {
    background: rgba(5, 11, 26, 0.72);
    color: #ffffff;
    backdrop-filter: blur(9px);
}

.adventure-story-topline > span.is-shared,
.adventure-story-topline > span.is-circle {
    color: var(--sg-cyan);
}

.adventure-story-topline > span.is-private {
    color: rgba(255, 255, 255, 0.78);
}

.adventure-story-copy {
    max-width: 720px;
}

.adventure-story-copy small {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.57rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.adventure-story-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.45rem, 2.4vw, 2.7rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 0.95;
    text-transform: uppercase;
}

.adventure-story-card:not(.is-featured) .adventure-story-copy h2 {
    font-size: clamp(1.25rem, 1.8vw, 1.7rem);
}

.adventure-story-copy p {
    display: -webkit-box;
    max-width: 620px;
    margin: 9px 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.adventure-story-footer {
    display: grid;
    min-width: 0;
    gap: 1px;
    background: var(--sg-line);
}

.adventure-story-stats {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--sg-line);
}

.adventure-story-card:not(.is-featured) .adventure-story-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adventure-story-stats > span {
    min-width: 0;
    padding: 10px 12px;
    background: var(--sg-paper);
}

.adventure-story-stats strong,
.adventure-story-stats small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adventure-story-stats strong {
    color: var(--sg-ink-950);
    font-size: 0.75rem;
    font-weight: 950;
}

.adventure-story-stats small {
    margin-top: 2px;
    color: var(--sg-ink-600);
    font-size: 0.47rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.adventure-story-context {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 14px;
    padding: 7px 11px;
    background: var(--sg-paper-muted);
}

.adventure-story-context > span {
    overflow: hidden;
    color: var(--sg-ink-600);
    font-size: 0.55rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adventure-story-context > span i {
    margin-right: 4px;
    color: var(--adventure-accent);
}

.adventure-story-context > button {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 0 8px;
    border: 1px solid var(--sg-line-strong);
    background: #ffffff;
    color: var(--sg-ink-950);
    font-size: 0.52rem;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
}

.adventure-story-grid.is-circle .adventure-story-card {
    --adventure-accent: var(--sg-violet);
}

.adventure-shared-card .adventure-story-footer {
    display: flex;
    min-height: 66px;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    background: var(--sg-paper);
}

.adventure-shared-author {
    display: flex;
    min-width: 118px;
    align-items: center;
    gap: 8px;
}

.adventure-shared-author > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.adventure-shared-author strong,
.adventure-shared-author small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adventure-shared-author strong {
    color: var(--sg-ink-950);
    font-size: 0.65rem;
    font-weight: 950;
}

.adventure-shared-author small {
    color: var(--sg-ink-600);
    font-size: 0.52rem;
}

.adventure-shared-card .adventure-story-stats {
    flex: 1;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.adventure-send-reaction {
    display: inline-flex;
    min-height: 32px;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid var(--sg-line-strong);
    background: #ffffff;
    color: var(--sg-ink-950);
    font-size: 0.52rem;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
}

.adventure-send-reaction i {
    color: var(--sg-coral);
}

.adventure-empty-journal {
    display: grid;
    width: min(100%, 1920px);
    min-height: 230px;
    place-items: center;
    gap: 7px;
    margin: 14px auto 24px;
    padding: 30px;
    border: 1px dashed var(--sg-line-strong);
    border-left: 4px solid var(--sg-cyan);
    background: var(--sg-paper);
    color: var(--sg-ink-600);
    text-align: center;
    cursor: pointer;
}

.adventure-empty-journal i {
    color: var(--sg-cyan);
    font-size: 2rem;
}

.adventure-empty-journal strong {
    color: var(--sg-ink-950);
    font-size: 1.1rem;
    font-weight: 950;
    text-transform: uppercase;
}

.adventure-empty-journal span {
    max-width: 520px;
    font-size: 0.72rem;
}

/* Field record */

.field-record-intro,
.field-record-shell {
    width: min(100%, 1920px);
    margin-right: auto;
    margin-left: auto;
}

.field-record-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-top: 14px;
    padding: 22px 24px;
    border: 1px solid var(--sg-line);
    border-left: 4px solid var(--sg-amber);
    background:
        linear-gradient(120deg, rgba(255, 196, 0, 0.08), transparent 42%),
        var(--sg-paper);
}

.field-record-intro > div:first-child {
    max-width: 670px;
}

.field-record-intro > div:first-child > span {
    color: var(--sg-amber-dark);
    font-size: 0.54rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.field-record-intro h2 {
    margin: 4px 0 6px;
    color: var(--sg-ink-950);
    font-size: clamp(1.5rem, 3vw, 2.7rem);
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 0.98;
    text-transform: uppercase;
}

.field-record-intro p {
    margin: 0;
    color: var(--sg-ink-600);
    font-size: 0.7rem;
    line-height: 1.45;
}

.field-record-counts {
    display: flex;
    gap: 1px;
    background: var(--sg-line);
}

.field-record-counts > span {
    min-width: 78px;
    padding: 10px 12px;
    background: var(--sg-paper-muted);
}

.field-record-counts strong,
.field-record-counts small {
    display: block;
}

.field-record-counts strong {
    color: var(--sg-ink-950);
    font-size: 1.05rem;
    font-weight: 950;
}

.field-record-counts small {
    color: var(--sg-ink-600);
    font-size: 0.48rem;
    font-weight: 900;
    text-transform: uppercase;
}

.field-record-shell {
    margin-top: 14px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--sg-line);
    background: var(--sg-paper);
    box-shadow: var(--sg-shadow-object);
}

.field-record-shell > header {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-top: 3px solid var(--sg-amber);
    border-bottom: 1px solid var(--sg-line);
    background: var(--sg-paper-muted);
}

.field-record-shell > header > div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sg-ink-950);
    font-size: 0.65rem;
    font-weight: 950;
    text-transform: uppercase;
}

.field-record-shell > header > div i {
    color: var(--sg-amber-dark);
}

.field-record-shell > header > span {
    color: var(--sg-ink-600);
    font-size: 0.55rem;
    font-weight: 850;
}

.field-record-list {
    display: grid;
}

.field-record-row {
    display: grid;
    grid-template-columns: 66px 38px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 8px 14px;
    border: 0;
    border-bottom: 1px solid var(--sg-line);
    background: #ffffff;
    color: var(--sg-ink-950);
    text-align: left;
    cursor: pointer;
}

.field-record-row:last-child {
    border-bottom: 0;
}

.field-record-row:hover {
    background: var(--sg-paper-muted);
}

.field-record-date {
    display: grid;
    gap: 1px;
    padding-right: 10px;
    border-right: 1px solid var(--sg-line);
}

.field-record-date strong {
    color: var(--sg-ink-950);
    font-size: 0.85rem;
    font-weight: 950;
}

.field-record-date small {
    color: var(--sg-ink-600);
    font-size: 0.52rem;
    font-weight: 850;
    text-transform: uppercase;
}

.field-record-icon {
    --record-accent: var(--sg-cyan);
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    background: color-mix(in srgb, var(--record-accent) 12%, white);
    color: var(--record-accent);
}

.field-record-copy {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(120px, 0.5fr) minmax(140px, 1fr) minmax(160px, 1.3fr);
    align-items: center;
    gap: 14px;
}

.field-record-copy small,
.field-record-copy strong,
.field-record-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-record-copy small {
    color: var(--sg-ink-600);
    font-size: 0.52rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.field-record-copy strong {
    color: var(--sg-ink-950);
    font-size: 0.72rem;
    font-weight: 950;
}

.field-record-copy span {
    color: var(--sg-ink-600);
    font-size: 0.65rem;
}

.field-record-row > i {
    color: var(--sg-ink-400);
    font-size: 0.65rem;
}

/* Story detail */

.adventure-detail-overlay {
    z-index: 1200;
    padding: 20px;
    overflow-y: auto;
}

.adventure-detail {
    width: min(96vw, 980px);
    max-height: calc(100vh - 40px);
    margin: auto;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: var(--sg-paper);
    box-shadow: 0 30px 90px rgba(5, 11, 26, 0.38);
}

.adventure-detail-hero {
    --adventure-accent: var(--sg-cyan);
    position: relative;
    display: flex;
    min-height: 360px;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 24px 24px;
    overflow: hidden;
    border-top: 4px solid var(--adventure-accent);
    background:
        linear-gradient(0deg, rgba(5, 11, 26, 0.94), rgba(5, 11, 26, 0.1) 72%),
        var(--adventure-detail-cover) center / cover no-repeat;
}

.adventure-detail-hero::after {
    position: absolute;
    right: -46px;
    bottom: -46px;
    width: 94px;
    height: 94px;
    border: 4px solid var(--adventure-accent);
    content: "";
    transform: rotate(45deg);
}

.adventure-detail-hero .modal-close {
    z-index: 2;
    align-self: flex-end;
    background: rgba(5, 11, 26, 0.7);
    color: #ffffff;
}

.adventure-detail-badges {
    position: absolute;
    top: 20px;
    left: 24px;
    z-index: 1;
    display: flex;
    gap: 6px;
}

.adventure-detail-badges span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    background: var(--adventure-accent);
    color: #07111f;
    font-size: 0.53rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.adventure-detail-badges span + span {
    background: rgba(5, 11, 26, 0.72);
    color: #ffffff;
}

.adventure-detail-hero > div:last-child {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.adventure-detail-hero > div:last-child > small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.adventure-detail-hero h2 {
    margin: 7px 0;
    color: #ffffff;
    font-size: clamp(2.4rem, 6vw, 5.4rem);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 0.88;
    text-transform: uppercase;
}

.adventure-detail-hero > div:last-child > button,
.adventure-detail-owner {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(5, 11, 26, 0.66);
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 900;
    cursor: pointer;
}

.adventure-detail-owner {
    padding-left: 5px;
}

.adventure-detail-body {
    padding: 24px;
}

.adventure-detail-story > span,
.adventure-chapter-timeline > header span,
.adventure-detail-context > div > span {
    color: var(--sg-violet);
    font-size: 0.54rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.adventure-detail-story > p {
    max-width: 850px;
    margin: 8px 0 0;
    color: var(--sg-ink-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.62;
    white-space: pre-line;
}

.adventure-condition-note,
.adventure-private-note,
.adventure-sanitized-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-left: 3px solid var(--sg-cyan);
    background: rgba(0, 207, 232, 0.07);
    color: var(--sg-ink-600);
    font-size: 0.68rem;
    line-height: 1.45;
}

.adventure-condition-note span,
.adventure-private-note span {
    display: grid;
    gap: 2px;
}

.adventure-condition-note strong,
.adventure-private-note strong {
    color: var(--sg-ink-950);
    font-size: 0.56rem;
    font-weight: 950;
    text-transform: uppercase;
}

.adventure-private-note {
    border-left-color: var(--sg-violet);
    background: rgba(116, 87, 255, 0.07);
}

.adventure-sanitized-note {
    border-left-color: var(--sg-green);
    background: rgba(0, 184, 117, 0.07);
}

.adventure-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 22px;
    border-top: 3px solid var(--adventure-accent, var(--sg-cyan));
    background: var(--sg-line);
}

.adventure-detail-stats > span {
    min-width: 0;
    padding: 14px 16px;
    background: var(--sg-paper-muted);
}

.adventure-detail-stats strong,
.adventure-detail-stats small {
    display: block;
}

.adventure-detail-stats strong {
    color: var(--sg-ink-950);
    font-size: 1.15rem;
    font-weight: 950;
}

.adventure-detail-stats small {
    margin-top: 2px;
    color: var(--sg-ink-600);
    font-size: 0.5rem;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.adventure-chapter-timeline {
    margin-top: 26px;
}

.adventure-chapter-timeline > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sg-line);
}

.adventure-chapter-timeline > header strong {
    color: var(--sg-ink-950);
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.adventure-chapter-timeline > article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--sg-line);
}

.adventure-chapter-timeline > article > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    background: var(--sg-ink-950);
    color: var(--sg-cyan);
    font-size: 0.65rem;
    font-weight: 950;
    clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}

.adventure-chapter-timeline article > div {
    display: grid;
    gap: 3px;
}

.adventure-chapter-timeline article small {
    color: var(--sg-ink-600);
    font-size: 0.53rem;
    font-weight: 850;
    text-transform: uppercase;
}

.adventure-chapter-timeline h3 {
    margin: 0;
    color: var(--sg-ink-950);
    font-size: 0.9rem;
    font-weight: 950;
    text-transform: uppercase;
}

.adventure-chapter-timeline article strong {
    color: var(--sg-cyan-dark);
    font-size: 0.64rem;
}

.adventure-chapter-timeline article p {
    margin: 4px 0 0;
    color: var(--sg-ink-600);
    font-size: 0.68rem;
    line-height: 1.45;
}

.adventure-detail-context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--sg-line);
}

.adventure-detail-context > div {
    min-width: 0;
}

.adventure-companion-list,
.adventure-gear-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.adventure-companion-list > span,
.adventure-gear-list > button,
.adventure-gear-list > span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid var(--sg-line);
    background: var(--sg-paper-muted);
    color: var(--sg-ink-950);
    font-size: 0.58rem;
    font-weight: 850;
}

.adventure-gear-list > button {
    cursor: pointer;
}

.adventure-companion-list i {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    background: linear-gradient(135deg, var(--sg-cyan), var(--sg-violet));
    color: #ffffff;
    font-size: 0.46rem;
    font-style: normal;
    font-weight: 950;
}

.adventure-detail-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--sg-line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

/* Composer */

.adventure-composer-overlay {
    z-index: 1250;
    padding: 18px;
    overflow-y: auto;
}

.adventure-composer {
    width: min(96vw, 1120px);
    max-width: 1120px;
    max-height: calc(100vh - 36px);
    margin: auto;
    overflow-y: auto;
}

.adventure-composer > .modal-header {
    position: sticky;
    top: 0;
    z-index: 4;
    align-items: flex-start;
    border-top: 4px solid var(--sg-cyan);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
}

.adventure-composer-body {
    padding: 0;
}

.adventure-composer-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 20px;
    padding: 20px;
    background:
        linear-gradient(120deg, rgba(0, 207, 232, 0.07), transparent 48%),
        var(--sg-paper-muted);
}

.adventure-composer-intro > div > span,
.adventure-composer-section > header > span,
.adventure-composer-section > header > div > span {
    color: var(--sg-cyan-dark);
    font-size: 0.55rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.adventure-type-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.adventure-type-picker label {
    --type-accent: var(--sg-cyan);
    display: grid;
    min-height: 76px;
    place-items: center;
    align-content: center;
    gap: 6px;
    border: 1px solid var(--sg-line);
    border-left: 3px solid var(--type-accent);
    background: #ffffff;
    color: var(--sg-ink-600);
    cursor: pointer;
}

.adventure-type-picker label.is-active {
    border-color: var(--sg-ink-950);
    background: var(--sg-ink-950);
    color: #ffffff;
    box-shadow: inset 0 -3px 0 var(--type-accent);
}

.adventure-type-picker input {
    position: absolute;
    opacity: 0;
}

.adventure-type-picker i {
    color: var(--type-accent);
    font-size: 1.05rem;
}

.adventure-type-picker strong {
    font-size: 0.6rem;
    font-weight: 950;
    text-transform: uppercase;
}

.adventure-cover-editor {
    min-width: 0;
}

.adventure-cover-editor > span {
    display: block;
    margin-bottom: 8px;
    color: var(--sg-ink-600);
    font-size: 0.53rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.adventure-cover-editor .photo-upload-container {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.adventure-cover-editor .photo-preview {
    border-radius: 0;
}

.adventure-cover-editor .photo-upload-actions {
    display: grid;
    gap: 5px;
}

.adventure-cover-editor .photo-upload-hint {
    font-size: 0.52rem;
}

.adventure-composer-section {
    padding: 20px;
    border-top: 1px solid var(--sg-line);
}

.adventure-composer-section > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.adventure-composer-section > header > div {
    display: grid;
    gap: 2px;
}

.adventure-composer-section > header small {
    color: var(--sg-ink-600);
    font-size: 0.58rem;
}

.adventure-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.adventure-form-grid .is-wide {
    grid-column: 1 / -1;
}

.form-input-with-unit {
    position: relative;
}

.form-input-with-unit input {
    padding-right: 48px;
}

.form-input-with-unit span {
    position: absolute;
    top: 50%;
    right: 12px;
    color: var(--sg-ink-600);
    font-size: 0.58rem;
    font-weight: 900;
    transform: translateY(-50%);
}

.adventure-story-input {
    min-height: 120px;
    resize: vertical;
}

.adventure-summary-editor {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--sg-line);
    background: var(--sg-line);
}

.adventure-summary-editor label {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: var(--sg-paper-muted);
}

.adventure-summary-editor label > span {
    color: var(--sg-ink-600);
    font-size: 0.53rem;
    font-weight: 950;
    text-transform: uppercase;
}

.adventure-chapter-list {
    display: grid;
    gap: 8px;
}

.adventure-chapter-editor {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--sg-line);
    border-left: 3px solid var(--sg-cyan);
    background: var(--sg-paper-muted);
}

.adventure-chapter-number {
    display: grid;
    width: 38px;
    height: 34px;
    place-items: center;
    background: var(--sg-ink-950);
    color: var(--sg-cyan);
    font-size: 0.6rem;
    font-weight: 950;
    clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}

.adventure-chapter-editor > div {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.adventure-chapter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.adventure-chapter-head strong {
    color: var(--sg-ink-950);
    font-size: 0.58rem;
    font-weight: 950;
    text-transform: uppercase;
}

.adventure-chapter-head button {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--sg-ink-400);
    cursor: pointer;
}

.adventure-chapter-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.adventure-context-editor > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 14px;
}

.adventure-person-picker {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
}

.adventure-person-picker > .form-label {
    width: 100%;
}

.adventure-person-picker label {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid var(--sg-line);
    background: #ffffff;
    color: var(--sg-ink-950);
    font-size: 0.6rem;
    font-weight: 850;
    cursor: pointer;
}

.adventure-person-picker label:has(input:checked) {
    border-color: var(--sg-violet);
    background: rgba(116, 87, 255, 0.08);
}

.adventure-person-picker input {
    position: absolute;
    opacity: 0;
}

.adventure-person-picker i {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    background: linear-gradient(135deg, var(--sg-cyan), var(--sg-violet));
    color: #ffffff;
    font-size: 0.46rem;
    font-style: normal;
    font-weight: 950;
}

.adventure-gear-picker {
    border: 1px solid var(--sg-line);
    background: var(--sg-paper);
}

.adventure-gear-picker summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 11px;
    color: var(--sg-ink-950);
    font-size: 0.62rem;
    font-weight: 900;
    cursor: pointer;
}

.adventure-gear-picker summary span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.adventure-gear-picker summary small {
    color: var(--sg-ink-600);
    font-size: 0.52rem;
}

.adventure-gear-picker > div {
    display: grid;
    max-height: 210px;
    overflow-y: auto;
    border-top: 1px solid var(--sg-line);
}

.adventure-gear-picker label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    border-bottom: 1px solid var(--sg-line);
    color: var(--sg-ink-950);
    font-size: 0.59rem;
    cursor: pointer;
}

.adventure-composer-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
}

.adventure-composer-actions > span {
    margin-right: auto;
    color: var(--sg-ink-600);
    font-size: 0.56rem;
    font-weight: 850;
}

.adventure-composer-actions > span i {
    margin-right: 5px;
    color: var(--sg-violet);
}

@media (max-width: 980px) {
    .adventure-journal-hero {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.5fr);
    }

    .adventure-log-cta {
        grid-column: 2;
    }

    .adventure-story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adventure-story-card.is-featured {
        grid-column: 1 / -1;
    }

    .adventure-season-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .adventure-season-strip > div:nth-child(n+4) {
        border-top: 1px solid var(--sg-line);
    }

    .field-record-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .adventure-composer-intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .adventure-cover-editor .photo-upload-container {
        grid-template-columns: 150px minmax(0, 240px);
    }
}

@media (max-width: 720px) {
    .adventure-journal-hero {
        display: flex;
        min-height: 480px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-end;
        padding: 24px 20px;
    }

    .adventure-journal-hero .logbook-story-copy h1 {
        font-size: clamp(3rem, 16vw, 4.6rem);
    }

    .adventure-hero-latest {
        width: 100%;
        min-height: 92px;
    }

    .adventure-log-cta {
        width: 100%;
        align-self: stretch;
    }

    .logbook-journal-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .logbook-journal-nav .logbook-scope-switch {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .logbook-journal-nav .logbook-scope-switch button {
        min-width: 0;
        justify-content: center;
        padding: 0 7px;
        font-size: 0.54rem;
    }

    .logbook-journal-nav .logbook-scope-switch button span {
        display: none;
    }

    .adventure-period-filter {
        justify-content: space-between;
    }

    .adventure-season-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adventure-season-strip > div {
        border-top: 1px solid var(--sg-line);
    }

    .adventure-season-strip > div:last-child {
        grid-column: 1 / -1;
    }

    .adventure-logbook-toolbar {
        min-width: 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .adventure-sport-filters {
        width: 100%;
    }

    .adventure-story-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .adventure-story-card.is-featured {
        grid-column: auto;
    }

    .adventure-story-card.is-featured .adventure-story-media,
    .adventure-story-media {
        min-height: 330px;
    }

    .adventure-shared-card .adventure-story-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .adventure-shared-card .adventure-story-stats {
        width: 100%;
    }

    .adventure-send-reaction {
        justify-content: center;
    }

    .field-record-counts {
        width: 100%;
        overflow-x: auto;
    }

    .field-record-counts > span {
        flex: 1 0 90px;
    }

    .field-record-row {
        grid-template-columns: 48px 34px minmax(0, 1fr) 14px;
        gap: 8px;
        padding: 8px 9px;
    }

    .field-record-date {
        padding-right: 6px;
    }

    .field-record-copy {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .field-record-copy small {
        order: 1;
    }

    .field-record-copy strong {
        order: 2;
    }

    .field-record-copy span {
        order: 3;
    }

    .adventure-detail-overlay,
    .adventure-composer-overlay {
        padding: 0;
    }

    .adventure-detail,
    .adventure-composer {
        width: 100%;
        max-height: 100vh;
        border: 0;
    }

    .adventure-detail-hero {
        min-height: 330px;
        padding: 16px 16px 20px;
    }

    .adventure-detail-badges {
        top: 16px;
        left: 16px;
    }

    .adventure-detail-badges span {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .adventure-detail-hero h2 {
        font-size: clamp(2.2rem, 13vw, 4rem);
    }

    .adventure-detail-body {
        padding: 18px 16px;
    }

    .adventure-detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adventure-detail-context {
        grid-template-columns: minmax(0, 1fr);
    }

    .adventure-detail-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adventure-detail-actions .btn {
        min-width: 0;
    }

    .adventure-composer-intro,
    .adventure-composer-section {
        padding: 16px;
    }

    .adventure-type-picker {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .adventure-cover-editor .photo-upload-container {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .adventure-cover-editor .photo-preview {
        width: 110px !important;
        height: 110px !important;
    }

    .adventure-form-grid,
    .adventure-summary-editor,
    .adventure-context-editor > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .adventure-summary-editor {
        gap: 1px;
    }

    .adventure-chapter-editor {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
    }

    .adventure-chapter-number {
        width: 32px;
    }

    .adventure-chapter-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .adventure-composer-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .adventure-composer-actions > span {
        grid-column: 1 / -1;
        margin: 0;
    }

    .adventure-composer-actions > button:first-of-type {
        display: none;
    }
}

@media (max-width: 420px) {
    .adventure-story-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adventure-story-card.is-featured .adventure-story-stats > span:nth-child(3) {
        grid-column: 1 / -1;
    }

    .adventure-story-context {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .adventure-story-context > button {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}
