/* =========================================================
   Carp log
   ========================================================= */

.logger-head {
    position: relative;
    overflow: hidden;
    padding: 52px 0 0;
    background: var(--forest);
    color: var(--paper);
}

.logger-head::before {
    content: "";
    position: absolute;
    top: -220px;
    right: -80px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 106, .14), transparent 66%);
}

.logger-head-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 50px;
    align-items: end;
}

.logger-head h1 {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: clamp(4.4rem, 8vw, 7.4rem);
    font-weight: 400;
    letter-spacing: .01em;
    line-height: .8;
    text-transform: uppercase;
}

.logger-head-top > p {
    padding-bottom: 6px;
    color: rgba(243, 239, 227, .78);
    font-size: 11px;
    line-height: 1.75;
}

.logger-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 24px;
    margin-top: 44px;
    padding: 22px 0 26px;
    border-top: 1px solid var(--line-dark);
}

.logger-stats > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logger-stats strong {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: .03em;
    line-height: 1;
}

.logger-stats span {
    color: rgba(243, 239, 227, .76);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.logger-stats-mine {
    padding-left: 22px;
    border-left: 1px solid var(--line-dark);
}

.logger-section {
    padding: 34px 0 96px;
    background: var(--cream);
}

.logger-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.logger-main {
    min-width: 0;
}

/* Form */

.logger-form-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    scroll-margin-top: 110px;
}

.logger-form-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px 24px;
    border-bottom: 1px solid var(--line);
}

.logger-form-head h2 {
    margin-top: 5px;
    font-family: var(--font-display);
    font-size: 3.1rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: .9;
    text-transform: uppercase;
}

.logger-entry-no {
    padding: 5px 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    white-space: nowrap;
}

.logger-form-card > .form-alert {
    margin: 20px 32px 0;
}

.catch-form {
    display: block;
}

.form-section {
    padding: 27px 32px 29px;
    border-top: 1px solid var(--line);
}

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

.form-section-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 13px;
    margin-bottom: 21px;
}

.form-section-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 800;
}

.form-section-head h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: .03em;
    line-height: 1;
}

.form-section-head p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.field--wide {
    grid-column: 1 / -1;
}

.field--photo {
    grid-column: 1 / -1;
}

.bait-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.bait-chips button {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.bait-chips button:hover,
.bait-chips button.is-active {
    border-color: var(--gold-deep);
    background: rgba(201, 168, 106, .12);
    color: var(--ink);
}

/* Upload */

.upload-zone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 13px 15px;
    overflow: hidden;
    border: 1px dashed #c6bca6;
    background: var(--paper-2);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.upload-zone:hover {
    border-color: var(--gold-deep);
    background: #f8f2e4;
}

.upload-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-zone-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold-deep);
}

.upload-zone-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upload-zone-copy strong {
    font-size: 11px;
}

.upload-zone-copy small {
    color: var(--muted);
    font-size: 11px;
}

.upload-preview {
    width: 70px;
    height: 52px;
    margin-left: auto;
    object-fit: cover;
    border: 1px solid var(--line);
}

/* GPS */

.gps-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background: var(--forest);
    color: var(--paper);
}

.gps-box-copy strong {
    display: block;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gps-box-copy p {
    max-width: 430px;
    margin-top: 4px;
    color: rgba(243, 239, 227, .76);
    font-size: 11px;
    line-height: 1.6;
}

.gps-status {
    min-height: 18px;
    margin-top: 8px;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 700;
}

.gps-status.is-error {
    color: var(--rust);
}

.field-grid--gps {
    grid-template-columns: 1fr 1fr .8fr;
    margin-top: 3px;
}

.switch-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    cursor: pointer;
}

.switch-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.switch-ui {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 19px;
    margin-top: 1px;
    border: 1px solid #c3baa4;
    border-radius: 99px;
    background: #e5dfd1;
    transition: background .2s ease, border-color .2s ease;
}

.switch-ui::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: 0 1px 3px rgba(12, 21, 14, .2);
    transition: transform .2s ease;
}

.switch-row input:checked + .switch-ui {
    border-color: var(--forest);
    background: var(--forest);
}

.switch-row input:checked + .switch-ui::after {
    transform: translateX(15px);
    background: var(--gold);
}

.switch-row input:focus-visible + .switch-ui {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.switch-row > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.switch-row strong {
    font-size: 11px;
    font-weight: 700;
}

.switch-row small {
    color: var(--muted);
    font-size: 11px;
}

.catch-form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 32px;
    border-top: 1px solid var(--line);
    background: var(--paper-2);
}

.submit-note {
    display: block;
    max-width: 400px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

/* Locked state */

.logger-locked {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    overflow: hidden;
    padding: 38px;
    border: 1px solid var(--line);
    background: var(--paper);
    scroll-margin-top: 110px;
}

.logger-locked-art {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    aspect-ratio: 1;
    background: var(--forest);
    color: var(--gold);
}

.logger-locked-art img {
    width: 82px;
    height: 82px;
}

.logger-locked-art span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
}

.logger-locked h2 {
    margin-top: 7px;
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 400;
    letter-spacing: .01em;
    line-height: .9;
    text-transform: uppercase;
}

.logger-locked p {
    max-width: 550px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.logger-locked-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

/* Rail */

.logger-rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.logger-rail .map-card {
    position: sticky;
    top: 104px;
}

.map-card--detail {
    position: static;
}

.logger-rail .catch-map {
    height: 330px;
}

.rail-card--tip {
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--paper-2);
}

.rail-card--tip .rail-eyebrow {
    color: var(--gold-deep);
}

.rail-card--tip h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: .95;
}

.rail-card--tip p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.rail-card--personal {
    padding: 20px;
    background: var(--forest);
    color: var(--paper);
}

.rail-card--personal .rail-eyebrow {
    color: var(--gold);
}

.personal-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0 12px;
}

.personal-stat strong {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1;
}

.personal-stat span {
    color: rgba(243, 239, 227, .7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.rail-card--personal .text-link {
    border-color: rgba(243, 239, 227, .25);
    color: var(--paper);
    font-size: 11px;
}

/* Recent catches */

.recent-catches {
    margin-top: 54px;
    scroll-margin-top: 110px;
}

.recent-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.recent-head h2 {
    margin-top: 5px;
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 400;
    letter-spacing: .015em;
    line-height: .9;
    text-transform: uppercase;
}

.log-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 11px;
    border: 1px solid var(--line);
    background: var(--paper);
}

.log-filter-search {
    position: relative;
    display: flex;
    flex: 1 1 190px;
    align-items: center;
    min-width: 150px;
}

.log-filter-search svg {
    position: absolute;
    left: 10px;
    color: var(--muted);
}

.log-filter-search input {
    width: 100%;
    height: 38px;
    padding: 8px 10px 8px 33px;
    border: 1px solid var(--line);
    background: var(--paper-2);
    font-size: 11px;
}

.log-filters > input,
.log-filters > select {
    height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: var(--paper-2);
    font-size: 11px;
}

.log-filters > input {
    flex: 0 1 140px;
    min-width: 100px;
}

.log-filters > select {
    flex: 0 1 150px;
}

.log-filters > input:focus,
.log-filters > select:focus,
.log-filter-search input:focus {
    outline: none;
    border-color: var(--gold-deep);
}

.log-filters .button {
    flex: 0 0 auto;
}

.filter-reset {
    padding: 0 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.filter-reset:hover {
    color: var(--rust);
}

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

.recent-catches .empty-state {
    background: var(--paper);
}

/* Map private */

.map-private {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 220px;
    padding: 30px;
    background-color: var(--paper-2);
    background-image: radial-gradient(circle at 50% 30%, rgba(201, 168, 106, .15), transparent 65%);
    color: var(--muted);
    text-align: center;
}

.map-private svg {
    color: var(--gold-deep);
}

.map-private strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.map-private p {
    max-width: 260px;
    font-size: 11px;
    line-height: 1.55;
}
