/* Public /discover splash. Mirrors the login visual language (Divots green, rounded card,
   subtle shadow) and the app's cat-*, course-value and scroll-table-wrap conventions from layout.html.
   Dark mode follows the existing ThemeManager (body.dark-mode). */
.discover-body { background-color: #ffffff; margin: 0; min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 16px; }
body.dark-mode.discover-body { background-color: #121212; }

.theme-toggle { position: fixed; top: 12px; right: 12px; z-index: 50; width: 30px; height: 30px; border: 1px solid #cfd8dc; border-radius: 6px; background: #f8f9fa; color: #1f2937; cursor: pointer; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle:hover { background: #e9ecef; }
body.dark-mode .theme-toggle { background: #2a2a4a; color: #e0e0e0; border-color: #3f3f6f; }
body.dark-mode .theme-toggle:hover { background: #34345d; }

.discover-card { background: #2d6a4f; color: #ecf0f1; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); padding: 24px; width: 100%; max-width: 860px; box-sizing: border-box; overflow-wrap: anywhere; }
body.dark-mode .discover-card { background: #1e1e1e; color: #e0e0e0; box-shadow: 0 4px 16px rgba(0,0,0,0.35); }

.discover-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 8px; padding-right: 36px; }
.discover-title { font-size: 2rem; font-weight: 200; color: #ffffff; }
body.dark-mode .discover-title { color: #e0e0e0; }
.discover-brand { flex: 1 1 200px; font-family: 'Caveat', cursive; font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.discover-brand-line { display: block; color: #d4edda; }
.discover-brand-slogan { color: #a7f3d0; }
.discover-count { font-size: 0.9rem; color: #d4edda; }

.discover-slide { animation: discover-fade 0.45s ease-out; }
@keyframes discover-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .discover-slide { animation: none; } }

.discover-headline { font-size: 1.7rem; font-weight: 600; color: #ffffff; margin: 4px 0; }
body.dark-mode .discover-headline { color: #e0e0e0; }
.discover-body-text { color: #d4edda; margin-bottom: 12px; }
.discover-flags { min-height: 0; }
.discover-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 999px; margin-bottom: 4px; }
.discover-badge-soon { background: #F59E0B; color: #1f2937; border: 2px solid #1f2937; }
.discover-badge-bonus { background: #a7f3d0; color: #1b4332; }

/* Product preview panel: looks like an app page, readable in both themes. */
.discover-preview { background: #ffffff; color: #1f2937; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
body.dark-mode .discover-preview { background: #181818; color: #e0e0e0; }
body.dark-mode .discover-preview .table { --bs-table-color: #e0e0e0; --bs-table-bg: transparent; --bs-table-striped-bg: rgba(255,255,255,0.05); --bs-table-striped-color: #e0e0e0; --bs-table-border-color: #3a3a3a; color: #e0e0e0; }
.discover-preview-note { font-size: 0.75rem; color: #6c757d; margin: 0 0 8px; }
body.dark-mode .discover-preview-note { color: #9ca3af; }
.discover-sub { font-size: 0.95rem; font-weight: 600; margin: 10px 0 6px; }
.discover-table { font-size: 0.82rem; margin-bottom: 0; }
.discover-short-scroll .scroll-table-wrap, .discover-short-scroll { max-height: 220px; }
.scroll-table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; max-height: 60vh; }

.course-value { color: #1b7f4b; }
body.dark-mode .course-value { color: #4cc98a; }
.badge.cat-golf-trip { background: #16A34A; color: #ffffff; }

.discover-tile { background: #f1f5f2; border-radius: 8px; padding: 10px 6px; height: 100%; }
body.dark-mode .discover-tile { background: #242424; }
.discover-tile-num { font-size: 1.5rem; font-weight: 700; color: #2d6a4f; }
.discover-tile-text { font-size: 1.05rem; }
body.dark-mode .discover-tile-num { color: #4cc98a; }
.discover-tile-label { font-size: 0.75rem; color: #6c757d; }
body.dark-mode .discover-tile-label { color: #9ca3af; }

.discover-cal { table-layout: fixed; font-size: 0.72rem; margin-bottom: 4px; }
.discover-cal th { text-align: center; }
.discover-cal td { height: 54px; vertical-align: top; padding: 2px 3px; }
.discover-cal-day { display: block; font-weight: 600; }
.discover-cal-course { display: block; font-size: 0.62rem; line-height: 1.1; }
.discover-cal-played { background: #d1fae5; color: #1b4332; border-left: 3px solid #2d6a4f; }
body.dark-mode .discover-cal-played { background: #1f3d2f; color: #d1fae5; }
.discover-legend { font-size: 0.75rem; color: #6c757d; margin: 6px 0 0; }
body.dark-mode .discover-legend { color: #9ca3af; }
.discover-legend-swatch { display: inline-block; width: 10px; height: 10px; background: #d1fae5; border-left: 3px solid #2d6a4f; }

.discover-chart { width: 100%; height: auto; max-height: 190px; }
.discover-bar { fill: #2d6a4f; }
body.dark-mode .discover-bar { fill: #4cc98a; }
.discover-bar-num, .discover-bar-label { font-size: 9px; fill: currentColor; }

.discover-soon-banner { background: #fff7e0; color: #5b3d00; border: 2px dashed #b45309; border-radius: 6px; padding: 8px 10px; font-size: 0.85rem; margin-bottom: 6px; }
body.dark-mode .discover-soon-banner { background: #3a2c0c; color: #fcd9a0; border-color: #f59e0b; }

.discover-fieldset { border: 1px solid #2d6a4f; border-radius: 6px; padding: 8px 10px; }
.discover-fieldset legend { float: none; width: auto; font-size: 0.85rem; font-weight: 600; padding: 0 6px; color: #2d6a4f; margin: 0; }
body.dark-mode .discover-fieldset legend { color: #4cc98a; }

.discover-bullets { color: #ecf0f1; padding-left: 1.2rem; margin-bottom: 12px; }

.discover-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.discover-dots { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.discover-dot { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ffffff; background: transparent; }
.discover-dot.is-active { width: 30px; border-radius: 8px; background: #ffffff; }
body.dark-mode .discover-dot { border-color: #e0e0e0; }
body.dark-mode .discover-dot.is-active { background: #e0e0e0; }
.discover-position { text-align: center; font-size: 0.85rem; color: #d4edda; margin: 6px 0 12px; }

.discover-card a:focus-visible, .discover-card button:focus-visible, .theme-toggle:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }

.discover-cta { text-align: center; }
.discover-access-note { font-size: 0.8rem; color: #d4edda; margin: 8px 0; }
.discover-back { color: #a7f3d0; font-weight: 600; }

@media (max-width: 575.98px) {
    .discover-card { padding: 16px; }
    .discover-headline { font-size: 1.35rem; }
    .discover-dots { gap: 6px; }
    .discover-cal td { height: 44px; }
    .discover-cal-course { display: none; }
}
