/**
 * SBV Editorial System 2026 – Release 0.9.0
 *
 * Design direction: adapted from the editorial/chapter grammar observed on
 * almkanal.at. This file intentionally does NOT copy Almkanal assets, CSS,
 * fonts or branding. It translates the structural ideas into SBV's CI.
 */

:root {
  --sbv-editorial-rule: #cfd4d8;
  --sbv-editorial-rule-strong: #9da6ad;
  --sbv-editorial-paper: #fbfbfa;
  --sbv-editorial-max-title: 68rem;
  --sbv-editorial-reading: 47rem;
}

/* --------------------------------------------------------------------------
   Shell: quieter, institutional, content-first
   -------------------------------------------------------------------------- */
.sbv-site-header {
  border-bottom: 1px solid var(--sbv-border);
  background: rgba(255,255,255,.97);
  box-shadow: none;
}

.sbv-utility-bar {
  background: var(--sbv-ink);
}

.sbv-main-header {
  background: #fff;
}

.sbv-primary-nav__list > li > a {
  letter-spacing: .015em;
}

.sbv-primary-nav__list > li > a::after {
  height: 2px;
  border-radius: 0;
}

.sbv-header-cta,
.sbv-button,
body.sbv-site .fusion-button,
body.sbv-site a.fusion-button {
  border-radius: .2rem;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Chapter/page title – H1 + concise subline + generous whitespace
   -------------------------------------------------------------------------- */
.sbv-page-header {
  position: relative;
  border-bottom: 1px solid var(--sbv-editorial-rule);
  background: var(--sbv-editorial-paper);
  overflow: hidden;
}

.sbv-page-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(30vw, 28rem);
  height: .25rem;
  background: var(--sbv-gold);
  content: "";
}

.sbv-page-header__inner {
  padding-block: clamp(2.4rem, 4.5vw, 5.8rem) clamp(3rem, 5.5vw, 6.8rem);
}

.sbv-page-header__copy {
  max-width: var(--sbv-editorial-max-title);
  margin-top: clamp(1.5rem, 2.5vw, 2.75rem);
}

.sbv-page-header__kicker {
  margin: 0 0 .8rem;
  color: var(--sbv-gold-text);
  font-family: var(--sbv-font-body);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.sbv-page-header h1 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(3rem, 2rem + 4.5vw, 6.1rem) !important;
  font-weight: 760 !important;
  letter-spacing: -.035em !important;
  line-height: .98 !important;
}

.sbv-page-header__subtitle {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--sbv-text-muted);
  font-size: clamp(1.12rem, 1.02rem + .5vw, 1.5rem);
  line-height: 1.5;
}

.sbv-breadcrumbs {
  border-bottom: 1px solid var(--sbv-editorial-rule);
  padding-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Homepage hero – photographic/editorial rather than campaign-card styling
   -------------------------------------------------------------------------- */
.sbv-home-hero {
  min-height: clamp(32rem, 66vh, 46rem);
  align-items: end;
}

.sbv-home-hero__veil {
  background: linear-gradient(90deg, rgba(12,14,15,.88) 0%, rgba(12,14,15,.66) 48%, rgba(12,14,15,.20) 100%);
}

.sbv-home-hero__accent {
  width: min(38vw, 34rem);
  height: .28rem;
  border-radius: 0;
}

.sbv-home-hero__inner {
  align-items: end;
  padding-block: clamp(5rem, 8vw, 8rem) clamp(4rem, 7vw, 6.5rem);
}

.sbv-home-hero__content {
  width: min(52rem, 82%);
}

.sbv-home-hero h1 {
  max-width: 15ch;
  font-size: clamp(3.1rem, 2.05rem + 4.1vw, 6rem) !important;
  font-weight: 760 !important;
  line-height: .98 !important;
}

.sbv-home-hero__lead {
  max-width: 39rem;
  border-left: 2px solid var(--sbv-gold);
  padding-left: 1rem;
}

/* --------------------------------------------------------------------------
   Editorial section grammar: label / headline / line / content
   -------------------------------------------------------------------------- */
.sbv-home-section,
.sbv-page-content {
  background: #fff;
}

.sbv-home-section-head,
.sbv-home-clubs__head,
.sbv-home-metrics__head,
.sbv-section-head {
  position: relative;
  border-top: 1px solid var(--sbv-editorial-rule);
  padding-top: clamp(1.25rem, 2vw, 2rem);
}

.sbv-home-section-head::before,
.sbv-home-clubs__head::before,
.sbv-home-metrics__head::before,
.sbv-section-head::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(3rem, 8vw, 7rem);
  height: 2px;
  background: var(--sbv-gold);
  content: "";
}

.sbv-home-section-head h2,
.sbv-home-clubs__head h2,
.sbv-home-metrics__head h2,
.sbv-page-intro h1,
.sbv-single-hero h1 {
  letter-spacing: -.028em !important;
}

.sbv-page-content {
  padding-top: clamp(3rem, 5vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 8rem);
}

.sbv-page-intro {
  max-width: 63rem;
  margin-bottom: clamp(3rem, 5vw, 5.5rem);
  border-top: 1px solid var(--sbv-editorial-rule);
  padding-top: 1.5rem;
}

.sbv-page-intro h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.3rem, 1.65rem + 2.5vw, 4.25rem) !important;
  line-height: 1.02 !important;
}

.sbv-page-lead {
  max-width: var(--sbv-editorial-reading);
  margin-top: 1.35rem;
  color: var(--sbv-text-muted);
  font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem);
  line-height: 1.65;
}

.sbv-prose {
  max-width: var(--sbv-editorial-reading);
}

.sbv-prose :where(h2, h3) {
  scroll-margin-top: calc(var(--sbv-shell-total-height, 7rem) + 2rem);
}

/* --------------------------------------------------------------------------
   Direct access / chapter index – turn cards into ruled navigation rows
   -------------------------------------------------------------------------- */
.sbv-home-quick {
  margin-top: 0;
  border-bottom: 1px solid var(--sbv-editorial-rule);
  background: var(--sbv-editorial-paper);
}

.sbv-home-quick .sbv-shell-width {
  padding: clamp(2.5rem, 4vw, 4.75rem) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sbv-home-quick__grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
  border: 0;
  border-top: 1px solid var(--sbv-editorial-rule-strong);
  border-radius: 0;
}

.sbv-home-quick-card {
  min-height: 7rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1.25rem .25rem;
  border: 0;
  border-right: 1px solid var(--sbv-editorial-rule);
  border-bottom: 1px solid var(--sbv-editorial-rule);
  background: transparent;
}

.sbv-home-quick-card:nth-child(even) { border-right: 0; }
.sbv-home-quick-card:hover { background: #fff; transform: none; }
.sbv-home-quick-card__icon { border-radius: 0; background: transparent; }
.sbv-home-quick-card__arrow { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Content cards – flatter, more publication-like
   -------------------------------------------------------------------------- */
.sbv-card,
.sbv-news-card,
.sbv-club-card,
.sbv-document-card,
.sbv-person-card,
.sbv-association-card,
.sbv-event-card,
.sbv-contact-card,
.sbv-home-news-card,
.sbv-home-news-feature,
.sbv-home-club-card {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.sbv-news-card,
.sbv-club-card,
.sbv-document-card,
.sbv-person-card,
.sbv-event-card,
.sbv-home-news-card,
.sbv-home-news-feature,
.sbv-home-club-card {
  border-color: var(--sbv-editorial-rule) !important;
}

.sbv-home-news-feature__media img,
.sbv-home-news-card__media img,
.sbv-news-card__media img {
  transition: transform 320ms ease;
}

@media (hover:hover) {
  .sbv-home-news-feature:hover img,
  .sbv-home-news-card:hover img,
  .sbv-news-card:hover img {
    transform: scale(1.015);
  }
}

.sbv-clean-list {
  border-top: 1px solid var(--sbv-editorial-rule-strong);
}

.sbv-clean-list > li,
.sbv-compact-list > article {
  border-bottom: 1px solid var(--sbv-editorial-rule);
}

.sbv-clean-list a,
.sbv-text-link,
.sbv-home-section-link {
  text-underline-offset: .2em;
}

/* --------------------------------------------------------------------------
   Facts / metrics – comparable to Almkanal's compact information blocks
   -------------------------------------------------------------------------- */
.sbv-meta-list,
.sbv-metric-row,
.sbv-home-metrics__grid {
  border-top: 1px solid var(--sbv-editorial-rule-strong);
  border-bottom: 1px solid var(--sbv-editorial-rule-strong);
}

.sbv-home-metric,
.sbv-meta-list > div,
.sbv-metric-row > * {
  border-right: 1px solid var(--sbv-editorial-rule);
}

.sbv-home-metric:last-child,
.sbv-meta-list > div:last-child,
.sbv-metric-row > *:last-child {
  border-right: 0;
}

/* --------------------------------------------------------------------------
   Footer – strong institutional endpoint with clear contact/navigation
   -------------------------------------------------------------------------- */
.sbv-site-footer {
  border-top: .25rem solid var(--sbv-gold);
  background: #1c2226;
}

.sbv-footer-column h2,
.sbv-footer-brand h2 {
  letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   Avada utility classes for manually-built editorial pages
   -------------------------------------------------------------------------- */
.sbv-avada-editorial-intro > .fusion-row,
.sbv-avada-editorial-reading > .fusion-row {
  width: min(calc(100% - (2 * var(--sbv-gutter))), var(--sbv-editorial-reading));
  max-width: none;
}

.sbv-avada-editorial-section {
  border-top: 1px solid var(--sbv-editorial-rule);
  padding-block: clamp(2.75rem, 5vw, 5.5rem) !important;
}

.sbv-avada-editorial-facts {
  border-top: 1px solid var(--sbv-editorial-rule-strong);
  border-bottom: 1px solid var(--sbv-editorial-rule-strong);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 64rem) {
  .sbv-page-header h1 { max-width: 22ch; }
  .sbv-home-hero__content { width: min(46rem, 92%); }
}

@media (max-width: 40rem) {
  .sbv-page-header::after { width: 42vw; }
  .sbv-page-header__inner { padding-block: 1.75rem 3.25rem; }
  .sbv-page-header__copy { margin-top: 1.35rem; }
  .sbv-page-header h1 { font-size: clamp(2.55rem, 12vw, 4.2rem) !important; }
  .sbv-page-header__subtitle { margin-top: .9rem; font-size: 1.08rem; }

  .sbv-home-hero { min-height: min(42rem, 78svh); }
  .sbv-home-hero__inner { padding-block: 4rem 3.5rem; }
  .sbv-home-hero__content { width: 100%; }
  .sbv-home-hero__veil { background: linear-gradient(0deg, rgba(12,14,15,.92) 0%, rgba(12,14,15,.70) 58%, rgba(12,14,15,.20) 100%); }

  .sbv-home-quick__grid { grid-template-columns: 1fr; }
  .sbv-home-quick-card,
  .sbv-home-quick-card:nth-child(even) { border-right: 0; }

  .sbv-home-section-head,
  .sbv-section-head { align-items: flex-start; flex-direction: column; }

  .sbv-home-metric,
  .sbv-meta-list > div,
  .sbv-metric-row > * {
    border-right: 0;
    border-bottom: 1px solid var(--sbv-editorial-rule);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sbv-home-news-feature__media img,
  .sbv-home-news-card__media img,
  .sbv-news-card__media img { transition: none; }
}
