/* Lush Lane Creators — /when-to-post (recipe R9 · Clean Blue)
   Only this page loads this file, so the homepage cannot change. Everything is prefixed wp-.
   The shapes follow the content: the short answer sits in one card beside the title, the three kinds of post are
   three cards, the example week is a seven-day board (rows on phones, columns from 1024px), the batch checklist and
   the team's work are plain lists. Motion: only the days of the week come in, once, in order (main.js .reveal). */

/* ---------- Intro: title beside the short answer ---------- */
.wp-intro { position: relative; padding: 40px 0 56px; overflow: hidden; isolation: isolate; }
.wp-intro::before {
  /* the recipe's dotted grid, fading out toward the bottom left */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 560px;
  z-index: -1;
  background-image: radial-gradient(rgba(31, 91, 255, .2) 1.1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 80% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 80% 20%, #000 10%, transparent 75%);
  opacity: .6;
  pointer-events: none;
}
.wp-intro__grid { display: grid; gap: 32px; }
.wp-eyebrow { color: var(--blue-700); font: 600 12px/1.5 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
.wp-intro h1 {
  margin-top: 16px;
  max-width: 13em;
  font-size: clamp(2.3rem, 10vw, 4rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.wp-accent { color: var(--blue); }
.wp-lead { margin-top: 20px; max-width: 38rem; color: var(--muted); font-size: 1.06rem; line-height: 1.62; }
.wp-updated { margin-top: 16px; color: var(--muted); font: 600 12px/1.5 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
.wp-answer {
  align-self: end;
  padding: 22px 22px 24px;
  border: 1px solid var(--blue-line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.wp-answer__label { color: var(--blue); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.wp-answer p:not(.wp-answer__label) { margin-top: 8px; font-family: var(--font-display); font-size: 1.16rem; font-weight: 500; line-height: 1.42; letter-spacing: -.01em; }
@media (min-width: 900px) {
  .wp-intro { padding: 80px 0 88px; }
  .wp-intro__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 56px; align-items: end; }
  .wp-lead { font-size: 1.14rem; }
  .wp-answer { padding: 28px 28px 30px; }
}

/* ---------- Prose sections: one readable column ---------- */
.wp-prose { max-width: 760px; }
.wp-prose h2 { font-size: clamp(2rem, 8.4vw, 3.1rem); line-height: 1.07; letter-spacing: -.035em; }
.wp-prose > p { margin-top: 14px; color: var(--muted); font-size: 1.03rem; }
.wp-prose h3 { margin-top: 36px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.wp-steps { margin-top: 16px; counter-reset: wp-step; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.wp-steps li { position: relative; padding: 18px 20px 18px 64px; color: var(--muted); font-size: .97rem; line-height: 1.55; counter-increment: wp-step; }
.wp-steps li + li { border-top: 1px solid var(--border); }
.wp-steps li::before {
  content: counter(wp-step);
  position: absolute;
  left: 20px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: 700 .95rem/1 var(--font-display);
}
.wp-steps strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
@media (min-width: 900px) { .wp-steps li { padding: 20px 26px 20px 72px; } .wp-steps li::before { left: 26px; top: 19px; } }

/* ---------- How often: three cards ---------- */
.wp-kinds { display: grid; gap: 18px; }
.wp-kind { padding: 22px 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.wp-kind__tag { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-700); font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.wp-kind h3 { margin-top: 14px; font-size: 1.24rem; font-weight: 600; letter-spacing: -.02em; }
.wp-kind p:not(.wp-kind__tag) { margin-top: 8px; color: var(--muted); font-size: .96rem; line-height: 1.58; }
@media (min-width: 900px) {
  .wp-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .wp-kind { padding: 28px 26px 30px; }
}

/* ---------- The example week: a seven-day board ---------- */
.wp-week { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.wp-week__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 20px; background: var(--bg-3); border-bottom: 1px solid var(--border); font: 600 .78rem/1.4 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wp-week__note { padding: 3px 10px; border: 1px dashed var(--border-2); border-radius: 999px; background: #fff; letter-spacing: .06em; }
.wp-week__days { display: grid; }
.wp-day { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 16px 20px; }
.wp-day + .wp-day { border-top: 1px solid var(--border); }
.wp-day__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; color: var(--blue-700); }
.wp-day ul { display: grid; gap: 10px; }
.wp-day li { font-size: .93rem; line-height: 1.45; color: var(--text); }
.wp-chip { display: block; width: max-content; margin-bottom: 3px; padding: 2px 9px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.wp-chip--soft { background: var(--blue-soft); color: var(--blue-700); }
.wp-chip--line { background: #fff; color: var(--blue-700); box-shadow: inset 0 0 0 1px var(--blue-line); }
.wp-chip--shoot { background: var(--text); }
.wp-day--shoot { background: var(--blue-soft); }
.wp-day--rest { background: var(--bg-2); }
@media (min-width: 1024px) {
  .wp-week__cap { padding: 14px 24px; }
  .wp-week__days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .wp-day { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; padding: 20px 16px 24px; }
  .wp-day + .wp-day { border-top: 0; border-left: 1px solid var(--border); }
  .wp-day ul { gap: 14px; }
}
/* the days come in once, in order (main.js sets --i and .is-visible) */
.js .wp-week .reveal { opacity: 0; transform: translateY(10px); }
.js .wp-week .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
@media (prefers-reduced-motion: reduce) {
  .js .wp-week .reveal { transform: none; }
  .js .wp-week .reveal.is-visible { transition: opacity 240ms ease; transition-delay: 0ms; }
}
.wp-note { margin: 18px auto 0; max-width: 40rem; color: var(--muted); font-size: .94rem; text-align: center; }
.wp-note--left { margin-inline: 0; max-width: none; text-align: left; }

/* ---------- Batching: copy beside a checklist ---------- */
.wp-batch { display: grid; gap: 32px; }
.wp-batch__copy h2 { font-size: clamp(2rem, 8.4vw, 3.1rem); line-height: 1.07; letter-spacing: -.035em; }
.wp-batch__copy p { margin-top: 14px; max-width: 36rem; color: var(--muted); font-size: 1.03rem; }
.wp-batch__list { padding: 8px 22px; border: 1px solid var(--blue-line); border-top: 3px solid var(--blue); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.wp-batch__list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 14px 0; line-height: 1.45; }
.wp-batch__list li + li { border-top: 1px dashed var(--border-2); }
.wp-batch__list .icon { width: 22px; height: 22px; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--blue); color: #fff; stroke-width: 3; }
@media (min-width: 900px) {
  .wp-batch { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
  .wp-batch__list { padding: 12px 30px; }
}

/* ---------- The team's part: four numbered blocks ---------- */
.wp-team { display: grid; gap: 16px; counter-reset: wp-team; }
.wp-team li { position: relative; padding: 20px 20px 22px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); counter-increment: wp-team; }
.wp-team li::before { content: "0" counter(wp-team); display: block; color: var(--blue); font: 700 .86rem/1 var(--font-display); letter-spacing: .06em; }
.wp-team h3 { margin-top: 10px; font-size: 1.16rem; font-weight: 600; letter-spacing: -.02em; }
.wp-team p { margin-top: 6px; color: var(--muted); font-size: .95rem; line-height: 1.55; }
@media (min-width: 760px) { .wp-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wp-team { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .wp-team li { padding: 24px 22px 26px; } }
.wp-link { color: var(--blue-700); font-weight: 500; text-decoration: underline; text-decoration-color: var(--blue-line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .wp-link:hover { text-decoration-color: var(--blue); } }

/* ---------- Closer: the homepage's panel, with room above it ---------- */
.wp-closer { padding-top: 80px; }
@media (min-width: 1024px) { .wp-closer { padding-top: 112px; } }

/* the footer's legal line carries the page links here */
.footer__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-2); }
.footer__legal a:hover { color: var(--blue); }

/* ---------- Time-zone planner (planner.js), inside "Is there a best time?" ----------
   A white card like the steps list, as wide as the guide text; your zone beside the fan rows from 640px. The strip is
   24 bars, one per hour of the creator's weekday; the tallest are blue. The windows table stacks on phones. */
.wp-plan { margin-top: 40px; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.wp-prose .wp-plan__title { font-size: clamp(1.5rem, 4.6vw, 2.1rem); line-height: 1.12; letter-spacing: -.03em; }
.wp-plan__intro { margin-top: 10px; color: var(--muted); font-size: .98rem; line-height: 1.6; }
.wp-plan__nojs { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--blue-soft); color: var(--text); font-size: .95rem; }
.js .wp-plan__nojs { display: none; }
.wp-plan__form { display: grid; gap: 18px; margin-top: 22px; }
.wp-plan__fans { gap: 10px; }
.wp-plan__row { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 8px; }
.wp-plan__row select, .wp-plan__pct input {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--border-2); border-radius: 12px; background-color: var(--bg-2);
}
.wp-plan__row select:focus, .wp-plan__pct input:focus { outline: none; border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(31, 91, 255, .15); }
.wp-plan__pct { position: relative; display: block; }
.wp-plan__pct input { padding-right: 28px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.wp-plan__pct input::-webkit-inner-spin-button, .wp-plan__pct input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wp-plan__pct span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.wp-plan__hint { color: var(--dim); font-size: .85rem; }
.wp-plan__out { margin-top: 28px; }
.wp-prose .wp-plan__sub { margin-top: 0; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.wp-plan__sub + .wp-strip, .wp-plan__sub + .wp-plan__tablewrap { margin-top: 12px; }
.wp-plan__summary { margin: 14px 0 26px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--blue-soft); color: var(--text); font-size: .97rem; line-height: 1.5; }
.wp-plan__summary:empty { display: none; }
.wp-plan__summary strong { color: var(--blue-700); }
.wp-plan__foot { margin-top: 14px; color: var(--muted); font-size: .9rem; }
.wp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wp-strip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; align-items: end; height: 132px; padding: 0 0 22px; border-bottom: 1px solid var(--border); list-style: none; }
.wp-strip__h { position: relative; height: 110px; display: flex; align-items: flex-end; }
.wp-strip__bar { display: block; width: 100%; height: calc(var(--v) * 1%); min-height: 3px; border-radius: 4px 4px 1px 1px; background: var(--blue-line); transition: height 220ms ease; }
.wp-strip__h.is-best .wp-strip__bar { background: var(--grad); }
.wp-strip__t { position: absolute; left: 0; top: calc(100% + 6px); white-space: nowrap; color: var(--dim); font-size: .62rem; }
@media (prefers-reduced-motion: reduce) { .wp-strip__bar { transition: none; } }

.wp-plan__tablewrap { overflow-x: clip; }
.wp-plan__table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.wp-plan__table th, .wp-plan__table td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.wp-plan__table thead th { color: var(--muted); font-size: .8rem; font-weight: 600; }
.wp-share { margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--blue-soft); color: var(--blue-700); font-size: .75rem; }
.wp-plan__table tbody th { font-weight: 600; }
.wp-plan__table tbody th span { display: block; color: var(--dim); font-size: .8rem; font-weight: 400; }
.wp-plan__table td { font-variant-numeric: tabular-nums; }
.wp-plan__table tbody th { width: 26%; }
@media (max-width: 699px) {
  .wp-plan__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wp-plan__table, .wp-plan__table tbody, .wp-plan__table tr { display: block; }
  .wp-plan__table tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .wp-plan__table th, .wp-plan__table td { display: block; padding: 4px 0; border: 0; }
  .wp-plan__table td { white-space: normal; }
  .wp-plan__table td::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
}
@media (min-width: 640px) {
  .wp-plan__form { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: 20px; }
}
