/*
 * D-300 (owner, 6 Nov: "everything should be on the new theme"): one V2 look for the site's information pages - the legal
 * pages (layouts/legal.blade.php: Privacy, Terms, Refund) and Doctors Desk (coming soon). Glass hero on the soft coral
 * ground, then a reading card with an "On this page" list. Classes are ip- prefixed.
 */
.ip-page { --ip-coral: #f05d49; --ip-coral-2: #ff8b78; --ip-ink: #1d2333; --ip-text: #3f3833; --ip-mute: #6b625c; --ip-gut: clamp(16px, 4vw, 56px);
  position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--cy-hdr-h, 64px) + 40px) 0 clamp(48px, 6vw, 88px);
  background: radial-gradient(60% 40% at 85% 0%, rgba(255, 139, 120, .16), transparent 70%), radial-gradient(50% 40% at 0% 30%, rgba(240, 93, 73, .08), transparent 70%), #fdfaf8; }
.ip-in { width: min(1180px, calc(100% - 2 * var(--ip-gut))); margin-inline: auto; }
.ip-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; color: var(--ip-mute); }
.ip-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.ip-crumbs a { color: var(--ip-mute); text-decoration: none; }
.ip-crumbs a:hover { color: #c23b28; }
/* the hero */
.ip-hero { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: 28px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .62)); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 30px 60px -40px rgba(92, 23, 14, .35); }
.ip-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ip-ink);
  background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(240, 93, 73, .16); }
.ip-tag .cy-icon { width: 18px; height: 18px; color: var(--ip-coral); }
.ip-page h1.ip-title { margin: 0; font-size: clamp(34px, 4.4vw, 56px) !important; line-height: 1.05 !important; font-weight: 800 !important; letter-spacing: -.035em !important; color: var(--ip-ink) !important; text-transform: none !important; }
.ip-title em { font-style: normal; background: linear-gradient(95deg, var(--ip-coral-2), var(--ip-coral) 45%, #e0442f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ip-lead { margin: 12px 0 0; max-width: 680px; font-size: 16px; line-height: 1.6; color: var(--ip-text); }
.ip-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ip-tabs a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ip-ink); text-decoration: none;
  background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(240, 93, 73, .16); }
.ip-tabs a:hover { color: #c23b28; text-decoration: none; }
.ip-tabs a[aria-current="page"] { color: #fff; background: var(--cy-cta-bg, var(--ip-coral)); box-shadow: var(--cy-cta-bevel, none), 0 10px 20px -12px rgba(240, 93, 73, .7); }
/* the reading area: "On this page" + the text card */
.ip-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.ip-toc { position: sticky; top: calc(var(--cy-hdr-h, 64px) + 28px); padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 20px 40px -32px rgba(92, 23, 14, .3); }
.ip-toc b { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ip-mute); }
.ip-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: ip-toc; }
.ip-toc a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.35; color: var(--ip-text); text-decoration: none; }
.ip-toc a:hover, .ip-toc a.is-on { color: #c23b28; background: rgba(240, 93, 73, .08); text-decoration: none; }
.ip-prose { padding: clamp(22px, 3vw, 40px); border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 35, 51, .06), 0 30px 60px -44px rgba(92, 23, 14, .35); }
.ip-prose h2, .ip-prose .wrap-subhding { margin: 30px 0 10px !important; padding: 0 !important; scroll-margin-top: calc(var(--cy-hdr-h, 64px) + 24px); font-size: 20px !important; line-height: 1.3 !important; font-weight: 700 !important;
  letter-spacing: -.01em !important; color: var(--ip-ink) !important; text-transform: none !important; text-align: left !important; }
.ip-prose > h2:first-child, .ip-prose > .wrap-prgh:first-child + h2 { margin-top: 0 !important; }
.ip-prose p, .ip-prose .wrap-prgh { margin: 0 0 12px; padding: 0 !important; color: var(--ip-text); line-height: 1.7; text-align: left; }
.ip-prose a { color: #c23b28; }
.ip-prose ul, .ip-prose ol { margin: 0 0 14px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.ip-prose ul > li, .ip-prose ol > li { position: relative; display: block; padding-left: 30px; color: var(--ip-text); line-height: 1.6; }
.ip-prose ul > li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(120% 90% at 30% 14%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 58%), linear-gradient(150deg, var(--ip-coral-2), #e5503c); }
.ip-prose ul > li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* D-315 (council UX-25): the old check icon still showed next to the new tick (style.css .tcd-list li .check-circle has the same weight and loads later). OLD: .ip-prose li .check-circle */
html body .ip-prose li .check-circle { display: none; }
.ip-prose li p { margin: 0; }
@media (max-width: 900px) {
  .ip-body { grid-template-columns: minmax(0, 1fr); }
  .ip-toc { position: static; }
}

/* Doctors Desk: coming soon */
.ip-soon { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; }
.ip-soon__chip { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #c23b28; background: rgba(240, 93, 73, .08); }
.ip-soon__chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ip-coral); box-shadow: 0 0 0 0 rgba(240, 93, 73, .5); animation: ip-ping 1.8s ease-out infinite; }
@keyframes ip-ping { 70% { box-shadow: 0 0 0 10px rgba(240, 93, 73, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 93, 73, 0); } }
.ip-soon__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ip-soon__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; }
.ip-soon__art::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95), rgba(255, 228, 220, .7) 55%, rgba(255, 196, 182, .35)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 40px 70px -40px rgba(240, 93, 73, .55); }
.ip-soon__art::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(240, 93, 73, .3); animation: ip-orbit 40s linear infinite; }
@keyframes ip-orbit { to { rotate: 360deg; } }
.ip-soon__art img { position: relative; z-index: 1; width: 78%; height: auto; }
.ip-soon__dot { position: absolute; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff;
  background: radial-gradient(120% 90% at 30% 14%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 58%), linear-gradient(150deg, var(--ip-coral-2), #e5503c); box-shadow: 0 14px 26px -12px rgba(240, 93, 73, .7); }
.ip-soon__dot .cy-icon { width: 24px; height: 24px; }
.ip-soon__dot--a { top: 8%; right: 10%; }
.ip-soon__dot--b { bottom: 12%; left: 6%; }
@media (max-width: 900px) { .ip-soon { grid-template-columns: minmax(0, 1fr); } .ip-soon__art { max-width: 300px; } }
@media (prefers-reduced-motion: reduce) { .ip-soon__chip i, .ip-soon__art::after { animation: none; } }
/* stronger than the site-wide heading rules; the hero link in coral; less space under the header */
html body .ip-page .ip-prose h2 { margin: 30px 0 10px !important; font-size: 20px !important; line-height: 1.3 !important; font-weight: 700 !important; letter-spacing: -.01em !important; }
html body .ip-page .ip-lead a { color: #c23b28; }
.ip-page { padding-top: calc(var(--cy-hdr-h, 64px) + 8px); }
