:root {
  --ecm-sand: #D8C3A5;
  --ecm-lavender: #A08CCB;
  --ecm-white: #FFFFFF;
  --ecm-cream: #E5E1D6;
  --ecm-plum: #322850;
  --ecm-shadow: 0 16px 40px rgba(50, 40, 80, 0.10);
  --ecm-radius: 24px;
  --ecm-border: 1px solid rgba(50, 40, 80, 0.15);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
/* `hidden` creates a scroll container that prevents a sticky header in some
   browsers. `clip` still blocks horizontal spill without breaking stickiness. */
body { overflow-x: clip; }
body, button, input, select, textarea { -webkit-font-smoothing: antialiased; }
a, button, input, summary { outline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, .wp-element-button:focus-visible {
  outline: 3px solid #322850;
  outline-offset: 4px;
}
header.wp-block-template-part:has(.ecm-site-header) {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 50;
}
.ecm-site-header {
  position: relative !important;
  top: auto !important;
  background: rgba(229, 225, 214, 0.94);
  border-bottom: 1px solid rgba(50, 40, 80, 0.12);
  backdrop-filter: blur(12px);
}
.ecm-header-inner { position: relative; min-height: 82px; padding: 0.65rem clamp(1rem, 3vw, 2rem); gap: 1.5rem; }
.ecm-header-logo { flex: 0 1 285px; width: min(285px, 30vw); margin: 0; }
.ecm-header-logo img { display: block; width: 100%; height: auto; max-height: 58px; object-fit: contain; object-position: left center; }
.ecm-header-actions { flex: 1 1 auto; gap: clamp(0.75rem, 2vw, 1.5rem); }
.ecm-main-nav a { text-decoration: none; }
.ecm-main-nav a[aria-current="page"],
.ecm-main-nav .current-menu-item > a,
.ecm-main-nav .current-menu-ancestor > a {
  color: var(--ecm-plum) !important;
  box-shadow: inset 0 -3px 0 var(--ecm-lavender);
}
.ecm-main-nav .ecm-nav-cta > a,
.ecm-main-nav .ecm-nav-cta > a[aria-current="page"] { color: var(--ecm-white) !important; background: var(--ecm-plum); border-radius: 999px; padding: 0.65rem 1rem !important; line-height: 1.2; }
.ecm-main-nav .ecm-nav-cta > a:hover { color: var(--ecm-plum) !important; background: var(--ecm-lavender); }

.wp-block-details.ecm-header-search { --ecm-search-toggle-width: 109px; position: relative; flex: 0 0 auto; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
.wp-block-details.ecm-header-search > summary { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 109px; height: 39px; min-height: 39px; list-style: none; cursor: pointer; padding: 0; color: var(--ecm-white); background: var(--ecm-plum); border: 2px solid var(--ecm-plum); border-radius: 999px; font-size: 0.95rem; font-weight: 750; line-height: 1.2; }
.ecm-header-search > summary::-webkit-details-marker { display: none; }
.ecm-header-search > summary::after {
  content: "";
  width: 1rem;
  height: 1rem;
  margin-left: 0.38rem;
  background: currentColor;
  mask: url("../icons/search.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/search.svg") center / contain no-repeat;
  transform: none;
}
.ecm-header-search[open] > summary { position: relative; z-index: 72; color: var(--ecm-white); background: var(--ecm-plum); }
.ecm-search-panel {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.6rem);
  z-index: 71;
  width: clamp(250px, 27vw, 390px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  transform: translateY(-50%);
  transform-origin: right center;
  animation: ecm-search-unfold 180ms ease both;
}
@keyframes ecm-search-unfold {
  from { opacity: 0; transform: translateY(-50%) scaleX(0.72); }
  to { opacity: 1; transform: translateY(-50%) scaleX(1); }
}
.ecm-search-panel .wp-block-search { margin: 0; }
.ecm-search-panel .wp-block-search__inside-wrapper { box-sizing: border-box; height: 39px; min-height: 39px; padding: 2px; background: var(--ecm-white); border: 1px solid var(--ecm-plum); border-radius: 999px; }
.ecm-search-panel .wp-block-search__input { min-width: 0; height: 33px; padding: 0 0.85rem; border: 0; background: transparent; }
.ecm-search-panel .wp-block-search__button { box-sizing: border-box; width: 33px; height: 33px; min-width: 33px; margin: 0; padding: 0.45rem; color: var(--ecm-white); background: var(--ecm-plum); border-radius: 999px; }
.ecm-search-panel .wp-block-search__button svg { transform: none; }
.ecm-search-panel .wp-block-search__input:focus-visible { outline: 0; }
.ecm-search-panel .wp-block-search__inside-wrapper:focus-within { box-shadow: 0 0 0 3px rgba(160, 140, 203, 0.45); }

@media (min-width: 761px) {
  .ecm-main-nav .wp-block-navigation-item {
    max-width: 190px;
    opacity: 1;
    visibility: visible;
    transition: max-width 220ms ease, opacity 160ms ease, visibility 0s linear;
  }
  .ecm-header-actions.is-searching .ecm-main-nav .wp-block-navigation-item {
    max-width: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-width 220ms ease, opacity 120ms ease, visibility 0s linear 220ms;
  }
  .ecm-header-actions.is-searching .ecm-main-nav .wp-block-navigation__container {
    gap: 0;
  }
  .wp-block-details.ecm-header-search[open] {
    flex: 0 1 clamp(300px, 31vw, 440px);
    width: clamp(300px, 31vw, 440px);
    min-width: 0;
    min-height: 39px;
  }
  .wp-block-details.ecm-header-search[open] > summary {
    width: 0;
    min-width: 0;
    height: 39px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border: 0;
    overflow: hidden;
  }
  .ecm-header-search[open] .ecm-search-panel {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    width: auto;
    max-width: none;
    margin: 0;
    transform-origin: right center;
    animation: ecm-search-slide 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes ecm-search-slide {
    from { opacity: 0; clip-path: inset(0 0 0 100% round 999px); transform: translateY(-50%) translateX(0.75rem); }
    to { opacity: 1; clip-path: inset(0 0 0 0 round 999px); transform: translateY(-50%) translateX(0); }
  }
}

.wp-site-blocks > main,
.wp-block-post-content { width: 100%; max-width: none !important; }
.wp-block-post-content > .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
.ecm-section { padding: clamp(3rem, 5vw, 5rem) clamp(1rem, 4vw, 2rem); }
.ecm-section { position: relative; isolation: isolate; overflow: clip; }
.ecm-section:not(.ecm-hero)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -90px;
  right: -70px;
  width: 310px;
  height: 310px;
  pointer-events: none;
  opacity: 0.28;
  background-image: radial-gradient(circle, rgba(50, 40, 80, 0.25) 1.5px, transparent 1.8px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle, #000 10%, transparent 70%);
}
.ecm-section:not(.ecm-hero):not(.ecm-social-life)::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: clamp(-90px, -6vw, -48px);
  bottom: -105px;
  width: clamp(190px, 18vw, 290px);
  aspect-ratio: 1;
  pointer-events: none;
  border: clamp(18px, 2.2vw, 34px) solid rgba(160, 140, 203, 0.09);
  border-radius: 50%;
}
.ecm-section:not(.ecm-hero) > * { position: relative; z-index: 1; }
.ecm-section-tight { padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 4vw, 2rem); }
.ecm-home-nav { padding-top: clamp(2rem, 3vw, 3rem); }
.home .ecm-hero + .ecm-section { padding-top: clamp(2rem, 3vw, 3rem); }
.ecm-hero { min-height: min(680px, 76vh); display: flex; align-items: center; }
.home .ecm-hero {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.home .ecm-hero > .wp-block-columns { min-height: clamp(430px, 58vh, 600px); }
.home .ecm-hero > .wp-block-columns > .wp-block-column:first-child { position: relative; z-index: 3; padding-block: clamp(2.5rem, 5vw, 5rem); }
.home .ecm-hero > .wp-block-columns > .wp-block-column:last-child { align-self: stretch; position: relative; z-index: 1; margin-left: 0; }
.ecm-hero-slideshow { position: relative; width: calc(100% + clamp(3rem, 5vw, 6rem)); height: 100%; min-height: clamp(430px, 58vh, 600px); margin: 0; }
.ecm-hero-slideshow::before { content: ""; position: absolute; z-index: 3; inset: 0 auto 0 0; width: 29%; pointer-events: none; background: linear-gradient(90deg, var(--ecm-cream) 0%, rgba(229,225,214,0.82) 25%, rgba(229,225,214,0) 100%); }
.ecm-hero-slideshow .wp-block-image { position: absolute; inset: 0; margin: 0; opacity: 0; animation: ecm-hero-fade 18s infinite; }
.ecm-hero-slideshow .wp-block-image:nth-child(2) { animation-delay: 6s; }
.ecm-hero-slideshow .wp-block-image:nth-child(3) { animation-delay: 12s; }
.ecm-hero-slideshow img { width: 100%; height: 100%; min-height: 100%; max-height: none; object-fit: cover; border-radius: 0 !important; box-shadow: -18px 24px 46px rgba(50, 40, 80, 0.22); }
@keyframes ecm-hero-fade {
  0%, 28% { opacity: 1; }
  33%, 94% { opacity: 0; }
  100% { opacity: 1; }
}
.home .ecm-hero h1 { font-size: clamp(2.65rem, 4vw, 3.6rem) !important; }
.home .ecm-hero .ecm-lead { margin-bottom: 0.75rem; font-size: clamp(1.02rem, 1.5vw, 1.18rem); }
.home .ecm-hero + .ecm-section {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.home .ecm-hero + .ecm-section > .ecm-eyebrow,
.home .ecm-hero + .ecm-section > h2,
.home .ecm-hero + .ecm-section > .ecm-lead { grid-column: 1 / -1; }
.home .ecm-hero + .ecm-section > .ecm-eyebrow { margin-block: 0; }
.home .ecm-hero + .ecm-section > h2 { margin-block: 0; font-size: clamp(1.65rem, 3vw, 2.35rem) !important; }
.home .ecm-hero + .ecm-section > .ecm-lead { margin: 0 0 0.35rem; }
.home .ecm-hero + .ecm-section > .ecm-card-grid { display: contents !important; }
.home .ecm-hero + .ecm-section > .ecm-card-grid > .wp-block-column { min-width: 0; }
.home .ecm-hero + .ecm-section .ecm-card { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 1.25rem; cursor: pointer; }
.home .ecm-hero + .ecm-section .ecm-card > p:last-child {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 1rem;
}
.home .ecm-hero + .ecm-section .ecm-card > p:last-child a {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-decoration: none;
}
.home .ecm-hero + .ecm-section .ecm-card > p:last-child a::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: var(--ecm-radius);
}
.home .ecm-hero + .ecm-section .ecm-card > p:last-child a:hover {
  color: var(--ecm-plum);
  background: transparent;
}
.home .ecm-hero + .ecm-section .ecm-card:has(a:hover) {
  background: rgba(160, 140, 203, 0.15);
  border-color: rgba(50, 40, 80, 0.55);
}
.home .ecm-hero + .ecm-section .ecm-card:has(a:focus-visible) {
  outline: 3px solid var(--ecm-plum);
  outline-offset: 4px;
}
.ecm-home-nav .ecm-icon,
.home .ecm-hero + .ecm-section .ecm-icon {
  color: transparent;
  background: var(--ecm-lavender);
  border: 1px solid rgba(50, 40, 80, 0.28);
}
.ecm-home-nav .ecm-icon::before,
.home .ecm-hero + .ecm-section .ecm-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--ecm-plum);
  mask: var(--ecm-card-icon) center / contain no-repeat;
  -webkit-mask: var(--ecm-card-icon) center / contain no-repeat;
}
.ecm-icon-education { --ecm-card-icon: url("../icons/education.svg"); }
.ecm-icon-community { --ecm-card-icon: url("../icons/community.svg"); }
.ecm-icon-career { --ecm-card-icon: url("../icons/career.svg"); }
.ecm-icon-practical { --ecm-card-icon: url("../icons/document.svg"); }
.ecm-icon-contact { --ecm-card-icon: url("../icons/contact.svg"); }

.ecm-home-feature {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.ecm-home-feature > .wp-block-columns { max-width: 1100px !important; gap: clamp(1.5rem, 4vw, 3rem); }
.ecm-home-feature > .wp-block-columns > .wp-block-column:first-child { flex-basis: 36% !important; }
.ecm-home-feature > .wp-block-columns > .wp-block-column:last-child { flex-basis: 64% !important; }
.ecm-home-feature .ecm-image-frame img { min-height: 0; height: 210px; max-height: 210px; }
.ecm-home-feature h2 { font-size: clamp(1.7rem, 3vw, 2.35rem) !important; }

@media (min-width: 1101px) {
  .home .ecm-hero + .ecm-section > .ecm-lead { display: none; }
  .home .ecm-hero > .wp-block-columns {
    width: calc(100vw - clamp(2rem, 5vw, 6rem));
    max-width: 1600px !important;
    gap: clamp(2.5rem, 4vw, 5rem);
  }
  .home .ecm-hero > .wp-block-columns > .wp-block-column:first-child { flex-basis: 45% !important; }
  .home .ecm-hero > .wp-block-columns > .wp-block-column:last-child { flex-basis: 55% !important; }
  .home .ecm-hero h1 { max-width: 13ch; font-size: clamp(2.8rem, 4vw, 3.85rem) !important; }
}
.ecm-hero .wp-block-columns { align-items: center !important; gap: clamp(2rem, 5vw, 5rem); }
.ecm-hero h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 4.5vw, 4rem) !important;
  letter-spacing: -0.045em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.ecm-eyebrow { margin-bottom: 0.75rem; color: var(--ecm-plum); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.ecm-lead { max-width: 62ch; font-size: clamp(1.1rem, 2vw, 1.32rem); color: #4D4655; }
.ecm-image-frame img { width: 100%; min-height: 390px; max-height: 590px; object-fit: cover; box-shadow: var(--ecm-shadow); }
.ecm-image-wide img { width: 100%; max-height: 520px; object-fit: cover; }
.ecm-stat-row { margin-top: 0; }
.ecm-section-tight.has-white-background-color {
  background: var(--ecm-sand) !important;
}
.ecm-stat {
  padding: 1.15rem 1.25rem;
  background: var(--ecm-cream);
  border: 1px solid rgba(50, 40, 80, 0.22);
  border-radius: 18px;
}
.ecm-stat strong { display: block; color: #322850; font-size: 1.35rem; }

/* White is retained for text and contrast, but not used as an arbitrary
   section surface. Content sections follow the supplied cream/beige rhythm. */
.ecm-section.has-white-background-color {
  background: var(--ecm-sand) !important;
}

.ecm-card-grid { gap: 1rem !important; }
.ecm-card, .ecm-profile, .ecm-fact-card, .ecm-semester-card {
  height: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--ecm-cream);
  border: var(--ecm-border);
  border-radius: var(--ecm-radius);
  box-shadow: 0 8px 24px rgba(50, 40, 80, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.ecm-card:hover, .ecm-profile:hover, .ecm-fact-card:hover, .ecm-semester-card:hover {
  transform: translateY(-2px);
  border-color: rgba(50, 40, 80, 0.65);
  box-shadow: var(--ecm-shadow);
}
.ecm-card a, .ecm-text-link { font-weight: 750; text-underline-offset: 0.2em; }
.ecm-tag { display: inline-block; width: fit-content; margin-bottom: 0.9rem; padding: 0.3rem 0.65rem; color: var(--ecm-white); background: var(--ecm-plum); border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.ecm-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1rem; background: var(--ecm-plum); border-radius: 12px; color: var(--ecm-white); font-size: 1.15rem; font-weight: 800; }

.ecm-cta { display: flex; min-height: 236px; flex-direction: column; justify-content: center; max-width: 980px; margin-inline: auto; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--ecm-lavender); border: 1px solid rgba(50, 40, 80, 0.24); border-radius: 24px; color: var(--ecm-plum); box-shadow: var(--ecm-shadow); }
.ecm-cta h2, .ecm-cta h3, .ecm-cta p { color: var(--ecm-plum); }
.ecm-cta .wp-block-button__link { background: var(--ecm-plum); color: var(--ecm-white); }
.ecm-cta-compact { max-width: 980px; margin-inline: auto; }
.ecm-cta h2 { font-size: clamp(1.6rem, 3vw, 2.35rem) !important; }
.ecm-cta p { font-size: 1.05rem !important; }
.ecm-section-compact { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ecm-cta-small { padding: 1.5rem 1.75rem; color: var(--ecm-white); background: var(--ecm-plum); border: 1px solid var(--ecm-lavender); border-radius: 20px; }
.ecm-cta-small h2, .ecm-cta-small h3, .ecm-cta-small p { color: var(--ecm-white); }

.wp-block-button__link, button { transition: transform 150ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.wp-block-button__link:hover, button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(50, 40, 80, 0.17); }
.wp-block-button__link:active, button:active { transform: translateY(1px); box-shadow: none; }
.is-style-outline > .wp-block-button__link { color: #322850; border-color: #322850; background: transparent; }

.ecm-search-results { min-height: 60vh; }
.ecm-search-list { display: grid; gap: 1rem; margin-top: 2rem; }
.ecm-search-list .ecm-card { max-width: none; }

.ecm-steps { counter-reset: none; }
.ecm-step { position: relative; padding-left: clamp(1.25rem, 3vw, 2rem); }
.ecm-step::before { content: none; }
.ecm-workflow .ecm-steps { margin-top: clamp(2rem, 4vw, 3.5rem); }
.ecm-placeholder { aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 1rem; color: #322850; background: repeating-linear-gradient(135deg, #E5E1D6 0 12px, #D8C3A5 12px 24px); border: 2px dashed #A08CCB; border-radius: 20px; text-align: center; }
.ecm-profile h3 { margin-top: 1.2rem; }
#gruppen .ecm-card-grid { max-width: 920px !important; margin-inline: auto; }
#gruppen .ecm-profile { padding: 1.25rem; }
#gruppen .ecm-placeholder { aspect-ratio: 4 / 3; max-height: 300px; }

.wp-block-details { padding: 1.1rem 1.25rem; background: var(--ecm-cream); border: var(--ecm-border); border-radius: 16px; }
.wp-block-details + .wp-block-details { margin-top: 0.75rem; }
.wp-block-details summary { cursor: pointer; color: #322850; font-weight: 750; }
.wp-block-details[open] { border-color: #A08CCB; box-shadow: 0 8px 22px rgba(50, 40, 80, 0.06); }
.ecm-accordion-grid { align-items: stretch !important; margin-top: 1rem; }
.ecm-accordion-grid { align-items: flex-start !important; }
.ecm-accordion-grid .wp-block-column { display: flex; align-self: flex-start; }
.ecm-expand-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 250px;
  padding: 1.35rem;
  background: var(--ecm-cream);
  border: var(--ecm-border);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(50, 40, 80, 0.05);
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease, transform 220ms ease;
}
.ecm-expand-card:hover { border-color: rgba(160, 140, 203, 0.62); box-shadow: 0 14px 34px rgba(50, 40, 80, 0.08); }
.ecm-expand-card h3 { margin: 0 0 0.7rem; }
.ecm-expand-card .ecm-card-summary { margin: 0 0 1.25rem; color: #4D4655; }
.wp-block-details.ecm-accordion-card {
  width: 100%;
  min-height: 0;
  margin-top: auto;
  padding: 0;
  overflow: hidden;
  background: rgba(160, 140, 203, 0.10);
  border-color: rgba(50, 40, 80, 0.16);
  border-radius: 18px;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.wp-block-details.ecm-accordion-card[open] { background: rgba(160, 140, 203, 0.16); border-color: rgba(160, 140, 203, 0.72); box-shadow: 0 10px 24px rgba(50, 40, 80, 0.07); }
.ecm-accordion-card > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.8rem 3rem 0.8rem 1rem;
  list-style: none;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
}
.ecm-accordion-card > summary::-webkit-details-marker { display: none; }
.ecm-accordion-card > summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--ecm-plum);
  border-bottom: 2px solid var(--ecm-plum);
  transform: translateY(-0.18rem) rotate(45deg);
  transition: transform 160ms ease;
}
.ecm-accordion-card[open] > summary::after { transform: translateY(0.18rem) rotate(225deg); }
.ecm-accordion-card > :not(summary) { margin-inline: 1rem; }
.ecm-accordion-card > :last-child { margin-bottom: 1rem; }
.ecm-workflow .ecm-accordion-card > summary { font-size: 0.94rem; }
.ecm-accordion-card::details-content { block-size: 0; opacity: 0; overflow: hidden; transition: block-size 280ms ease, opacity 220ms ease, content-visibility 280ms allow-discrete; }
.ecm-accordion-card[open]::details-content { block-size: auto; opacity: 1; }
#fag > .ecm-eyebrow, #fag > h2, #opbygning > .ecm-eyebrow, #opbygning > h2 { max-width: 850px; margin-inline: auto; text-align: center; }
#adgang > .ecm-card-grid { max-width: 900px !important; margin-inline: auto; }

.ecm-social-life { background: var(--ecm-plum); color: var(--ecm-white); }
.ecm-social-life h2, .ecm-social-life h3, .ecm-social-life p { color: var(--ecm-white); }
.ecm-social-life .ecm-eyebrow { color: var(--ecm-lavender); }
.ecm-social-life .ecm-card { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); box-shadow: none; }
.ecm-social-life .wp-block-button__link { color: var(--ecm-plum); background: var(--ecm-lavender); }
.ecm-open-house { overflow: hidden; background: var(--ecm-lavender); border: 1px solid rgba(50,40,80,.2); border-radius: 24px; }
.ecm-open-house::after { content: ""; position: absolute; right: -35px; bottom: -55px; width: 210px; height: 210px; border: 28px solid rgba(50,40,80,.12); border-radius: 50%; }
.ecm-open-house > * { position: relative; z-index: 1; }
.ecm-application-section .wp-block-buttons { margin-top: 1.5rem; }
.ecm-application-section .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; }

.ecm-skip-link { position: absolute; left: -9999px; }
.ecm-site-footer { padding: 4rem 1.25rem 2rem; background: var(--ecm-plum); color: var(--ecm-white); }
.ecm-site-footer h2, .ecm-site-footer h3, .ecm-site-footer p, .ecm-site-footer li { color: var(--ecm-white); }
.ecm-site-footer a { color: var(--ecm-white); text-underline-offset: 0.2em; }
.ecm-site-footer .wp-block-separator { border-color: rgba(255,255,255,0.34); }
.ecm-footer-logo { width: min(240px, 100%); margin: 0 0 1.25rem; }
.ecm-footer-logo img { width: 100%; height: auto; filter: brightness(0) invert(1); }

/* WooCommerce adds these header blocks globally through block hooks. They are
   not part of this informational education site and would create false paths. */
.ecm-site-header .wp-block-woocommerce-customer-account,
.ecm-site-header .wp-block-woocommerce-mini-cart { display: none !important; }

@media (max-width: 1100px) {
  .ecm-header-inner { gap: 0.75rem; }
  .ecm-header-logo { width: 205px; flex-basis: 205px; }
  .ecm-main-nav { font-size: 0.84rem; }
  .ecm-main-nav .wp-block-navigation__container { gap: 0.75rem; }
  .wp-block-details.ecm-header-search { --ecm-search-toggle-width: 44px; }
  .wp-block-details.ecm-header-search > summary { width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 0; }
  .ecm-header-search > summary::after { width: 1.15rem; height: 1.15rem; margin: 0; }
  .home .ecm-hero + .ecm-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .ecm-hero + .ecm-section > .ecm-eyebrow,
  .home .ecm-hero + .ecm-section > h2,
  .home .ecm-hero + .ecm-section > .ecm-lead { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .ecm-hero { min-height: 0; }
  .ecm-hero .wp-block-columns { flex-wrap: wrap !important; }
  .ecm-hero .wp-block-column { flex-basis: 100% !important; }
  .home .ecm-hero > .wp-block-columns { min-height: 0; }
  .home .ecm-hero > .wp-block-columns > .wp-block-column:first-child { padding-block: 2.5rem 1.5rem; }
  .home .ecm-hero > .wp-block-columns > .wp-block-column:last-child { margin-left: 0; }
  .ecm-hero-slideshow { width: calc(100% + 2rem); min-height: 360px; margin-inline: -1rem; }
  .ecm-hero-slideshow::before { inset: 0 0 auto; width: 100%; height: 22%; background: linear-gradient(180deg, var(--ecm-cream), rgba(229,225,214,0)); }
  .ecm-hero-slideshow img { min-height: 360px; }
  .ecm-image-frame img { min-height: 300px; max-height: 480px; }
  .ecm-header-inner { min-height: 68px; }
  .ecm-header-logo { width: min(210px, 58vw); }
  .ecm-header-logo img { max-height: 48px; }
  .ecm-header-actions { gap: 0.6rem; }
  .ecm-home-feature > .wp-block-columns > .wp-block-column:first-child,
  .ecm-home-feature > .wp-block-columns > .wp-block-column:last-child { flex-basis: 100% !important; }
  .wp-block-details.ecm-header-search > summary { width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 0; }
  .ecm-header-search > summary::after { width: 1.2rem; height: 1.2rem; margin: 0; }
  .ecm-search-panel {
    top: calc(100% + 0.7rem);
    right: 0;
    width: min(390px, calc(100vw - 2rem));
    transform: none;
    animation: ecm-search-mobile 180ms ease both;
  }
  .ecm-search-panel .wp-block-search__inside-wrapper { height: 44px; min-height: 44px; }
  .ecm-search-panel .wp-block-search__input { height: 38px; }
  .ecm-search-panel .wp-block-search__button { width: 38px; height: 38px; min-width: 38px; }
  @keyframes ecm-search-mobile {
    from { opacity: 0; transform: translateY(-0.4rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecm-hero-slideshow .wp-block-image { display: none; animation: none; opacity: 1; }
  .ecm-hero-slideshow .wp-block-image:first-child { display: block; }
  .ecm-accordion-card::details-content { transition: none; }
  .ecm-main-nav .wp-block-navigation-item,
  .ecm-header-search[open] .ecm-search-panel { transition: none; animation: none; }
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: none; }
}

@media (max-width: 600px) {
  .ecm-site-header { backdrop-filter: none; }
  .ecm-section { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .ecm-hero { padding-top: 3rem; }
  .ecm-hero h1 { font-size: clamp(2.6rem, 13vw, 3.4rem) !important; }
  .ecm-card, .ecm-profile, .ecm-fact-card, .ecm-semester-card { padding: 1.2rem; border-radius: 18px; }
  .ecm-cta { padding: 2rem 1.35rem; border-radius: 22px; }
  .home .ecm-hero + .ecm-section { grid-template-columns: 1fr; }
  .home .ecm-hero + .ecm-section .ecm-card { min-height: 0; }
  .wp-block-buttons .wp-block-button { width: 100%; }
  .wp-block-buttons .wp-block-button__link { width: 100%; text-align: center; }
  .wp-block-navigation__responsive-container.is-menu-open {
    padding: 1.5rem !important;
    background: #E5E1D6 !important;
    color: #322850;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: flex-start !important;
    padding-top: 3rem !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    width: 100%;
    gap: 0.75rem;
    align-items: stretch !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    padding: 0.7rem 0;
    font-size: 1.25rem;
    text-align: left;
  }
  .wp-block-navigation__responsive-container.is-menu-open .ecm-nav-cta > a {
    width: fit-content;
    padding-inline: 1.1rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
