/* Guiden, om-sidan, bekräftelsedialogen och toasten. */
/* ---------- Guide, om-sidan och dialoger ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.5); animation: fade 150ms; }
.sheet { position: relative; width: 100%; max-width: 720px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; padding-bottom: calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--bg); animation: slide-up 220ms ease-out; }
.sheet:focus { outline: none; }
@media (min-width: 760px) {
  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet { max-height: 88vh; max-height: 88dvh; border-radius: 22px; }
}
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(0, 0, 0, 0.12); color: var(--tone-text, inherit); }
.sheet-close .icon { width: 24px; height: 24px; }
.sheet-hero { padding: 26px 64px 22px 24px; background: var(--tone, var(--soft)); color: var(--tone-text, var(--ink)); }
.sheet-hero--plain { background: var(--soft); color: var(--ink); }
.sheet-kicker { font-size: 13px; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.sheet-hero h2 { margin-top: 2px; font-size: 26px; font-weight: 900; line-height: 1.2; }
.sheet-hero p:last-child { margin-top: 6px; font-size: 15px; font-weight: 700; }
.guide-section { padding: 22px 24px 0; }
.guide-section > h3 { margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.guide-points { display: grid; gap: 8px; margin: 0; padding-left: 20px; font-size: 16px; }
.guide-summary { font-size: 16px; line-height: 1.55; }
.guide-trap { margin-top: 12px; padding: 12px 14px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--gold-soft); color: var(--ink); font-size: 15px; }
.guide-people { display: grid; gap: 10px; }
.person-card { padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; }
.person-card h4 { color: var(--ink-strong); font-size: 17px; font-weight: 900; }
.person-card .area { color: var(--tone-ink, var(--muted)); font-size: 13px; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.person-card p { margin-top: 6px; font-size: 15px; line-height: 1.5; }
.person-card .remember { color: var(--muted); font-size: 14px; }
.guide-concepts { display: grid; gap: 0; }
.concept-row { display: grid; grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 2px solid var(--line); }
.concept-row dt { color: var(--ink-strong); font-size: 16px; font-weight: 900; }
.concept-row dd { font-size: 15px; line-height: 1.5; }
.concept-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.guide-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.event-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 2px solid var(--line); }
.event-row time { color: var(--tone-ink, var(--ink)); font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.event-row h4 { color: var(--ink-strong); font-size: 16px; font-weight: 900; }
.event-row p { margin-top: 2px; font-size: 15px; line-height: 1.5; }
.event-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.guide-template { margin-bottom: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; }
.guide-template h4 { color: var(--ink-strong); font-size: 17px; font-weight: 900; }
.guide-template ol { display: grid; gap: 6px; margin: 8px 0 0; padding-left: 22px; font-size: 15px; }
.guide-template p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.sheet-actions { padding: 24px 24px 0; }
.keys { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; font-size: 15px; }
.keys dt { color: var(--ink-strong); font-weight: 900; }
.source-group { margin-bottom: 14px; }
.source-group h4 { margin-bottom: 6px; color: var(--ink-strong); font-size: 15px; font-weight: 900; }
.source-group ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.source-group small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.about-text { font-size: 16px; line-height: 1.55; }
.about-text + .about-text { margin-top: 10px; }
.about-text a { color: var(--blue-ink); font-weight: 800; }

.modal-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.55); animation: fade 120ms; }
.modal { width: min(420px, 100%); padding: 26px 22px 20px; border-radius: 22px; background: var(--bg); text-align: center; animation: pop-in 160ms ease-out; }
.modal h2 { color: var(--ink-strong); font-size: 22px; font-weight: 900; }
.modal p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.modal-actions { display: grid; gap: 10px; margin-top: 22px; }
.modal .btn--quiet { --face: transparent; --shadow: transparent; --text: var(--red-ink); }

.toast { position: fixed; top: calc(78px + env(safe-area-inset-top)); left: 50%; z-index: 95; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink-strong); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2); color: var(--bg); font-weight: 800; text-align: center; transform: translateX(-50%); animation: toast-in 180ms ease-out; transition: opacity 300ms; }
.toast.is-leaving { opacity: 0; }
