:root {
  --accent: #3fa2ae; --accent-dark: #2f8a95; --ink: #1d1d1f; --muted: #7a7a7a; --line: #e6e3dc; --soft: #f5f5f5; --cream: #fbf8f1;
  --bs-body-font-family: 'Montserrat', system-ui, sans-serif; --bs-body-color: #1d1d1f; --bs-body-font-weight: 400;
  --bs-link-color: #3fa2ae; --bs-link-hover-color: #2f8a95; --bs-border-color: #e6e3dc;
}
html { background: var(--cream); }
body { background: #fff; font-weight: 400; letter-spacing: .005em; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { font-weight: 400; color: var(--ink); }
.fw-semibold, .fw-bold, strong, b, th { font-weight: 500 !important; }
.text-secondary { color: var(--muted) !important; }
.text-primary { color: var(--accent) !important; }
.bg-light { background-color: var(--soft) !important; }
.border, .border-top, .border-bottom { border-color: var(--line) !important; }
.btn { font-weight: 400; border-radius: 8px; padding: .55rem 1.25rem; }
.btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent-dark); --bs-btn-hover-border-color: var(--accent-dark); --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark); }
.btn-outline-primary { --bs-btn-color: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent); --bs-btn-active-bg: var(--accent); }
.form-control { border-color: var(--line); border-radius: 8px; font-weight: 400; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(63,162,174,.15); }
.card { border: 0; border-radius: 16px; background: #fff; }
.list-group-item { border-color: var(--line); }
.list-group-item.active { background-color: var(--accent); border-color: var(--accent); }
.table { --bs-table-striped-bg: #fafaf8; }
.table thead th { font-weight: 500; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; color: var(--muted); }

/* Header */
.site-header { --head: #1b2f33; }
.header-top { background: var(--head); color: #fff; }
.header-top .navbar { padding-top: .9rem; padding-bottom: .9rem; }
.logo-mark { width: 52px; height: 52px; border-radius: 6px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 1.05rem; letter-spacing: .04em; }
.logo-title { font-size: 1.25rem; font-weight: 500; letter-spacing: .06em; color: #fff; text-transform: uppercase; line-height: 1.1; }
.logo-sub { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.main-nav .nav-link, .sub-nav .nav-link { font-size: .9rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: .5rem 1rem; }
.main-nav .nav-link { color: rgba(255,255,255,.85); padding: .5rem 0; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: #fff; }
.sub-nav-wrap { background: #fff; border-bottom: 1px solid var(--line); }
.sub-nav { gap: .25rem; }
.sub-nav .nav-link { color: var(--ink); padding: 1rem 0; margin-right: 1.75rem; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
.sub-nav .nav-link:hover { color: var(--accent); }
.sub-nav .nav-link.active { color: var(--ink); border-bottom-color: var(--accent); }
.admin-link { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; padding: .5rem 1rem; white-space: nowrap; }
.admin-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.home-gallery .carousel-item img { aspect-ratio: 4 / 3; }
.home-gallery.wide .carousel-item img { aspect-ratio: 21 / 9; }
.home-gallery .carousel-control-prev, .home-gallery .carousel-control-next { width: 12%; top: 0; bottom: 2rem; opacity: 0; transition: opacity .2s; }
.home-gallery:hover .carousel-control-prev, .home-gallery:hover .carousel-control-next { opacity: .9; }

/* Page head */
.crumbs { font-size: .9rem; color: #9a9a9a; }
.crumbs a { color: #9a9a9a; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span + span::before { content: '•'; margin: 0 .6rem; color: #bbb; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; }
.page-sub { color: var(--muted); font-weight: 300; font-size: 1.05rem; max-width: 70ch; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .75rem; }
.chip { display: inline-block; padding: .8rem 1.25rem; border-radius: 6px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 1rem; transition: .15s; }
.chip:hover { background: #ebebeb; color: var(--ink); }
.chip.active { background: var(--accent); color: #fff; }

/* Hero */
.hero { border-radius: 24px; overflow: hidden; background-color: #1f2f3f; position: relative; }
.hero-slide { min-height: 440px; display: flex; align-items: flex-end; padding: 2.5rem; background-image: url('/assets/img/ornament.svg'), url('/assets/img/ornament.svg'); background-repeat: no-repeat, no-repeat; background-position: -120px -140px, right -100px bottom -160px; background-size: 520px 520px, 560px 560px; }
.hero:not(.hero-photo) .hero-slide::before { content: ''; position: absolute; inset: 0; background: rgba(31,47,63,.86); pointer-events: none; }
.hero-photo .hero-slide { background: url('/assets/img/hero.jpg') center / cover no-repeat; }
.hero-photo .hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,24,30,.55), rgba(20,24,30,.05) 60%); pointer-events: none; }
.hero-quote { position: relative; background: rgba(20,24,30,.6); color: #fff; border-radius: 16px; padding: 1.75rem 2rem; max-width: 680px; backdrop-filter: blur(4px); }
.hero-quote-text { font-size: 1.75rem; font-weight: 400; line-height: 1.35; }
.hero-quote-author { font-size: 1.1rem; font-weight: 300; }
.hero-source { color: rgba(255,255,255,.55); font-size: .85rem; font-weight: 300; }
.hero-arrows { position: absolute; right: 2.5rem; top: 2rem; display: flex; gap: .5rem; z-index: 2; }
.hero-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.2rem; line-height: 1; }
.hero-arrows button:hover { background: #fff; color: var(--ink); }
.news-strip { margin: -48px 24px 0; position: relative; background: #fff; border-radius: 16px; box-shadow: 0 6px 30px rgba(0,0,0,.08); }
.news-thumb { width: 84px; height: 84px; border-radius: 12px; background: var(--soft); }
.news-thumb-lg { height: 200px; background: var(--soft); border-radius: 16px; }
@media (min-width: 768px) { .border-md-start { border-left: 1px solid var(--line); } }
@media (max-width: 767px) { .news-strip { margin: 16px 0 0; } .news-strip .col-md-4 + .col-md-4 { border-top: 1px solid var(--line); } .hero-slide { min-height: 340px; padding: 1.25rem; } .hero-quote-text { font-size: 1.2rem; } .hero-arrows { right: 1rem; top: 1rem; } }
@media (max-width: 991px) { .main-nav { padding: .75rem 0; } .admin-link { display: inline-block; margin: .25rem 0 .75rem; } }

/* Content */
.section-title { font-size: 1.6rem; font-weight: 300; text-transform: uppercase; letter-spacing: .02em; }
.portrait { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: var(--soft); border-radius: 16px; }
.stat { font-size: 2.4rem; font-weight: 300; line-height: 1; color: var(--accent); }
.fact { background: var(--soft); border-radius: 16px; padding: 1.5rem; height: 100%; }
.prose { font-size: 1.02rem; line-height: 1.8; font-weight: 400; max-width: 72ch; color: #2a2a2a; }
.prose p { margin-bottom: 1.1rem; }
.media-card { text-decoration: none; color: var(--ink); display: block; }
.media-card .thumb { border-radius: 20px; overflow: hidden; background: #111; aspect-ratio: 16 / 9; position: relative; }
.media-card .thumb img, .media-card .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.media-card:hover .thumb img { transform: scale(1.03); }
.media-card .title { margin-top: 1rem; font-size: 1.1rem; line-height: 1.4; color: var(--ink); }
.media-card .meta { color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.media-card:hover .title { color: var(--accent); }
.play-badge { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 12px; background: #e62117; display: flex; align-items: center; justify-content: center; }
.play-badge::after { content: ''; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.book-card { text-decoration: none; color: var(--ink); display: block; }
.book-cover, .book-cover-img { aspect-ratio: 3 / 4; border-radius: 16px; width: 100%; object-fit: cover; }
.book-cover { background: var(--soft); color: var(--ink); display: flex; align-items: flex-end; padding: 1.25rem; font-weight: 400; }
.book-card:hover .title { color: var(--accent); }
.gallery-item { display: block; border-radius: 20px; overflow: hidden; background: var(--soft); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; display: block; }
.gallery-item:hover img { transform: scale(1.03); }
.lightbox-img { max-height: 80vh; max-width: 100%; object-fit: contain; }
.side-panel { background: var(--soft); border-radius: 20px; padding: 1.75rem; }
.side-panel .table { --bs-table-bg: transparent; }
.side-panel .panel-title { font-size: 1.25rem; font-weight: 400; padding-bottom: .9rem; border-bottom: 1px solid var(--accent-dark); margin-bottom: .5rem; }
.side-panel a { display: block; padding: .8rem 0; border-bottom: 1px solid #e3e3e3; color: var(--ink); text-decoration: none; line-height: 1.45; }
.side-panel a:last-child { border-bottom: 0; }
.side-panel a:hover, .side-panel a.active { color: var(--accent); }
.article-date { color: var(--muted); font-size: .9rem; }
.article-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 300; line-height: 1.2; }
.article-body { text-align: justify; }
.info-table th { color: var(--muted); font-weight: 400 !important; }
.quote-card { background: var(--soft); border-radius: 20px; padding: 1.75rem; height: 100%; }
.quote-card p { font-size: 1.15rem; font-style: italic; font-weight: 300; line-height: 1.5; }
.quote-card::before { content: '“'; color: var(--accent); font-size: 3rem; line-height: 1; display: block; height: 1.6rem; }
.timeline-row td { padding: 1rem .75rem; }
footer { font-weight: 300; }
footer .logo-title { font-size: 1rem; }
