/* Shared state/year components. Theme values are supplied by state-themes.mjs. */
.state-year .sy-hero { position: relative; overflow: hidden; padding: 36px 0 52px; background: linear-gradient(115deg, var(--state-primary-soft), var(--state-surface)); border-bottom: 1px solid var(--border); }
.sy-hero .wrap { position: relative; z-index: 1; }
.sy-heading { display: flex; align-items: center; gap: 18px; margin: 32px 0 20px; }
.sy-heading h1 { font: 700 clamp(32px, 4.4vw, 60px)/1.12 var(--font-display); letter-spacing: -.035em; max-width: 19ch; }
.sy-badge { display: inline-grid; place-items: center; flex: 0 0 60px; height: 60px; border: 1px solid var(--state-primary); border-radius: 16px; background: var(--state-primary-soft); color: #0a0c1a; font-weight: 800; font-size: 20px; box-shadow: inset 0 -4px var(--state-accent); }
.sy-independent { color: var(--ink-2); font-size: 13px; }
.sy-motif { position: absolute; width: 64%; right: -4%; bottom: 0; color: var(--state-primary); opacity: var(--state-pattern-opacity); pointer-events: none; }
.sy-hero::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 80px, var(--state-primary) 80px 81px, transparent 81px 180px); opacity: .03; pointer-events: none; }
.sy-section { padding: 40px 0; }
.sy-section h2 { font: 700 clamp(24px, 3vw, 32px)/1.2 var(--font-display); margin-bottom: 20px; letter-spacing: -.02em; }
.sy-section h3 { font-size: 17px; margin-bottom: 12px; }
.sy-section p { color: var(--ink-2); line-height: 1.7; margin: 16px 0; max-width: 85ch; }
.sy-section a:not(.cal-btn) { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.sy-table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
.sy-table { min-width: 970px; width: 100%; }
.sy-table caption { padding: 16px; text-align: left; color: var(--ink-2); }
.sy-table th { text-align: left; }
.sy-table thead th { color: var(--ink-2); }
.sy-table tbody th { padding: 14px 18px; font-weight: 600; }
.sy-table td:last-child { color: var(--ink); }
.sy-table td, .sy-table th { vertical-align: top; }
.sy-cell-note { display: block; margin-top: 6px; font-size: 12px; white-space: nowrap; color: var(--ink-2); }
.sy-note { padding: 16px 20px; border-left: 3px solid var(--state-primary); background: var(--bg-2); border-radius: 0 12px 12px 0; }
.sy-stats, .sy-interactions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sy-stat, .sy-card { border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: var(--bg); }
.sy-stat strong { display: block; font: 700 32px/1.2 var(--font-display); margin-bottom: 10px; }
.sy-stat:first-child { border-top: 4px solid var(--state-accent); }
.sy-stat span { color: var(--ink-2); font-size: 14px; }
.sy-interactions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sy-card ul, .sy-insights, .sy-links { padding-left: 20px; line-height: 1.8; }
.sy-insights li, .sy-links li { margin: 12px 0; }
.state-year :is(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.theme-dark .sy-hero { background: var(--bg-2); }
.theme-dark .sy-motif { color: var(--ink); }
.theme-dark .sy-section a:not(.cal-btn) { color: var(--ink); }
.sy-hero .hero-meta { color: var(--ink-2); }
@media (max-width: 900px) { .sy-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sy-motif { width: 48%; } }
@media (max-width: 540px) { .sy-heading { align-items: flex-start; gap: 12px; } .sy-badge { flex-basis: 44px; height: 44px; border-radius: 12px; font-size: 16px; } .sy-heading h1 { font-size: 32px; } .sy-interactions { grid-template-columns: 1fr; } .sy-card, .sy-stat { padding: 18px; } .sy-motif { display: none; } .sy-hero::after { display: none; } .sy-section { padding: 28px 0; } }

.sy-download { padding-top: 0; padding-bottom: 0; }
.sy-download-card { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--state-primary-soft); }
.sy-download h2 { font-size: 22px; margin-bottom: 12px; }
.sy-download p { margin: 12px 0; }
.sy-download .cal-btn { max-width: 100%; white-space: normal; text-align: left; line-height: 1.5; }
.sy-download .cal-btn:disabled { cursor: wait; opacity: .65; }
.sy-download #kalender-export-detail { font-size: 13px; margin-bottom: 0; }
.sy-calendar .months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sy-calendar .day-grid { aspect-ratio: 7 / 6; grid-template-rows: repeat(6, minmax(0, 1fr)); }
.sy-calendar .d { aspect-ratio: auto; }
.theme-dark .sy-download-card { background: var(--bg-2); }
@media (max-width: 1100px) { .sy-calendar .months { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .sy-calendar .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .sy-download { padding-top: 0; padding-bottom: 0; } .sy-download-card { padding: 20px; } }

.sy-calculation { margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); }
.sy-calculation summary { padding: 12px 16px; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.sy-calculation summary::marker { color: currentColor; }
.sy-calculation-body { padding: 0 16px; }
.sy-calculation-body p { margin: 12px 0 16px; }

/* Leave room for the shared mobile holiday dot below the number and underline. */
@media (max-width: 700px) { .sy-calendar .day-grid { width: 100%; min-height: 178px; } }
