/* Shared visual layer for the landing page and static guide. */
:root { --warm-white: #fafaf8; --container: 1160px; --border: #e4e5e9; }
[data-theme="dark"] { --warm-white: #202226; --border: #3b3e46; --navy: #f1f2f5; --muted: #b8bcc7; color-scheme: dark; }
[data-theme="dark"] body:not(.history-page), [data-theme="dark"] body:not(.history-page) .section:not(.section-dark) { background-color: #202226; color: #e4e6eb; }
[data-theme="dark"] body:not(.history-page)::before { opacity: .35; }
[data-theme="dark"] body:not(.history-page) h1, [data-theme="dark"] body:not(.history-page) h2, [data-theme="dark"] body:not(.history-page) h3 { text-shadow: none; }
[data-theme="dark"] body:not(.history-page) * { text-shadow: none; }
[data-theme="dark"] .site-header { background: rgba(29,31,35,.94); border-bottom-color: #3b3e46; }
[data-theme="dark"] .site-header a, [data-theme="dark"] .footer-nav a, [data-theme="dark"] .footer-contact a { color: #e7e9ee; }
[data-theme="dark"] .section-soft, [data-theme="dark"] .news-teaser, [data-theme="dark"] .contact-action-panel, [data-theme="dark"] .info-panel, [data-theme="dark"] .bank-account { background: #292c32; border-color: #41454e; }
[data-theme="dark"] .contact-help-panel { background: #292c32; border-color: #41454e; border-left-color: #d91b22; }
[data-theme="dark"] .contact-help-panel h3 { color: #f1f2f5; }
[data-theme="dark"] .contact-help-panel > p:not(.eyebrow) { color: #b8bcc7; }
[data-theme="dark"] .section-dark { background: #17191d; color: #e4e6eb; }
[data-theme="dark"] .section-dark .on-dark h2 { color: #f1f2f5; }
[data-theme="dark"] .section-dark .benefit-item { border-top-color: #363a42; }
[data-theme="dark"] .guide-card, [data-theme="dark"] .affiliation-panel, [data-theme="dark"] .people-card { background: #292c32; border-color: #41454e; color: #e4e6eb; }
[data-theme="dark"] .affiliation-panel p, [data-theme="dark"] .guide-card p, [data-theme="dark"] .people-card p { color: #b8bcc7; }
[data-theme="dark"] .button-secondary { color: #f1f2f5; border-color: #626875; }
[data-theme="dark"] .section-cta .button-light { background: #fff; color: #171e4a; }
[data-theme="dark"] .section-cta .button-light::after { color: #171e4a; }
[data-theme="dark"] .button-secondary:hover { background: #363a43; }
[data-theme="dark"] .hero-actions .button-secondary { border-color: transparent; }
[data-theme="dark"] body:not(.history-page) .feature-list li::after, [data-theme="dark"] body:not(.history-page) .class-card::after, [data-theme="dark"] body:not(.history-page) .schedule-row::after, [data-theme="dark"] body:not(.history-page) .news-entry::after, [data-theme="dark"] body:not(.history-page) .contact-card::after { background: rgba(255,255,255,.2); opacity: .45; }
[data-theme="dark"] body:not(.history-page) .class-card, [data-theme="dark"] body:not(.history-page) .schedule-row, [data-theme="dark"] body:not(.history-page) .news-entry, [data-theme="dark"] body:not(.history-page) .contact-card { border-color: #383c45; }
[data-theme="dark"] .info-list div { border-bottom-color: #484c55; }
[data-theme="dark"] .category-toolbar { background: #292c32; border-color: #484c56; }
[data-theme="dark"] .category-filter-tabs { background: #1b1d21; }
[data-theme="dark"] .category-filter-tab.is-active { background: #454a55; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
[data-theme="dark"] .category-filter-tab:hover { background: #363a43; color: #fff; }
[data-theme="dark"] .theme-toggle { color: #f1c75b; }
.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 40px; margin-left: 8px; padding: 0; border: 0; background: transparent; color: var(--navy); line-height: 1; cursor: pointer; }
.theme-toggle:hover { color: #bf1820; }
.theme-icon { grid-area: 1 / 1; display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity .28s ease, transform .38s cubic-bezier(.2,.8,.2,1), color .2s ease; }
.theme-icon-sun { opacity: 0; transform: scale(.45) rotate(-45deg); }
.theme-icon-moon { fill: currentColor; stroke: none; }
.theme-icon-sun { opacity: 0; transform: scale(.65) rotate(-30deg); }
.theme-toggle.is-dark .theme-icon-moon { opacity: 0; transform: scale(.45) rotate(45deg); }
.theme-toggle.is-dark .theme-icon-sun { opacity: 1; transform: scale(1) rotate(0); }
.theme-toggle:focus-visible { outline: 3px solid rgba(191,24,32,.3); outline-offset: 2px; }
@media (max-width: 700px) { .contact-action-panel .contact-action-buttons { grid-template-columns: 1fr; } }
body { font-size: 16px; }
.article-page { position: relative; }
.article-controls { position: absolute; top: 18px; right: max(24px, calc((100vw - var(--container)) / 2)); z-index: 20; display: flex; justify-content: flex-end; padding: 0; background: transparent; border: 0; }
.article-controls.in-header { position: static; z-index: auto; display: flex; padding: 0; }
.article-controls-inner { display: flex; align-items: center; gap: 8px; }
.article-controls .lang-switch { display: flex; gap: 2px; }
.article-controls .theme-toggle { margin-left: 2px; }
[data-theme="dark"] .article-controls { background: transparent; }
[data-theme="dark"] .article-controls .lang-button { color: #b8bcc7; }
[data-theme="dark"] .article-controls .lang-button.is-active { color: #f1f2f5; }
[data-theme="dark"] .article-page .article-body p,
[data-theme="dark"] .article-page .article-lead { color: #d7dae1; }
[data-theme="dark"] .article-page .article-body .article-source,
[data-theme="dark"] .article-page .article-body figcaption { color: #b8bcc7; }
[data-theme="dark"] .article-page .article-toc { background: #292c32; border: 1px solid #41454e; }
[data-theme="dark"] .article-page .article-related a,
[data-theme="dark"] .article-page .article-aside dd { color: #f1f2f5; }
[data-theme="dark"] .article-page .article-aside dt { color: #b8bcc7; }
[data-theme="dark"] .season-notice { background: #f0f1f4; color: #20222d; border-color: #41454e; }
[data-theme="dark"] .season-notice h2,
[data-theme="dark"] .season-notice h3,
[data-theme="dark"] .season-notice p,
[data-theme="dark"] .season-notice a { color: #20222d; }
[data-theme="dark"] .season-notice .eyebrow { color: #a51a25; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) { .article-controls { top: 12px; right: 14px; } }
body:not(.history-page) { position: relative; isolation: isolate; background: #fafaf8; }
body:not(.history-page)::before { content: ''; position: fixed; z-index: -1; inset: -18%; pointer-events: none; background: radial-gradient(ellipse 39% 33% at var(--ambient-x, 18%) var(--ambient-y, 14%), #aeb4c026 0%, transparent 72%), radial-gradient(ellipse 35% 39% at calc(100% - var(--ambient-x, 18%)) calc(100% - var(--ambient-y, 14%)), #858d9f19 0%, transparent 72%), radial-gradient(ellipse 27% 27% at 53% 52%, #d5d7dc12 0%, transparent 75%); filter: blur(46px); opacity: .85; animation: ambient-drift 22s ease-in-out infinite alternate; }
@keyframes ambient-drift { from { transform: translate3d(-1.5%, -1%, 0) scale(1); } to { transform: translate3d(1.5%, 1%, 0) scale(1.035); } }
h2, #about .section-heading h2, .updates-grid h2, .cta-panel h2, #contact h2 { font-family: 'Inter', Arial, sans-serif; font-size: clamp(1.9rem, 3.3vw, 3rem); text-transform: none; font-weight: 500; line-height: 1.18; letter-spacing: -.045em; }
.section { padding-block: 88px; }
body:not(.history-page) .section:not(.section-dark) { background-color: #fafaf8aa; }
.section-soft { background: #f0f1f4c9; }
body:not(.history-page) h1, body:not(.history-page) h2, body:not(.history-page) h3 { text-shadow: 0 0 4px rgba(255, 255, 255, .72), 0 0 16px rgba(124, 135, 165, .42), calc(var(--ambient-text-x, 0px) / 2) calc(var(--ambient-text-y, 0px) / 2) 25px rgba(255, 255, 255, .3); transition: text-shadow .35s ease; }
body:not(.history-page) .feature-list li, body:not(.history-page) .class-card, body:not(.history-page) .schedule-row, body:not(.history-page) .news-entry, body:not(.history-page) .contact-card { position: relative; }
body:not(.history-page) .feature-list li::after, body:not(.history-page) .class-card::after, body:not(.history-page) .schedule-row::after, body:not(.history-page) .news-entry::after, body:not(.history-page) .contact-card::after { content: ''; position: absolute; z-index: 1; left: 0; right: 0; top: -1px; height: 2px; pointer-events: none; background: radial-gradient(ellipse 20% 100% at var(--ambient-line-x, 50%) 50%, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .65) 32%, transparent 76%); opacity: .98; transition: background-position .35s ease; }
body:not(.history-page) .class-card, body:not(.history-page) .schedule-row, body:not(.history-page) .news-entry { border-top-color: rgba(255, 255, 255, .82); }
body:not(.history-page) .class-card:last-child::after { top: auto; bottom: -1px; }
body:not(.history-page) .feature-list li:last-child::after, body:not(.history-page) .schedule-row:last-child::after, body:not(.history-page) .contact-card:last-child::after { top: auto; bottom: -1px; }
.eyebrow { letter-spacing: .12em; font-weight: 600; }
.site-header { background: #fafaf8ed; }
.header-inner { min-height: 84px; }
.site-nav { gap: 20px; }
.button { font-weight: 600; transition: background-color .25s, transform .25s; }
.hero { padding-block: 68px; }
.hero-grid, .low-power .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-copy { pointer-events: auto; }
.hero-copy h1 { margin: 0 0 28px; font-family: 'Inter', Arial, sans-serif; text-transform: none; line-height: 1.1; }
.hero-name { font-size: clamp(3.5rem, 7vw, 6rem); letter-spacing: -.055em; font-weight: 550; margin: 0; }
.hero-descriptor, .low-power .hero-descriptor { font-size: clamp(1.7rem, 3vw, 2.7rem); max-width: none; margin-top: 12px; line-height: 1.2; font-weight: 400; letter-spacing: -.045em; }
.hero-lead, .hero-support { width: 100%; max-width: 470px; font-size: .95rem; }
.hero-support { font-size: .86rem; }
.hero-actions, .hero-meta { max-width: none; }
.hero-meta { display: grid; gap: 7px; }
.hero-meta li { font-size: .72rem; }
.hero-visual { position: relative; inset: auto; height: 530px; border-radius: 22px; }
.hero-photo { object-position: 62% center; }
.hero-badge { font-size: .58rem; letter-spacing: .1em; }
.hero-badge::before, .brand-panel-frame::after, .section-dark::after, .site-footer::after { display: none; }
.quick-info { background: transparent; color: var(--navy); border-block: 1px solid var(--border); }
.quick-info a:hover { color: #bf1820; }
.info-mark { color: #bf1820; }
.value-grid { gap: 32px; }
.value-icon { font-family: inherit; font-size: .8rem; padding-top: 5px; }
.value-card { grid-template-columns: 24px 1fr; gap: 8px 12px; }
#about > .container { gap: 30px 70px; }
.about-panel-photo { aspect-ratio: 1.2; border-radius: 18px; }
.brand-panel { padding-top: 0; }
.brand-panel-note { margin: 18px 0 0; }
.class-card h3 { font-family: inherit; text-transform: none; font-size: 1.35rem; line-height: 1.3; font-weight: 500; }
.class-card p, .feature-list li, .about-copy p { font-size: .9rem; }
.section-dark { border-radius: 24px; margin-inline: max(20px, calc((100vw - 1240px) / 2)); }
.dark-grid { gap: 60px; }
.schedule-row span:last-child { font-family: inherit; font-size: 1.25rem; letter-spacing: -.03em; }
.schedule-head span:last-child { font-size: inherit; }
.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-card-featured { grid-row: auto; }
.gallery-card:nth-child(2) { padding-top: 0; }
.gallery-card .gallery-open img { height: 260px; }
.gallery-open { border-radius: 16px; }
.gallery-description { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.section-cta { background-color: #171e4a !important; background-image: none; color: #fff; opacity: 1; }
.section-cta h2, .section-cta h3, .section-cta p, .section-cta .eyebrow { text-shadow: none; }
.section-cta h2 { color: #fff; }
.section-cta p:last-child { color: #dfe4f5; }
.section-cta .button-outline-light { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-panel { gap: 50px; }
.contact-card:first-child a { font-family: inherit; font-size: clamp(1.7rem, 3vw, 2.8rem); letter-spacing: -.04em; }
.contact-action-panel, .bank-account { border-radius: 16px; }
.site-footer { padding-bottom: 32px; }
.guide-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.guide-heading h2 { margin-bottom: 0; }
.guide-heading > p { max-width: 360px; color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: white; transition: border-color .25s, transform .25s; }
.guide-card:hover { border-color: #a8adbf; transform: translateY(-3px); }
.guide-card small { color: #a51a25; font-size: .7rem; letter-spacing: .08em; margin-bottom: 24px; }
.guide-card h3 { font-size: 1.2rem; line-height: 1.4; font-weight: 500; }
.guide-card p { font-size: .85rem; color: var(--muted); }
.guide-card .text-link { margin-top: auto; padding-top: 16px; }
.guide-card:last-child { grid-column: span 2; }
.category-toolbar { display: flex; align-items: center; gap: 0; margin: 0 0 24px; padding: 10px 12px; border: 1px solid rgba(26,32,72,.1); border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(247,248,252,.9)); box-shadow: 0 10px 26px rgba(26,32,72,.06); }
.category-toolbar-label { flex: 0 0 auto; color: var(--navy); font-size: .76rem; font-weight: 700; }
.category-filter-tabs { display: flex; width: 100%; flex: 1 1 auto; gap: 4px; overflow-x: auto; padding: 4px; border-radius: 14px; background: rgba(26,32,72,.055); scrollbar-width: none; }
.category-filter-tabs::-webkit-scrollbar { display: none; }
.category-filter-tab { position: relative; flex: 0 0 auto; min-height: 40px; padding: 8px 15px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: inherit; font-size: .76rem; font-weight: 650; cursor: pointer; white-space: nowrap; transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.category-filter-tab:hover { color: var(--navy); background: rgba(255,255,255,.72); transform: translateY(-1px); }
.category-filter-tab.is-active { background: #fff; color: var(--navy); box-shadow: 0 4px 12px rgba(26,32,72,.13); }
.category-filter-tab:focus-visible { outline: 3px solid rgba(191,24,32,.22); outline-offset: 2px; }
.category-more { display: flex; justify-content: flex-end; margin-top: 24px; }
.category-more .text-link { font-size: .82rem; }
.category-toolbar-news { max-width: 960px; margin: 36px 0 8px; }
.filter-empty { padding: 40px 0; color: var(--muted); }
[data-category][hidden] { display: none !important; }
@media (max-width: 700px) { .category-toolbar { display: block; padding: 14px 16px; } .category-toolbar-label { display: block; margin-bottom: 10px; } .category-filter-tabs { margin-inline: -4px; padding: 0 4px 4px; } .news-teaser { margin-top: 0; } }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 48px; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 70px; align-items: start; }
.article-title { font-size: clamp(2.3rem, 4.5vw, 4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.13; }
.article-lead { font-size: 1.15rem; color: var(--muted); line-height: 1.8; }
.article-photo { width: 100%; aspect-ratio: 1.9; object-fit: cover; border-radius: 18px; margin-block: 32px; }
.article-layout article > figure { margin: 32px 0; }
.article-layout article > figure .article-photo { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; margin: 0; }
.article-layout article > figure figcaption { margin-top: 12px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.article-body h2 { font-size: 1.6rem; margin-top: 38px; }
.article-body p { line-height: 1.9; color: #484d60; }
.article-aside { position: sticky; top: 112px; padding: 28px; border: 1px solid var(--border); border-radius: 18px; }
.article-aside h2 { font-size: 1.35rem; }
.article-aside dl { font-size: .85rem; margin-bottom: 24px; }
.article-aside dt { color: var(--muted); margin-top: 18px; }
.article-aside dd { margin: 4px 0 0; color: var(--navy); }
.article-aside .button { width: 100%; margin-top: 10px; }
.article-related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-related a { display: block; padding: 10px 0; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 35px; } .hero-grid, .low-power .hero-grid { gap: 32px; } }
@media (max-width: 700px) {
  .section { padding-block: 56px; }
  .header-inner { min-height: 72px; }
  .hero-grid, .low-power .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy h1 { margin-bottom: 24px; }
  .hero-name { font-size: 4rem; }
  .hero-visual { inset: auto; height: 300px; border-radius: 18px; }
  .hero-actions .button { font-size: .8rem; }
  .hero-meta { gap: 6px; }
  .quick-info-inner { gap: 12px; }
  .quick-info a:last-child { margin-left: 0; }
  #about .section-heading h2, #contact h2, .cta-panel h2 { font-size: 2rem; }
  .class-card h3 { font-size: 1.35rem; }
  .section-dark { margin-inline: 10px; }
  .dark-grid, .cta-panel { gap: 28px; }
  .gallery-grid, .guide-grid, .article-layout { grid-template-columns: 1fr; }
  .gallery-card .gallery-open img { height: 250px; }
  .guide-card:last-child { grid-column: auto; }
  .guide-heading { display: block; }
  .guide-heading > p { margin-top: 20px; }
  .category-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .category-toolbar select { width: 100%; min-width: 0; }
  .category-more { justify-content: flex-start; }
  .article-aside { position: static; }
  .breadcrumbs { margin-bottom: 32px; }
  .site-footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { .guide-card:hover { transform: none; } }
.low-power { scroll-behavior: auto; }

.article-toc { padding: 24px; background: #f0f1f4; border-radius: 16px; font-size: .85rem; }
.article-toc strong { display: block; margin-bottom: 10px; color: var(--navy); }
.article-toc a { display: block; padding: 7px 0; text-decoration: underline; text-underline-offset: 4px; }
.article-body section { scroll-margin-top: 110px; }

.belt-table { width: 100%; border-collapse: collapse; margin-block: 28px; font-size: .9rem; }
.belt-table caption { text-align: left; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.belt-table th, .belt-table td { padding: 15px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.belt-table th { white-space: nowrap; }
.belt-table td > span { vertical-align: middle; }
.belt-swatch { display: inline-block; width: 68px; height: 22px; border: 1px solid #0003; border-radius: 3px; background: var(--belt); margin: 4px 14px 4px 0; }
.belt-swatch.striped { background: linear-gradient(to bottom, white 33%, var(--belt) 33%, var(--belt) 67%, white 67%); }
.belt-swatch.yellow { --belt: #f4cb32; } .belt-swatch.orange { --belt: #e98529; }
.belt-swatch.green { --belt: #348958; } .belt-swatch.blue { --belt: #3472b5; }
.belt-swatch.brown { --belt: #855537; } .belt-swatch.black { --belt: #20222d; }
.article-body .article-source { font-size: .8rem; }
.article-source a { text-decoration: underline; text-underline-offset: 3px; }

.belt-swatch.white { --belt: #fff; }
.news-teaser { margin-top: 8px; background: #f0f1f4; padding: 32px; border-radius: 18px; }
.contact-action-panel .contact-action-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contact-action-panel .contact-action-buttons .button { width: 100%; min-width: 0; padding-inline: 14px; font-size: .78rem; }
.contact-meta-grid { align-items: start; }
.contact-meta-grid .info-panel { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: #f0f1f4; }
[data-theme="dark"] .contact-meta-grid .info-panel { background: #292c32; border-color: #41454e; }
.season-notice { max-width: 860px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--border); border-radius: 22px; background: #f0f1f4; margin-bottom: 64px; }
.season-notice h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.season-date { font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.news-list { max-width: 960px; }
.news-list > h2 { font-size: 1.5rem; }
.news-entry { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 36px; padding: 36px 0; border-top: 1px solid var(--border); scroll-margin-top: 100px; }
.news-entry time { color: var(--muted); font-size: .8rem; padding-top: 8px; }
.news-entry h2 { font-size: 1.5rem; line-height: 1.3; }
.news-entry h2 a { color: inherit; text-decoration: none; }
.news-entry h2 a:hover { color: #a51a25; }
.news-entry h2 a:focus-visible { outline: 3px solid rgba(191,24,32,.22); outline-offset: 4px; border-radius: 3px; }
.news-entry p { color: var(--muted); line-height: 1.85; }
.news-permalink { display: block; margin-top: 16px; font-size: .8rem; color: var(--muted); text-decoration: underline; }
.news-social { margin-top: 40px; } .news-social a { text-decoration: underline; }
.site-nav a[aria-current="page"] { color: #bf1820; }
@media (max-width: 700px) { .news-entry { grid-template-columns: 1fr; gap: 12px; } }

.address-link { text-decoration: underline; text-underline-offset: 4px; }
.address-link:hover { color: #bf1820; }

.context-link { color: var(--navy); text-decoration: underline; text-decoration-color: #999eaf; text-underline-offset: 3px; }
.context-link:hover { color: #bf1820; text-decoration-color: currentColor; }

.history-teaser { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 24px; }
#about > .container > :is(.affiliation-panel, .history-feature, .people-heading, .people-grid) { grid-column: 1 / -1; }
.affiliation-panel { margin-top: 36px; padding: 30px; background: #f0f1f4; border-radius: 16px; }
.affiliation-panel h3, .people-card h3 { font-size: 1.45rem; font-weight: 500; letter-spacing: -.035em; }
.affiliation-panel p { max-width: 850px; }
.affiliation-links { display: flex; flex-wrap: wrap; gap: 18px 30px; }
.history-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; margin-top: 40px; padding: 32px; border-radius: 20px; background: #172139; color: #e9edf4; }
.history-feature-photo { display: block; overflow: hidden; border-radius: 10px; }
.history-feature-photo img { width: 100%; height: auto; transition: transform .35s; }
.history-feature-photo:hover img { transform: scale(1.025); }
.history-feature .eyebrow { color: #d5bf97; }
.history-feature h3 { color: white; font-size: clamp(1.6rem, 2.5vw, 2.3rem); font-weight: 500; line-height: 1.2; letter-spacing: -.04em; }
.history-feature p { font-size: .9rem; }
.people-heading { margin-top: 50px; }
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.people-card { padding: 28px; border: 1px solid var(--border); border-radius: 16px; scroll-margin-top: 110px; }
.people-card p { font-size: .9rem; }
.people-note { color: #646875; margin-bottom: 0; }
#stowarzyszenie { scroll-margin-top: 110px; }
@media (min-width: 981px) and (max-width: 1180px) {
 .header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
 .nav-toggle { display: block; }
 .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 24px; background: var(--warm-white); border-bottom: 1px solid var(--border); }
 .site-nav.is-open { display: grid; }
 .site-nav a { min-height: 44px; padding: 10px; }
 .site-nav .nav-cta { justify-self: start; }
}
@media (max-width: 700px) {
 .history-feature, .people-grid { grid-template-columns: 1fr; }
 .history-feature { padding: 22px; gap: 24px; }
 .affiliation-panel, .people-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .history-feature-photo img { transition: none; } body:not(.history-page)::before { animation: none; } body:not(.history-page) h1, body:not(.history-page) h2, body:not(.history-page) h3 { text-shadow: none; transition: none; } body:not(.history-page) .feature-list li::after, body:not(.history-page) .class-card::after, body:not(.history-page) .schedule-row::after, body:not(.history-page) .news-entry::after, body:not(.history-page) .contact-card::after { display: none; } }

/* Miniatury artykułów w aktualnościach */
.news-meta { min-width: 0; }
.news-meta time { display: block; }
.news-thumbnail { display: block; margin-top: 18px; border-radius: 14px; overflow: hidden; background: #e9eae8; box-shadow: 0 8px 24px rgba(23,30,74,.08); }
.news-thumbnail img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 632; object-fit: cover; }
.news-thumbnail:hover { box-shadow: 0 8px 24px rgba(23,30,74,.18); }
.news-thumbnail:focus-visible { outline: 3px solid #bf1820; outline-offset: 4px; }
@media (min-width: 701px) { .news-entry:has(.news-thumbnail) { grid-template-columns: 220px minmax(0,1fr); gap: 28px; } }
@media (max-width: 700px) { .news-thumbnail { margin-top: 14px; max-width: 420px; } }
.article-photo.article-photo-matched { display: block; width: auto; max-width: 100%; height: auto; max-height: 640px; aspect-ratio: auto; object-fit: contain; margin: 32px auto; }
[data-theme="dark"] { --warm-white: #202226; --border: #3b3e46; --navy: #f1f2f5; --muted: #b8bcc7; color-scheme: dark; }

/* Wpisy Czy wiesz, że? nie mają rozbudowanego nagłówka strony głównej,
   dlatego zachowują motyw także bez JavaScriptu, zgodnie z ustawieniem systemu. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) body.article-page { background: #202226; color: #e4e6eb; }
  html:not([data-theme]) body.article-page h1,
  html:not([data-theme]) body.article-page h2,
  html:not([data-theme]) body.article-page h3 { color: #f1f2f5; text-shadow: none; }
  html:not([data-theme]) body.article-page .article-aside { background: #292c32; border-color: #41454e; color: #e4e6eb; }
  html:not([data-theme]) body.article-page .article-aside p:not(.eyebrow) { color: #b8bcc7; }
  html:not([data-theme]) body.article-page .breadcrumbs,
  html:not([data-theme]) body.article-page .article-body { color: #d7dae1; }
  html:not([data-theme]) body.article-page a { color: #f1c75b; }
}
