/* A paper planner for the weekly schedule. Scoped to this homepage section. */
body.hp-modern .service-times.hp-weekly {
  --planner-ink: #25433d;
  --planner-paper: #fffdf3;
  --planner-card: #fffef8;
  --planner-muted: #51675e;
  --planner-rule: rgba(80,124,140,.13);
  --planner-margin: rgba(216,99,86,.35);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  background: #eff3e9;
}
body.hp-modern .service-times.hp-weekly .hp-planner-paper {
  position: relative; isolation: isolate; max-width: 1160px; padding: 3rem 2.2rem 2.5rem 4.5rem;
  border: 2px solid var(--planner-ink); border-radius: 12px 26px 26px 12px;
  background-color: var(--planner-paper);
  background-image: linear-gradient(90deg, transparent 48px, var(--planner-margin) 48px, var(--planner-margin) 50px, transparent 50px), repeating-linear-gradient(0deg, transparent 0, transparent 31px, var(--planner-rule) 31px, var(--planner-rule) 32px);
  box-shadow: 7px 8px 0 var(--planner-ink);
}
body.hp-modern .service-times.hp-weekly .hp-planner-paper::before {
  content: ""; position: absolute; top: 24px; bottom: 24px; left: 12px; width: 24px;
  background: radial-gradient(ellipse at center, var(--planner-paper) 0 4px, var(--planner-ink) 4.5px 6px, transparent 6.5px) center top / 24px 42px repeat-y;
  pointer-events: none;
}
body.hp-modern .service-times.hp-weekly .hp-section-heading { position: relative; margin-bottom: 2.8rem; }
body.hp-modern .service-times.hp-weekly .section-label { color: #523e1f; background: #ffe49b; border: 2px solid var(--planner-ink); border-radius: 7px; box-shadow: 3px 3px 0 var(--planner-ink); rotate: -2deg; }
body.hp-modern .service-times.hp-weekly .section-title { color: var(--planner-ink); }
body.hp-modern .service-times.hp-weekly .hp-section-heading > p { color: var(--planner-muted); max-width: 500px; margin-inline: auto; }
body.hp-modern .service-times.hp-weekly .hp-planner-doodle { position: absolute; top: 18px; right: 14px; width: 68px; height: 68px; color: #b75d3d; opacity: .8; pointer-events: none; }
body.hp-modern .service-times.hp-weekly .service-times-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
body.hp-modern .service-times.hp-weekly .service-card {
  --planner-tab: #ffd5bd;
  grid-column: span 2; display: flex; align-items: flex-start; min-width: 0;
  padding: 0 1.25rem 1.25rem; border: 2px solid var(--planner-ink); border-radius: 16px 16px 20px 16px;
  background: var(--planner-card); box-shadow: 4px 5px 0 var(--planner-ink);
  overflow: visible; rotate: -.7deg; transition: translate .2s, box-shadow .2s;
}
body.hp-modern .service-times.hp-weekly .service-card:nth-child(2) { --planner-tab: #cfe3bb; rotate: .8deg; }
body.hp-modern .service-times.hp-weekly .service-card:nth-child(3) { --planner-tab: #dcd6f5; rotate: -.6deg; }
body.hp-modern .service-times.hp-weekly .service-card:nth-child(4) { --planner-tab: #c8e8ef; rotate: .6deg; }
body.hp-modern .service-times.hp-weekly .service-card:nth-child(5) { --planner-tab: #ffe49b; rotate: -.4deg; }
body.hp-modern .service-times.hp-weekly .service-card:nth-last-child(-n+2) { grid-column: span 3; }
body.hp-modern .service-times.hp-weekly .service-card::before {
  content: ""; display: block; position: absolute; z-index: 1; top: -10px; left: 20px; right: auto; width: 7px; height: 18px;
  border: 2px solid var(--planner-ink); border-radius: 5px; background: var(--planner-paper); box-shadow: 22px 0 0 -2px var(--planner-paper), 22px 0 0 0 var(--planner-ink); transform: none;
}
body.hp-modern .service-times.hp-weekly .service-card:hover { translate: 0 -3px; transform: none; border-color: var(--planner-ink); box-shadow: 5px 8px 0 var(--planner-ink); }
body.hp-modern .service-times.hp-weekly .hp-planner-day {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem; align-self: stretch;
  margin: 0 -1.25rem 1rem; padding: 1.2rem 1.25rem .85rem; border-radius: 14px 14px 0 0; border-bottom: 2px solid var(--planner-ink);
  background: var(--planner-tab); color: #25433d; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em;
}
body.hp-modern .service-times.hp-weekly .hp-planner-day i { font-size: 1rem; opacity: .75; }
body.hp-modern .service-times.hp-weekly .service-icon { width: 44px; height: 44px; margin-bottom: .8rem; border: 2px solid var(--planner-ink); border-radius: 14px 10px 16px 10px; background: var(--planner-tab); color: #25433d; box-shadow: 2px 2px 0 var(--planner-ink); rotate: -5deg; }
body.hp-modern .service-times.hp-weekly .service-card h3 { min-height: 0; margin-bottom: 1rem; color: var(--planner-ink); font-size: 1.35rem; }
body.hp-modern .service-times.hp-weekly .service-time { min-height: 0; margin-top: auto; margin-bottom: 1rem; padding: .7rem .8rem; border: 1px dashed var(--planner-ink); border-radius: 8px; color: var(--planner-ink); background: transparent; font-size: .95rem; }
body.hp-modern .service-times.hp-weekly .service-desc { margin: 0; color: var(--planner-muted); font-size: .85rem; }
body.hp-modern .service-times.hp-weekly .service-desc i { color: var(--planner-muted); }
html[data-theme="dark"] body.hp-modern .service-times.hp-weekly { --planner-ink: #d2e1cf; --planner-paper: #21392e; --planner-card: #2a4437; --planner-muted: #c2d2c0; --planner-rule: rgba(181,213,184,.12); --planner-margin: rgba(244,169,140,.38); background: #121e19; }
html[data-theme="dark"] body.hp-modern .service-times.hp-weekly .hp-planner-doodle { color: #ffc29e; }
@media (max-width: 900px) {
  body.hp-modern .service-times.hp-weekly .hp-planner-paper { padding-right: 1.5rem; }
  body.hp-modern .service-times.hp-weekly .service-times-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.hp-modern .service-times.hp-weekly .service-card, body.hp-modern .service-times.hp-weekly .service-card:nth-last-child(-n+2) { grid-column: span 1; }
  body.hp-modern .service-times.hp-weekly .service-card:last-child { grid-column: 1 / -1; }
  body.hp-modern .service-times.hp-weekly .hp-planner-doodle { width: 42px; height: 42px; top: 8px; right: 8px; }
}
@media (max-width: 640px) {
  body.hp-modern .service-times.hp-weekly { padding-inline: 1rem; }
  body.hp-modern .service-times.hp-weekly .hp-planner-paper { padding: 2.3rem 1rem 1.5rem 2.2rem; background-image: linear-gradient(90deg, transparent 23px, var(--planner-margin) 23px, var(--planner-margin) 25px, transparent 25px), repeating-linear-gradient(0deg, transparent 0, transparent 31px, var(--planner-rule) 31px, var(--planner-rule) 32px); box-shadow: 4px 5px 0 var(--planner-ink); }
  body.hp-modern .service-times.hp-weekly .hp-planner-paper::before { left: 1px; width: 20px; background-size: 20px 42px; }
  body.hp-modern .service-times.hp-weekly .service-card, body.hp-modern .service-times.hp-weekly .service-card:nth-last-child(-n+2) { grid-column: 1 / -1; rotate: none; }
  body.hp-modern .service-times.hp-weekly .service-times-grid { gap: 1.5rem; }
  body.hp-modern .service-times.hp-weekly .hp-section-heading { margin-bottom: 2rem; }
  body.hp-modern .service-times.hp-weekly .section-label { font-size: .63rem; }
  body.hp-modern .service-times.hp-weekly .hp-planner-doodle { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { body.hp-modern .service-times.hp-weekly .service-card { transition: none; } body.hp-modern .service-times.hp-weekly .service-card:hover { translate: none; } }
