:root {
  --forest: #004b43;
  --forest-deep: #00342f;
  --teal: #087a70;
  --mint: #ccefe7;
  --gold: #f5c45b;
  --cream: #f8f5ed;
  --paper: #fffefb;
  --ink: #14221f;
  --muted: #60716c;
  --line: #d9dfda;
  --green: #17774d;
  --yellow: #c98706;
  --red: #a73f35;
  --shadow: 0 18px 48px rgba(20, 34, 31, 0.12);
  --content: 1120px;
  --narrow: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.1;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  font-weight: 700;
}

h2 {
  margin-bottom: 22px;
  font-size: 3.1rem;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.32rem;
}

.reading-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
}

.topbar {
  position: sticky;
  z-index: 900;
  top: 0;
  color: #fff;
  background: var(--forest-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 36px), var(--content));
  min-height: 70px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  gap: 12px;
}

.brand-mark {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--forest-deep);
  background: var(--gold);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  color: #b9d4ce;
  font-size: 0.75rem;
}

.top-actions,
.hero-actions,
.download-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  gap: 8px;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.section-nav a:focus-visible,
.text-link:focus-visible,
summary:focus-visible,
.back-top:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.button-large {
  min-height: 52px;
  padding: 14px 22px;
}

.button-gold {
  color: var(--forest-deep);
  background: var(--gold);
}

.button-gold:hover {
  background: #ffd57f;
}

.button-sdp {
  color: var(--forest-deep);
  background: #fff;
  border-color: #fff;
}

.button-sdp:hover {
  background: var(--mint);
  border-color: var(--mint);
}

.button-sdp-dark {
  color: #fff;
  background: #173f54;
}

.button-sdp-dark:hover {
  background: #0d3044;
}

.button-whatsapp {
  color: #fff;
  background: #128c5e;
}

.button-whatsapp:hover {
  background: #0d704b;
}

.button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
}

.button-primary {
  color: #fff;
  background: var(--forest);
}

.button-primary:hover {
  background: var(--forest-deep);
}

.button-outline {
  color: var(--forest);
  border-color: var(--forest);
  background: transparent;
}

.hero {
  position: relative;
  display: grid;
  min-height: 82svh;
  overflow: hidden;
  align-items: center;
  color: #fff;
  background: var(--forest);
}

.hero::after {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 62%;
  content: "";
  background: var(--forest);
}

.hero-art {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: max(0px, calc((100vw - var(--content)) / 2 - 42px));
  width: min(58vw, 760px);
  height: min(82svh, 760px);
  transform: translateY(-50%);
  clip-path: inset(0 0 0 52%);
  object-fit: contain;
  object-position: right center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 36px), var(--content));
  margin: 0 auto;
  padding: 72px 0;
}

.hero-copy {
  width: min(65%, 760px);
}

.eyebrow {
  margin-bottom: 13px;
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow.light {
  color: var(--gold);
}

.free-offer {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 13px 17px;
  flex-direction: column;
  color: var(--forest-deep);
  background: var(--gold);
  border-left: 5px solid #fff;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.free-offer strong {
  font-size: 1.55rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.free-offer span {
  margin-top: 5px;
  font-size: 0.9rem;
  font-weight: 750;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: #d8ebe7;
  font-size: 1.2rem;
}

.text-link {
  font-weight: 750;
  text-underline-offset: 5px;
}

.light-link {
  color: #fff;
}

.hero-author {
  margin: 28px 0 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  font-weight: 700;
}

.section-nav {
  position: sticky;
  z-index: 800;
  top: 70px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.section-nav-inner {
  display: flex;
  width: min(calc(100% - 36px), var(--content));
  min-width: max-content;
  margin: 0 auto;
}

.section-nav a {
  padding: 15px 17px;
  color: #455852;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.section-nav a:hover,
.section-nav a.is-active {
  color: var(--forest);
  border-bottom-color: var(--gold);
}

.intro-band,
.content-section,
.triage-section,
.download-section,
.references-section {
  width: min(calc(100% - 36px), var(--content));
  margin: 0 auto;
}

.intro-band,
.content-section,
.triage-section {
  padding: 96px 0;
  scroll-margin-top: 126px;
}

.content-grid {
  display: grid;
  gap: 60px;
}

.intro-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

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

.method-list li {
  display: flex;
  min-height: 50px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 720;
  gap: 14px;
}

.method-list span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: 50%;
  font-size: 0.82rem;
}

.clinical-callout {
  margin: 54px 0 0;
  padding: 24px 28px;
  color: var(--forest-deep);
  background: #fff5d9;
  border-left: 5px solid var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 700;
}

.risk-intro {
  width: 100%;
  max-width: none;
  background: var(--cream);
}

.content-narrow {
  width: min(calc(100% - 36px), var(--narrow));
  margin: 0 auto;
}

.large-copy {
  font-size: 1.2rem;
}

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

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

.medication-card,
.triage-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.medication-card {
  border-top: 5px solid var(--teal);
}

.medication-denosumab {
  border-top-color: var(--gold);
}

.card-label {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.unknown-medication,
.doctor-contact {
  display: grid;
  margin-top: 24px;
  padding: 34px;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  background: var(--cream);
  border-left: 5px solid var(--gold);
  gap: 36px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 9px 0 9px 29px;
  border-bottom: 1px solid rgba(20, 34, 31, 0.1);
}

.check-list li::before {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--teal);
  content: "✓";
  font-weight: 900;
}

.definition-band {
  color: #fff;
  background: #173f54;
}

.definition-inner {
  display: grid;
  width: min(calc(100% - 36px), var(--content));
  margin: 0 auto;
  padding: 84px 0;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 64px;
}

.definition-term {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.6rem;
  font-weight: 800;
  line-height: 1;
}

.definition-inner p:not(.eyebrow) {
  color: #d7e6ec;
}

.definition-warning {
  margin: 28px 0 0;
  padding-top: 20px;
  color: #fff !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 800;
}

.errors-section {
  max-width: 930px;
}

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

.errors-list details,
.references-section details {
  border-bottom: 1px solid var(--line);
}

.errors-list summary,
.references-section summary {
  display: flex;
  min-height: 74px;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  gap: 18px;
}

.errors-list summary::-webkit-details-marker,
.references-section summary::-webkit-details-marker {
  display: none;
}

.errors-list summary::after,
.references-section summary::after {
  margin-left: auto;
  color: var(--teal);
  content: "+";
  font-size: 1.5rem;
  font-weight: 500;
}

.errors-list details[open] summary::after,
.references-section details[open] summary::after {
  content: "−";
}

.errors-list summary span {
  color: var(--teal);
  font-size: 0.82rem;
}

.detail-body {
  padding: 0 40px 22px 52px;
  color: #4f625d;
}

.protocol-band {
  color: #fff;
  background: var(--forest);
  scroll-margin-top: 126px;
}

.protocol-inner {
  display: grid;
  width: min(calc(100% - 36px), var(--content));
  margin: 0 auto;
  padding: 96px 0;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 68px;
}

.protocol-title p:not(.eyebrow) {
  color: #cce0dc;
}

.tm-system {
  display: grid;
  gap: 0;
}

.tm-system article {
  display: grid;
  padding: 25px 0;
  grid-template-columns: 100px 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  gap: 24px;
}

.tm-system article:first-child {
  padding-top: 0;
}

.system-letter,
.system-word {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.system-word {
  padding-top: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.tm-system p {
  margin: 0;
  color: #d5e8e4;
}

.decision-flow {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  gap: 0 52px;
}

.decision-flow li {
  display: grid;
  min-height: 190px;
  padding: 28px 0;
  grid-template-columns: 48px 1fr;
  border-top: 1px solid var(--line);
  gap: 18px;
}

.flow-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: #173f54;
  border-radius: 50%;
  font-weight: 850;
}

.decision-flow p {
  margin: 0;
  color: var(--muted);
}

.triage-section {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - var(--content)) / 2));
  padding-left: max(18px, calc((100vw - var(--content)) / 2));
  background: var(--cream);
}

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

.triage-card {
  padding-top: 24px;
}

.status-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-heading h3 {
  margin: 0;
}

.status-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.green-card {
  border-top: 5px solid var(--green);
}

.yellow-card {
  border-top: 5px solid var(--yellow);
}

.red-card {
  border-top: 5px solid var(--red);
}

.green-card .status-dot {
  background: var(--green);
}

.yellow-card .status-dot {
  background: var(--yellow);
}

.red-card .status-dot {
  background: var(--red);
}

.status-action {
  margin: 14px 0;
  color: var(--muted);
  font-weight: 800;
}

.triage-card ul {
  margin: 0;
  padding-left: 20px;
}

.triage-card li {
  margin-bottom: 8px;
}

.practical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.practical-grid article {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practical-number {
  display: block;
  margin-bottom: 22px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
}

.practical-grid p {
  margin: 0;
  color: var(--muted);
}

.method-summary {
  padding: 96px max(18px, calc((100vw - var(--content)) / 2));
  color: #fff;
  background: #172d29;
}

.light-heading .eyebrow {
  color: var(--gold);
}

.summary-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.summary-steps div {
  display: flex;
  min-height: 190px;
  padding: 25px 20px 0 0;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  gap: 14px;
}

.summary-steps div + div {
  padding-left: 20px;
}

.summary-steps strong {
  color: var(--gold);
  font-size: 1.03rem;
}

.summary-steps span {
  color: #c7d7d3;
  font-size: 0.94rem;
}

.download-section {
  display: grid;
  padding: 96px 0;
  grid-template-columns: minmax(240px, 360px) 1fr;
  align-items: center;
  gap: 72px;
}

.download-section > img {
  width: 100%;
  border: 1px solid #d3bb6e;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download-copy {
  max-width: 620px;
}

.download-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.references-section {
  padding: 0 0 72px;
}

.references-section summary {
  font-size: 1.12rem;
}

.references-section ol {
  max-width: 880px;
  margin: 0;
  padding: 0 0 24px 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.references-section li {
  margin-bottom: 12px;
}

.footer {
  color: #fff;
  background: var(--forest-deep);
}

.footer-inner {
  display: grid;
  width: min(calc(100% - 36px), var(--content));
  margin: 0 auto;
  padding: 42px 0;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
}

.footer-inner div {
  display: flex;
  flex-direction: column;
}

.footer-inner span,
.footer-inner p {
  color: #b9d1cc;
  font-size: 0.86rem;
}

.footer-inner p {
  margin: 0;
}

.floating-download,
.back-top {
  position: fixed;
  z-index: 850;
  right: 20px;
  bottom: 20px;
}

.floating-download {
  display: none;
  min-height: 50px;
  align-items: center;
  padding: 12px 18px;
  color: var(--forest-deep);
  background: var(--gold);
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  gap: 7px;
}

.floating-download.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top {
  display: grid;
  width: 46px;
  height: 46px;
  cursor: pointer;
  opacity: 0;
  color: #fff;
  background: #173f54;
  border: 0;
  border-radius: 50%;
  pointer-events: none;
  place-items: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 960px) {
  h1 {
    font-size: 4.15rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .hero::after {
    width: 72%;
  }

  .hero-art {
    right: -110px;
    width: 700px;
    opacity: 0.72;
  }

  .hero-copy {
    width: 72%;
  }

  .top-open,
  .top-sdp {
    display: none;
  }

  .medication-grid,
  .triage-grid {
    grid-template-columns: 1fr;
  }

  .medication-card,
  .triage-card {
    padding: 25px;
  }

  .protocol-inner,
  .definition-inner {
    grid-template-columns: 1fr;
  }

  .definition-inner,
  .protocol-inner {
    gap: 38px;
  }

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

  .summary-steps div {
    min-height: 150px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .topbar-inner {
    min-height: 64px;
  }

  .top-open,
  .top-sdp,
  .top-download,
  .brand-copy small {
    display: none;
  }

  .top-actions .button {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-top: 170px;
  }

  .hero::after {
    top: 170px;
    width: 100%;
  }

  .hero-art {
    top: 0;
    right: 0;
    width: 100%;
    height: 170px;
    transform: none;
    clip-path: none;
    opacity: 1;
    object-fit: cover;
    object-position: center top;
  }

  .hero-inner {
    padding: 28px 0 30px;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-lead {
    margin-bottom: 22px;
    font-size: 1.05rem;
  }

  .free-offer {
    margin-bottom: 15px;
    padding: 10px 12px;
  }

  .free-offer strong {
    font-size: 1.18rem;
  }

  .free-offer span {
    font-size: 0.8rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 0.9rem;
  }

  .hero-actions .button-gold {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .hero-actions .button-ghost {
    grid-row: 2;
    grid-column: 1;
  }

  .hero-actions .button-sdp {
    grid-row: 2;
    grid-column: 2;
  }

  .hero-author {
    margin-top: 14px;
  }

  .section-nav {
    top: 64px;
  }

  .section-nav-inner {
    width: max-content;
  }

  .intro-band,
  .content-section,
  .triage-section {
    padding-top: 68px;
    padding-bottom: 68px;
    scroll-margin-top: 118px;
  }

  .intro-grid,
  .unknown-medication,
  .doctor-contact,
  .footer-inner,
  .decision-flow,
  .practical-grid,
  .download-section {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .download-section {
    gap: 34px;
  }

  .unknown-medication,
  .doctor-contact {
    padding: 26px;
    gap: 12px;
  }

  .definition-inner,
  .protocol-inner {
    padding: 68px 0;
  }

  .definition-term {
    font-size: 4.2rem;
  }

  .detail-body {
    padding-right: 0;
    padding-left: 0;
  }

  .tm-system article {
    grid-template-columns: 66px 1fr;
    gap: 14px;
  }

  .system-letter {
    font-size: 2.8rem;
  }

  .decision-flow li {
    min-height: 0;
  }

  .practical-grid {
    border-left: 0;
  }

  .practical-grid article {
    padding: 27px 0;
    border-right: 0;
  }

  .method-summary {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .summary-steps {
    grid-template-columns: 1fr;
  }

  .summary-steps div,
  .summary-steps div + div {
    min-height: 0;
    padding: 20px 0;
    border-right: 0;
  }

  .download-section {
    padding: 68px 0;
  }

  .download-section > img {
    width: min(78vw, 340px);
    margin: 0 auto;
  }

  .download-actions .button {
    width: 100%;
  }

  .footer-inner {
    gap: 22px;
  }

  .floating-download {
    display: inline-flex;
    width: 52px;
    height: 52px;
    min-height: 52px;
    justify-content: center;
    padding: 0;
    bottom: max(18px, env(safe-area-inset-bottom));
    border-radius: 50%;
    font-size: 1.25rem;
  }

  .floating-download span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .back-top {
    right: 20px;
    bottom: 82px;
  }
}

@media (max-width: 420px) {
  .brand-copy {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  html,
  body {
    visibility: hidden !important;
  }
}
