:root {
  --rx-black: #050506;
  --rx-panel: #0d0e12;
  --rx-paper: #f1e9df;
  --rx-pink: #ef8caf;
  --rx-gold: #c69c68;
  --rx-muted: #c9bdb1;
  --rx-faint: #aa9b8d;
  --rx-line: rgba(241, 233, 223, .2);
  --rx-line-strong: rgba(239, 140, 175, .42);
  --rx-wordmark: var(--tr-role-display, "Playfair Display", Georgia, serif);
  --rx-serif: var(--tr-role-display, "Playfair Display", Georgia, serif);
  --rx-ui: var(--tr-role-ui, "Hanken Grotesk", system-ui, sans-serif);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 86% 2%, rgba(239, 140, 175, .15), transparent 30rem),
    radial-gradient(circle at 5% 47%, rgba(198, 156, 104, .08), transparent 36rem),
    linear-gradient(180deg, #050506 0%, #07070a 52%, #050506 100%);
  color: var(--rx-paper);
  font: 16px/1.6 var(--rx-ui);
  -webkit-font-smoothing: antialiased;
}
.rx-tool, .rx-tool button, .rx-tool input, .rx-tool select {
  font-family: var(--rx-ui);
  font-kerning: normal;
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
}
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.rx-wrap { width: min(100% - 40px, 1720px); margin-inline: auto; }

.rx-skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  min-height: 48px; border-radius: 999px; padding: 12px 18px;
  background: var(--rx-paper); color: #120d10; font-weight: 900;
  transform: translateY(-160%); transition: transform .18s ease;
}
.rx-skip-link:focus { transform: translateY(0); }

.rx-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rx-line);
  background: rgba(5, 5, 7, .88); backdrop-filter: blur(20px) saturate(120%);
}
.rx-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-block: 15px; }
.rx-brand { display: inline-flex; align-items: center; gap: 13px; margin-right: auto; text-decoration: none; }
.rx-brand img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 0 15px rgba(239, 140, 175, .28)); }
.rx-brand strong { display: block; font: 600 24px/.9 var(--rx-wordmark); letter-spacing: .16em; }
.rx-brand small { display: block; margin-top: 7px; color: var(--rx-faint); font-size: 13px; line-height: 1.3; font-weight: 800; letter-spacing: .2em; }
.rx-primary-nav, .rx-languages { display: flex; flex-wrap: wrap; gap: 7px; }
.rx-primary-nav a, .rx-languages a {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  border: 1px solid var(--rx-line); border-radius: 999px; padding: 9px 15px;
  font-size: 13px; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.rx-primary-nav a:hover, .rx-languages a:hover, .rx-languages [aria-current="page"] { border-color: var(--rx-pink); background: rgba(239, 140, 175, .09); color: var(--rx-pink); }

.rx-hero { border-bottom: 1px solid var(--rx-line); padding: 46px 0 40px; overflow: hidden; }
.rx-hero-grid { display: grid; gap: 32px; align-items: end; }
.rx-eyebrow, .rx-kicker { margin: 0 0 13px; color: var(--rx-pink); font-size: 12px; line-height: 1.35; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.rx-hero h1 { max-width: 760px; margin: 0; font: 600 clamp(3rem, 6vw, 5.4rem)/.92 var(--rx-serif); letter-spacing: -.055em; text-wrap: balance; }
.rx-lede { max-width: 720px; margin: 20px 0 0; color: var(--rx-muted); font-size: clamp(1rem, 1.8vw, 1.16rem); line-height: 1.55; }
.rx-snapshot { min-width: 210px; border-left: 1px solid var(--rx-line-strong); padding: 10px 0 10px 22px; }
.rx-snapshot strong { display: block; color: var(--rx-pink); font: italic 600 70px/.88 var(--rx-serif); letter-spacing: -.06em; }
.rx-snapshot span { display: block; margin-top: 8px; color: var(--rx-paper); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.rx-snapshot small { display: block; margin-top: 6px; color: var(--rx-faint); font-size: 13px; }

.rx-explainer { border-bottom: 1px solid var(--rx-line); padding: 34px 0; background: rgba(255, 255, 255, .012); }
.rx-explainer-grid { display: grid; grid-template-columns: minmax(0, 900px); gap: 0; align-items: start; }
.rx-index { margin: 0; color: rgba(239, 140, 175, .24); font: italic 600 58px/.85 var(--rx-serif); }
.rx-explainer h2 { margin: 0; font: 600 clamp(1.45rem, 3vw, 2.2rem)/1.12 var(--rx-serif); letter-spacing: -.03em; }
.rx-explainer p:last-child { max-width: 850px; margin: 10px 0 0; color: var(--rx-muted); }

.rx-tool {
  position: relative; margin: 24px 0 38px; border: 1px solid var(--rx-line);
  border-radius: 18px; padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(145deg, rgba(19, 20, 25, .96), rgba(8, 9, 12, .97));
  box-shadow: 0 32px 100px rgba(0, 0, 0, .34); scroll-margin-top: 110px;
}
.rx-tool-heading { display: grid; gap: 12px; margin-bottom: 16px; }
.rx-tool-heading h2 { margin: 0; font: 600 clamp(2rem, 4.8vw, 3.8rem)/1 var(--rx-serif); letter-spacing: -.045em; }
.rx-tool-heading > p { max-width: 52ch; margin: 0; color: var(--rx-muted); font-size: clamp(.98rem, 1.25vw, 1.06rem); line-height: 1.55; }
.rx-guide-link { display: inline; color: var(--rx-paper); font-weight: 800; text-decoration-color: var(--rx-pink); text-decoration-thickness: 2px; }
.rx-guide-link:hover, .rx-guide-link:focus-visible { color: var(--rx-pink); }

.rx-state {
  display: flex; min-height: 120px; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid var(--rx-line); border-radius: 16px; color: var(--rx-muted); text-align: center;
}
.rx-spinner { width: 18px; height: 18px; border: 2px solid var(--rx-line); border-top-color: var(--rx-pink); border-radius: 50%; animation: rx-spin .8s linear infinite; }
@keyframes rx-spin { to { transform: rotate(360deg); } }
.rx-state--error { justify-content: space-between; padding: 22px; text-align: left; }
.rx-state--error div { display: grid; gap: 3px; }
.rx-state--error strong { color: var(--rx-paper); }
.rx-state--error button, .rx-deep-link button {
  min-height: 48px; border: 1px solid var(--rx-pink); border-radius: 999px; padding: 9px 16px;
  background: rgba(239, 140, 175, .08); font-weight: 900; cursor: pointer;
}

.rx-search { position: relative; z-index: 3; border: 1px solid var(--rx-line-strong); border-radius: 16px; padding: clamp(14px, 2vw, 20px); background: rgba(5, 5, 7, .72); }
.rx-search label { display: block; margin-bottom: 10px; color: var(--rx-paper); font-size: .94rem; font-weight: 900; line-height: 1.35; }
.rx-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; }
.rx-search input { width: 100%; min-height: 56px; border: 1px solid var(--rx-line); border-radius: 12px; padding: 12px 16px; background: var(--rx-black); color: var(--rx-paper); font-size: 16px; }
.rx-search input::placeholder { color: var(--rx-faint); opacity: 1; }
.rx-search input:disabled { cursor: wait; opacity: .62; }
.rx-search button { min-width: 0; min-height: 56px; border-radius: 12px; padding: 11px 20px; font-weight: 900; cursor: pointer; touch-action: manipulation; }
.rx-search-button { border: 1px solid var(--rx-paper); background: var(--rx-paper); color: #120d10; }
.rx-clear-button { border: 1px solid var(--rx-line); background: transparent; }
.rx-clear-button:disabled { cursor: not-allowed; opacity: .38; }
.rx-search > p { margin: 9px 0 0; color: var(--rx-faint); font-size: 14px; line-height: 1.5; }
.rx-filters { margin-top: 10px; border: 1px solid var(--rx-line); border-radius: 14px; padding: 13px 15px; background: rgba(255, 255, 255, .018); }
.rx-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.rx-filter-head strong { color: var(--rx-paper); font-size: 14px; letter-spacing: .07em; text-transform: uppercase; }
.rx-filter-source { color: var(--rx-faint); font-size: 13px !important; line-height: 1.45 !important; }
.rx-filter-head button { min-height: 46px; border: 1px solid var(--rx-line); border-radius: 9px; padding: 8px 13px; background: transparent; color: var(--rx-muted); font-size: 13px; font-weight: 900; cursor: pointer; }
.rx-filter-head button:hover, .rx-filter-head button:focus-visible { border-color: var(--rx-pink); color: var(--rx-pink); }
.rx-filter-head button:disabled { cursor: not-allowed; opacity: .42; }
.rx-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rx-filter-grid label { display: grid; gap: 6px; color: var(--rx-faint); font-size: 13px; font-weight: 900; letter-spacing: .07em; line-height: 1.35; text-transform: uppercase; }
.rx-filter-grid select { width: 100%; min-height: 50px; border: 1px solid var(--rx-line); border-radius: 10px; padding: 9px 34px 9px 12px; background: var(--rx-black); color: var(--rx-paper); color-scheme: dark; font-size: 15px; font-weight: 700; letter-spacing: normal; line-height: 1.4; text-transform: none; }
.rx-filter-grid select:disabled { cursor: wait; opacity: .58; }

.rx-deep-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; border: 1px solid rgba(198, 156, 104, .35); border-radius: 14px; padding: 13px 15px; background: rgba(198, 156, 104, .07); }
.rx-deep-link span { color: var(--rx-gold); font-size: 13px; line-height: 1.35; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.rx-deep-link button { border-color: rgba(198, 156, 104, .55); }
.rx-results-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 20px 3px 13px; }
.rx-results-toolbar p { margin: 0; color: var(--rx-paper); font-size: clamp(1rem, 1.4vw, 1.08rem); line-height: 1.45; font-weight: 800; }
.rx-results-toolbar > span { max-width: 48ch; color: var(--rx-faint); font-size: 13px; line-height: 1.5; font-weight: 800; letter-spacing: .045em; text-align: right; text-transform: uppercase; }
.rx-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }

.rx-card {
  display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--rx-line); border-radius: 14px; padding: 14px 14px 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2); scroll-margin-top: 110px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.rx-card:hover { border-color: rgba(239, 140, 175, .34); transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0, 0, 0, .24); }
.rx-card-top { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 105px; }
.rx-package { display: grid; width: 100%; aspect-ratio: 1; place-items: center; margin: 0; border: 1px solid var(--rx-line); border-radius: 12px; padding: 6px; overflow: hidden; background: radial-gradient(circle at 50% 28%, rgba(239, 140, 175, .08), transparent 62%), linear-gradient(145deg, #17131a, #08090c); }
.rx-package-image { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.rx-package-image.is-flower { object-fit: cover; }
.rx-package-fallback { display: grid; width: 100%; height: 100%; place-items: center; align-content: center; gap: 5px; color: var(--rx-faint); text-align: center; }
.rx-package-fallback strong { color: var(--rx-muted); font: 600 22px/.9 var(--rx-wordmark); letter-spacing: .12em; }
.rx-package-fallback span { max-width: 13ch; font-size: 12px; line-height: 1.35; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.rx-identity { display: flex; flex-direction: column; min-height: 100%; }
.rx-identity h3 { margin: 0; font: 600 clamp(1.2rem, 1.35vw, 1.45rem)/1.12 var(--rx-serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.rx-identity > p { margin: 4px 0 0; color: var(--rx-muted); font-size: 12.5px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.rx-strengths { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 6px; }
.rx-strengths span { display: inline-flex; min-height: 28px; align-items: center; border: 1px solid var(--rx-line); border-radius: 999px; padding: 3px 8px; color: var(--rx-paper); font-size: 12px; line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.rx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 6px; margin: 9px 0 8px; }
.rx-fact { min-width: 0; border: 1px solid var(--rx-line); border-radius: 8px; padding: 7px 9px; background: rgba(8, 9, 12, .96); }
.rx-fact dt { color: var(--rx-faint); font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.rx-fact dd { margin: 3px 0 0; color: var(--rx-paper); font-size: 12.5px; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }

.rx-prescription { min-width: 0; border: 1px solid var(--rx-line-strong); border-radius: 9px; padding: 8px 10px; background: rgba(239, 140, 175, .055); flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.rx-prescription > div:first-child { display: flex; align-items: center; }
.rx-prescription strong { font: 800 12px/1.2 var(--rx-ui); letter-spacing: .06em; text-transform: uppercase; }
.rx-prescription-copyrow { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 6px; align-items: start; margin-top: 4px; }
.rx-prescription code { display: block; min-width: 0; max-inline-size: 100%; margin: 0; border-left: 2px solid var(--rx-pink); padding: 4px 7px; color: var(--rx-paper); font: 600 12px/1.4 var(--rx-ui); letter-spacing: 0; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: pre-wrap; word-break: normal; user-select: text; cursor: text; }
.rx-copy { display: inline-grid; width: 36px; min-width: 36px; height: 36px; min-height: 36px; place-items: center; border: 1px solid var(--rx-pink); border-radius: 8px; padding: 0; background: rgba(239, 140, 175, .14); color: var(--rx-pink); font-size: 18px; line-height: 1; font-weight: 900; cursor: pointer; touch-action: manipulation; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.rx-copy:hover { background: #ffabc7; border-color: #ffabc7; color: #160d11; }
.rx-copy:active { transform: translateY(1px); }
.rx-copy:disabled { cursor: not-allowed; opacity: .48; }
.rx-copy.is-success { border-color: #7dd9ad; background: #7dd9ad; color: #09130e; }
.rx-copy.is-error { border-color: #ff8f8f; background: #ff8f8f; color: #190a0a; }

.rx-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: auto; padding-top: 8px; }
.rx-actions a { display: inline-flex; min-width: 0; min-height: 38px; align-items: center; justify-content: center; border: 1px solid var(--rx-line); border-radius: 8px; padding: 6px 10px; font-family: var(--rx-ui); font-size: 12.5px; font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none; }
.rx-actions a:hover { border-color: var(--rx-pink); background: rgba(239, 140, 175, .07); }
.rx-actions a.is-primary { border-color: rgba(239, 140, 175, .58); background: rgba(239, 140, 175, .09); }
.rx-empty { grid-column: 1 / -1; display: grid; min-height: 220px; place-items: center; align-content: center; gap: 13px; border: 1px dashed var(--rx-line-strong); border-radius: 18px; color: var(--rx-muted); text-align: center; }
.rx-empty span { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid var(--rx-line-strong); border-radius: 50%; color: var(--rx-pink); font: 600 20px/1 var(--rx-serif); }
.rx-empty strong { max-width: 36ch; color: var(--rx-paper); }
.rx-more-wrap { display: flex; justify-content: center; padding-top: 20px; }
.rx-more { min-height: 52px; border: 1px solid var(--rx-line-strong); border-radius: 999px; padding: 10px 24px; background: rgba(239, 140, 175, .07); font-size: 14px; line-height: 1.35; font-weight: 900; cursor: pointer; }
.rx-more:hover { background: rgba(239, 140, 175, .13); }
.rx-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.rx-footer { border-top: 1px solid var(--rx-line); padding: 34px 0 48px; color: var(--rx-faint); font-size: 12px; }
.rx-footer nav { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-bottom: 10px; }
.rx-footer a { display: inline-flex; min-height: 48px; align-items: center; }
.rx-footer p { margin: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, code:focus-visible, .rx-tool:focus-visible {
  outline: 3px solid var(--rx-pink); outline-offset: 3px; box-shadow: 0 0 0 5px rgba(239, 140, 175, .13);
}

@media (min-width: 760px) {
  .rx-hero-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .rx-tool-heading { grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); align-items: end; }
}
@media (min-width: 980px) {
  .rx-results { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 1300px) {
  .rx-results { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 960px) {
  .rx-nav { align-items: flex-start; }
  .rx-primary-nav { order: 3; width: 100%; }
}
@media (max-width: 640px) {
  .rx-wrap { width: min(100% - 22px, 1440px); }
  .rx-results { grid-template-columns: 1fr; }
  .rx-header { position: relative; }
  .rx-brand img { width: 58px; height: 58px; }
  .rx-brand strong { font-size: 17px; }
  .rx-languages { margin-left: auto; }
  .rx-primary-nav a { flex: 1 1 0; padding-inline: 8px; }
  .rx-hero { padding-top: 48px; }
  .rx-hero h1 { font-size: clamp(2.8rem, 13vw, 4.8rem); }
  .rx-explainer-grid { grid-template-columns: 1fr; gap: 10px; }
  .rx-tool { border-radius: 18px; padding: 16px; }
  .rx-search-row { grid-template-columns: 1fr 1fr; }
  .rx-search input { grid-column: 1 / -1; }
  .rx-search button { padding-inline: 10px; }
  .rx-state--error, .rx-deep-link, .rx-results-toolbar { align-items: stretch; flex-direction: column; }
  .rx-filter-grid { grid-template-columns: 1fr; }
  .rx-results-toolbar > span { text-align: left; }
  .rx-card { padding: 12px; }
  .rx-card-top { grid-template-columns: 92px minmax(0, 1fr); gap: 11px; }
  .rx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 390px) {
  .rx-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
