/* Diary 03 for teachers: post once. Sky paper torn over the desk above. Three short steps on the left; on the right,
   Selvi Miss beside her one post, which fans out into a copy for every family when it is seen (03-teachers.js). */

.dt { overflow-x: clip; }
.dt__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.dt__lead { margin-top: clamp(12px, 1.4vw, 18px); max-width: 32em; font-size: var(--t-lead); line-height: 1.55; color: var(--ink); }
.dt__steps { margin-top: clamp(22px, 2.4vw, 30px); display: grid; gap: 14px; }
.dt__steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; font-size: var(--t-body); line-height: 1.45; color: var(--ink-2); }
.dt__steps b { color: var(--ink); font-weight: 800; }
.dt__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: var(--ink); font: 800 19px/1 var(--font-display);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 1px rgba(90, 42, 0, .3); }
.dt__btn { margin-top: clamp(24px, 2.6vw, 34px); position: relative; }

.dt__art { position: relative; display: flex; align-items: flex-end; gap: clamp(10px, 2vw, 26px); padding: 24px 24px 0 0; }
.dt__teacher { flex: none; width: clamp(90px, 8.5vw, 119px); height: auto; margin-bottom: -6px; }
/* post once: one note, and behind it the copies that every family gets */
.diary__fan { position: relative; flex: 1; min-width: 0; margin: 0 18px 8px 0; }
.diary__post { position: relative; z-index: 2; --pk-fs: 17px; rotate: -1deg; }
.diary__post .pk-post__reach, .diary__post .pk-meta { color: var(--ink-2); }
.diary__copy { position: absolute; inset: 6px 4px -2px; border-radius: var(--pk-cut); background: #FFFDF8; transform-origin: 30% 110%;
  box-shadow: inset 0 0 0 1px rgba(90, 42, 0, .06), 0 1px 1px rgba(90, 42, 0, .2), 0 10px 16px -12px rgba(90, 42, 0, .45); }
.diary__copy:nth-child(1) { rotate: 9deg; translate: 24px 4px; background: var(--pink); }
.diary__copy:nth-child(2) { rotate: 6deg; translate: 16px 2px; background: var(--lemon); }
.diary__copy:nth-child(3) { rotate: 3.5deg; translate: 9px 1px; background: var(--mint); }
.diary__copy:nth-child(4) { rotate: 1.5deg; translate: 4px 0; background: #FFFDF8; }

@media (max-width: 899.98px) {
  .dt__grid { grid-template-columns: minmax(0, 1fr); }
  .dt__art { max-width: 560px; }
}
@media (max-width: 479.98px) {
  .dt__teacher { width: 75px; }
  .diary__post { --pk-fs: 15.5px; position: relative; }
  .diary__post .pk-head .tag { position: absolute; top: .8em; right: .8em; }
  .diary__fan { margin-right: 22px; }
}

@keyframes diary-fan { from { rotate: 0deg; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.rm) .dt.is-live .diary__fan:not(.is-in) .diary__copy { rotate: 0deg; translate: 0 0; }
  html.js:not(.rm) .dt.is-live .diary__fan.is-in .diary__copy { animation: diary-fan 500ms steps(6, end) both; }
  html.js:not(.rm) .dt.is-live .diary__fan.is-in .diary__copy:nth-child(2) { animation-delay: 83ms; }
  html.js:not(.rm) .dt.is-live .diary__fan.is-in .diary__copy:nth-child(3) { animation-delay: 166ms; }
  html.js:not(.rm) .dt.is-live .diary__fan.is-in .diary__copy:nth-child(4) { animation-delay: 249ms; }
}
@media (forced-colors: active) {
  .diary__copy { border: 1px solid CanvasText; }
}
.dt__teacher { transform-origin: 50% 100%; --idle-a: 1.6deg; }
