/* =========================================================
   Mpox Testing & Treatment - Compact Accordion Layout
   Loads after: /media/redesign/mpox/css/global.css
========================================================= */

/* =========================================================
   1. DESIGN TOKENS / PAGE COLORS
========================================================= */

:root {
  --tt-navy: #061c60;
  --tt-blue: #0b5fff;
  --tt-purple: #633075;
  --tt-light-purple: #966fa3;
  --tt-teal: #0f766e;
  --tt-orange: #b45309;
  --tt-text: #1f2937;
  --tt-muted: #475569;
  --tt-border: rgba(6, 28, 96, 0.14);
  --tt-shadow: 0 10px 24px rgba(6, 28, 96, 0.1);
}

/* =========================================================
   2. PAGE WIDTH / ACCESSIBILITY FOCUS STATES
========================================================= */

#testing_treatment #main-content {
  width: min(100% - 2rem, 1160px);
  margin-inline: auto;
}

#testing_treatment a:focus-visible,
#testing_treatment summary:focus-visible,
#testing_treatment input:focus-visible {
  outline: 3px solid var(--tt-blue);
  outline-offset: 4px;
  border-radius: 8px;
}

/* =========================================================
   3. TOP MPOX PAGE NAVIGATION
========================================================= */

#testing_treatment .actions {
  margin: 0 auto 1rem;
  border-radius: 0 0 14px 14px;
  font-size: 1.1rem;
}

#testing_treatment .actions a {
  font-size: 1.1rem;
}

/* =========================================================
   4. HERO SECTION
========================================================= */

.tt-hero--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%) !important;
  border: 1px solid var(--tt-border) !important;
  box-shadow: var(--tt-shadow) !important;
}

.tt-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  color: var(--tt-navy);
  border: 1px solid var(--tt-border);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tt-hero h1 {
  color: var(--tt-navy);
}

/* Hero side reminder card */

.tt-hero-card {
  padding: 1.25rem;
  border-radius: 18px;
  background: #fff7e6;
  border: 1px solid rgba(180, 83, 9, 0.28);
  border-left: 6px solid var(--tt-orange);
}

.tt-hero-card h2 {
  margin: 0 0 0.5rem;
  color: #713f12;
  font-size: 1.2rem;
  font-weight: 600;
}

.tt-hero-card p {
  margin: 0;
  color: #4a3200;
  line-height: 1.55;
}

/* =========================================================
   5. QUICK GUIDANCE / DECISION STRIP
========================================================= */

.tt-decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.35rem 0;
}

.tt-decision-strip article {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 1.15rem 1.15rem 1.15rem 4.4rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(6, 28, 96, 0.14);
  box-shadow: 0 8px 20px rgba(6, 28, 96, 0.09);
}

.tt-decision-strip article::before {
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.05rem;
}

.tt-decision-strip article:nth-child(1)::before {
  content: "\f492";
  background: var(--tt-blue);
}

.tt-decision-strip article:nth-child(2)::before {
  content: "\f017";
  background: var(--tt-teal);
}

.tt-decision-strip article:nth-child(3)::before {
  content: "\f0fa";
  background: var(--tt-orange);
}

.tt-decision-strip article::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -42px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(11, 95, 255, 0.06);
}

.tt-decision-strip strong {
  display: block;
  color: var(--tt-navy);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: capitalize;
}

.tt-decision-strip span {
  display: block;
  margin-top: 0.35rem;
  color: var(--tt-muted);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
}

/* =========================================================
   6. TOPIC HUB WRAPPER
========================================================= */

.tt-topic-hub {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 24px;
  background: #f6f8fc;
  border: 1px solid var(--tt-border);
}

.tt-topic-hub__header {
  padding: 0.5rem 0.5rem 1rem;
}

.tt-topic-hub__header h2 {
  margin: 0 0 0.35rem;
  color: var(--tt-navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  text-transform: capitalize;
}

.tt-topic-hub__header p {
  margin: 0;
  color: var(--tt-muted);
}

/* =========================================================
   7. ACCORDION WRAPPER
========================================================= */

.tt-accordion-group {
  display: grid;
  gap: 0.9rem;
}

.tt-topic-panel {
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--tt-border);
  box-shadow: 0 6px 16px rgba(6, 28, 96, 0.07);
  overflow: hidden;
}

/* Accordion header */

.tt-topic-panel summary {
  display: grid;
  grid-template-columns: 52px minmax(120px, 220px) 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.tt-topic-panel summary::-webkit-details-marker {
  display: none;
}

/* Plus/minus icon drawn with CSS for perfect alignment */

.tt-topic-panel summary::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef4ff;
  justify-self: end;
  background-image:
    linear-gradient(#003588, #003588), linear-gradient(#003588, #003588);
  background-size:
    12px 2px,
    2px 12px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 220ms ease;
}

.tt-topic-panel[open] summary::after {
  background-image: linear-gradient(#003588, #003588);
  background-size: 12px 2px;
  transform: rotate(180deg);
}

/* Accordion topic icons */

.tt-topic-panel__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--tt-blue);
  font-size: 1.15rem;
}

.tt-topic-panel--treatment .tt-topic-panel__icon {
  background: var(--tt-purple);
}

.tt-topic-panel--isolation .tt-topic-panel__icon {
  background: var(--tt-teal);
}

.tt-topic-panel--leaving .tt-topic-panel__icon {
  background: var(--tt-orange);
}

.tt-topic-panel--spread .tt-topic-panel__icon {
  background: #b83280;
  color: #fff;
}

/* Accordion heading text */

.tt-topic-panel__title {
  color: var(--tt-navy);
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: capitalize;
}

.tt-topic-panel__summary {
  color: var(--tt-muted);
  font-weight: 600;
  opacity: 1;
  max-height: 40px;
  transition:
    opacity 0.2s ease,
    max-height 0.2s ease;
}

.tt-topic-panel[open] .tt-topic-panel__summary {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

/* Accordion body with smooth open animation */

.tt-topic-panel__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.15rem;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    padding 0.35s ease;
}

.tt-topic-panel[open] .tt-topic-panel__body {
  max-height: 2200px;
  opacity: 1;
  padding: 0 1.15rem 1.15rem;
}

.tt-topic-panel__body > * {
  overflow: hidden;
}

/* =========================================================
   8. GENERIC CONTENT CARDS
   Used by Treatment, Isolation, Leaving Isolation
========================================================= */

.tt-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tt-content-grid--two {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.tt-content-card,
.tt-inline-note,
.tt-return-grid article {
  min-width: 0;
  padding: 1.2rem;
  border-radius: 17px;
  background: #fff;
  border: 1px solid rgba(6, 28, 96, 0.12);
  box-shadow: 0 5px 14px rgba(6, 28, 96, 0.065);
}

.tt-content-card--note,
.tt-inline-note {
  background: linear-gradient(180deg, #fff7e6 0%, #ffffff 100%);
  border-left: 6px solid var(--tt-orange);
}

.tt-content-card h3,
.tt-inline-note h3,
.tt-return-grid h3 {
  margin: 0 0 0.65rem;
  color: var(--tt-navy);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: capitalize;
}

.tt-content-card > p,
.tt-inline-note > p,
.tt-return-grid article > p {
  margin: 0;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.65;
}

.tt-content-card > p + p,
.tt-inline-note > p + p,
.tt-return-grid article > p + p {
  margin-top: 0.75rem;
}

.tt-content-card li {
  color: #26364d;
  line-height: 1.58;
}

/* =========================================================
   9. TESTING PANEL IMPROVED STEP LAYOUT
   Purpose:
   - Shows the 3 testing steps in one row on desktop
   - Stacks them on tablet/mobile
   - Keeps the number and card content clean
========================================================= */

.tt-panel-intro {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fbff;
  font-size: 0.85rem;
  border: 1px solid rgba(6, 28, 96, 0.12);
  border-radius: 16px;
}

.tt-panel-intro__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eef4ff;
  color: var(--tt-blue);
  font-size: 1rem;
}

.tt-panel-intro p {
  margin: 0;
  color: #26364d;
  line-height: 1.6;
  font-weight: 600;
}

/* =========================================================
   MPOX TESTING STEPS
   Overlapping numbered-card layout with rotating active state

   State colors:
   - Default: DPH blue
   - Automatic active state: DPH orange
   - Hover / keyboard focus: purple
========================================================= */

.tt-testing-steps,
.tt-testing-steps *,
.tt-testing-steps *::before,
.tt-testing-steps *::after {
  box-sizing: border-box;
}

.tt-testing-steps {
  position: relative;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.4rem;

  margin-top: 1.5rem;
  padding: 0.4rem 0;

  list-style: none;
}

/* Remove any previous connector line */
.tt-testing-steps::before {
  display: none;
}

/* =========================================================
   INDIVIDUAL STEP
========================================================= */

.tt-testing-step {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;

  min-width: 0;
  min-height: 100%;

  padding: 0;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Main card body */
.tt-testing-step > div {
  flex: 1;
  width: 100%;
  min-width: 0;

  padding: 3rem 1.25rem 1.35rem;

  background: #ffffff;

  border: 1px solid rgba(6, 28, 96, 0.16);
  border-top: 4px solid var(--dph-blue-2);
  border-radius: 16px;

  box-shadow:
    0 8px 20px rgba(6, 28, 96, 0.07),
    0 2px 5px rgba(6, 28, 96, 0.04);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    border-top-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* =========================================================
   AUTOMATIC JAVASCRIPT ACTIVE STATE
========================================================= */

.tt-testing-step.is-active > div {
  transform: translateY(-5px);

  background: linear-gradient(
    180deg,
    rgba(99, 48, 117, 0.12) 0%,
    rgba(99, 48, 117, 0.04) 30%,
    #ffffff 54%
  );

  border-color: rgba(99, 48, 117, 0.5);
  border-top-color: #633075;

  box-shadow:
    0 16px 32px rgba(99, 48, 117, 0.18),
    0 4px 10px rgba(99, 48, 117, 0.09);
}

.tt-testing-step.is-active .tt-testing-step__number {
  transform: translateY(-4px) scale(1.04);
  background: linear-gradient(135deg, #7a3e8f, #633075) !important;

  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(99, 48, 117, 0.24);
}

.tt-testing-step.is-active h3 {
  color: #542563 !important;
}

/* =========================================================
   USER HOVER / KEYBOARD FOCUS STATE
   Purple distinguishes direct interaction from auto rotation
========================================================= */

.tt-testing-step:hover > div,
.tt-testing-step:focus-within > div {
  transform: translateY(-5px);

  background: linear-gradient(
    180deg,
    rgba(99, 48, 117, 0.12) 0%,
    rgba(99, 48, 117, 0.04) 30%,
    #ffffff 54%
  );

  border-color: rgba(99, 48, 117, 0.5);
  border-top-color: #633075;

  box-shadow:
    0 16px 32px rgba(99, 48, 117, 0.18),
    0 4px 10px rgba(99, 48, 117, 0.09);
}

/* =========================================================
   STEP NUMBER
========================================================= */

.tt-testing-step__number {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  width: 58px;
  height: 58px;

  margin: 0 0 -29px;

  background: linear-gradient(135deg, var(--dph-blue), var(--dph-blue-2));

  border: 5px solid #ffffff;
  border-radius: 50%;

  color: var(--dph-blue-contrast);

  box-shadow: 0 8px 20px rgba(6, 28, 96, 0.18);

  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Automatic active number */
.tt-testing-step.is-active .tt-testing-step__number {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--dph-orange), #bb7524);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(208, 139, 56, 0.26);
}

/* Hover and keyboard-focus number */
.tt-testing-step:hover .tt-testing-step__number,
.tt-testing-step:focus-within .tt-testing-step__number {
  transform: translateY(-4px) scale(1.04);

  background: linear-gradient(135deg, #7a3e8f, #633075);

  color: #ffffff;

  box-shadow: 0 10px 24px rgba(99, 48, 117, 0.34);
}

/* =========================================================
   TEXT CONTENT
========================================================= */

.tt-testing-step h3 {
  max-width: 24ch;
  margin: 0 auto 0.4rem;

  color: var(--dph-h3-color);

  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-transform: capitalize !important;

  transition: color 0.25s ease;
}

/* Automatic active heading */
.tt-testing-step.is-active h3 {
  color: #70450f;
}

/* Hover and keyboard-focus heading */
.tt-testing-step:hover h3,
.tt-testing-step:focus-within h3 {
  color: #542563;
}

.tt-testing-step p {
  margin: 0;
  color: #26364d;
  font-size: 0.9rem;
  line-height: 1.4;
}

.tt-testing-step p + p {
  margin-top: 0.85rem;
}

/* =========================================================
   LINKS
========================================================= */

.tt-testing-step a {
  color: var(--dph-blue);
  font-weight: 700;

  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(6, 28, 96, 0.42);
  text-underline-offset: 3px;

  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease,
    text-decoration-thickness 0.2s ease;
}

.tt-testing-step a:hover {
  color: #542563;

  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

.tt-testing-step a:focus-visible {
  outline: 3px solid rgba(99, 48, 117, 0.42);
  outline-offset: 3px;

  border-radius: 3px;

  color: #542563;

  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

/* =========================================================
   IMPORTANT FINAL STEP
========================================================= */

.tt-testing-step--important > div {
  background: linear-gradient(180deg, rgba(208, 139, 56, 0.1) 0%, #ffffff 42%);

  border-color: rgba(208, 139, 56, 0.42);
  border-top-color: var(--dph-orange);
}

.tt-testing-step--important .tt-testing-step__number {
  background: linear-gradient(135deg, var(--dph-orange), #bb7524);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(99, 48, 117, 0.24);
}

.tt-testing-step--important h3 {
  color: #70450f;
}

/* Important step during automatic rotation */
.tt-testing-step--important.is-active > div {
    background: linear-gradient(
        180deg,
        rgba(99, 48, 117, 0.12) 0%,
        rgba(99, 48, 117, 0.04) 30%,
        #ffffff 54%
    );

    border-color: rgba(99, 48, 117, 0.5);
    border-top-color: #633075;

    box-shadow:
        0 16px 32px rgba(99, 48, 117, 0.18),
        0 4px 10px rgba(99, 48, 117, 0.09);
}

.tt-testing-step--important.is-active .tt-testing-step__number {
    background: linear-gradient(135deg, #7a3e8f, #633075);
    color: #fff;
}

.tt-testing-step--important.is-active h3 {
    color: #542563;
}

/* Hover takes priority over the important-step orange */
.tt-testing-step--important:hover > div,
.tt-testing-step--important:focus-within > div {
  background: linear-gradient(
    180deg,
    rgba(99, 48, 117, 0.14) 0%,
    rgba(99, 48, 117, 0.05) 32%,
    #ffffff 55%
  );

  border-color: rgba(99, 48, 117, 0.56);
  border-top-color: #633075;

  box-shadow:
    0 16px 32px rgba(99, 48, 117, 0.18),
    0 4px 10px rgba(99, 48, 117, 0.09);
}

.tt-testing-step--important:hover .tt-testing-step__number,
.tt-testing-step--important:focus-within .tt-testing-step__number {
  background: linear-gradient(135deg, #7a3e8f, #633075);

  color: #ffffff;

  box-shadow: 0 10px 24px rgba(99, 48, 117, 0.34);
}

.tt-testing-step--important:hover h3,
.tt-testing-step--important:focus-within h3 {
  color: #542563;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .tt-testing-steps {
    grid-template-columns: 1fr;
    gap: 1.75rem;

    padding-top: 0;
  }

  .tt-testing-step {
    align-items: center;
  }

  .tt-testing-step__number {
    width: 52px;
    height: 52px;

    margin-bottom: -26px;

    border-width: 4px;

    font-size: 1.1rem;
  }

  .tt-testing-step > div {
    padding: 2.7rem 1.35rem 1.35rem;
  }

  .tt-testing-step h3 {
    max-width: none;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {
  .tt-testing-steps {
    gap: 1.5rem;
    margin-top: 1rem;
  }

  .tt-testing-step__number {
    width: 44px;
    height: 44px;

    margin-bottom: -22px;

    border-width: 4px;

    font-size: 0.95rem;
  }

  .tt-testing-step > div {
    padding: 2.45rem 1rem 1.1rem;

    border-radius: 14px;
  }

  .tt-testing-step h3 {
    margin-bottom: 0.7rem;

    font-size: 1.06rem;
    line-height: 1.3;
  }

  .tt-testing-step p {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .tt-testing-step:hover > div,
  .tt-testing-step:focus-within > div {
    transform: translateY(-3px);
  }

  .tt-testing-step:hover .tt-testing-step__number,
  .tt-testing-step:focus-within .tt-testing-step__number {
    transform: translateY(-2px) scale(1.03);
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .tt-testing-step > div,
  .tt-testing-step__number,
  .tt-testing-step h3,
  .tt-testing-step a {
    transition: none;
  }

  .tt-testing-step.is-active > div,
  .tt-testing-step:hover > div,
  .tt-testing-step:focus-within > div,
  .tt-testing-step.is-active .tt-testing-step__number,
  .tt-testing-step:hover .tt-testing-step__number,
  .tt-testing-step:focus-within .tt-testing-step__number {
    transform: none;
  }
}

/* =========================================================
   ANTIVIRAL MEDICATION NOTE
   - Professional public-health presentation
   - Clear header, supporting cards, and closing guidance
   - Responsive without changing the existing HTML
========================================================= */

.tt-medication-note {
  position: relative;
  overflow: hidden;

  margin-top: 1.25rem;
  padding: 1.4rem;

  background: linear-gradient(
    145deg,
    rgba(11, 95, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.96) 42%,
    #ffffff 100%
  );

  border: 1px solid rgba(0, 43, 77, 0.16);
  border-left: 5px solid var(--tt-blue);
  border-radius: 18px;

  box-shadow: 0 8px 22px rgba(0, 43, 77, 0.08);
}

/* =========================================================
   Header
========================================================= */

.tt-medication-note__header {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;

  margin-bottom: 1.2rem;
}

.tt-medication-note__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;

  border: 1px solid rgba(11, 95, 255, 0.18);
  border-radius: 16px;

  background: rgba(11, 95, 255, 0.12);
  color: var(--tt-blue);

  font-size: 1.3rem;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 5px 12px rgba(0, 43, 77, 0.08);
}

.tt-medication-note h3 {
  margin: 0 0 0.4rem;

  color: var(--tt-navy);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
}

.tt-medication-note__header p {
  margin: 0;
  color: #35465d;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

/* =========================================================
   Information Cards
========================================================= */

.tt-medication-note__grid {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tt-medication-note__grid article {
  position: relative;

  min-width: 0;
  padding: 1.05rem 1rem 1rem;

  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 43, 77, 0.13);
  border-top: 4px solid rgba(11, 95, 255, 0.72);
  border-radius: 14px;

  box-shadow: 0 5px 14px rgba(0, 43, 77, 0.06);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tt-medication-note__grid article:hover {
  transform: translateY(-2px);

  border-color: rgba(11, 95, 255, 0.28);

  box-shadow: 0 9px 20px rgba(0, 43, 77, 0.1);
}

.tt-medication-note__grid strong {
  margin: 0 0 0.45rem;
  color: var(--tt-navy);
  text-transform: capitalize;
  font-weight: 800;
  line-height: 1.35;
}

.tt-medication-note__grid p {
  margin: 0.25rem 0 0 0;
  color: #3b4a5f;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Give the TPOXX card slightly stronger emphasis */
.tt-medication-note__grid article:nth-child(2) {
  border-top-color: var(--tt-orange);
  background: linear-gradient(
    180deg,
    rgba(255, 247, 230, 0.72) 0%,
    #ffffff 80%
  );
}

.tt-medication-note__grid article:nth-child(2) strong {
  color: #713f12;
}

/* =========================================================
   Footer Guidance
========================================================= */

.tt-medication-note__footer {
  position: relative;
  z-index: 1;

  margin: 1.1rem 0 0;
  padding: 1rem 1rem 1rem 3rem;

  color: #26384e;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.65;

  background: rgba(0, 43, 77, 0.045);
  border: 1px solid rgba(0, 43, 77, 0.1);
  border-radius: 12px;
}

.tt-medication-note__footer::before {
  content: "\f05a";

  position: absolute;
  top: 1.05rem;
  left: 1rem;

  color: var(--tt-blue);
  font-family: "Font Awesome 5 Free";
  font-size: 1.05rem;
  font-weight: 900;
}

/* =========================================================
   Responsive Layout
========================================================= */

@media (max-width: 900px) {
  .tt-medication-note__grid {
    grid-template-columns: 1fr;
  }

  .tt-medication-note__grid article {
    border-top-width: 1px;
    border-left: 4px solid rgba(11, 95, 255, 0.72);
  }

  .tt-medication-note__grid article:nth-child(2) {
    border-left-color: var(--tt-orange);
  }
}

@media (max-width: 560px) {
  .tt-medication-note {
    padding: 1.1rem;
    border-left-width: 4px;
    border-radius: 15px;
  }

  .tt-medication-note__header {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.8rem;
  }

  .tt-medication-note__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 1.1rem;
  }

  .tt-medication-note__header p {
    font-size: 0.96rem;
  }

  .tt-medication-note__grid article {
    padding: 0.95rem;
  }

  .tt-medication-note__footer {
    padding: 0.9rem 0.9rem 0.9rem 2.7rem;
  }

  .tt-medication-note__footer::before {
    top: 0.95rem;
    left: 0.9rem;
  }
}

@media (max-width: 400px) {
  .tt-medication-note__header {
    grid-template-columns: 1fr;
  }

  .tt-medication-note__icon {
    margin-bottom: 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt-medication-note__grid article {
    transition: none;
  }

  .tt-medication-note__grid article:hover {
    transform: none;
  }
}

/* =========================================================
   10. RESPONSIVE CONTENT LISTS
   - 4 columns on large screens
   - 2 columns at 980px and below
   - 1 column at 560px and below
========================================================= */

.tt-check-list,
.tt-list-clean {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  margin: 1rem 0 0;
  padding: 0;
  gap: 0.85rem;
  list-style: none;
}

.tt-check-list li,
.tt-list-clean li {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 0.9rem 0.9rem 0.9rem 2.65rem;
  background: linear-gradient(145deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid rgba(6, 28, 96, 0.11);
  border-radius: 14px;
  color: #26364d;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  box-shadow: 0 3px 9px rgba(6, 28, 96, 0.045);
  overflow-wrap: anywhere;
}

.tt-check-list li p,
.tt-list-clean li p {
  margin: 0;
}

.tt-check-list li strong,
.tt-list-clean li strong {
  color: var(--tt-navy);
  font-weight: 800;
}

.tt-check-list li::before,
.tt-list-clean li::before {
  position: absolute;
  top: 0.92rem;
  left: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.tt-check-list li::before {
  content: "✓";
  background: #e5f6ec;
  border: 1px solid rgba(22, 101, 52, 0.14);
  color: #166534;
}

.tt-list-clean li::before {
  content: "•";
  background: #eaf1ff;
  border: 1px solid rgba(0, 53, 136, 0.12);
  color: #003588;
  font-size: 1rem;
}

@media (hover: hover) {
  .tt-check-list li,
  .tt-list-clean li {
    transition:
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease;
  }

  .tt-check-list li:hover,
  .tt-list-clean li:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 95, 255, 0.22);
    box-shadow: 0 7px 16px rgba(6, 28, 96, 0.08);
  }
}

/* =========================================================
   11. INLINE NOTE AND RETURN GRID
========================================================= */

.tt-inline-note {
  margin-top: 0.85rem;
}

.tt-return-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

/* =========================================================
   12. TABLET RESPONSIVE
========================================================= */

@media (max-width: 980px) {
  .tt-check-list,
  .tt-list-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .tt-check-list li,
  .tt-list-clean li {
    padding: 0.9rem 0.9rem 0.9rem 2.6rem;
    font-size: 0.94rem;
    line-height: 1.58;
  }
}

@media (max-width: 900px) {
  #testing_treatment #main-content {
    width: min(100% - 1rem, 1160px);
  }

  .tt-hero--compact,
  .tt-decision-strip,
  .tt-content-grid,
  .tt-content-grid--two,
  .tt-return-grid {
    grid-template-columns: 1fr;
  }

  .tt-topic-panel summary {
    grid-template-columns: 52px 1fr auto;
  }

  .tt-topic-panel__summary {
    grid-column: 2 / 3;
  }
}

/* =========================================================
   13. MOBILE RESPONSIVE
========================================================= */

@media (max-width: 560px) {
  .tt-hero--compact {
    padding: 1rem !important;
  }

  .tt-topic-hub {
    padding: 0.75rem;
  }

  .tt-topic-panel summary {
    grid-template-columns: 1fr auto;
  }

  .tt-topic-panel__icon {
    width: 44px;
    height: 44px;
  }

  .tt-topic-panel__icon,
  .tt-topic-panel__title,
  .tt-topic-panel__summary {
    grid-column: 1 / 2;
  }

  .tt-topic-panel summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .tt-panel-intro,
  .tt-testing-step {
    grid-template-columns: 1fr;
  }

  .tt-panel-intro__icon,
  .tt-testing-step__number {
    width: 40px;
    height: 40px;
  }

  .tt-content-card,
  .tt-inline-note,
  .tt-return-grid article {
    padding: 1rem;
    border-radius: 14px;
  }

  .tt-content-card h3,
  .tt-inline-note h3,
  .tt-return-grid h3 {
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
  }

  .tt-content-card > p,
  .tt-inline-note > p,
  .tt-return-grid article > p {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .tt-check-list,
  .tt-list-clean {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 0.85rem;
  }

  .tt-check-list li,
  .tt-list-clean li {
    min-height: 0;
    padding: 0.85rem 0.85rem 0.85rem 2.55rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .tt-check-list li::before,
  .tt-list-clean li::before {
    top: 0.88rem;
    left: 0.85rem;
  }
}

/* =========================================================
   14. REDUCED MOTION
   ADA / WCAG-friendly motion preference support
========================================================= */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================
   RETURNING TO DAILY ACTIVITIES
========================================================== */

.tt-return-grid--featured {
    display: grid;
    grid-template-columns: repeat(1, minmax(0,1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.tt-return-grid--featured > article {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    padding: 1.4rem;
    min-height: 100%;

    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #fbf9fd 100%
    );

    border: 1px solid rgba(99,48,117,.16);
    border-top: 5px solid #633075;
    border-radius: 18px;

    box-shadow:
        0 8px 22px rgba(99,48,117,.08);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.tt-return-grid--featured > article:hover {
    border-color: rgba(99,48,117,.28);
    box-shadow:
        0 14px 30px rgba(99,48,117,.14);
}

.tt-return-grid--featured h3 {
    margin-bottom: .75rem;
    color: var(--tt-navy);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
}

.tt-return-grid--featured p {
    color: #334155;
    font-size: .95rem;
    line-height: 1.7;
}

.tt-return-grid--featured strong {
    color: #542563;
}

.tt-return-grid--featured h3 i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.2rem;
    height: 2.2rem;
    color: var(--tt-purple);
    background: rgba(99, 48, 117, 0.1);
    border: 1px solid rgba(99, 48, 117, 0.16);
    border-radius: 10px;

    font-size: 1rem;
    text-align: center;
    margin-right: 10px;
}

@media (max-width:900px){

    .tt-return-grid--featured{
        grid-template-columns:1fr;
    }

}

.tt-note {
    margin-top: 1rem !important;
    padding: .75rem .9rem;
    font-size: .77rem !important;
    line-height: 1.25 !important;

    background: rgba(99, 48, 117, .05);
    border-left: 4px solid #633075;
    border-radius: 10px;
    color: #4b5563 !important;
}

.tt-note strong {
    color: #542563;
    font-weight: 700;
}

.dashboard-frame iframe {
    display: block;
    width: 100%;
    height: 700px;
    border: 0;
}