/* Editing a trip in place - dragging, retiming, renaming - and what the
   assistant offers before anything is changed. */

/* --------------------------------------------------------------- dragging */
/* The handle lives in the time column, which is already the row's gutter, so
   the three-column grid is left alone. */

.timeline-drag-handle {
    margin-top: var(--space-1);
    align-self: flex-end;
    width: 32px;
    height: 28px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-3);
    font-size: 0;
    line-height: var(--leading-flat);
    cursor: grab;
    opacity: 0;
    transition: opacity var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.timeline-drag-handle > span { display: block; font-size: var(--text-lg); line-height: var(--leading-flat); }
.timeline-item:hover .timeline-drag-handle,
.timeline-drag-handle:focus-visible { opacity: 1; }
.timeline-drag-handle:hover,
.timeline-drag-handle:focus-visible { background: var(--canvas-2); color: var(--ink); }
.timeline-drag-handle:active { cursor: grabbing; }
.timeline-item.is-dragging { opacity: 0.45; }

/* Where the row would land. */
.timeline-item.is-drop-before::after,
.timeline-item.is-drop-after::after {
    content: "";
    position: absolute;
    left: 72px;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--fern);
}
.timeline-item.is-drop-before::after { top: -1px; }
.timeline-item.is-drop-after::after { bottom: -1px; }

/* A time that no longer agrees with where its row sits. The time is kept as
   the traveller set it; this is only so that it is not kept silently. */
.timeline-time.is-out-of-order strong {
    text-decoration: underline dotted currentColor;
    text-underline-offset: 3px;
    cursor: help;
}

/* A drag that left the day out of time order. See the note in day-order.js:
   a contradiction you cannot act on is just a contradiction. */
.day-order-note {
    display: grid;
    gap: var(--space-3);
    margin: var(--space-4) 0 0;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--fern-tint-2);
    border-left: 3px solid var(--fern);
    border-radius: var(--radius-md);
    background: var(--fern-tint);
}
.day-order-copy { margin: 0; color: var(--ink); font-size: var(--text-xs); line-height: var(--leading-normal); }
.day-order-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.day-order-apply, .day-order-other {
    min-height: 32px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    font-variant-numeric: tabular-nums;
}
.day-order-apply { border: 1px solid var(--fern); background: var(--fern); color: var(--ink-inverse); }
.day-order-apply:hover { background: var(--fern-hover); }
.day-order-other { border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-2); }
.day-order-other:hover { border-color: var(--fern); color: var(--fern); }

/* --------------------------------------------------------- editing in place */

.timeline-time-edit {
    cursor: pointer;
    padding: 1px var(--space-1);
    margin: -1px calc(var(--space-1) * -1);
    border-radius: var(--radius-sm);
}
.timeline-time-edit:hover,
.timeline-time-edit:focus-visible { background: var(--fern-tint); color: var(--fern); }
.timeline-time-input {
    width: 100%;
    padding: 1px var(--space-1);
    border: 1px solid var(--fern);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: var(--text-xs);
    font-variant-numeric: tabular-nums;
}

.journey-chip.is-editable {
    cursor: pointer;
    transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.journey-chip.is-editable:hover,
.journey-chip.is-editable:focus-visible { border-color: var(--fern); background: var(--fern-tint); }

/* An arrow that carries a driving time, taken from the plan's own drive. */
.journey-arrow.has-leg {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: var(--leading-tight);
    cursor: help;
}
.journey-arrow.has-leg small {
    color: var(--ink-3);
    font-size: var(--text-2xs);
    font-weight: var(--weight-medium);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.journey-arrow.is-editable {
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 2px var(--space-1);
    margin: -2px calc(var(--space-1) * -1);
}
.journey-arrow.is-editable:hover,
.journey-arrow.is-editable:focus-visible { background: var(--fern-tint); }
.journey-arrow.is-editable:hover small,
.journey-arrow.is-editable:focus-visible small { color: var(--fern); }

/* ------------------------------------------------------- what it suggests */

.assistant-suggestions-lead {
    margin: 0;
    color: var(--ink-3);
    font-size: var(--text-2xs);
    font-weight: var(--weight-semi);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}
.assistant-suggestions button.assistant-starter {
    color: var(--ink-3);
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}
.assistant-suggestions button.assistant-starter:hover,
.assistant-suggestions button.assistant-starter:focus-visible { color: var(--ink); }

/* ----------------------------------------------------- a change, not yet made */

.assistant-proposal {
    align-self: stretch;
    margin: var(--space-1) 0 var(--space-2);
    border: 1px solid var(--fern);
    border-radius: var(--radius-md);
    background: var(--paper);
    overflow: hidden;
}
.assistant-proposal-lead {
    margin: 0;
    padding: var(--space-3) var(--space-3) var(--space-2);
    color: var(--ink);
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
}
.assistant-proposal-changes {
    max-height: 260px;
    overflow-y: auto;
    padding: 0 var(--space-3);
}
.assistant-proposal ul {
    margin: 0;
    padding-left: var(--space-4);
    color: var(--ink-2);
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}
.assistant-proposal-day {
    margin: var(--space-2) 0 var(--space-1);
    color: var(--ink);
    font-size: var(--text-2xs);
    font-weight: var(--weight-semi);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}
.assistant-proposal-day:first-child { margin-top: 0; }
.assistant-proposal-actions {
    margin-top: var(--space-3);
    padding: var(--space-2);
    display: flex;
    gap: var(--space-2);
    border-top: 1px solid var(--line);
    background: var(--canvas);
}
.assistant-proposal-actions button {
    flex: 1;
    min-height: 36px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
}
.assistant-proposal-apply {
    border: 1px solid var(--fern);
    background: var(--fern);
    color: var(--ink-inverse);
}
.assistant-proposal-apply:hover { background: var(--fern-hover); }
.assistant-proposal-discard {
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink-2);
}
.assistant-proposal-discard:hover { border-color: var(--ink-3); color: var(--ink); }

/* Which days the offer would touch, marked on the plan itself.
   A list of changes in a side panel is a description; this is the thing being
   described, so the traveller can see where the change lands before deciding. */
.day-row.is-proposed {
    border-color: var(--fern);
    background: var(--fern-tint);
}
.day-row.is-proposed .day-row-top::after {
    content: "";
    flex: none;
    align-self: center;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fern);
}
.day-proposal-flag {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    margin-bottom: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--fern);
    border-radius: var(--radius-md);
    background: var(--fern-tint);
    color: var(--fern);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    text-align: left;
}
.day-proposal-flag:hover { background: var(--fern-tint-2); }
.day-proposal-flag strong { font-weight: var(--weight-semi); }

/* --------------------------------------------------------- route editing */

.route-edit-overlay { z-index: 120; }
.route-edit-panel { width: min(460px, 100%); }
.route-edit-panel h2 { margin: 0; font-size: var(--text-lg); }
.route-edit-note {
    margin: var(--space-1) 0 var(--space-4);
    color: var(--ink-3);
    font-size: var(--text-xs);
}
.route-edit-list { flex: 1; min-height: 0; overflow-y: auto; }
.route-edit-stop {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    position: relative;
}
.route-edit-stay { display: flex; align-items: center; gap: var(--space-1); flex: 0 0 auto; }
.route-edit-stay small { color: var(--ink-3); font-size: var(--text-2xs); }
.route-edit-stop input.route-edit-days {
    flex: 0 0 auto;
    width: 52px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.route-edit-stop input {
    flex: 1;
    min-width: 0;
    min-height: 38px;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--paper);
    font-size: var(--text-xs);
}
.route-edit-stop input:focus { border-color: var(--fern); outline: 0; }
.route-edit-remove {
    flex: none;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-3);
    font-size: var(--text-sm);
    line-height: var(--leading-flat);
}
.route-edit-remove:hover { background: var(--alert-tint); color: var(--alert); }
.route-edit-leg {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-1) 0 var(--space-1) var(--space-3);
    padding-left: var(--space-3);
    border-left: 2px solid var(--line);
}
.route-edit-leg small { color: var(--ink-3); font-size: var(--text-2xs); }
.route-edit-leg-reading { font-variant-numeric: tabular-nums; }
.route-edit-leg input {
    width: 76px;
    min-height: 30px;
    padding: var(--space-1) var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-size: var(--text-xs);
}
.route-edit-add {
    margin-top: var(--space-3);
    padding: var(--space-2) 0;
    border: 0;
    background: none;
    color: var(--fern);
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
}
.route-edit-add:hover { text-decoration: underline; }
.route-edit-actions {
    margin-top: var(--space-4);
    display: flex;
    gap: var(--space-2);
    justify-content: flex-end;
}

/* ------------------------------------------------------------- what is near */

.nearby-overlay { z-index: 110; }
.nearby-panel { width: min(760px, 100%); }
.nearby-panel h2 { margin: 0 0 var(--space-1); font-size: var(--text-lg); }
.nearby-note {
    margin: 0 0 var(--space-4);
    color: var(--ink-3);
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}
.nearby-body { flex: 1; min-height: 0; overflow-y: auto; }
.nearby-empty { margin: var(--space-2) 0; color: var(--ink-3); font-size: var(--text-xs); }
.nearby-group {
    margin: var(--space-4) 0 var(--space-2);
    color: var(--ink-3);
    font-size: var(--text-2xs);
    font-weight: var(--weight-semi);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}
.nearby-group:first-child { margin-top: 0; }
.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: var(--space-3);
}
.nearby-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    color: var(--ink);
    text-align: left;
    transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease),
                transform var(--dur-2) var(--ease);
}
.nearby-card:hover,
.nearby-card:focus-visible {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
}
.nearby-card-photo {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--canvas-2);
}
/* A place with no photograph keeps its panel rather than borrowing one of
   somewhere else, so the grid still lines up. */
.nearby-card-photo.is-empty {
    background: repeating-linear-gradient(135deg,
        var(--canvas-2), var(--canvas-2) 6px, var(--canvas) 6px, var(--canvas) 12px);
}
.nearby-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nearby-card-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-2) var(--space-3) var(--space-3);
}
.nearby-card strong {
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    line-height: var(--leading-snug);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.nearby-card small { color: var(--ink-3); font-size: var(--text-2xs); }

.nearby-detail-photo { margin: 0 0 var(--space-4); }
.nearby-detail-photo img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}
.nearby-detail-photo figcaption {
    padding-top: var(--space-1);
    color: var(--ink-3);
    font-size: var(--text-2xs);
}
.nearby-detail-guide { font-size: var(--text-xs); line-height: var(--leading-normal); }
.nearby-detail-guide p { margin: 0 0 var(--space-3); }
.nearby-detail-guide ul { margin: 0; padding-left: var(--space-4); }
.nearby-detail-guide li { margin-bottom: var(--space-1); }
.nearby-detail-unknown { color: var(--ink-3); }
.nearby-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    padding-top: var(--space-4);
}

/* -------------------------------------------------- a day the weather spoiled */

.day-weather.is-rough strong { background: var(--alert-tint); color: var(--alert); }
.day-weather-shelter {
    padding: 2px var(--space-3);
    border: 1px solid var(--alert);
    border-radius: var(--radius-full);
    background: var(--paper);
    color: var(--alert);
    font-size: var(--text-2xs);
    font-weight: var(--weight-semi);
}
.day-weather-shelter:hover { background: var(--alert); color: var(--ink-inverse); }

.wet-overlay { z-index: 110; }
.wet-panel { width: min(580px, 100%); }
.wet-panel h2 { margin: 0 0 var(--space-1); font-size: var(--text-lg); }
.wet-note {
    margin: 0 0 var(--space-4);
    color: var(--ink-3);
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}
.wet-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.wet-empty { margin: 0; color: var(--ink-3); font-size: var(--text-xs); line-height: var(--leading-normal); }
.wet-option {
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--canvas);
}
.wet-option strong { display: block; font-size: var(--text-xs); font-weight: var(--weight-semi); }
.wet-option small { color: var(--ink-3); font-size: var(--text-2xs); }
.wet-option p { margin: var(--space-1) 0 0; font-size: var(--text-xs); line-height: var(--leading-normal); }
.wet-option-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
}
.wet-option-add {
    min-height: 30px;
    padding: 0 var(--space-3);
    border: 0;
    border-radius: var(--radius-full);
    background: var(--fern);
    color: var(--ink-inverse);
    font-size: var(--text-2xs);
    font-weight: var(--weight-semi);
}
.wet-option-add:hover { background: var(--fern-hover); }
.wet-option-swap {
    max-width: 200px;
    min-height: 30px;
    padding: 0 var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    background: var(--paper);
    font-size: var(--text-2xs);
}
.wet-option-links { display: flex; gap: var(--space-3); margin-top: var(--space-2); }
.wet-option-links a { color: var(--fern); font-size: var(--text-2xs); font-weight: var(--weight-semi); }
.wet-actions { display: flex; justify-content: flex-end; padding-top: var(--space-4); }

/* ------------------------------------------------------ somewhere to sleep
   or eat. See the note at the top of add-ideas.js: the form comes second,
   because "where are you staying in Twizel?" is an unfair question to put to
   somebody who has never been to the South Island. */

.ideas-overlay { z-index: 115; }
.ideas-panel { width: min(600px, 100%); }
.ideas-panel h2 { margin: 0; font-size: var(--text-lg); }
.idea-note {
    margin: var(--space-2) 0 var(--space-4);
    color: var(--ink-2);
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}

.idea-controls {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--canvas);
}
.idea-meals { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.idea-meal {
    min-height: 30px;
    padding: 0 var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    background: var(--paper);
    color: var(--ink-2);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
}
.idea-meal:hover { border-color: var(--line-strong); color: var(--ink); }
.idea-meal.is-on { border-color: var(--fern); background: var(--fern); color: var(--ink-inverse); }

.idea-place, .idea-nights { position: relative; display: grid; gap: var(--space-1); }
.idea-nights { max-width: 120px; }
.idea-place > span, .idea-nights > span {
    font-size: var(--text-2xs);
    font-weight: var(--weight-semi);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--ink-3);
}
.idea-place input, .idea-nights input {
    width: 100%;
    min-height: 40px;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: var(--text-xs);
}
.idea-place input:focus, .idea-nights input:focus {
    border-color: var(--fern);
    outline: 0;
    box-shadow: 0 0 0 3px var(--fern-tint-2);
}
.idea-time-note { margin: var(--space-2) 0 0; color: var(--ink-3); font-size: var(--text-2xs); }
.idea-time-note:empty { display: none; }
.idea-ask { width: 100%; margin-top: var(--space-3); }

.idea-body { flex: 1; min-height: 0; overflow-y: auto; margin-top: var(--space-4); }
.idea-waiting { margin: 0; color: var(--ink-3); font-size: var(--text-xs); line-height: var(--leading-normal); }
.idea-lead {
    margin: 0 0 var(--space-3);
    color: var(--ink-2);
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}
.idea-list { display: grid; gap: var(--space-2); }
.idea-card {
    display: grid;
    gap: var(--space-1);
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    text-align: left;
    transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.idea-card:hover, .idea-card:focus-visible { border-color: var(--fern); background: var(--fern-tint); }
.idea-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.idea-kind {
    color: var(--fern);
    font-size: var(--text-2xs);
    font-weight: var(--weight-semi);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}
.idea-price {
    color: var(--ink-2);
    font-size: var(--text-2xs);
    font-weight: var(--weight-semi);
    font-variant-numeric: tabular-nums;
}
.idea-card strong { font-size: var(--text-sm); font-weight: var(--weight-semi); letter-spacing: var(--tracking-tight); }
.idea-why { color: var(--ink-3); font-size: var(--text-xs); line-height: var(--leading-snug); }

.idea-caveat {
    margin: var(--space-3) 0 0;
    color: var(--ink-3);
    font-size: var(--text-2xs);
    line-height: var(--leading-normal);
}
.idea-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-4);
}

/* How are you getting there. See the note in add-item.js: a drive cannot
   cross the Cook Strait, and this app used to let it. */
.travel-overlay { z-index: 115; }
.travel-panel { width: min(460px, 100%); }
.travel-panel h2 { margin: 0; font-size: var(--text-lg); }
.travel-note {
    margin: var(--space-2) 0 var(--space-4);
    color: var(--ink-2);
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}
.travel-list { display: grid; gap: var(--space-2); }
.travel-mode {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    color: var(--ink);
    text-align: left;
    transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.travel-mode:hover, .travel-mode:focus-visible { border-color: var(--fern); background: var(--fern-tint); }
.travel-mode > svg { justify-self: center; color: var(--fern); }
.travel-mode-copy { display: grid; gap: 1px; min-width: 0; }
.travel-mode-copy strong { font-size: var(--text-sm); font-weight: var(--weight-semi); }
.travel-mode-copy small { color: var(--ink-3); font-size: var(--text-xs); }
.travel-cancel { justify-self: end; margin-top: var(--space-4); }

/* A stay and the route disagreeing. See the note at the top of stay-fit.js:
   both are the traveller's own words, so this asks rather than rewrites. */
.stay-fit {
    display: grid;
    gap: var(--space-3);
    width: 100%;
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--caution);
    border-radius: var(--radius-md);
    background: var(--caution-tint);
}
.stay-fit-copy { display: grid; gap: var(--space-1); }
.stay-fit-copy strong {
    color: var(--ink);
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    line-height: var(--leading-snug);
}
.stay-fit-copy span { color: var(--ink-2); font-size: var(--text-xs); line-height: var(--leading-normal); }
.stay-fit-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.stay-fit-apply, .stay-fit-other {
    min-height: 32px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
}
.stay-fit-apply { border: 1px solid var(--caution); background: var(--caution); color: var(--ink-inverse); }
.stay-fit-apply:hover { filter: brightness(0.92); }
.stay-fit-other { border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-2); }
.stay-fit-other:hover { border-color: var(--caution); color: var(--caution); }

/* Choosing the picture on the front of a trip. See cover_photos.py: these are
   looked up and credited, never generated. */
.cover-overlay { z-index: 115; }
.cover-panel { width: min(640px, 100%); }
.cover-panel h2 { margin: 0; font-size: var(--text-lg); }
.cover-note {
    margin: var(--space-2) 0 var(--space-4);
    color: var(--ink-2);
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}
.cover-body { flex: 1; min-height: 0; overflow-y: auto; }
.cover-waiting { margin: 0; color: var(--ink-3); font-size: var(--text-xs); line-height: var(--leading-normal); }
.cover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-3);
}
.cover-option {
    display: grid;
    gap: var(--space-2);
    padding: 0 0 var(--space-2);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    text-align: left;
    transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease),
                transform var(--dur-2) var(--ease);
}
.cover-option:hover, .cover-option:focus-visible {
    border-color: var(--fern);
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
}
.cover-option-photo { display: block; aspect-ratio: 16 / 9; background: var(--canvas-2); }
.cover-option-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-option-copy { display: grid; gap: 1px; padding: 0 var(--space-3); min-width: 0; }
.cover-option-copy strong { font-size: var(--text-xs); font-weight: var(--weight-semi); }
.cover-option-copy small {
    color: var(--ink-3);
    font-size: var(--text-2xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cover-plain {
    justify-self: start;
    margin-top: var(--space-4);
    padding: var(--space-2) 0;
    border: 0;
    background: none;
    color: var(--ink-3);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
}
.cover-plain:hover { color: var(--ink); }
.cover-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-4);
}

/* Official places to look, on the ideas panel. */
.idea-sources {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2);
    margin: var(--space-3) 0 0;
}
.idea-sources > span { color: var(--ink-3); font-size: var(--text-2xs); }
.idea-sources a {
    padding: 2px var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    color: var(--fern);
    font-size: var(--text-2xs);
    font-weight: var(--weight-semi);
    text-decoration: none;
}
.idea-sources a:hover { border-color: var(--fern); background: var(--fern-tint); }
