/* Phone-only Procedures page design. Everything is inside the 639px media query and scoped to the
   Procedures page, so desktop and tablet layouts are untouched. Content and markup are unchanged. */
@media (max-width: 639px) {
  html[data-page="procedures"] body { --pm-navy: #0f1f45; --pm-deep: #0a1633; --pm-red: #c8102e; --pm-pink: #fdeaee; --pm-line: #e3e7f0; }

  /* ---- Hero: dark panel, copy on the left, glowing heart on the right ---- */
  html[data-page="procedures"] .proc-hero { background: #fff; padding-bottom: 8px; }
  html[data-page="procedures"] .proc-hero__inner { position: relative; z-index: 1; overflow: hidden; width: 100%; max-width: none; margin: 0; padding: 26px 16px 68px; border-radius: 0 0 26px 26px; background: radial-gradient(90% 70% at 85% 25%, #3a1230 0, transparent 60%), linear-gradient(180deg, #0a1633, #0f2147); }
  html[data-page="procedures"] .proc-hero__inner::after { content: ""; position: absolute; top: 8px; right: -6px; z-index: -1; width: 38%; aspect-ratio: 1; background: url("../img/heart-hero-cutout.webp") center / contain no-repeat; filter: drop-shadow(0 0 22px rgba(255, 40, 80, .55)); opacity: .95; }
  html[data-page="procedures"] .proc-hero__copy { position: relative; }
  html[data-page="procedures"] .proc-hero .eyebrow { margin-bottom: 10px; font-size: 11.5px !important; color: #ff8aa0; }
  html[data-page="procedures"] .proc-hero h1 { max-width: 66%; margin-bottom: 14px; color: #fff; font-size: 24px; line-height: 1.12; letter-spacing: -.02em; }
  html[data-page="procedures"] .proc-hero h1 span { color: #ff5a78; }
  html[data-page="procedures"] .proc-hero .lead { max-width: 100%; margin-bottom: 18px; color: #d9e0f1 !important; font-size: 14px !important; line-height: 1.6 !important; }
  html[data-page="procedures"] .proc-hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  html[data-page="procedures"] .proc-hero__actions .btn { min-height: 46px; padding: 12px 22px; border-radius: 12px; font-size: 14.5px; }
  html[data-page="procedures"] body main .proc-hero__actions a.btn.btn--outline.btn.btn--outline.btn.btn--outline.btn.btn--outline.btn.btn--outline { background: transparent !important; background-image: none !important; border: 1.5px solid rgba(255, 255, 255, .85) !important; color: #fff !important; box-shadow: none !important; }
  html[data-page="procedures"] .proc-hero__actions .btn--outline .i { color: #fff !important; }

  /* Feature strip: white card overlapping the dark hero */
  html[data-page="procedures"] .proc-hero > .container:last-child { order: 2; position: relative; z-index: 3; margin-top: -44px; }
  html[data-page="procedures"] .proc-features { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(15, 31, 69, .14); overflow: hidden; }
  html[data-page="procedures"] .proc-features li { flex-direction: column; justify-content: flex-start; gap: 8px; padding: 14px 6px 12px; font-size: 11.5px; line-height: 1.3; text-align: center; border-top: 0 !important; }
  html[data-page="procedures"] .proc-features li + li { border-left: 1px solid var(--pm-line) !important; }
  html[data-page="procedures"] .proc-features li:nth-child(3) { border-left: 1px solid var(--pm-line) !important; }
  html[data-page="procedures"] .proc-features .i { width: 26px; height: 26px; }

  /* Image with overlapping caption card */
  html[data-page="procedures"] .proc-hero__media { order: 3; height: 210px; margin: 16px 16px 0; border-radius: 18px; }
  html[data-page="procedures"] .proc-hero__badge { order: 4; margin: -34px 0 0 28px; padding: 12px 16px 12px 14px; gap: 12px; border-radius: 12px; }
  html[data-page="procedures"] .proc-hero__badge > .i { width: 30px; height: 30px; }
  html[data-page="procedures"] .proc-hero__badge strong { font-size: 14.5px; }
  html[data-page="procedures"] .proc-hero__badge span { font-size: 12.5px; }

  /* ---- Library head: soft pink panel ---- */
  html[data-page="procedures"] .proc-library { padding-top: 26px; }
  html[data-page="procedures"] .proc-library__head { margin: 0 -16px 20px; padding: 18px 16px 20px; border-radius: 18px; background: linear-gradient(180deg, #fdeef0, #fff4f6); }
  html[data-page="procedures"] .proc-library__head h2 { font-size: 26px; line-height: 1.12; }
  html[data-page="procedures"] .proc-library__head .eyebrow { font-size: 11.5px !important; }

  /* Filters */
  html[data-page="procedures"] .proc-sidebar__title { margin: 0 0 10px; color: var(--pm-navy); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  html[data-page="procedures"] .proc-filter { min-height: 42px; border-radius: 999px; border: 1px solid var(--pm-line); background: #fff; color: var(--pm-navy); font-weight: 700; box-shadow: 0 3px 10px rgba(15, 31, 69, .05); }
  html[data-page="procedures"] .proc-filter[aria-pressed="true"] { background: linear-gradient(135deg, #d3123a, #a50f2c) !important; border-color: transparent; color: #fff !important; box-shadow: 0 8px 16px rgba(200, 16, 46, .25); }
  html[data-page="procedures"] .proc-search, html[data-page="procedures"] .proc-select select { border-radius: 999px; border-color: var(--pm-line); box-shadow: 0 3px 10px rgba(15, 31, 69, .05); }

  /* ---- Procedure cards: compact rows, image left, details right ---- */
  html[data-page="procedures"] .proc-grid { display: grid; gap: 12px; }
  html[data-page="procedures"] details.proc { border: 1px solid var(--pm-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(15, 31, 69, .07); overflow: hidden; }
  html[data-page="procedures"] details.proc > summary { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 0; align-items: stretch; padding: 0; list-style: none; }
  html[data-page="procedures"] details.proc > summary::-webkit-details-marker { display: none; }
  html[data-page="procedures"] .proc__media { display: block; position: relative; aspect-ratio: auto; width: auto; height: auto; min-height: 118px; margin: 10px 0 10px 10px; overflow: hidden; border-radius: 12px; }
  html[data-page="procedures"] .proc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  html[data-page="procedures"] .proc__head { position: relative; display: block; padding: 12px 52px 12px 12px; }
  html[data-page="procedures"] .proc__tag { display: block; margin: 0 0 4px; padding: 0; background: none; color: var(--pm-red); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  html[data-page="procedures"] .proc__title { display: block; margin: 0 0 4px; font-size: 14.5px; line-height: 1.25; color: var(--pm-navy); }
  html[data-page="procedures"] .proc__summary { display: block; font-size: 12px; line-height: 1.45; color: #4a5568; }
  /* "Read more" becomes a round chevron button; the words stay available to screen readers */
  html[data-page="procedures"] .proc__more { position: absolute; top: 50%; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0; padding: 0; border-radius: 50%; background: var(--pm-pink); color: var(--pm-red); font-size: 0; }
  html[data-page="procedures"] .proc__more .when-closed, html[data-page="procedures"] .proc__more .when-open { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  html[data-page="procedures"] .proc__more .i { width: 16px; height: 16px; }

  /* ---- Help card and important information ---- */
  html[data-page="procedures"] .proc-help { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; margin-top: 20px; padding: 16px 14px; border-radius: 16px; background: linear-gradient(135deg, #fdeef0, #fff4f6); }
  html[data-page="procedures"] .proc-help > .i { grid-row: 1 / span 2; width: 38px; height: 38px; margin: 0; }
  html[data-page="procedures"] .proc-help h3 { grid-column: 2; margin: 0 0 4px; font-size: 16px; }
  html[data-page="procedures"] .proc-help p { grid-column: 2; margin: 0; font-size: 12.5px !important; line-height: 1.45 !important; }
  html[data-page="procedures"] .proc-help .btn { grid-column: 3; grid-row: 1 / span 2; align-self: center; min-height: 40px; padding: 8px 14px; border-radius: 10px; background: linear-gradient(135deg, #d3123a, #a50f2c) !important; border: 0 !important; color: #fff !important; font-size: 13.5px; }
  html[data-page="procedures"] .proc-help .btn .i { color: #fff !important; width: 16px; height: 16px; }
  html[data-page="procedures"] .proc-note { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; margin-top: 16px; padding: 16px; border: 1px solid var(--pm-line); border-radius: 16px; background: #fff; }
  html[data-page="procedures"] .proc-note > .i { flex: none; width: 28px; height: 28px; color: var(--pm-navy); }
  html[data-page="procedures"] .proc-note h2 { margin: 0 0 4px; font-size: 16px; }
  html[data-page="procedures"] .proc-note p { margin: 0; font-size: 12.5px !important; line-height: 1.5 !important; }
}
