/* ImagiNorthern — public site modern visual layer */

.landing-page {
  background: linear-gradient(180deg, #faf9fd 0%, #fff 120px, #f4f3f8 100%);
  color: #2c2940;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: -.01em;
}
.landing-page h1, .landing-page .display-4, .landing-page .display-5 {
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
  color: #1c1830;
}
.landing-page h2, .landing-page h3 {
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: #241f38;
}
.landing-page p, .landing-page li, .landing-page .card-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3c3854;
}
.landing-page .lead, .landing-page .hp-hero p, .landing-page .in-hero-section p {
  font-size: 1.22rem;
  line-height: 1.65;
  color: #433e5c;
  font-weight: 500;
}
.landing-page a:not(.btn):not(.nav-link) {
  text-underline-offset: .18em;
}
.public-entity-card {
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 32px rgba(40,30,70,.08);
  transition: transform .22s ease, box-shadow .22s ease;
  color: inherit;
}
.public-entity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(93,87,158,.18);
  color: inherit;
}
.public-entity-card .card-body { padding: 1.15rem 1.2rem 1.3rem; }
.public-entity-card h5 { font-weight: 750; letter-spacing: -.02em; color: #241f38; }
.public-cover-card {
  min-height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #5D579E;
}
.public-entity-card h5 { color: #241f38; }
.landing-page .pe-index-hero h1,
.landing-page .pe-hero h1 {
  color: #fff !important;
}

/* Public story pages — communities, projects, events, workshops */
.pe-kicker {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .65rem;
  color: #c9c2e8;
}
.pe-index-hero {
  background: linear-gradient(135deg, #5D579E 0%, #01696f 100%);
  color: #fff;
  padding: 5.5rem 0 3.2rem;
  border-radius: 0 0 36px 36px;
  margin-bottom: 2rem;
}
.pe-index-hero,
.pe-index-hero h1,
.pe-index-hero .lead,
.pe-index-hero p,
.pe-index-hero .pe-kicker {
  color: #fff !important;
}
.pe-index-hero h1 { font-weight: 800; letter-spacing: -.035em; }
.pe-index-hero .lead { max-width: 36rem; opacity: .92; }
.pe-hero {
  min-height: min(52vh, 520px);
  background-size: cover !important;
  background-position: center !important;
  color: #fff;
  border-radius: 0 0 36px 36px;
  overflow: hidden;
}
.pe-hero-shade {
  min-height: inherit;
  background: linear-gradient(180deg, rgba(16,12,36,.18) 0%, rgba(16,12,36,.78) 100%);
  display: flex;
  align-items: flex-end;
}
.pe-hero-inner { padding: 4.5rem 0 2.6rem; max-width: 820px; }
.pe-hero,
.pe-hero h1,
.pe-hero p,
.pe-hero .pe-kicker,
.pe-hero-meta {
  color: #fff !important;
}
.pe-hero h1 {
  font-weight: 800;
  letter-spacing: -.04em;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  text-shadow: 0 8px 32px rgba(0,0,0,.45);
  margin-bottom: .75rem;
}
.pe-hero-badge { margin-bottom: .75rem; }
.pe-hero-badge .badge { font-size: .78rem; font-weight: 700; padding: .4rem .7rem; border-radius: 999px; }
.pe-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  font-size: 1.02rem;
  font-weight: 550;
  color: rgba(255,255,255,.94);
}
.pe-hero-meta a { color: #fff !important; text-decoration: underline; text-underline-offset: .18em; }
.pe-page { padding: 1.75rem 0 4rem; }
.pe-editbar {
  background: #fff;
  border: 1px solid #eceaf3;
  border-radius: 16px;
  padding: .7rem 1rem;
  box-shadow: 0 8px 24px rgba(40,30,70,.05);
}
.pe-article {
  background: #fff;
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.3rem, 3vw, 2.6rem);
  box-shadow: 0 16px 44px rgba(40,30,70,.08);
  border: 1px solid #f0eef6;
}
.pe-article .public-entity-summary h3 {
  margin-top: 2rem;
  font-size: 1.35rem;
  color: #5D579E;
  font-weight: 750;
  letter-spacing: -.02em;
}
.pe-article .public-entity-summary .lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #3c3854;
  font-weight: 550;
}
.pe-article .public-entity-summary p,
.pe-article .public-entity-sections p,
.pe-article li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3c3854;
}
.pe-article .public-entity-sections h4 {
  margin-top: 2.1rem;
  margin-bottom: .85rem;
  font-size: 1.2rem;
  color: #241f38;
  font-weight: 750;
}
.pe-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  margin: .4rem 0 1.2rem;
}
.pe-gallery-item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #eceaf3;
}
.pe-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.pe-gallery-item:hover img { transform: scale(1.05); }
.pe-article .community-links a { color: #5D579E; font-weight: 600; }
.pe-aside {
  position: sticky;
  top: 5.5rem;
  background: #fff;
  border-radius: 22px;
  padding: 1.4rem 1.35rem 1.5rem;
  border: 1px solid #eceaf3;
  box-shadow: 0 12px 32px rgba(40,30,70,.07);
}
.pe-aside h5, .pe-aside h2 {
  font-size: 1.05rem;
  font-weight: 750;
  margin-bottom: 1rem;
  color: #241f38;
}
.pe-aside .pe-fact {
  font-size: .92rem;
  color: #4a4458;
  margin-bottom: .85rem;
}
.pe-aside .pe-fact strong { display: block; color: #241f38; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.pe-related-title {
  font-size: 1.15rem;
  font-weight: 750;
  margin: 1.8rem 0 .9rem;
  color: #241f38;
}
.pe-mini {
  display: block;
  background: #faf9fd;
  border: 1px solid #eceaf3;
  border-radius: 14px;
  padding: .85rem 1rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: .65rem;
  transition: border-color .15s, box-shadow .15s;
}
.pe-mini:hover { border-color: #5D579E; box-shadow: 0 8px 20px rgba(93,87,158,.1); color: inherit; }
.pe-mini strong { display: block; color: #241f38; }
.pe-page .progress-in { height: 10px; background: #eceaf3; border-radius: 99px; overflow: hidden; }
@media (max-width: 991.98px) {
  .pe-hero { min-height: 300px; border-radius: 0 0 24px 24px; }
  .pe-hero-inner { padding: 5.5rem 0 1.8rem; }
  .pe-aside { position: static; }
  .pe-index-hero { padding-top: 5rem; border-radius: 0 0 24px 24px; }
}

.in-navbar {
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 4px 24px rgba(93,87,158,.08);
  border-bottom: 1px solid rgba(93,87,158,.08);
  padding-top: .35rem;
  padding-bottom: .35rem;
}
.in-navbar .nav-link {
  font-weight: 600;
  font-size: .92rem;
  color: #4a4580 !important;
  border-radius: 8px;
  padding: .45rem .75rem !important;
  transition: background .15s, color .15s;
}
.in-navbar .nav-link:hover,
.in-navbar .nav-link.active {
  background: rgba(93,87,158,.08);
  color: #5D579E !important;
}
.in-nav-actions .btn {
  border-radius: 999px;
  font-weight: 700;
  padding: .5rem 1.25rem;
}

/* Mobile navigation */
@media (max-width: 991.98px) {
  .in-navbar .navbar-collapse {
    background: rgba(255,255,255,.98);
    border-radius: 16px;
    margin-top: .5rem;
    padding: .75rem 1rem 1rem;
    box-shadow: 0 16px 40px rgba(93,87,158,.15);
    border: 1px solid rgba(93,87,158,.1);
    max-height: min(70vh, 480px);
    overflow-y: auto;
  }
  .in-navbar .navbar-nav { align-items: stretch !important; }
  .in-navbar .nav-link {
    padding: .65rem .85rem !important;
    margin-bottom: .15rem;
  }
  .in-nav-actions {
    flex-direction: column;
    width: 100%;
    margin-top: .5rem !important;
    margin-left: 0 !important;
    gap: .5rem;
  }
  .in-nav-actions .btn { width: 100%; text-align: center; }
  .navbar-toggler:focus { box-shadow: 0 0 0 3px var(--in-focus-ring, rgba(93,87,158,.2)); }
}

/* Hero sections */
.hp-hero, .in-hero-section {
  border-radius: 0 0 32px 32px;
  overflow: hidden;
}
.hp-section {
  padding: 4rem 0;
}
.hp-section-title {
  font-weight: 800;
  letter-spacing: -.03em;
  color: #2d2a40;
}
.hp-card, .in-public-card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(93,87,158,.1);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.hp-card:hover, .in-public-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(93,87,158,.15);
}

.public-entity-summary h3 { margin-top: 1.6rem; font-size: 1.25rem; color: #2c2740; }
.public-entity-summary .lead { font-size: 1.15rem; line-height: 1.7; }
.public-entity-summary p { line-height: 1.7; }
.public-entity-sections img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
.community-links { padding-left: 1.1rem; }
.community-links li { margin-bottom: .4rem; }
.community-hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,.55); }

/* Footer */
.in-footer, footer.site-footer {
  background: linear-gradient(180deg, #2d2a40, #1e1e32);
  color: #f4f2fb;
  border-radius: 32px 32px 0 0;
  margin-top: 3rem;
}
.in-footer p,
.in-footer li,
.in-footer small,
.in-footer h6,
.in-footer .small,
.in-footer .text-muted,
.in-footer span,
.in-footer a {
  color: #f4f2fb !important;
}
.in-footer a:hover { color: #fff !important; }

/* Public broadcast */
.in-broadcast-bar.in-broadcast-info { --bc-bg: #e8f4fc; --bc-accent: #01696f; }
.in-broadcast-bar.in-broadcast-success { --bc-bg: #e8f8ef; --bc-accent: #1a9f5c; }
.in-broadcast-bar.in-broadcast-warning { --bc-bg: #fff8e6; --bc-accent: #b8860b; }
.in-broadcast-bar.in-broadcast-danger { --bc-bg: #fdecea; --bc-accent: #c0392b; }

body.has-fixed-nav .in-broadcast-bar {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 1030;
}

/* Content pages */
.public-page-header {
  background: linear-gradient(135deg, #5D579E 0%, #01696f 100%);
  color: #fff;
  border-radius: 0 0 24px 24px;
  padding: 3rem 0 2.5rem;
  margin-bottom: 2rem;
}
.public-page-header h1 {
  font-weight: 800;
  letter-spacing: -.02em;
}

/* Buttons on public */
.btn-in-primary, .btn-primary.in-brand {
  background: linear-gradient(135deg, #5D579E, #4a4580);
  border: none;
  color: #fff;
  box-shadow: 0 6px 20px rgba(93,87,158,.3);
}
.btn-in-primary:hover, .btn-in-primary:focus, .btn-primary.in-brand:hover {
  color: #fff;
  filter: brightness(1.06);
}

/* Remaining public inner-page heroes (contact, gallery, listings, learning fallback) */
.landing-page .in-hero:not(.in-hero-carousel) {
  background: linear-gradient(135deg, #5D579E 0%, #01696f 100%);
  color: #fff;
  padding: 5.5rem 0 3.2rem;
  border-radius: 0 0 36px 36px;
  margin-bottom: 2rem;
}
.landing-page .in-hero:not(.in-hero-carousel) h1 { color: #fff; font-weight: 800; letter-spacing: -.035em; }
.landing-page .in-hero:not(.in-hero-carousel) .lead { color: rgba(255,255,255,.92); }
.landing-page .in-hero:not(.in-hero-carousel) .text-muted { color: rgba(255,255,255,.82) !important; }
.landing-page .in-hero:not(.in-hero-carousel) a:not(.btn) { color: #fff; text-decoration: underline; }
.landing-page .in-hero .btn-outline-secondary {
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.landing-page .in-hero .btn-outline-secondary:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: #fff;
}

.landing-page .card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(40,30,70,.08);
}
.landing-page .form-control, .landing-page .form-select {
  border-radius: 12px;
  border-color: #e8e6f0;
}
.landing-page .form-control:focus, .landing-page .form-select:focus {
  border-color: #5D579E;
  box-shadow: 0 0 0 3px rgba(93,87,158,.18);
}
.landing-page :focus-visible {
  outline: 2px solid #5D579E;
  outline-offset: 2px;
}

a.in-skip-link:focus,
a.in-skip-link:focus-visible {
  position: fixed !important;
  top: 1rem !important;
  left: 1rem !important;
  z-index: 10000;
  width: auto !important;
  height: auto !important;
  padding: .55rem 1rem !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  background: #5D579E !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

@media (max-width: 767.98px) {
  .pe-index-hero, .landing-page .in-hero:not(.in-hero-carousel) {
    padding: 4.5rem 0 2.2rem;
    border-radius: 0 0 22px 22px;
  }
}