:root {
  --paper: #f9f6ee;
  --ink: #152442;
  --muted: #4e5870;
  --accent: #2349bf;
  --line: #c7d0e3;
  --panel: #eef2ff;
  --soft: #e8eefc;
  --ref-serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
.ref-home, .ref-article { max-width: 74rem; margin-inline: auto; }
.ref-home { padding-block: clamp(2.5rem, 7vw, 6.25rem) 4rem; }
.ref-hero { display: grid; align-items: center; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 5.2vw, 5.25rem); }
.ref-hero h1, .ref-heading h1, .ref-home h2, .ref-article h2 { font-family: var(--ref-serif); }
.ref-hero h1 { margin: 0 0 1.2rem; font-size: clamp(4.5rem, 10.5vw, 9rem); line-height: .86; letter-spacing: -.075em; font-weight: 500; }
.ref-hero h1 em { color: var(--accent); font-weight: 500; }
.ref-lead, .ref-heading > p:first-of-type { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.62; max-width: 42rem; }
.ref-button { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 1rem; padding: .72rem 1.1rem; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; border-radius: .25rem; }
.ref-button:hover, .ref-button:focus-visible { background: #17358f; color: white; }
.ref-byline { font: 500 .85rem/1.45 system-ui,sans-serif; color: var(--muted); margin-top: 1rem; }
.ref-byline span { padding-inline: .28rem; }
.ref-figure { margin: 0; padding: clamp(1rem, 3.2vw, 2rem); border: 1px solid var(--line); background: var(--panel); border-radius: .25rem 2.5rem .25rem .25rem; }
.ref-step { display: grid; grid-template-columns: 4rem minmax(0,1fr); align-items: center; gap: 1rem; padding-block: clamp(.7rem,1.9vw,1.25rem); }
.ref-step + .ref-step { border-top: 1px solid var(--line); }
.ref-step small { display: block; color: #52688d; font-size: .78rem; font-weight: 780; letter-spacing: .12em; }
.ref-step strong { display: block; font: 500 clamp(1.45rem, 3vw, 2rem)/1.1 var(--ref-serif); margin-top: .25rem; }
.ref-step p { margin: .3rem 0 0; font-size: .94rem; color: var(--muted); }
.ref-figure figcaption { color: var(--muted); border-top: 1px solid var(--line); padding-top: .85rem; margin-top: .22rem; font-size: .85rem; line-height: 1.4; }
.ref-glyph { display: block; width: 3.6rem; height: 3.6rem; position: relative; isolation: isolate; background: #dbe5fe; border-radius: 50%; }
.ref-glyph::before, .ref-glyph::after { content: ""; position: absolute; }
.ref-glyph-hormone::before { top: .94rem; left: .94rem; width: .62rem; aspect-ratio: 1; border-radius: 50%; background: var(--accent); box-shadow: 1.05rem .32rem var(--accent), .43rem 1.22rem var(--accent); }
.ref-glyph-hormone::after { width: 1.16rem; height: .92rem; top: 1.25rem; left: 1.26rem; transform: skewX(20deg) rotate(15deg); border: 1px solid #3157cc; z-index: -1; }
.ref-glyph-receptor::before { inset: 1rem 1.03rem .75rem; border: .24rem solid var(--accent); border-top: 0; border-radius: 0 0 .65rem .65rem; }
.ref-glyph-receptor::after { width: .58rem; height: .58rem; border-radius: 50%; background: #7b9bee; left: 1.53rem; top: .82rem; }
.ref-glyph-medication::before { inset: 1.13rem .83rem; border: .15rem solid var(--accent); background: linear-gradient(90deg,var(--accent) 50%, transparent 50%); border-radius: 2rem; transform: rotate(-36deg); }
.ref-home-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 5vw, 4rem); margin-top: clamp(2.5rem,7vw,5.6rem); padding-block: 1.45rem; border-block: 1px solid var(--line); }
.ref-home-band h2 { font-size: 1.55rem; margin: 0; font-weight: 500; line-height: 1.15; }
.ref-home-band p, .ref-home-context p { line-height: 1.65; }
.ref-home-band p { margin: .55rem 0 0; color: var(--muted); }
.ref-home-context { max-width: 49rem; margin-top: 2.3rem; }
.ref-home-context > section + section { margin-top: 2.25rem; }
.ref-home-context h2, .ref-prose h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.15; margin: 0 0 .7rem; font-weight: 500; }
.ref-article { padding-block: clamp(2.1rem, 5.3vw, 4.75rem); }
.ref-heading { max-width: 58rem; padding-bottom: clamp(1.3rem,3vw,2.5rem); border-bottom: 1px solid var(--line); }
.ref-heading h1 { font-size: clamp(2.5rem, 5.9vw, 5.5rem); line-height: .99; font-weight: 500; letter-spacing: -.055em; margin: 0 0 .95rem; }
.ref-heading p { margin-bottom: 0; }
.ref-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, 17rem); gap: clamp(1.8rem, 5vw, 4rem); padding-top: 2rem; align-items: start; }
.ref-article-grid > .ref-prose { grid-column: 1; grid-row: 1; min-width: 0; }
.ref-prose > section { margin-bottom: 2.4rem; scroll-margin-top: 1.5rem; }
.ref-prose p { line-height: 1.7; max-width: 68ch; }
.ref-toc { grid-column: 2; grid-row: 1; background: var(--panel); border: 1px solid var(--line); padding: .8rem 1rem; position: sticky; top: 1rem; border-radius: .3rem; }
.ref-toc summary { cursor: pointer; min-height: 2.75rem; align-content: center; font-weight: 730; }
.ref-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.ref-toc a { display: flex; align-items: center; min-height: 2.5rem; color: var(--ink); font-size: .9rem; text-decoration: none; padding: .15rem .4rem; }
.ref-toc a:hover { color: var(--accent); }
.ref-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .92rem; text-align: left; }
.ref-table caption { text-align: left; font-weight: 700; margin-bottom: .55rem; }
.ref-table :is(th,td) { padding: .72rem .62rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; line-height: 1.4; }
.ref-table thead { background: var(--panel); }
.ref-table thead th:nth-child(1) { width: 23%; }
.ref-table thead th:nth-child(2) { width: 22%; }
.ref-table tbody th span { display: block; margin-top: .3rem; color: var(--muted); font-size: .81rem; font-weight: 400; }
.ref-home-context .reference-sources, .ref-prose .reference-sources { border-top: 1px solid var(--line); padding-top: .9rem; }
.ref-home-context .reference-sources h2, .ref-prose .reference-sources h2 { font: 700 1.08rem/1.3 system-ui,sans-serif; }
.reference-sources ol { padding-left: 1.25rem; margin-bottom: 0; font-size: .88rem; color: var(--muted); }
.reference-sources li { margin-bottom: .45rem; scroll-margin-top: 2rem; }
.reference-sources a, .research-citation a { font-weight: 400; text-decoration: none; }
.reference-sources a:hover, .research-citation a:hover { text-decoration: underline; }
.reference-sources :target { outline: 1px solid var(--accent); outline-offset: .15rem; }
.research-citation { margin-inline-start: .13em; font-size: max(.62em,.625rem); line-height: 0; }
.ref-tool { background: white; border: 1px solid var(--line); border-radius: .55rem; padding: clamp(.95rem,3vw,2rem); margin-block: 1.6rem 2rem; }
.ref-tool h2 { margin: 0 0 1rem; font-size: 1.8rem; }
.ref-inputs { display: grid; align-items: end; grid-template-columns: minmax(0,2fr) minmax(0,1fr) auto; gap: .7rem; }
.ref-inputs label { display: block; margin-bottom: .35rem; color: var(--ink); font-size: .9rem; font-weight: 650; }
.ref-inputs :is(input,select,button) { min-height: 2.75rem; border: 1px solid #8392b6; border-radius: .25rem; color: var(--ink); background: white; padding: .48rem .6rem; width: 100%; font: inherit; }
.ref-inputs button { font-weight: 680; background: var(--panel); cursor: pointer; }
#ref-result-count { margin: .95rem 0 .8rem; color: var(--muted); }
.ref-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.ref-result { padding: .95rem; background: var(--panel); border: 1px solid var(--line); border-radius: .3rem; }
.ref-result h3 { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .55rem; font: 550 1.5rem/1.16 var(--ref-serif); }
.ref-result h3 small { font: 600 .84rem/1.2 system-ui,sans-serif; color: var(--muted); }
.ref-result p { margin: .45rem 0 0; font-size: .96rem; line-height: 1.51; }
.ref-result .ref-ingredient { font-size: .88rem; color: var(--muted); }
.ref-result-links { display: flex; flex-wrap: wrap; column-gap: .9rem; }
.ref-result-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .85rem; }
@media (max-width: 46rem) {
  .ref-hero, .ref-home-band, .ref-article-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .ref-home { padding-top: 2.5rem; }
  .ref-hero h1 { font-size: clamp(4.05rem, 15vw, 6rem); }
  .ref-hero h1 br { display: none; }
  .ref-hero h1 em { white-space: nowrap; }
  .ref-figure { padding-block: .7rem .95rem; }
  .ref-home-band { margin-top: 1.8rem; }
  .ref-toc, .ref-article-grid > .ref-prose { grid-column: 1; grid-row: auto; }
  .ref-toc { position: static; padding-block: .2rem; }
  .ref-table { font-size: .83rem; }
  .ref-table :is(th,td) { padding-inline: .38rem; }
  .ref-table thead th:nth-child(1) { width: 23%; }
  .ref-table thead th:nth-child(2) { width: 24%; }
}
@media (max-width: 34rem) {
  .ref-inputs { grid-template-columns: minmax(0,1fr) auto; }
  .ref-inputs > div:first-child { grid-column: span 2; }
  .ref-results { grid-template-columns: 1fr; }
}

.whatisglp1 .mast-brand { font-family: var(--ref-serif); font-size: 1.3rem; font-weight: 550; }
.whatisglp1 .brand-mark { background: var(--panel); border: 1px solid var(--line); border-radius: .35rem .65rem .35rem .35rem; position: relative; }
.whatisglp1 .brand-mark::before { content: ""; position: absolute; top: .37rem; left: .38rem; width: .36rem; height: .36rem; border-radius: 50%; background: var(--accent); box-shadow: .7rem .27rem var(--accent), .22rem .82rem var(--accent); }
.ref-toc h2 { font: 730 1rem/1.4 system-ui,sans-serif; margin: .15rem 0 .45rem; }
.ref-toc-mobile { display: none; }
@media (max-width: 46rem) {
  .ref-toc-desktop { display: none; }
  .ref-toc-mobile { display: block; }
}

.ref-keep { white-space: nowrap; }
.ref-table tbody th .ref-mobile-ingredient { display: none; }
@media (max-width: 46rem) {
  .ref-table :is(thead th, tbody td):nth-child(2) { display: none; }
  .ref-table thead th:nth-child(1) { width: 36%; }
  .ref-table tbody th .ref-mobile-ingredient { display: block; }
}
.ref-table { border-top: .2rem solid var(--accent); }
.ref-table caption { padding-block: .32rem; }
.ref-table thead th { text-transform: none; font-weight: 700; }
.ref-table tbody tr:nth-child(even) { background: #f0f2f7; }
.ref-table tbody th { color: var(--ink); }
