/* Sailplane — self-contained. Tokens scoped to [data-theme="sailplane"],
   not a shared :root. See styles/gardening/style.css's header comment for
   why. */

[data-theme="sailplane"] {
  --sandbank:    #cdc6b4;
  --tideglass:   #98a5a8;
  --wrack:       #2b241f;
  --thermal:     #2f6fb0;
  --cumulus:     #f4f6f8;
  --cloudshadow: #7c8ba0;
  --duskline:    #e3c98f;
}

.gallery-card[data-theme="sailplane"] { background: var(--thermal); }
.gallery-card[data-theme="sailplane"] .gc-name { font-family: Georgia, serif; font-weight: 400; color: var(--cumulus); }
.gallery-card[data-theme="sailplane"] .gc-tagline { color: var(--duskline); }
.gallery-card[data-theme="sailplane"] .gc-chip { color: var(--wrack); background: var(--duskline); }

/* ════════════════════════════════════════════════════════════════════
   SAILPLANE — same components as sailing.tilde.style.
   ════════════════════════════════════════════════════════════════════ */

.theme-panel[data-theme="sailplane"] { background-color: var(--cumulus); color: var(--wrack); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; line-height: 1.65; }
[data-theme="sailplane"] .start { border-bottom: 1px solid var(--cloudshadow); padding: var(--gap) 1.5rem calc(var(--gap) * 1.25); background-color: var(--thermal); }
[data-theme="sailplane"] .start-inner { max-width: var(--measure); margin: 0 auto; }
[data-theme="sailplane"] .site-name { font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 400; color: var(--cumulus); letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 0.4em; }
[data-theme="sailplane"] .site-tagline { color: var(--duskline); font-size: 1rem; margin-bottom: 2rem; }
[data-theme="sailplane"] .kurs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; }
[data-theme="sailplane"] a.wegpunkt { color: var(--thermal); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 300ms ease, color 300ms ease; }
[data-theme="sailplane"] .start a.wegpunkt { color: var(--cumulus); }
[data-theme="sailplane"] a.wegpunkt:hover, [data-theme="sailplane"] a.wegpunkt:focus-visible { color: var(--duskline); border-bottom-color: var(--duskline); outline: none; }
[data-theme="sailplane"] a.wegpunkt:focus-visible { outline: 2px solid var(--duskline); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { [data-theme="sailplane"] a.wegpunkt { transition: none; } }

[data-theme="sailplane"] .flugbuch-entry { padding: var(--gap) 1.5rem; border-bottom: 1px solid var(--cloudshadow); }
[data-theme="sailplane"] .flugbuch-entry-inner { max-width: var(--measure); margin: 0 auto; }
[data-theme="sailplane"] .flugbuch-entry h2 { font-family: Georgia, serif; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 400; color: var(--wrack); margin-bottom: 1rem; }
[data-theme="sailplane"] .flugbuch-entry p { margin-bottom: 1em; max-width: var(--measure); }
[data-theme="sailplane"] .flugbuch-entry p:last-child { margin-bottom: 0; }

[data-theme="sailplane"] blockquote { border-left: 3px solid var(--thermal); padding: 0.75rem 1.25rem; margin: 1.5rem 0; background-color: var(--cumulus); border-radius: 0 4px 4px 0; }
[data-theme="sailplane"] blockquote p { font-family: Georgia, serif; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--wrack); font-style: italic; margin-bottom: 0 !important; }

[data-theme="sailplane"] code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 0.875em; color: var(--thermal); background: var(--cumulus); padding: 0.1em 0.35em; border-radius: 3px; }
[data-theme="sailplane"] pre.kindling { background: var(--cumulus); border: 1px solid var(--cloudshadow); border-radius: 4px; padding: 1rem 1.25rem; margin: 1rem 0; overflow-x: auto; }
[data-theme="sailplane"] pre.kindling code { background: none; padding: 0; color: var(--wrack); font-size: 0.9rem; }
[data-theme="sailplane"] .instrument-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9375rem; }
[data-theme="sailplane"] .instrument-table th { text-align: left; color: var(--cloudshadow); font-weight: 400; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--cloudshadow); }
[data-theme="sailplane"] .instrument-table td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--cloudshadow); vertical-align: top; }
[data-theme="sailplane"] .instrument-table tr:last-child td { border-bottom: none; }

[data-theme="sailplane"] .gaggle-card { background: var(--cumulus); border: 1px solid var(--cloudshadow); border-radius: 10px; padding: 1.25rem 1.5rem; margin: 1.25rem 0; }
[data-theme="sailplane"] .gaggle-card h3 { font-family: Georgia, serif; font-weight: 400; font-size: 1.25rem; color: var(--thermal); margin-bottom: 0.5rem; }
[data-theme="sailplane"] .gaggle-card.contribute h3 { color: var(--wrack); }
[data-theme="sailplane"] .gaggle-card ol { padding-left: 1.25em; margin: 0.75em 0; }
[data-theme="sailplane"] .gaggle-card ol li { margin-bottom: 0.4em; }

[data-theme="sailplane"] .variometer { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem !important; }
[data-theme="sailplane"] .variometer-reading { display: inline-block; font-size: 0.8125rem; color: var(--cloudshadow); border: 1px solid var(--cloudshadow); border-radius: 2px; padding: 0.2em 0.6em; font-family: ui-monospace, monospace; }
[data-theme="sailplane"] .cloudshadow-text { color: var(--cloudshadow); font-size: 0.9375rem; }

[data-theme="sailplane"] .landung { padding: var(--gap) 1.5rem; background-color: var(--thermal); color: var(--cumulus); }
[data-theme="sailplane"] .landung-inner { max-width: var(--measure); margin: 0 auto; }
[data-theme="sailplane"] .landung p { color: var(--cumulus); font-size: 0.9rem; margin-bottom: 0.5em; line-height: 1.5; }
[data-theme="sailplane"] .landung p:last-child { margin-bottom: 0; }
[data-theme="sailplane"] .landung a.wegpunkt { color: var(--duskline); }

@media (max-width: 480px) {
  [data-theme="sailplane"] .instrument-table td:first-child { white-space: normal; }
}
