/* AACE Patient Guide to Acromegaly (node 4618). Scoped to .acro-guide so
   nothing reaches the site header, menus or footer. Colors follow the
   acromegaly campaign artwork (blue, orange, purple). */

.acro-guide {
  --ag-blue: #0b5cad;
  --ag-navy: #0a2f5c;
  --ag-aace: #00629b;
  --ag-orange: #f26a1b;
  --ag-orange-soft: #fff1e8;
  --ag-purple: #7a2ea0;
  --ag-purple-soft: #f4ecf8;
  --ag-sky: #d9eefb;
  --ag-panel: #f4f8fc;
  --ag-green: #1d7f5a;
  --ag-green-soft: #e8f6ef;
  --ag-ink: #23303d;
  --ag-muted: #566372;
  --ag-line: #dbe4ee;
  --ag-radius: 14px;

  color: var(--ag-ink);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 64px;
}
.acro-guide p { margin: 0 0 1em; }
.acro-guide h2, .acro-guide h3 { color: var(--ag-navy); font-weight: 700; line-height: 1.3; }
.acro-guide a { color: var(--ag-aace); text-decoration: underline; text-underline-offset: 2px; }
.acro-guide a:hover { color: var(--ag-orange); }
.acro-guide ul { padding-left: 1.3em; margin: 0 0 1.1em; }
.acro-guide li { margin-bottom: .35em; }
.acro-guide li::marker { color: var(--ag-orange); }
.acro-guide .ag-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ag-orange);
  margin-bottom: 8px;
}

/* 100vw includes the scrollbar; clip the overflow on this page only. */
.dialog-off-canvas-main-canvas { overflow-x: clip; }

/* HERO: breaks out of the page's nested .container to span the viewport */
.ag-hero {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  background: #fff;
  color: var(--ag-ink);
  margin: 0;
}
/* Below 1200px the pituitary artwork is a band above the text. */
.ag-hero::before {
  content: "";
  display: block;
  height: clamp(150px, 26vw, 280px);
  background: url(/images/acromegaly/acromegaly-guide-hero.jpg) left center / cover no-repeat;
}
.ag-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 24px 36px;
}
.ag-hero .ag-eyebrow { color: #c4520e; }
.ag-hero h1 {
  color: var(--ag-navy);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 14px;
}

.ag-hero-lede {
  font-size: 1.12rem;
  color: var(--ag-muted);
  max-width: 620px;
  margin: 0 !important;
}


@media (min-width: 1200px) {
  .ag-hero {
    --ag-hero-h: clamp(320px, 22vw, 315px);
    display: flex;
    flex-direction: column;
    height: var(--ag-hero-h);
    background: #fff url(/images/acromegaly/acromegaly-guide-hero.jpg) left top / auto calc(var(--ag-hero-h) - 6px) no-repeat;
  }
  .ag-hero::before { display: none; }
  .ag-hero-inner {
    flex: 1;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 48px 0 calc(var(--ag-hero-h) * 2.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .ag-hero-inner > * { width: 100%; max-width: 660px; }
}

/* INTRO */
.ag-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  margin: 48px 0 40px;
  align-items: start;
}
.ag-intro-text p:first-child { font-size: 1.18rem; color: var(--ag-navy); }
.ag-goodnews {
  background: var(--ag-green-soft);
  border-radius: var(--ag-radius);
  padding: 26px 26px 18px;
  border-top: 6px solid var(--ag-green);
}
.ag-goodnews .ag-eyebrow { color: var(--ag-green); }
.ag-goodnews-head {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ag-navy);
  line-height: 1.3;
}
.ag-goodnews ul { list-style: none; padding: 0; }
.ag-goodnews li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
}
.ag-goodnews li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ag-green);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

/* STATS */
.ag-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 20px;
}
.ag-stat {
  background: var(--ag-panel);
  border-radius: var(--ag-radius);
  padding: 22px 20px;
  text-align: center;
  border-bottom: 4px solid var(--ag-blue);
}
.ag-stat:nth-child(2) { border-bottom-color: var(--ag-purple); }
.ag-stat:nth-child(3) { border-bottom-color: var(--ag-orange); }
.ag-stat-num {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ag-navy);
}
.ag-stat-label { display: block; font-size: .95rem; color: var(--ag-muted); margin-top: 6px; line-height: 1.4; }
.ag-stats-note { color: var(--ag-muted); font-size: .98rem; margin-bottom: 48px !important; }

/* TOPIC NAV */
.ag-topics-head { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 8px; }
.ag-topics {
  list-style: none;
  padding: 0 !important;
  margin: 20px 0 40px !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  counter-reset: ag-topic;
}
.ag-topics li { margin: 0; counter-increment: ag-topic; }
.ag-topics li::marker { content: none; }
.ag-topics a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 12px;
  color: var(--ag-navy);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ag-topics a::before {
  content: counter(ag-topic);
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ag-sky);
  color: var(--ag-blue);
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ag-topics a:hover, .ag-topics a:focus {
  border-color: var(--ag-blue);
  box-shadow: 0 6px 18px rgba(11, 92, 173, .12);
  transform: translateY(-2px);
  color: var(--ag-navy);
}

/* ACCORDION */
.ag-accordion { counter-reset: ag-sec; margin-bottom: 56px; }
.ag-section {
  counter-increment: ag-sec;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  margin-bottom: 14px;
  overflow: hidden;
  scroll-margin-top: 90px;
  transition: box-shadow .2s, border-color .2s;
}
.ag-section:has(.ag-toggle[aria-expanded="true"]) {
  border-color: var(--ag-blue);
  box-shadow: 0 10px 28px rgba(10, 47, 92, .10);
}
.ag-section > h2 { margin: 0; font-size: inherit; }
.ag-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  background: #fff;
  border: 0;
  text-align: left;
  font-size: clamp(1.08rem, 2.2vw, 1.25rem);
  font-weight: 700;
  color: var(--ag-navy);
  line-height: 1.3;
  cursor: pointer;
}
.ag-toggle::before {
  content: counter(ag-sec, decimal-leading-zero);
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ag-sky);
  color: var(--ag-blue);
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.ag-toggle::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 11px;
  height: 11px;
  border-right: 3px solid var(--ag-orange);
  border-bottom: 3px solid var(--ag-orange);
  transform: rotate(45deg);
  transition: transform .2s;
}
.ag-toggle[aria-expanded="true"]::before { background: var(--ag-blue); color: #fff; }
.ag-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
.ag-toggle:hover { background: var(--ag-panel); }
.ag-toggle:focus { outline: 3px solid rgba(242, 106, 27, .45); outline-offset: -3px; }
.ag-body { padding: 4px 28px 22px 80px; }
.ag-body h3 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--ag-line);
}
.ag-body h3:first-child { border-top: 0; padding-top: 0; margin-top: 8px; }
.ag-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ag-blue);
  margin: 18px 0 6px;
}

/* Two list columns inside a section */
.ag-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 18px;
}
.ag-split > div {
  background: var(--ag-panel);
  border-radius: 12px;
  padding: 18px 20px 6px;
}
.ag-split-title { font-weight: 700; color: var(--ag-navy); margin-bottom: 8px !important; }
.ag-split > div.is-serious { background: var(--ag-orange-soft); }

/* Callouts */
.ag-callout {
  border-radius: 12px;
  padding: 16px 20px;
  margin: 8px 0 18px;
  background: var(--ag-sky);
  border-left: 5px solid var(--ag-blue);
}
.ag-callout p:last-child { margin-bottom: 0; }
.ag-callout.is-tip { background: var(--ag-orange-soft); border-left-color: var(--ag-orange); }
.ag-callout.is-care { background: var(--ag-purple-soft); border-left-color: var(--ag-purple); }
.ag-callout-label {
  display: block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ag-blue);
  margin-bottom: 4px;
}
.ag-callout.is-tip .ag-callout-label { color: #b4500f; }
.ag-callout.is-care .ag-callout-label { color: var(--ag-purple); }

/* Test / treatment cards */
.ag-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 10px 0 18px;
}
.ag-card {
  border: 1px solid var(--ag-line);
  border-top: 4px solid var(--ag-blue);
  border-radius: 12px;
  padding: 16px 18px 6px;
  background: #fff;
}
.ag-card h4 { margin-top: 0; }
.ag-card.is-wide { grid-column: 1 / -1; }
.ag-meds { list-style: none; padding: 0 !important; }
.ag-meds li {
  background: var(--ag-panel);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

/* PATIENT PERSPECTIVE */
.ag-perspective {
  position: relative;
  background: linear-gradient(135deg, var(--ag-purple) 0%, #5a2389 100%);
  color: #fff;
  border-radius: 20px;
  padding: 44px 48px 36px;
  margin: 0 0 56px;
  overflow: hidden;
}
.ag-perspective::before {
  content: "\201C";
  position: absolute;
  top: -30px;
  right: 28px;
  font-size: 15rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(255, 255, 255, .12);
}
.ag-perspective .ag-eyebrow { color: #ffb48a; }
.ag-perspective h2 { color: #fff; font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 0 0 18px; max-width: 720px; }
.ag-pullquote {
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 18px !important;
  max-width: 760px;
}
.ag-perspective p { color: rgba(255, 255, 255, .92); }
.ag-perspective .ag-attrib {
  font-weight: 700;
  color: #ffb48a;
  letter-spacing: .04em;
  margin-top: 4px;
}
.ag-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ag-purple);
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin: 6px 0 4px;
}
.ag-more-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.ag-more-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.ag-more-toggle .ag-less, .ag-more-toggle[aria-expanded="true"] .ag-more { display: none; }
.ag-more-toggle[aria-expanded="true"] .ag-less { display: inline; }
.ag-story { padding-top: 18px;  }
.ag-story .ag-closing { font-size: 1.25rem; font-weight: 800; color: #fff; }

/* RESOURCES */
.ag-resources h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 8px; }
.ag-resource-group { font-weight: 700; color: var(--ag-navy); margin: 24px 0 12px !important; }
.ag-links {
  list-style: none;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.ag-links li { margin: 0; }
.ag-links li::marker { content: none; }
.ag-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--ag-panel);
  border: 1px solid transparent;
  color: var(--ag-navy);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.ag-links a::after {
  content: "\2197";
  flex: none;
  color: var(--ag-orange);
  font-weight: 700;
}
.ag-links a:hover, .ag-links a:focus { background: #fff; border-color: var(--ag-blue); color: var(--ag-navy); }
.ag-links.is-social a { background: var(--ag-sky); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .ag-intro { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 767px) {
  .ag-hero-inner { padding: 22px 20px 28px; }
  .ag-stats, .ag-split, .ag-cards { grid-template-columns: 1fr; }
  .ag-toggle { padding: 16px; gap: 12px; }
  .ag-toggle::before { width: 36px; height: 36px; }
  .ag-body { padding: 0 18px 18px; }
  .ag-perspective { padding: 32px 22px 26px; }
}

@media print {
  .ag-hero::before { display: none; }
  .ag-hero { background: none; color: var(--ag-ink); left: 0; transform: none; width: auto; border-bottom: 3px solid var(--ag-navy); height: auto; }
  .ag-hero h1, .ag-hero-lede { color: var(--ag-navy); }
  .ag-topics, .ag-more-toggle { display: none; }
  .acro-guide .collapse { display: block !important; }
  .ag-perspective { background: none; color: var(--ag-ink); border: 2px solid var(--ag-purple); }
  .ag-perspective p, .ag-perspective h2, .ag-story .ag-closing { color: var(--ag-ink); }
}
