/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import "normalize.css";

body {
  background: #f6f8fb;
  color: #172033;
  font-family: Arial, sans-serif;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.hover\:bg-blue-500:hover {
  background-color: #3b82f6;
}

.text-white {
  color: #fff;
}

.mari-home-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--site-header-height, 73px));
  height: calc(100dvh - var(--site-header-height, 73px));
  margin: -2rem calc(50% - 50vw);
  overflow: hidden;
  background: #000;
}

.mari-home-frame iframe {
  display: block;
  flex: none;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid #d9e0ea;
  background: rgba(255,255,255,0.95);
}

.home-nav a {
  color: #172033;
  text-decoration: none;
}

.home-nav__brand {
  font-size: 20px;
  font-weight: 800;
}

.home-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-nav__links a {
  padding: 8px 11px;
  border-radius: 8px;
  color: #475467;
  font-weight: 700;
}

.home-nav__links a:hover {
  background: #eef3f9;
  color: #172033;
}

.home-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 34px auto 56px;
}

.home-header {
  margin-bottom: 22px;
}

.home-header p {
  margin: 0 0 6px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-header h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.1;
}

.home-auth-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-auth-cta a {
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}

.home-auth-cta__primary {
  background: #2563eb;
  color: #fff;
}

.home-auth-cta__primary:hover {
  background: #1d4ed8;
}

.home-auth-cta__secondary {
  border: 1px solid #d9e0ea;
  background: #fff;
  color: #344054;
}

.home-auth-cta__secondary:hover {
  border-color: #98a2b3;
  color: #172033;
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.home-section-card {
  display: block;
  min-height: 128px;
  padding: 18px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(16,24,40,0.06);
}

.home-section-card:hover {
  border-color: #98a2b3;
}

.home-section-card span {
  display: block;
  margin-bottom: 26px;
  color: #2f6fed;
  font-size: 14px;
  font-weight: 800;
}

.home-section-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.prototype-list h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.prototype-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.prototype-grid a {
  padding: 11px 12px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.prototype-grid a:hover {
  border-color: #98a2b3;
  color: #172033;
}

.dashboard-shell {
  min-height: calc(100vh - 137px);
  margin: -2rem calc(50% - 50vw);
  padding: 54px max(24px, calc((100vw - 1280px) / 2 + 32px));
  color: #0f172a;
}

.dashboard-shell--with-aside {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.dashboard-main {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.dashboard-aside {
  position: sticky;
  top: 96px;
  z-index: 3;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.dashboard-aside__intro {
  margin-bottom: 16px;
}

.dashboard-aside__intro p {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-aside__intro h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.dashboard-aside__intro span {
  display: block;
  margin-top: 10px;
  color: #66788a;
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-aside__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-aside__item {
  display: block;
  position: relative;
  z-index: 4;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.dashboard-aside__item strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.dashboard-aside__item span {
  display: block;
  margin-top: 4px;
  color: #66788a;
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-aside__item em {
  display: inline-block;
  margin-top: 8px;
  color: #8b5e34;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-aside__item.is-active {
  border-color: #2a9d8f;
  background: #edf8f5;
}

.dashboard-aside__item.is-locked {
  opacity: 0.72;
}

.dashboard-shell--work {
  background:
    radial-gradient(circle at 20% 10%, rgba(42, 157, 143, 0.18), transparent 30%),
    linear-gradient(180deg, #f7fbfa 0%, #edf7f4 100%);
}

.dashboard-shell--health {
  background:
    radial-gradient(circle at 22% 12%, rgba(0, 180, 216, 0.16), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #edf8fb 100%);
}

.dashboard-shell--resources {
  background:
    radial-gradient(circle at 18% 10%, rgba(42, 157, 143, 0.16), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(230, 57, 70, 0.1), transparent 24%),
    linear-gradient(180deg, #f8fcfb 0%, #eef7f3 100%);
}

.dashboard-shell--public-events {
  background:
    radial-gradient(circle at 18% 10%, rgba(0, 180, 216, 0.18), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(42, 157, 143, 0.14), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #eef7fb 100%);
}

.dashboard-header {
  max-width: 780px;
  margin-bottom: 28px;
}

.dashboard-header p {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

.dashboard-header span {
  display: block;
  max-width: 640px;
  margin-top: 14px;
  color: #536273;
  font-size: 17px;
  line-height: 1.55;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid #d7e2ea;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: #172033;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.dashboard-card:hover {
  border-color: #9fb0bf;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

.dashboard-card--locked {
  opacity: 0.78;
  cursor: not-allowed;
}

.dashboard-card span {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-card h2 {
  margin: 42px 0 10px;
  font-size: 28px;
  line-height: 1.05;
}

.dashboard-card p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.45;
}

.dashboard-card strong {
  width: fit-content;
  margin-top: 20px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
}

.projects-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.projects-intro-card {
  border: 1px solid #d7e5df;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.projects-intro-card strong {
  display: block;
  margin: 0 0 8px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-intro-card p {
  margin: 0;
  color: #607284;
  font-size: 14px;
  line-height: 1.5;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-showcase-card {
  overflow: hidden;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: #172033;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.05);
}

.project-showcase-card:hover {
  border-color: #8bc5bd;
  box-shadow: 0 20px 48px rgba(42, 157, 143, 0.12);
}

.project-showcase-card__media {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px;
  background-size: cover;
  background-position: center;
}

.project-showcase-card__brand {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-showcase-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.project-showcase-card__content > span {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-showcase-card__content h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.project-showcase-card__content p {
  margin: 0;
  color: #607284;
  font-size: 15px;
  line-height: 1.55;
}

.project-showcase-card__targets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-showcase-card__targets strong {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f5f2;
  color: #1f7066;
  font-size: 12px;
  font-weight: 800;
}

.project-showcase-card--body .project-showcase-card__media {
  background-image:
    linear-gradient(180deg, rgba(25, 52, 89, 0.1), rgba(25, 52, 89, 0.4)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.85), rgba(255,255,255,0) 18%),
    linear-gradient(135deg, #2f80ed 0%, #56ccf2 55%, #d7efff 100%);
}

.project-showcase-card--territory .project-showcase-card__media {
  background-image:
    linear-gradient(180deg, rgba(20, 43, 70, 0.08), rgba(20, 43, 70, 0.5)),
    linear-gradient(165deg, #1b4332 0%, #2d6a4f 38%, #95d5b2 100%);
}

.project-showcase-card--vision .project-showcase-card__media {
  background-image:
    linear-gradient(180deg, rgba(34, 24, 74, 0.12), rgba(34, 24, 74, 0.45)),
    linear-gradient(145deg, #4c1d95 0%, #7c3aed 48%, #c4b5fd 100%);
}

.project-showcase-card--support .project-showcase-card__media {
  background-image:
    linear-gradient(180deg, rgba(81, 27, 27, 0.06), rgba(81, 27, 27, 0.35)),
    linear-gradient(145deg, #f97316 0%, #fb7185 52%, #fde68a 100%);
}

.resources-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 18px;
}

.resources-tab {
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid #cfe0d9;
  background: rgba(255,255,255,0.92);
  color: #445661;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.resources-tab.is-active {
  border-color: #2a9d8f;
  background: #2a9d8f;
  color: #fff;
}

.resources-panel {
  border: 1px solid #d7e5df;
  border-radius: 8px;
  padding: 20px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.events-panel {
  padding: 2px 0 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.resource-card:hover {
  border-color: #9ac7bc;
  box-shadow: 0 18px 40px rgba(42, 157, 143, 0.12);
}

.resource-card__icon {
  color: #2a9d8f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-card__type {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7f5f2;
  color: #1f7066;
  font-size: 12px;
  font-weight: 800;
}

.resource-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.resource-card p {
  margin: 0;
  color: #66788a;
  font-size: 14px;
  line-height: 1.5;
}

.resource-back {
  margin: 0 0 16px;
}

.resource-back a {
  color: #2a9d8f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.resource-detail-card {
  border: 1px solid #d7e5df;
  border-radius: 8px;
  padding: 24px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.resource-detail-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.resource-detail-copy h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.1;
}

.resource-detail-copy p {
  margin: 0;
  color: #5d6e80;
  font-size: 15px;
  line-height: 1.6;
}

.events-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-row-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.event-row-card--service {
  grid-template-columns: minmax(0, 1fr);
}

.event-row-card:hover {
  border-color: #94cddd;
  box-shadow: 0 18px 40px rgba(0, 180, 216, 0.12);
}

.event-row-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #eff8ff 0%, #dff3f6 100%);
  color: #0f172a;
  text-align: center;
}

.event-row-date__month {
  color: #0284c7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-row-date__day {
  font-size: 34px;
  line-height: 0.95;
}

.event-row-date__weekday {
  color: #5f7284;
  font-size: 13px;
  font-weight: 700;
}

.event-row-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-row-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.event-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.event-row-type {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 800;
}

.event-row-structure {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #dbe6ef;
}

.event-row-icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #c7e9f1;
  border-radius: 999px;
  background: #f4fbfd;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-row-icon-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
}

.event-row-time {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.event-row-action {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.event-row-main h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
}

.event-row-main p {
  margin: 0;
  color: #66788a;
  font-size: 15px;
  line-height: 1.55;
}

.event-row-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  color: #506273;
  font-size: 13px;
}

.event-row-meta span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.event-row-meta strong {
  color: #0f172a;
  font-weight: 800;
}

.events-note {
  margin-top: 18px;
  border-top: 1px solid #d7e5df;
  padding-top: 18px;
}

.events-note h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.1;
}

.events-note p {
  margin: 0 0 14px;
  color: #5d6e80;
  font-size: 15px;
  line-height: 1.6;
}

.view-page-shell {
  height: calc(100vh - 73px);
  min-height: calc(100vh - 73px);
  margin: -2rem calc(50% - 50vw);
  display: flex;
  flex-direction: column;
  background: #eef3f8;
}

.view-page-shell iframe {
  width: 100%;
  flex: 1;
  border: 0;
  background: #fff;
}

@media (max-width: 820px) {
  .home-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-shell--with-aside {
    grid-template-columns: 1fr;
  }

  .dashboard-aside {
    position: static;
  }

  .home-sections,
  .prototype-grid,
  .dashboard-grid,
  .dashboard-grid--four,
  .projects-intro-grid,
  .resources-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .event-row-card {
    grid-template-columns: 1fr;
  }

  .event-row-date {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
  }

  .event-row-meta {
    grid-template-columns: 1fr;
  }

  .dashboard-header h1 {
    font-size: 34px;
  }
}
