:root {
  --osydrian-header-height: 72px;
  --osydrian-wide: 1180px;
  --osydrian-gutter: 24px;
}

html { scroll-behavior: smooth; }
body { margin: 0; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

/* Header */
.osydrian-site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  background: #062132;
  color: #fff;
}

.home .osydrian-site-header {
  position: absolute;
  inset: 0 0 auto 0;
  background: linear-gradient(180deg, rgba(6,33,50,.86) 0%, rgba(6,33,50,.48) 58%, rgba(6,33,50,0) 100%);
}

.admin-bar.home .osydrian-site-header { top: 32px; }

.osydrian-header-inner {
  min-height: var(--osydrian-header-height);
  padding-inline: var(--osydrian-gutter);
  gap: 2rem;
}

.osydrian-header-inner .wp-block-site-logo {
  margin: 0;
  flex: 0 0 auto;
}

.osydrian-header-inner .wp-block-site-logo img,
.osydrian-header-inner .custom-logo {
  display: block;
  width: auto !important;
  max-width: 180px !important;
  max-height: 34px !important;
  object-fit: contain;
}

.osydrian-navigation { margin-left: auto; }
.osydrian-navigation a,
.osydrian-navigation .wp-block-navigation-item__content {
  color: #fff !important;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
}
.osydrian-navigation a:hover,
.osydrian-navigation .wp-block-navigation-item__content:hover {
  color: #DCEEF5 !important;
}
.osydrian-navigation .wp-block-navigation__responsive-container-open,
.osydrian-navigation .wp-block-navigation__responsive-container-close {
  color: #fff;
}
.osydrian-navigation .wp-block-navigation__responsive-container.is-menu-open {
  background: #062132;
  color: #fff;
  padding: 1.5rem;
}
.osydrian-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: 1.25rem;
}

/* Hero: applies automatically to the first Cover block on the homepage.
   Add the class "osydrian-hero" to any Cover block to use the same system elsewhere. */
.home .wp-block-post-content > .wp-block-cover:first-child,
.osydrian-hero {
  min-height: clamp(640px, 78svh, 860px);
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.home .wp-block-post-content > .wp-block-cover:first-child > img.wp-block-cover__image-background,
.osydrian-hero > img.wp-block-cover__image-background {
  object-position: 68% center !important;
}

.home .wp-block-post-content > .wp-block-cover:first-child .wp-block-cover__inner-container,
.osydrian-hero .wp-block-cover__inner-container {
  width: min(var(--osydrian-wide), calc(100% - (2 * var(--osydrian-gutter))));
  margin-inline: auto;
  position: relative;
  z-index: 3;
}

.home .wp-block-post-content > .wp-block-cover:first-child .wp-block-heading,
.osydrian-hero .wp-block-heading {
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1.08;
  max-width: 760px;
  margin-top: .75rem;
  margin-bottom: 1rem;
}

.home .wp-block-post-content > .wp-block-cover:first-child .wp-block-cover__inner-container > p:first-child,
.osydrian-hero .wp-block-cover__inner-container > p:first-child {
  color: rgba(255,255,255,.84);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.home .wp-block-post-content > .wp-block-cover:first-child .wp-block-cover__inner-container > p:not(:first-child),
.osydrian-hero .wp-block-cover__inner-container > p:not(:first-child) {
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.home .wp-block-post-content > .wp-block-cover:first-child .wp-block-button__link,
.osydrian-hero .wp-block-button__link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Main content rhythm */
.osydrian-main .wp-block-post-content > .wp-block-group:not(.alignfull),
.osydrian-main .wp-block-post-content > .wp-block-columns:not(.alignfull) {
  scroll-margin-top: 90px;
}

/* Footer */
.osydrian-site-footer {
  background: #061C2A;
  color: rgba(255,255,255,.74);
  padding: 4.25rem var(--osydrian-gutter) 1.4rem;
  margin-top: 5rem;
}
.osydrian-footer-inner { gap: 2.25rem; }
.osydrian-site-footer h2,
.osydrian-site-footer h3,
.osydrian-site-footer h4 {
  color: #fff;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.osydrian-site-footer p { margin: .28rem 0; }
.osydrian-site-footer a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .88rem;
}
.osydrian-site-footer a:hover { color: #fff; }
.osydrian-footer-legal {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 2.5rem;
  padding-top: 1rem;
  font-size: .78rem;
}
.osydrian-footer-legal a { font-size: .78rem; }

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --osydrian-header-height: 64px;
    --osydrian-gutter: 22px;
  }
  .osydrian-header-inner .wp-block-site-logo img,
  .osydrian-header-inner .custom-logo {
    max-height: 29px !important;
    max-width: 150px !important;
  }
  .home .wp-block-post-content > .wp-block-cover:first-child,
  .osydrian-hero {
    min-height: 70svh;
  }
  .home .wp-block-post-content > .wp-block-cover:first-child > img.wp-block-cover__image-background,
  .osydrian-hero > img.wp-block-cover__image-background {
    object-position: 72% center !important;
  }
  .home .wp-block-post-content > .wp-block-cover:first-child .wp-block-heading,
  .osydrian-hero .wp-block-heading {
    font-size: clamp(2rem, 4.4vw, 2.75rem);
    max-width: 640px;
  }
}

/* Mobile */
@media (max-width: 782px) {
  :root {
    --osydrian-header-height: 58px;
    --osydrian-gutter: 18px;
  }
  .admin-bar.home .osydrian-site-header { top: 46px; }
  .osydrian-header-inner {
    min-height: var(--osydrian-header-height);
    gap: 1rem;
  }
  .osydrian-header-inner .wp-block-site-logo img,
  .osydrian-header-inner .custom-logo {
    max-height: 25px !important;
    max-width: 116px !important;
  }
  .home .wp-block-post-content > .wp-block-cover:first-child,
  .osydrian-hero {
    min-height: 78svh;
    position: relative;
  }
  .home .wp-block-post-content > .wp-block-cover:first-child::after,
  .osydrian-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6,33,50,.08) 28%, rgba(6,33,50,.34) 58%, rgba(6,33,50,.90) 100%);
  }
  .home .wp-block-post-content > .wp-block-cover:first-child > img.wp-block-cover__image-background,
  .osydrian-hero > img.wp-block-cover__image-background {
    object-position: 76% center !important;
  }
  .home .wp-block-post-content > .wp-block-cover:first-child .wp-block-cover__inner-container,
  .osydrian-hero .wp-block-cover__inner-container {
    align-self: stretch;
    min-height: calc(78svh - var(--osydrian-header-height));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: calc(var(--osydrian-header-height) + 1rem);
    padding-bottom: 3.25rem;
  }
  .home .wp-block-post-content > .wp-block-cover:first-child .wp-block-heading,
  .osydrian-hero .wp-block-heading {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
    line-height: 1.06;
    max-width: 92%;
    margin-bottom: .8rem;
  }
  .home .wp-block-post-content > .wp-block-cover:first-child .wp-block-cover__inner-container > p:first-child,
  .osydrian-hero .wp-block-cover__inner-container > p:first-child {
    font-size: .72rem;
    letter-spacing: .18em;
    margin-bottom: .55rem;
  }
  .home .wp-block-post-content > .wp-block-cover:first-child .wp-block-cover__inner-container > p:not(:first-child),
  .osydrian-hero .wp-block-cover__inner-container > p:not(:first-child) {
    font-size: 1rem;
    margin-bottom: .85rem;
  }
  .home .wp-block-post-content > .wp-block-cover:first-child .wp-block-buttons,
  .osydrian-hero .wp-block-buttons {
    gap: .6rem;
  }
  .home .wp-block-post-content > .wp-block-cover:first-child .wp-block-button__link,
  .osydrian-hero .wp-block-button__link {
    font-size: .78rem;
    min-height: 40px;
    padding: .6rem .9rem;
  }
  .osydrian-site-footer {
    padding-top: 3rem;
    margin-top: 3.5rem;
  }
}

@media (max-width: 520px) {
  .home .wp-block-post-content > .wp-block-cover:first-child .wp-block-buttons,
  .osydrian-hero .wp-block-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}
