.agg-page,
.agg-page * {
  box-sizing: border-box;
}

.agg-page {
  --agg-ink: #172334;
  --agg-muted: #5d6b7c;
  --agg-line: #d7dee7;
  --agg-soft: #f6f8fa;
  --agg-tint: #edf3f8;
  --agg-accent: #355f7d;
  --agg-accent-dark: #21435c;
  width: 100%;
  margin: 0;
  padding-top: 108px;
  color: var(--agg-ink);
  background: #ffffff;
  font-size: 16px;
  line-height: 1.62;
}

.agg-page a {
  color: var(--agg-accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.agg-page a:hover {
  color: var(--agg-accent);
}

.agg-page a:focus-visible,
.agg-page summary:focus-visible {
  outline: 3px solid #21435c;
  outline-offset: 3px;
}

.agg-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.agg-page h1,
.agg-page h2,
.agg-page h3,
.agg-page p {
  margin-top: 0;
}

.agg-page h1,
.agg-page h2,
.agg-page h3 {
  color: var(--agg-ink);
  line-height: 1.18;
}

.agg-page h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: 48px;
  font-weight: 700;
}

.agg-page h2 {
  margin-bottom: 12px;
  font-size: 31px;
  font-weight: 700;
}

.agg-page h3 {
  margin-bottom: 9px;
  font-size: 19px;
  font-weight: 700;
}

.agg-page p {
  margin-bottom: 15px;
  color: var(--agg-muted);
}

.agg-page strong {
  color: var(--agg-ink);
}

.agg-shell {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.agg-crumb {
  padding: 18px 0 0;
}

.agg-crumb-inner {
  font-size: 14px;
  color: var(--agg-muted);
}

.agg-crumb a {
  color: #e94560;
  text-decoration: none;
}

.agg-crumb a:hover {
  text-decoration: underline;
}

.agg-banner {
  min-height: 492px;
  padding: 36px 0 50px;
  background: #f7fafc;
}

.agg-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 42px;
  align-items: center;
}

.agg-banner-copy {
  min-width: 0;
}

.agg-eyebrow {
  margin-bottom: 16px;
  color: var(--agg-accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.agg-keyword-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.agg-keyword-line a {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid #bdccd9;
  border-radius: 4px;
  background: #ffffff;
  color: var(--agg-accent-dark);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.agg-hero-thesis {
  max-width: 680px;
  margin-bottom: 14px;
  color: var(--agg-ink);
  font-size: 21px;
  line-height: 1.45;
}

.agg-hero-support {
  max-width: 680px;
  font-size: 16px;
}

.agg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 25px;
}

.agg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid #e94560;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.agg-button-primary {
  background: #e94560;
  border-color: #e94560;
  color: #ffffff !important;
}

.agg-button-primary:hover {
  background: #c73650;
  border-color: #c73650;
  color: #ffffff !important;
}

.agg-button-secondary {
  background: #ffffff;
  border-color: #d7dee7;
  color: var(--agg-accent-dark) !important;
}

.agg-hero-media {
  min-width: 0;
}

.agg-media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--agg-line);
  border-radius: 6px;
  background: #fffdf4;
}

.agg-media-frame img {
  width: 100%;
  max-height: 385px;
  object-fit: contain;
}

.agg-section {
  padding: 58px 0;
  border-top: 1px solid var(--agg-line);
}

.agg-section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.agg-section-heading p {
  margin-bottom: 0;
  font-size: 17px;
}

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

.agg-decision-card {
  min-height: 196px;
  padding: 22px 20px 20px;
  border: 1px solid var(--agg-line);
  border-radius: 4px;
  background: #ffffff;
}

.agg-card-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--agg-tint);
  color: var(--agg-accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.agg-decision-card p {
  margin-bottom: 0;
  font-size: 15px;
}

.agg-process-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.86fr) minmax(0, 1.14fr);
  gap: 30px;
  align-items: start;
}

.agg-process-media .agg-media-frame {
  min-height: 278px;
}

.agg-process-note {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--agg-accent);
  background: var(--agg-soft);
  font-size: 15px;
}

.agg-step-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.agg-step-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--agg-muted);
}

.agg-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #b9c9d7;
  border-radius: 50%;
  color: var(--agg-accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.agg-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.agg-page table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.agg-page th {
  background: var(--agg-tint);
  color: var(--agg-ink);
  font-weight: 700;
}

.agg-page td,
.agg-page th {
  vertical-align: top;
  padding: 11px 12px;
  border: 1px solid #d7dee7;
}

.agg-route-table {
  min-width: 650px;
}

.agg-route-table td:first-child,
.agg-route-table th:first-child {
  width: 23%;
}

.agg-design-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.agg-tip {
  padding: 18px;
  border: 1px solid var(--agg-line);
  border-radius: 4px;
  background: var(--agg-soft);
}

.agg-tip p {
  margin-bottom: 0;
  font-size: 15px;
}

.agg-quote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.agg-quote-item {
  min-height: 184px;
  padding: 19px 17px;
  border-top: 3px solid var(--agg-accent);
  border-right: 1px solid var(--agg-line);
  border-bottom: 1px solid var(--agg-line);
  border-left: 1px solid var(--agg-line);
  background: #ffffff;
}

.agg-quote-item p {
  margin-bottom: 0;
  font-size: 15px;
}

.agg-reading-section {
  background: var(--agg-soft);
}

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

.agg-reading-card {
  display: flex;
  min-height: 244px;
  flex-direction: column;
  padding: 22px 20px 20px;
  border: 1px solid var(--agg-line);
  border-radius: 4px;
  background: #ffffff;
}

.agg-reading-card .agg-reading-type {
  margin-bottom: 14px;
  color: var(--agg-accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.agg-reading-card p {
  margin-bottom: 16px;
  font-size: 15px;
}

.agg-reading-card a {
  display: inline-block;
  margin-top: auto;
  font-weight: 700;
}

.agg-faq-list {
  border-top: 1px solid var(--agg-line);
}

.agg-faq-item {
  border-bottom: 1px solid var(--agg-line);
}

.agg-faq-item summary {
  padding: 17px 35px 17px 0;
  cursor: pointer;
  color: var(--agg-ink);
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  position: relative;
}

.agg-faq-item summary::-webkit-details-marker {
  display: none;
}

.agg-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 15px;
  right: 4px;
  color: var(--agg-accent);
  font-size: 24px;
  font-weight: 400;
}

.agg-faq-item[open] summary::after {
  content: "−";
}

.agg-faq-answer {
  max-width: 900px;
  padding: 0 0 18px;
}

.agg-faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
}

.agg-closing {
  padding: 44px 0 54px;
  background: var(--agg-tint);
}

.agg-closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.agg-closing p {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 17px;
}

@media (max-width: 900px) {
  .agg-banner-inner,
  .agg-process-grid,
  .agg-closing-inner {
    grid-template-columns: 1fr;
  }

  .agg-banner {
    min-height: 0;
  }

  .agg-hero-media {
    max-width: 650px;
  }

  .agg-decision-grid,
  .agg-design-tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agg-quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agg-reading-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .agg-shell {
    width: min(100% - 32px, 1180px);
  }

  .agg-banner {
    padding: 24px 0 38px;
  }

  .agg-section {
    padding: 42px 0;
  }

  .agg-page h1 {
    margin-bottom: 15px;
    font-size: 35px;
  }

  .agg-page h2 {
    font-size: 25px;
  }

  .agg-page h3 {
    font-size: 18px;
  }

  .agg-hero-thesis {
    font-size: 18px;
  }

  .agg-banner-inner {
    gap: 26px;
  }

  .agg-media-frame {
    min-height: 230px;
    padding: 12px;
  }

  .agg-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .agg-button {
    width: 100%;
  }

  .agg-decision-grid,
  .agg-design-tips,
  .agg-quote-grid {
    grid-template-columns: 1fr;
  }

  .agg-decision-card,
  .agg-quote-item,
  .agg-reading-card {
    min-height: 0;
  }

  .agg-closing {
    padding: 36px 0 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agg-page *,
  .agg-page *::before,
  .agg-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
