/* AutoCrit Winter Writerland – gift content inside the pop-up (loads after calendar.css) */

#ww-cal-modal .ww-dialog {
  max-width: 720px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow: hidden; display: flex; flex-direction: column;
}
#ww-cal-modal .ww-band { height: 156px; flex-shrink: 0; }
#ww-cal-modal .ww-band-text { top: 20px; left: 32px; }
#ww-cal-modal .ww-bigday { font-size: 56px; line-height: 60px; }
#ww-cal-modal .ww-halo { right: 72px; top: 22px; width: 170px; height: 170px; }
#ww-cal-modal .ww-art { right: 50px; top: 0; width: 196px; height: 196px; }
#ww-cal-modal .ww-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 28px 40px 24px; gap: 0; outline: none;
}
#ww-cal-modal .ww-back { margin-top: 20px; flex-shrink: 0; }

/* ---------- gift typography ---------- */
#ww-cal-modal .ww-gift-content { font-size: 16px; line-height: 1.65; color: #2B3446; }
#ww-cal-modal .ww-gift-content > :first-child { margin-top: 0; }
#ww-cal-modal .ww-gift-content p { margin: 0 0 14px; }
#ww-cal-modal .ww-gift-content strong { color: #182030; font-weight: 600; }
#ww-cal-modal .ww-gift-content a { color: #2F5DA8; text-decoration: underline; text-underline-offset: 2px; }
#ww-cal-modal .ww-gift-content a:hover { color: #182030; }
#ww-cal-modal .ww-kind {
  margin: 0 0 4px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #545B6B;
}
#ww-cal-modal .ww-gift-title {
  margin: 0 0 16px; font-family: var(--ww-sans); font-size: 28px; line-height: 36px; font-weight: 700; color: #182030;
}
#ww-cal-modal .ww-gift-content h3 {
  margin: 30px 0 10px; font-family: var(--ww-sans); font-size: 19px; line-height: 28px; font-weight: 700; color: #182030;
}
#ww-cal-modal .ww-gift-content h4 {
  margin: 22px 0 8px; font-family: var(--ww-sans); font-size: 16px; line-height: 24px; font-weight: 700; color: #182030;
}
#ww-cal-modal .ww-gift-content ul,
#ww-cal-modal .ww-gift-content ol { margin: 0 0 16px; padding-left: 24px; }
#ww-cal-modal .ww-gift-content li { margin: 0; padding-left: 2px; }
#ww-cal-modal .ww-gift-content li + li { margin-top: 8px; }
#ww-cal-modal .ww-gift-content li > ul,
#ww-cal-modal .ww-gift-content li > ol { margin: 8px 0 0; }
#ww-cal-modal .ww-gift-content li::marker { color: #2F5DA8; font-weight: 700; }
#ww-cal-modal .ww-gift-content .ww-steps > li + li { margin-top: 12px; }
#ww-cal-modal .ww-gift-content .ww-eg { margin: 4px 0 0; color: #545B6B; font-style: italic; }

/* fill-in-the-blank and "our take" panels */
#ww-cal-modal .ww-fill {
  margin: 0 0 16px; padding: 16px 18px; border-radius: 12px; background: #EEF4FA; color: #182030;
  font-size: 16px; line-height: 1.6;
}
#ww-cal-modal .ww-fill-label { font-weight: 700; color: #234A8A; margin-right: 4px; }

/* video and YouTube */
#ww-cal-modal .ww-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 18px; border-radius: 12px; overflow: hidden;
  background: #182030; box-shadow: 0 8px 24px rgba(24, 32, 48, .18);
}
#ww-cal-modal .ww-video video,
#ww-cal-modal .ww-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #182030; }

/* table (scrolls sideways on narrow screens) */
#ww-cal-modal .ww-table { margin: 0 0 18px; overflow-x: auto; border: 1px solid #DCE3EE; border-radius: 12px; }
#ww-cal-modal .ww-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
#ww-cal-modal .ww-table th,
#ww-cal-modal .ww-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #E5EBF3; }
#ww-cal-modal .ww-table th { background: #EEF4FA; color: #182030; font-weight: 700; font-size: 13px; }
#ww-cal-modal .ww-table tr:last-child td { border-bottom: 0; }
#ww-cal-modal .ww-table .ww-row-mid td { background: #FFF6F6; color: #8E1014; }

/* lesson notes (expandable) */
#ww-cal-modal .ww-notes { margin: 8px 0 18px; border: 1px solid #DCE3EE; border-radius: 12px; background: #FAFCFE; }
#ww-cal-modal .ww-notes summary {
  min-height: 48px; padding: 12px 18px; display: flex; align-items: center; cursor: pointer; list-style: none;
  font-weight: 600; color: #2F5DA8;
}
#ww-cal-modal .ww-notes summary::-webkit-details-marker { display: none; }
#ww-cal-modal .ww-notes summary::before { content: "+"; display: inline-block; width: 20px; font-weight: 700; }
#ww-cal-modal .ww-notes[open] summary::before { content: "–"; }
#ww-cal-modal .ww-notes summary:focus-visible { outline: 3px solid #2F5DA8; outline-offset: 2px; border-radius: 12px; }
#ww-cal-modal .ww-notes-body { padding: 4px 18px 8px; border-top: 1px solid #E5EBF3; }

/* checklists */
#ww-cal-modal .ww-gift-content ul.ww-checks { list-style: none; padding-left: 0; }
#ww-cal-modal .ww-checks label { display: flex; align-items: flex-start; gap: 12px; min-height: 32px; cursor: pointer; }
#ww-cal-modal .ww-checks input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: #C4161C; cursor: pointer; }

/* permission slips */
#ww-cal-modal .ww-gift-content ul.ww-slips { list-style: none; padding-left: 0; display: grid; gap: 10px; }
#ww-cal-modal .ww-gift-content ul.ww-slips li { margin: 0; padding: 14px 16px; border: 1px dashed #B9CBE3; border-radius: 12px; background: #FAFCFE; }

/* famous first lines */
#ww-cal-modal .ww-gift-content ol.ww-lines > li + li { margin-top: 20px; }
#ww-cal-modal .ww-line { margin: 0 0 2px !important; font-size: 18px; line-height: 1.5; font-style: italic; color: #182030; }
#ww-cal-modal .ww-line-src { margin: 0 0 10px !important; font-size: 13px; color: #545B6B; }

/* closing quote */
#ww-cal-modal .ww-quote { margin: 30px 0 12px; padding: 22px 24px; border-radius: 14px; background: #182030; color: #FEFFFE; }
#ww-cal-modal .ww-quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; font-style: italic; }
#ww-cal-modal .ww-quote figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: #C9D3E6; }
#ww-cal-modal .ww-quote figcaption::before { content: "— "; }
#ww-cal-modal .ww-signoff { color: #545B6B; }

/* opening a door that's still loading */
#ww-cal .ww-tile[aria-busy="true"] { opacity: .6; cursor: progress; }

@media (max-width: 600px) {
  #ww-cal-modal { padding: 8px; }
  #ww-cal-modal .ww-dialog { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  #ww-cal-modal .ww-band { height: 124px; }
  #ww-cal-modal .ww-band-text { left: 20px; top: 16px; }
  #ww-cal-modal .ww-bigday { font-size: 44px; line-height: 48px; }
  #ww-cal-modal .ww-halo { right: 18px; top: 18px; width: 130px; height: 130px; }
  #ww-cal-modal .ww-art { right: 0; top: 0; width: 150px; height: 150px; }
  #ww-cal-modal .ww-body { padding: 22px 20px 18px; }
  #ww-cal-modal .ww-gift-title { font-size: 23px; line-height: 30px; }
  #ww-cal-modal .ww-gift-content { font-size: 15px; }
  #ww-cal-modal .ww-quote { padding: 18px; }
}

/* quote card (downloadable image) */
#ww-cal-modal .ww-card {
  margin: 18px 0 8px; padding: 18px; border: 1px solid #DCE3EE; border-radius: 14px; background: #F4F8FC;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
}
#ww-cal-modal .ww-card img { width: 120px; height: auto; flex-shrink: 0; border-radius: 8px; box-shadow: 0 6px 18px rgba(24, 32, 48, .2); display: block; }
#ww-cal-modal .ww-card-text { flex: 1 1 200px; min-width: 0; }
#ww-cal-modal .ww-card-title { margin: 0 0 12px !important; font-size: 18px; line-height: 26px; font-weight: 700; color: #182030; }
#ww-cal-modal .ww-gift-content a.ww-card-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px;
  background: #C4161C; color: #FEFFFE; font-weight: 600; font-size: 15px; text-decoration: none;
}
#ww-cal-modal .ww-gift-content a.ww-card-btn:hover { background: #A51217; color: #FEFFFE; }
#ww-cal-modal .ww-gift-content a.ww-card-btn:focus-visible { outline: 3px solid #2F5DA8; outline-offset: 2px; }
