:root {
  --wed-ink: #17233f;
  --wed-muted: #69758f;
  --wed-teal: #087f80;
  --wed-teal-dark: #075c62;
  --wed-coral: #f45b55;
  --wed-sand: #fff8ee;
  --wed-line: #e5e9f0;
  --wed-card: #ffffff;
  --wed-shadow: 0 18px 50px rgba(32, 48, 77, .09);
}

body.home {
  background: #f4f6f9;
}

.content.main.wed-home {
  display: block !important;
  width: auto !important;
  max-width: 1220px !important;
  margin: 22px auto 52px !important;
  padding: 0 16px !important;
}

.wed-home *,
.wed-home *::before,
.wed-home *::after {
  box-sizing: border-box;
}

.wed-hero {
  position: relative;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 190px;
  gap: 34px;
  align-items: stretch;
  min-height: 250px;
  padding: 30px;
  overflow: hidden;
  color: var(--wed-ink);
  background:
    radial-gradient(circle at 84% 12%, rgba(244, 91, 85, .12), transparent 23%),
    linear-gradient(135deg, #fffaf2 0%, #fff 62%, #edf9f7 100%);
  border: 1px solid rgba(23, 35, 63, .08);
  border-radius: 30px;
  box-shadow: var(--wed-shadow);
}

.wed-hero::after {
  position: absolute;
  right: 205px;
  bottom: -66px;
  width: 180px;
  height: 180px;
  content: '';
  border: 1px solid rgba(8, 127, 128, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(8, 127, 128, .04), 0 0 0 48px rgba(8, 127, 128, .025);
}

.wed-hero__day {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: linear-gradient(150deg, var(--wed-teal), var(--wed-teal-dark));
  border-radius: 22px;
  box-shadow: 0 16px 30px rgba(7, 92, 98, .22);
}

.wed-hero__day span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
}

.wed-hero__day strong {
  margin: 2px 0 -1px;
  font-size: 74px;
  line-height: 1;
  letter-spacing: -.07em;
}

.wed-hero__day small {
  padding-top: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  border-top: 1px solid rgba(255, 255, 255, .3);
}

.wed-hero__copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 620px;
}

.wed-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px !important;
  color: var(--wed-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wed-eyebrow span {
  width: 24px;
  height: 2px;
  background: var(--wed-coral);
}

.wed-hero h1 {
  margin: 0 0 12px;
  color: var(--wed-ink);
  font-size: clamp(35px, 4.1vw, 54px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.wed-hero h1 em {
  color: var(--wed-coral);
  font-style: normal;
}

.wed-hero__copy > p:not(.wed-eyebrow) {
  max-width: 570px;
  margin: 0;
  color: var(--wed-muted);
  font-size: 15px;
  line-height: 1.65;
}

.wed-hero__metrics {
  display: flex;
  gap: 24px;
  margin-top: 19px;
}

.wed-hero__metrics span {
  color: var(--wed-muted);
  font-size: 12px;
}

.wed-hero__metrics strong {
  margin-right: 3px;
  color: var(--wed-ink);
  font-size: 18px;
}

.wed-hero__date {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(23, 35, 63, .1);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(32, 48, 77, .08);
  backdrop-filter: blur(8px);
}

.wed-hero__date span {
  color: var(--wed-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wed-hero__date strong {
  margin: 6px 0 -2px;
  color: var(--wed-ink);
  font-size: 62px;
  line-height: 1;
}

.wed-hero__date b {
  color: var(--wed-muted);
  font-size: 12px;
}

.wed-hero__date i {
  margin-top: 18px;
  padding: 6px 10px;
  color: var(--wed-teal-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  background: #def5ef;
  border-radius: 999px;
}

.wed-region-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 24px 36px;
}

.wed-region {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  min-height: 84px;
  padding: 15px 17px;
  color: var(--wed-ink) !important;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid var(--wed-line);
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(32, 48, 77, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.wed-region:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 127, 128, .35);
  box-shadow: 0 18px 36px rgba(32, 48, 77, .13);
}

.wed-region__index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: var(--wed-teal);
  border-radius: 13px;
}

.wed-region--mt .wed-region__index { background: var(--wed-coral); }
.wed-region--mn .wed-region__index { background: #304a88; }

.wed-region__name { min-width: 0; }
.wed-region__name strong { display: block; font-size: 15px; }
.wed-region__name small { display: block; margin-top: 3px; color: var(--wed-muted); font-size: 11px; }
.wed-region svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.wed-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.wed-results-stream { min-width: 0; }

.wed-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 0 14px;
  padding: 0 3px;
}

.wed-section-heading p {
  margin: 0 0 4px;
  color: var(--wed-coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.wed-section-heading h2 {
  margin: 0;
  color: var(--wed-ink);
  font-size: 24px;
  letter-spacing: -.025em;
}

.wed-section-heading > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--wed-muted);
  font-size: 11px;
  font-weight: 700;
}

.wed-section-heading > span i {
  width: 8px;
  height: 8px;
  background: #2eb875;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(46, 184, 117, .13);
}

.wed-result-block {
  padding: 14px;
  overflow: hidden;
  background: var(--wed-card);
  border: 1px solid var(--wed-line);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(32, 48, 77, .06);
}

.wed-result-block + .wed-result-block { margin-top: 22px; }
.wed-result-block > :first-child { margin-top: 0 !important; }
.wed-result-block table { border-radius: 10px; overflow: hidden; }

.wed-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 15px;
}

.wed-dock-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--wed-line);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(32, 48, 77, .07);
}

.wed-dock-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  color: #fff;
  background: var(--wed-ink);
}

.wed-dock-title span { font-size: 13px; font-weight: 800; }
.wed-dock-title strong { color: #9ce5dc; font-size: 13px; }

.wed-timeline { padding: 18px 17px 8px; }

.wed-timeline__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  min-height: 82px;
}

.wed-timeline__rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.wed-timeline__rail::after {
  position: absolute;
  top: 25px;
  bottom: -5px;
  width: 1px;
  content: '';
  background: #dfe5ea;
}

.wed-timeline__item:last-child .wed-timeline__rail::after { display: none; }

.wed-timeline__rail span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--wed-teal-dark);
  font-size: 10px;
  font-weight: 900;
  background: #dff5f1;
  border: 4px solid #fff;
  border-radius: 50%;
}

.wed-timeline__content h3 {
  margin: 2px 0 8px;
  color: var(--wed-ink);
  font-size: 13px;
}

.wed-stations { display: flex; flex-wrap: wrap; gap: 5px; }

.wed-stations a {
  padding: 5px 8px;
  color: #536078 !important;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none !important;
  background: #f3f5f8;
  border-radius: 7px;
  transition: color .2s ease, background .2s ease;
}

.wed-stations a:hover { color: var(--wed-teal-dark) !important; background: #dff5f1; }

.wed-dock-card--tools { padding: 15px; }

.wed-dock-label {
  margin: 0 0 9px;
  color: var(--wed-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wed-dock-card--tools > a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 6px;
  color: var(--wed-ink) !important;
  text-decoration: none !important;
  border-top: 1px solid #eef0f4;
}

.wed-tool-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--wed-teal);
  background: #e7f7f4;
  border-radius: 11px;
}

.wed-tool-icon svg,
.wed-notice svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.wed-dock-card--tools a:nth-of-type(2) .wed-tool-icon { color: var(--wed-coral); background: #fff0ed; }
.wed-dock-card--tools a:nth-of-type(3) .wed-tool-icon { color: #304a88; background: #edf1fb; }
.wed-dock-card--tools a strong { display: block; font-size: 12px; }
.wed-dock-card--tools a small { display: block; margin-top: 2px; color: var(--wed-muted); font-size: 10px; }
.wed-dock-card--tools a b { color: #a4adbd; font-size: 19px; font-weight: 400; }

.wed-notice {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0 !important;
  padding: 13px 15px;
  color: #7b6647;
  font-size: 10px;
  line-height: 1.5;
  background: var(--wed-sand);
  border: 1px solid #f1dfc3;
  border-radius: 15px;
}

.wed-notice svg { flex: 0 0 17px; width: 17px; margin-top: 1px; }

@media (max-width: 980px) {
  .wed-hero { grid-template-columns: 130px minmax(0, 1fr) 165px; gap: 22px; min-height: 220px; padding: 24px; }
  .wed-hero__day strong { font-size: 62px; }
  .wed-hero__date strong { font-size: 52px; }
  .wed-workspace { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
}

@media (max-width: 760px) {
  .content.main.wed-home { margin-top: 12px !important; padding: 0 10px !important; }
  .wed-hero { grid-template-columns: 86px 1fr; gap: 16px; min-height: auto; padding: 18px; border-radius: 21px; }
  .wed-hero__day { min-height: 150px; border-radius: 16px; }
  .wed-hero__day strong { font-size: 48px; }
  .wed-hero__day small { display: none; }
  .wed-eyebrow { font-size: 9px; letter-spacing: .09em; }
  .wed-hero h1 { font-size: 31px; }
  .wed-hero__copy > p:not(.wed-eyebrow) { font-size: 12px; line-height: 1.5; }
  .wed-hero__metrics { gap: 12px; margin-top: 13px; }
  .wed-hero__metrics span { font-size: 10px; }
  .wed-hero__metrics strong { font-size: 14px; }
  .wed-hero__date { grid-column: 1 / -1; flex-direction: row; gap: 8px; justify-content: flex-start; padding: 11px 14px; border-radius: 13px; }
  .wed-hero__date strong { margin: 0; font-size: 24px; }
  .wed-hero__date i { margin: 0 0 0 auto; }
  .wed-hero::after { display: none; }
  .wed-region-bar { grid-template-columns: 1fr; gap: 8px; margin: 18px 6px 26px; }
  .wed-region { min-height: 64px; padding: 10px 12px; border-radius: 14px; box-shadow: 0 8px 22px rgba(32, 48, 77, .07); }
  .wed-region__index { width: 37px; height: 37px; }
  .wed-workspace { display: flex; flex-direction: column; gap: 22px; }
  .wed-sidebar { position: static; order: -1; width: 100%; }
  .wed-dock-card--tools, .wed-notice { display: none; }
  .wed-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
  .wed-timeline__item { display: block; min-height: 0; padding: 10px; background: #f6f8fa; border-radius: 12px; }
  .wed-timeline__rail { display: none; }
  .wed-timeline__content h3 { margin-top: 0; }
  .wed-section-heading { align-items: flex-start; }
  .wed-section-heading h2 { font-size: 20px; }
  .wed-section-heading > span { display: none; }
  .wed-result-block { padding: 6px; border-radius: 14px; }
}

@media (max-width: 430px) {
  .wed-hero { grid-template-columns: 72px 1fr; padding: 14px; }
  .wed-hero__day { min-height: 138px; }
  .wed-hero__day strong { font-size: 42px; }
  .wed-hero__metrics span:last-child { display: none; }
  .wed-timeline { grid-template-columns: 1fr; }
  .wed-timeline__item { display: grid; grid-template-columns: 90px 1fr; align-items: center; }
  .wed-timeline__content h3 { margin-bottom: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .wed-region { transition: none; }
}
