.house-guide-article-page {
  --hga-ink: #0f2233;
  --hga-muted: #51677a;
  --hga-blue: #2563eb;
  --hga-blue-dark: #1d4ed8;
  --hga-teal: #0f9aa8;
  --hga-green: #16a34a;
  --hga-soft: #f6fbff;
  --hga-soft-blue: #eef8ff;
  --hga-border: #d9e8f5;
  --hga-shadow: 0 20px 54px rgba(15, 34, 51, 0.08);
  min-width: 0;
  color: var(--hga-ink);
  background: var(--hga-soft);
}

.house-guide-article-page .aga-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.house-guide-article-page svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.house-guide-article-page .aga-wide,
.house-guide-article-page .site-header.home-nav .nav-shell {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

.house-guide-article-page .aga-article-width {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.house-guide-article-page .site-header.home-nav {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(217, 232, 245, 0.95);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 34, 51, 0.035);
}

.house-guide-article-page .site-header.home-nav .nav-shell {
  min-height: 82px;
}

.house-guide-article-page .site-header.home-nav .brand {
  color: var(--hga-ink);
  font-size: 1.12rem;
  font-weight: 900;
}

.house-guide-article-page .site-header.home-nav .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(145deg, #16a5b5, #087a96);
  box-shadow: 0 9px 22px rgba(22, 165, 181, 0.23);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -0.05em;
  transform: none;
}

.house-guide-article-page .site-header.home-nav .nav-links {
  gap: 1rem;
}

.house-guide-article-page .site-header.home-nav .nav-links > a,
.house-guide-article-page .site-header.home-nav .nav-dropdown-toggle {
  color: #24364b;
  font-size: 0.98rem;
  font-weight: 700;
}

.house-guide-article-page .site-header.home-nav .nav-links > a[aria-current="page"] {
  color: var(--hga-blue);
  box-shadow: inset 0 -3px var(--hga-blue);
}

.aga-main {
  min-height: 65vh;
  overflow: hidden;
}

.aga-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 68px;
  background:
    radial-gradient(circle at 5% 70%, rgba(184, 221, 252, 0.36) 0 130px, transparent 131px),
    radial-gradient(circle at 65% 3%, rgba(255, 255, 255, 0.98) 0 190px, transparent 191px),
    linear-gradient(125deg, #eaf6ff 0%, #f9fcff 52%, #e9f7ff 100%);
}

.aga-hero::before {
  content: "";
  position: absolute;
  top: 48px;
  right: 3%;
  width: 130px;
  height: 130px;
  opacity: 0.55;
  background-image: radial-gradient(circle, #91c6f4 2.5px, transparent 2.8px);
  background-size: 19px 19px;
}

.aga-hero::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: -160px;
  width: 430px;
  height: 430px;
  border: 2px solid rgba(144, 199, 242, 0.26);
  border-radius: 50%;
}

.aga-back-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 28px;
  color: #1553a3;
  font-size: 0.9rem;
  font-weight: 850;
}

.aga-back-link:hover {
  color: var(--hga-blue-dark);
  text-decoration: none;
}

.aga-back-link svg {
  width: 22px;
  height: 22px;
}

.aga-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  gap: 72px;
  align-items: center;
}

.aga-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.aga-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 850;
}

.aga-pill-customer {
  color: #075aac;
  background: #d7edff;
}

.aga-pill-guide {
  color: #385064;
  background: #e7eef5;
}

.aga-hero h1 {
  max-width: 890px;
  margin: 0 0 24px;
  color: var(--hga-ink);
  font-size: clamp(3.4rem, 5.2vw, 5.7rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.aga-hero-copy > p {
  max-width: 820px;
  margin: 0;
  color: var(--hga-muted);
  font-size: 1.16rem;
  line-height: 1.72;
}

.aga-hero-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(210, 229, 244, 0.96);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 58px rgba(31, 78, 116, 0.13);
}

.aga-hero-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35px -28px 34px 45px;
  border-radius: 50%;
  background: rgba(191, 225, 252, 0.36);
  filter: blur(4px);
}

.aga-hero-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 22px;
  border-radius: 21px;
  color: #ffffff;
  background: linear-gradient(145deg, #4d8cf0, #1d4ed8);
  box-shadow: 0 13px 28px rgba(37, 99, 235, 0.25);
}

.aga-hero-icon svg {
  width: 42px;
  height: 42px;
}

.aga-hero-card strong {
  display: block;
  margin-bottom: 13px;
  color: var(--hga-ink);
  font-size: 1.22rem;
  font-weight: 900;
}

.aga-hero-card ul {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.aga-hero-card li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #445d70;
  font-size: 0.9rem;
  font-weight: 700;
}

.aga-hero-card li svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: var(--hga-teal);
}

.aga-article-section {
  padding: 74px 0 82px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.aga-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.aga-article {
  min-width: 0;
  padding: 48px;
  border: 1px solid var(--hga-border);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--hga-shadow);
}

.aga-article > :first-child {
  margin-top: 0;
}

.aga-article h2 {
  margin: 52px 0 18px;
  color: var(--hga-ink);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 930;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.aga-article h3 {
  margin: 32px 0 12px;
  color: var(--hga-ink);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.aga-article p,
.aga-article li {
  color: var(--hga-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.aga-article p {
  margin: 0 0 18px;
}

.aga-article a:not(.aga-button):not(.aga-related-link) {
  color: #155fc1;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(21, 95, 193, 0.3);
  text-underline-offset: 3px;
}

.aga-article ul,
.aga-article ol {
  display: grid;
  gap: 10px;
  padding-left: 1.35rem;
  margin: 0 0 24px;
}

.aga-lead-card,
.aga-note,
.aga-example-card,
.aga-estimate-card {
  border: 1px solid var(--hga-border);
  border-radius: 24px;
}

.aga-lead-card {
  padding: 28px 30px;
  background: linear-gradient(135deg, #edf7ff, #f8fcff);
}

.aga-lead-card h2 {
  margin: 0 0 12px;
  font-size: 1.65rem;
}

.aga-lead-card p:last-child {
  margin-bottom: 0;
}

.aga-estimate-card {
  margin: 38px 0 8px;
  padding: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(104, 180, 237, 0.19), transparent 34%),
    #f6fbff;
}

.aga-estimate-card-header {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.aga-estimate-card h2 {
  margin: 0;
  font-size: 1.75rem;
}

.aga-estimate-value {
  color: var(--hga-blue-dark);
  font-size: 1.55rem;
  font-weight: 950;
  white-space: nowrap;
}

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

.aga-estimate-item {
  padding: 17px;
  border: 1px solid #dceaf6;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.9);
}

.aga-estimate-item strong,
.aga-estimate-item span {
  display: block;
}

.aga-estimate-item strong {
  margin-bottom: 5px;
  color: var(--hga-ink);
  font-size: 0.9rem;
}

.aga-estimate-item span {
  color: var(--hga-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.aga-estimate-disclaimer {
  margin: 18px 0 0 !important;
  color: #6b7f90 !important;
  font-size: 0.76rem !important;
}

.aga-example-card {
  margin: 32px 0;
  padding: 28px 30px;
  border-left: 5px solid var(--hga-teal);
  background: #f2fbfb;
}

.aga-example-card h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.aga-example-card p:last-child {
  margin-bottom: 0;
}

.aga-note {
  margin: 28px 0;
  padding: 22px 24px;
  background: #fffaf0;
  border-color: #f4dfb4;
}

.aga-note strong {
  color: #82500c;
}

.aga-table-wrap {
  margin: 24px 0 30px;
  border: 1px solid var(--hga-border);
  border-radius: 20px;
  overflow-x: auto;
}

.aga-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #ffffff;
}

.aga-table th,
.aga-table td {
  padding: 17px 19px;
  border-bottom: 1px solid #e6eff6;
  color: var(--hga-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.aga-table th {
  color: var(--hga-ink);
  background: #eef7ff;
  font-weight: 850;
}

.aga-table tr:last-child td {
  border-bottom: 0;
}

.aga-calculator-cta {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 48px 0;
  padding: 30px;
  border: 1px solid #bcdcf5;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 20%, rgba(131, 191, 239, 0.2), transparent 33%),
    #eef8ff;
  overflow: hidden;
}

.aga-cta-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(145deg, #478af0, #1d4ed8);
  box-shadow: 0 13px 28px rgba(37, 99, 235, 0.22);
}

.aga-cta-icon svg {
  width: 41px;
  height: 41px;
}

.aga-calculator-cta h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.aga-calculator-cta p {
  margin: 0;
  font-size: 0.88rem;
}

.aga-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 24px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--hga-blue-dark), #075fc9);
  box-shadow: 0 13px 28px rgba(29, 78, 216, 0.2);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.aga-button:hover {
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #173fae, #064da7);
  transform: translateY(-2px);
}

.aga-button svg {
  width: 22px;
  height: 22px;
}

.aga-related {
  margin-top: 48px;
  padding: 30px;
  border: 1px solid var(--hga-border);
  border-radius: 24px;
  background: #f9fcff;
}

.aga-related h2 {
  margin: 0 0 20px;
  font-size: 1.75rem;
}

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

.aga-related-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid #dceaf6;
  border-radius: 17px;
  color: var(--hga-ink);
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.aga-related-link:hover {
  color: var(--hga-blue-dark);
  text-decoration: none;
  border-color: #bad8f0;
  transform: translateY(-2px);
}

.aga-related-link svg {
  width: 20px;
  height: 20px;
  color: var(--hga-blue);
}

.aga-faq {
  margin-top: 52px;
}

.aga-faq > h2 {
  margin-bottom: 22px;
}

.aga-faq-list {
  display: grid;
  gap: 13px;
}

.aga-faq details {
  border: 1px solid var(--hga-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 34, 51, 0.035);
}

.aga-faq summary {
  position: relative;
  padding: 20px 54px 20px 22px;
  color: var(--hga-ink);
  font-size: 0.91rem;
  font-weight: 850;
  line-height: 1.4;
  list-style: none;
}

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

.aga-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 21px;
  color: var(--hga-blue);
  font-size: 1.45rem;
  line-height: 1;
  transform: translateY(-50%);
}

.aga-faq details[open] summary::after {
  content: "−";
}

.aga-faq details p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 0.87rem;
}

.aga-sidebar {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.aga-sidebar-card {
  align-self: start;
  padding: 25px;
  border: 1px solid var(--hga-border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 34, 51, 0.065);
}

.aga-sidebar-card h2 {
  margin: 0 0 17px;
  color: var(--hga-ink);
  font-size: 1.12rem;
  font-weight: 900;
}

.aga-sidebar-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.aga-sidebar-card a {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #466074;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.45;
}

.aga-sidebar-card a::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: #72aef0;
}

.aga-sidebar-card a:hover {
  color: var(--hga-blue-dark);
  text-decoration: none;
}

.aga-sidebar-tool {
  color: #ffffff;
  background: linear-gradient(145deg, #193e75, #0c678f);
}

.aga-sidebar-tool h2,
.aga-sidebar-tool p {
  color: #ffffff;
}

.aga-sidebar-tool p {
  margin: 0 0 18px;
  color: #d5e8f2;
  font-size: 0.8rem;
  line-height: 1.6;
}

.aga-sidebar-tool .aga-button {
  width: 100%;
  min-height: 52px;
  padding-inline: 16px;
  background: #ffffff;
  color: #164f93;
  box-shadow: none;
}

.house-guide-article-page .aga-footer {
  margin-top: 0;
  padding: 66px 0 72px;
  color: #d9e8f2;
  background:
    radial-gradient(circle at 18% 0%, rgba(27, 90, 135, 0.3), transparent 38%),
    #071d2b;
}

.aga-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(210px, 0.75fr) minmax(210px, 0.75fr);
  gap: 76px;
}

.aga-footer-about {
  max-width: 650px;
}

.aga-footer-brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.aga-footer-brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.aga-footer-brand > span {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(145deg, #18aab1, #087d8e);
  font-size: 0.9rem;
  font-weight: 950;
}

.aga-footer-brand strong {
  font-size: 1.14rem;
  font-weight: 900;
}

.aga-footer-about p {
  max-width: 620px;
  margin: 0;
  color: #aec3d1;
  font-size: 0.92rem;
  line-height: 1.7;
}

.house-guide-article-page .aga-footer h2 {
  margin: 4px 0 21px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
}

.house-guide-article-page .aga-footer .footer-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.house-guide-article-page .aga-footer .footer-list li {
  margin-top: 11px;
}

.house-guide-article-page .aga-footer .footer-list a {
  color: #c1d3de;
  font-size: 0.92rem;
}

.house-guide-article-page .aga-footer .footer-list a:hover {
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .aga-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .aga-hero-card {
    width: min(620px, 100%);
  }

  .aga-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .aga-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aga-footer-grid {
    gap: 44px;
  }
}

@media (max-width: 800px) {
  .house-guide-article-page .aga-wide,
  .house-guide-article-page .aga-article-width,
  .house-guide-article-page .site-header.home-nav .nav-shell {
    width: min(calc(100% - 32px), 1360px);
  }

  .house-guide-article-page .site-header.home-nav .brand {
    font-size: 0.94rem;
  }

  .aga-hero {
    padding: 50px 0 55px;
  }

  .aga-hero h1 {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }

  .aga-hero-copy > p {
    font-size: 1.04rem;
  }

  .aga-article-section {
    padding: 56px 0 66px;
  }

  .aga-article {
    padding: 32px;
  }

  .aga-calculator-cta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .aga-calculator-cta .aga-button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .aga-estimate-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .aga-footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .aga-hero::before {
    display: none;
  }

  .aga-hero-card {
    padding: 25px;
  }

  .aga-article {
    padding: 25px 21px;
    border-radius: 24px;
  }

  .aga-article h2 {
    margin-top: 44px;
  }

  .aga-estimate-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .aga-estimate-value {
    white-space: normal;
  }

  .aga-calculator-cta {
    grid-template-columns: minmax(0, 1fr);
    padding: 25px 21px;
    text-align: center;
  }

  .aga-cta-icon {
    margin: 0 auto;
  }

  .aga-related {
    padding: 24px 20px;
  }

  .aga-related-grid,
  .aga-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .aga-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }

  .aga-footer-about {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .house-guide-article-page .site-header.home-nav .brand-mark {
    width: 42px;
    height: 42px;
  }

  .house-guide-article-page .site-header.home-nav .brand {
    gap: 9px;
    font-size: 0.82rem;
  }

  .aga-pill {
    min-height: 36px;
    font-size: 0.76rem;
  }

  .aga-hero h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .aga-lead-card,
  .aga-example-card,
  .aga-estimate-card {
    padding: 23px 20px;
  }

  .aga-button {
    width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .aga-button,
  .aga-related-link,
  .aga-faq details {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  }
}
