/* The Nurse Review Co.: motion and depth. Loaded after site.css. */

/* Dark hero with a live monitor trace */
.hero { background: radial-gradient(120% 90% at 78% 30%, #17606b 0%, #0e3a47 46%, #08252e 100%); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(90% 80% at 60% 40%, #000 30%, transparent 100%); mask-image: radial-gradient(90% 80% at 60% 40%, #000 30%, transparent 100%); }
.hero-in { position: relative; min-height: min(78vh, 720px); }
.hero .eyebrow { color: #8fdcd2; }
.hero .lead, .hero .ticks { color: #d2e6e4; }
.hero .ticks li::before { background-color: #2a9aa0; }
.hero .btn-primary { background: #8fdcd2; color: #08252e; }
.hero .btn-primary:hover { background: #fff; color: #08252e; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero :focus-visible, .guide-head :focus-visible { outline-color: #ffd27a; }

.pulse { height: 80px; bottom: 6px; color: inherit; }
.pulse path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pulse-base { stroke: rgba(255, 255, 255, .13); stroke-width: 1.5; }
.pulse-live { stroke: #8fdcd2; stroke-width: 2.25; stroke-dasharray: 150 850; stroke-dashoffset: 1000; filter: drop-shadow(0 0 6px rgba(143, 220, 210, .9)); animation: sweep 5.5s linear infinite; }
@keyframes sweep { to { stroke-dashoffset: 0; } }

/* Floating covers that follow the pointer */
.stack { --px: 0; --py: 0; width: min(100%, 320px); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.stack .cover { transition: transform .5s cubic-bezier(.2, .7, .2, 1); animation: float 7s ease-in-out infinite; }
.stack .cover:nth-child(1) { transform: rotate(-9deg) translate(calc(-16% + var(--px) * -34px), calc(3% + var(--py) * -22px)); animation-delay: -2.3s; }
.stack .cover:nth-child(2) { transform: rotate(7deg) translate(calc(15% + var(--px) * -22px), calc(2% + var(--py) * -14px)); animation-delay: -4.6s; }
.stack .cover:nth-child(3) { transform: rotate(-1.5deg) translate(calc(var(--px) * 16px), calc(var(--py) * 12px)); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Reveal on scroll (the class is only added by the script) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Exam explorer */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1rem; }
.tab { font: inherit; text-align: left; cursor: pointer; padding: 1rem 1.25rem; border-radius: var(--radius); border: 1.5px solid var(--mint-line); background: #fff; color: var(--ink); display: grid; gap: .1rem; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.tab strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.tab span { font-size: .9rem; color: var(--ink-soft); }
.tab:hover { border-color: var(--teal); transform: translateY(-2px); }
.tab[aria-selected="true"] { color: #fff; border-color: transparent; }
.tab[aria-selected="true"] span { color: rgba(255, 255, 255, .88); }
.tab-teal[aria-selected="true"] { background: linear-gradient(160deg, #1b858c, #0f5c62); }
.tab-navy[aria-selected="true"] { background: linear-gradient(160deg, #2a5591, #17335b); }
.tab-sage[aria-selected="true"] { background: linear-gradient(160deg, #4f7f62, #33543f); }
.panel { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: center; padding: 2.25rem; border-radius: var(--radius); background: var(--mint); border: 1px solid var(--mint-line); }
.panel[hidden] { display: none; }
.panel:not([hidden]) .panel-cover { animation: slide-in .5s cubic-bezier(.2, .7, .2, 1); }
.panel:not([hidden]) .panel-text { animation: fade-in .5s ease; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-24px) rotate(-4deg); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } }
.panel-cover .cover { transform: rotate(-2.5deg); box-shadow: 0 18px 40px rgba(14, 58, 71, .22); }
.panel-text h3 { font-size: 1.9rem; }
.panel-text > p { color: var(--ink-soft); max-width: 38em; }
.chips { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { background: #fff; border: 1px solid var(--mint-line); border-radius: 999px; padding: .3rem .8rem; font-size: .875rem; font-weight: 600; }
.mini-facts { display: flex; gap: 2rem; margin: 1rem 0 0; }
.mini-facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.mini-facts dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; }
html:not(.js) .tabs { display: none; }
html:not(.js) .panel { margin-bottom: 1rem; }

/* Guide page heads in the guide's own color */
.guide-head { position: relative; overflow: hidden; color: #fff; padding-bottom: clamp(4.5rem, 8vw, 6rem); }
.guide-head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 34px 34px; }
.guide-head .wrap { position: relative; }
.head-teal { background: radial-gradient(120% 100% at 80% 30%, #1b858c, #0b434a 70%); }
.head-navy { background: radial-gradient(120% 100% at 80% 30%, #2a5591, #11264a 70%); }
.head-sage { background: radial-gradient(120% 100% at 80% 30%, #4f7f62, #284534 70%); }
.guide-head .eyebrow { color: rgba(255, 255, 255, .88); }
.guide-head .lead, .guide-head .fine, .guide-head .crumbs { color: rgba(255, 255, 255, .9); }
.guide-head a { color: #fff; }
.guide-head .btn-primary { background: #fff; color: var(--ink); }
.guide-head .btn-primary:hover { background: var(--mint); color: var(--ink); }
.guide-head .btn-primary.is-static, .guide-head .btn-primary.is-static:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .35); }
.guide-head .pulse-live { stroke: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)); }
.tilt { perspective: 900px; }
.tilt .cover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; box-shadow: 0 30px 50px rgba(0, 0, 0, .35), inset 6px 0 0 rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }

/* Section checklist and progress */
.progress { margin: 1rem 0 0; padding: 1rem 1.25rem; background: var(--mint); border-radius: var(--radius); position: sticky; top: 70px; z-index: 2; }
.progress-text { margin: 0 0 .6rem; }
.progress-text .fine { display: block; }
.bar { height: 10px; border-radius: 999px; background: #fff; overflow: hidden; border: 1px solid var(--mint-line); }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #2a9aa0, var(--teal-dark)); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.progress.complete .bar i { background: linear-gradient(90deg, #5f9072, #3b6049); }
.check { display: none; }
.has-checks .check { display: block; position: absolute; left: -6px; top: .75rem; width: 44px; height: 44px; cursor: pointer; }
.has-checks .check input { appearance: none; -webkit-appearance: none; position: absolute; inset: 9px; margin: 0; border: 2px solid var(--teal); border-radius: 8px; background: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.has-checks .check input:checked { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.4l2.8 2.8 6-6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; transform: scale(1.06); }
.has-checks .sections li::before { display: none; }
.sections li.done h3 { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--teal); }

/* Planner */
.planner label { display: block; font-weight: 600; margin: .5rem 0 .4rem; }
.planner input { font: inherit; width: 100%; min-height: 48px; padding: .5rem .8rem; border: 1.5px solid #7fa5a0; border-radius: 10px; color: var(--ink); background: #fff; }
.plan-out { margin: .9rem 0 0; }
.plan-out:empty { display: none; }

@media (max-width: 860px) {
  .hero-in { min-height: 0; padding-top: 2.25rem; }
  .hero-art { order: 0; padding: 1rem 0 1.5rem; }
  .stack { width: 180px; }
  .guide-head-in .tilt { max-width: 120px; }
  .sponsor-note a, .crumbs a, .text-link { display: inline-block; padding: .4rem 0; }
  .panel { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.5rem; }
  .panel-cover .cover { max-width: 170px; }
  .tab { padding: .75rem .8rem; }
  .tab strong { font-size: 1.2rem; }
  .tab span { font-size: .78rem; }
  .guide-head-in .tilt { order: -1; }
  .progress { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-live, .stack .cover, .panel .panel-cover, .panel .panel-text { animation: none !important; }
  .pulse-live { stroke-dashoffset: 300; }
}
