:root {
  --ink: #19163d;
  --muted: #595379;
  --paper: #fbf6ef;
  --night: #101837;
  --card: #fffefa;
  --stroke: #d9cfe6;
  --gold: #ffdb65;
  --lilac: #ede5fb;
  --blue: #e7efff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.protocol-guide {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.4 Fredoka,sans-serif;
}
a { color: inherit; }
:focus-visible { outline: 3px solid #a32c70; outline-offset: 4px; }
.guide-header,.guide-main { width: min(100% - 32px,1100px); margin-inline: auto; }
.guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 0;
}
.guide-brand { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.guide-brand span { color: #b71d64; }
.guide-brand a,.guide-header nav a { text-decoration: none; }
.guide-brand .guide-brand-cross { display: grid; place-items: center; width: 36px; height: 40px; color: #875300; font-size: 1.2rem; }
.guide-header nav { display: flex; flex-wrap: wrap; gap: 4px 15px; }
.guide-header nav a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  align-items: center;
  gap: clamp(20px,4vw,48px);
  padding: clamp(22px,5vw,52px);
  border-radius: clamp(22px,5vw,38px);
  background: radial-gradient(ellipse at 95% 5%,#302653,var(--night) 64%);
  color: #fff9ed;
}
.guide-hero h1 { margin: 0; font-size: clamp(2.45rem,5.9vw,4.75rem); line-height: .98; }
.guide-hero p { margin: 14px 0 18px; color: #e9e2fa; font-size: clamp(1rem,2vw,1.18rem); }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 8px 15px;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  color: var(--ink);
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.guide-button.primary { background: var(--gold); }
.guide-button.secondary { background: #f1eaff; }
.guide-button:hover { background: #ffe895; }
.guide-art { display: block; border-radius: 20px; overflow: hidden; }
.guide-art img { display: block; width: 100%; height: auto; }
.sleep-guide-section,.guide-resources { margin-top: clamp(36px,7vw,70px); scroll-margin-top: 22px; }
.guide-section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.guide-section-heading h2 { margin: 0; font-size: clamp(1.75rem,4vw,2.7rem); line-height: 1.07; }
.guide-section-heading p { margin: 5px 0 0; color: var(--muted); }
.guide-steps {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}
.guide-steps li {
  position: relative;
  min-width: 0;
  padding: 13px 11px 13px 46px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--card);
  counter-increment: guide-step;
}
.guide-steps li::before {
  content: counter(guide-step);
  position: absolute;
  top: 13px;
  left: 11px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lilac);
  color: #52318a;
  font-weight: 700;
}
.guide-steps h3,.resource-card h3 { margin: 0; font-size: 1.06rem; line-height: 1.13; }
.guide-steps p,.resource-card p { margin: 5px 0 0; color: var(--muted); font-size: .95rem; }
.guide-storyboard { margin-top: 14px; padding: 0 14px; border: 1px solid var(--stroke); border-radius: 16px; background: var(--card); }
.guide-storyboard summary { padding: 12px 0; cursor: pointer; font-weight: 650; }
.guide-storyboard a { display: block; padding-bottom: 12px; text-underline-offset: 4px; }
.guide-storyboard img { display: block; width: 100%; height: auto; margin-bottom: 8px; border-radius: 12px; }
.guide-search { width: min(100%,265px); }
.guide-search label { display: block; font-size: .9rem; margin-bottom: 3px; }
.guide-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #8174a3;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.guide-count { color: var(--muted); }
.resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding-bottom: 52px; }
.resource-card {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 17px;
  background: var(--card);
  text-decoration: none;
}
.resource-card > span { display: grid; place-items: center; height: 42px; border-radius: 12px; background: var(--blue); font-size: 1.2rem; }
.resource-card:hover { border-color: #8478ad; background: #f8f1ff; }
@media (max-width: 820px) {
  .guide-steps,.resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 580px) {
  .guide-header { flex-wrap: wrap; }
  .guide-header nav a { min-height: 36px; font-size: .93rem; }
  .guide-hero,.resource-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .guide-steps { grid-template-columns: 1fr; }
}
