/* Today (student dashboard) */

.week { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.week__day { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.week__dot { width: 30px; height: 30px; border-radius: 50%; background: transparent; border: 1px solid var(--line-strong); }
.week__dot.is-done { background: var(--green); }
.week__dot.is-today { background: var(--peach); }
.week__dot.is-missed { background: var(--sand); }

.today__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
}
.today__book-ar { font-size: 30px; }
.today__book-title { font-size: 28px; line-height: 1.1; }
.today__progress { font-size: 14px; color: var(--text-muted); --row-gap: 12px; flex-wrap: nowrap; }

.today__goal { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.today__goal-min { font-size: 40px; line-height: 1; }
.today__goal-of { font-size: 13px; }
.today__goal-left { font-size: 14px; color: var(--text-body); }
.today__goal-view { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.today__goal-view[hidden], .today__goal-picker[hidden] { display: none; }
.today__goal-change {
  background: none; border: 0; padding: 4px 10px; margin-top: 2px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--clay);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.today__goal-change:hover { color: var(--clay-deep); }
.today__goal.is-picking { border-color: var(--ink); }
.today__goal-picker { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.today__goal-cancel { align-self: center; padding: 8px; font-size: 13px; color: var(--text-muted); text-decoration: underline; }

/* After the first minutes: "Nice — 6 minutes today." asks for a goal, once. */
.today__goal-ask {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1.5px solid var(--peach);
  padding: 22px 64px 22px 24px;
}
.ring--sm { width: 60px; height: 60px; }
.ring--sm .ring__inner { width: 46px; height: 46px; font-size: 22px; }
.today__goal-ask-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.today__goal-ask-title { margin: 0; font-weight: 400; font-size: 30px; line-height: 1.1; }
.today__goal-ask-lead { margin: 0; font-size: 15px; color: var(--text-body); }
.today__goal-ask-options { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.today__goal-ask-skip { min-height: 44px; padding: 0 8px; font-size: 14px; color: var(--text-muted); text-decoration: underline; }
.today__goal-ask-close-form { position: absolute; top: 10px; right: 10px; }
.today__goal-ask-close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: none;
  color: var(--text-muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.today__goal-ask-close:hover { background: var(--sand-hover); color: var(--ink); }

/* "Goal set: 15 min a day" */
.today__goal-set {
  display: flex; align-items: center; gap: 14px;
  background: var(--green-soft); border-radius: var(--radius-card); padding: 16px 12px 16px 20px;
  transition: opacity .4s ease;
}
.today__goal-set.is-fading { opacity: 0; }
.today__goal-set-mark {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); color: var(--paper); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.today__goal-set-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--green); }
.today__goal-set-text strong { font-size: 17px; color: var(--ink); }
.today__goal-set-text a { color: var(--green); font-weight: 600; text-decoration: underline; }
.today__goal-set-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--green); font-size: 22px; flex-shrink: 0; cursor: pointer; }

.today__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
.today__tile { display: flex; flex-direction: column; gap: 8px; }
.today__tile-ar { font-size: 30px; align-self: flex-end; }
.today__tile-title { font-size: 16px; font-weight: 600; }
.today__tile-sub { font-size: 14px; }
.card--clay .today__tile-sub { opacity: .9; }
.today__speak .today__tile-sub { color: #3A2A1F; }
.today__due { font-size: 48px; line-height: 1; }

.today__word .today__tile-sub { opacity: .9; }
.today__word .today__tile-sub { line-height: 1.7; }
.today__word .today__tile-sub .ar { font-size: 1.25em; line-height: 1; unicode-bidi: isolate; } /* Arabic in the note, sized to sit with the English */
.eyebrow--on-green { color: var(--paper); opacity: .85; letter-spacing: 1.5px; font-size: 13px; }
.today__play { background: var(--paper); color: var(--green); }
.today__play:hover { background: var(--green-soft); color: var(--green); }
.today__word-ar { font-size: 38px; }
.today__word-link { align-self: flex-start; margin-top: auto; color: var(--paper); font-size: 14px; font-weight: 600; text-decoration: underline; }
.today__word-link:hover { color: var(--peach); }

/* Recommended next (ReadingRecommender) and the new words of the top pick */
.today__next {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
}
.today__next > :only-child { grid-column: 1 / -1; }
.today__picks-title, .today__preteach .eyebrow { margin: 0; }
.today__picks-more { font-size: 14px; font-weight: 600; }
.today__pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}
.today__pick {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
}
.today__pick:hover { border-color: var(--line-strong); background: var(--sand-hover); color: var(--text); text-decoration: none; }
.today__pick-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.today__pick-ar { font-size: 22px; align-self: flex-end; }
.today__pick-title { font-size: 19px; line-height: 1.2; }
.today__pick-reason { margin-top: auto; font-size: 13px; color: var(--text-body); }

.today__preteach-for { margin: 0; font-size: 14px; color: var(--text-muted); }
.today__preteach-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.today__preteach-word { display: flex; align-items: center; gap: 10px; }
.today__preteach-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.today__preteach-ar { font-size: 22px; line-height: 1.3; }
.today__preteach-en { font-size: 13px; color: var(--text-body); overflow-wrap: anywhere; }
.today__preteach-saved { font-size: 12px; color: var(--green); font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .today__top, .today__next { grid-template-columns: 1fr; }
  /* Phones: Genius, Continue reading, the news (news.css), then the goal */
  .today__top { display: contents; }
  .today__top > .today__continue { order: 1; }
  .today__top ~ .today__news { order: 2; }
  .today__top > :not(.today__continue) { order: 3; }
  .today__top ~ :not(.today__news) { order: 4; }
  /* The goal comes first on phones, the ring beside its text. */
  .today__goal { order: -1; align-items: stretch; text-align: left; }
  .today__goal-view { flex-direction: row; gap: 16px; }
  .today__goal .ring { width: 112px; height: 112px; }
  .today__goal .ring__inner { width: 92px; height: 92px; }
  .today__goal-picker .goal-options--rows { display: grid; grid-template-columns: 1fr 1fr; }
  .today__goal-cancel { align-self: flex-start; min-height: 44px; }
  .today__goal-ask { flex-direction: column; gap: 10px; padding: 18px; }
  .today__goal-ask .ring--sm { display: none; }
  .today__goal-ask-title { font-size: 26px; margin-right: 44px; }
  .today__goal-ask-options { display: grid; grid-template-columns: 1fr 1fr; }
  .today__goal-ask-skip { grid-column: 1 / -1; justify-self: start; padding: 0; }
  .today__goal-ask-close-form { top: 6px; right: 6px; }
}

/* Talk with Genius: the AI conversation tutor, with the last conversation to pick up */
.today-genius {
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  box-shadow: 0 24px 48px -28px rgba(28, 35, 33, .55);
  text-decoration: none;
}
.today-genius:hover { background: color-mix(in srgb, var(--ink) 92%, white); color: var(--paper); text-decoration: none; }
.today-genius__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.today-genius__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.today-genius__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.today-genius__icon .icon { width: 26px; height: 26px; }
.today-genius__titles { display: flex; flex-direction: column; gap: 2px; }
.today-genius__kicker { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--peach); font-weight: 700; }
.today-genius__title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.today-genius__title { font-family: var(--font-serif); font-size: clamp(30px, 3.4vw, 40px); line-height: 1; }
.today-genius__ar { font-size: 30px; line-height: 1.2; color: var(--peach); }
.today-genius__text { font-size: 15px; line-height: 1.5; color: var(--text-on-dark-muted); max-width: 520px; }
.today-genius__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.today-genius__last { background: var(--ink-raised); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.today-genius__last-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.today-genius__last-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-on-dark-muted); font-weight: 700; }
.today-genius__last-topic { font-size: 17px; font-weight: 600; }
.today-genius__last-ar { font-size: 26px; color: var(--peach); }
.today-genius__bar { height: 6px; background: var(--ink-line); }
.today-genius__bar .progress__bar { background: var(--peach); }
.today-genius__last-sub { font-size: 13px; color: var(--text-on-dark-muted); }
.today-genius__cta {
  align-self: flex-start;
  background: var(--peach);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
}
.today__invite { margin: 0; font-size: 14px; color: var(--text-muted); text-align: center; }
.today__invite a { font-weight: 600; color: var(--clay); }

/* A milestone to celebrate (Phase E). */
.today__milestone { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 22px 26px; margin-bottom: 20px; }
.today__milestone-text { display: flex; flex-direction: column; gap: 6px; }
.today__milestone-title { margin: 0; font-size: 17px; font-weight: 500; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.today__milestone-figure { font-size: 44px; line-height: 1; color: var(--peach); font-weight: 400; }
.today__milestone-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: inherit; opacity: .7; font-size: 20px; cursor: pointer; }
.today__milestone-form, .today__milestone-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.today__milestone-name { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.today__milestone-share code { font-size: 13px; overflow-wrap: anywhere; }
.today__milestone-stop { color: inherit; font-size: 13px; text-decoration: underline; }

/* A shared milestone's public page. */
.milestone-page { max-width: 760px; margin: 0 auto; padding: 64px 20px 80px; display: flex; flex-direction: column; gap: 32px; }
.milestone-page__card { padding: 48px 44px; border-radius: var(--radius-lg, 24px); background: var(--ink); color: var(--paper); display: flex; flex-direction: column; gap: 18px; }
.milestone-page__who { color: var(--peach); }
.milestone-page__title { margin: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 400; }
.milestone-page__figure { font-size: clamp(72px, 16vw, 140px); line-height: .95; color: var(--peach); }
.milestone-page__caption { font-size: clamp(20px, 4vw, 28px); }
.milestone-page__cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; font-size: 17px; }
.milestone-page__cta p { margin: 0; }
