/* The teacher and parent app, and the sign-in and invite pages, on top of kit.css. Built for a phone first:
   a slim top bar, one column, tabs at the thumb. The one dark card ("next") is the thing to look at. */
body.app { padding-bottom: 6.5rem; }

#top { background: var(--ink); color: var(--cream); display: flex; align-items: center; gap: 1rem; padding: .6rem max(1rem, (100% - 40rem) / 2); }
#top .brand { display: flex; align-items: center; gap: .5rem; font: 400 1.35rem/1 "Alegreya", Georgia, serif; }
#who { flex: 1; text-align: right; color: #C9D3CF; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 30rem) { #who .hi { display: none; } }
#out { min-height: 2.25rem; background: none; color: var(--cream); border-color: #48626A; font-weight: 500; }
#out:hover { background: var(--ink-2); }

/* tabs: a floating bar at the thumb; the current tab is a lighter pill with a gold dot */
#tabs { position: fixed; z-index: 5; left: 50%; translate: -50% 0; bottom: max(.75rem, env(safe-area-inset-bottom)); width: min(38rem, 100% - 1.5rem); display: flex; gap: .25rem; background: var(--ink); padding: .35rem; border-radius: 1.4rem; box-shadow: 0 1rem 2.5rem -.75rem rgb(15 42 51 / .55); }
#tabs a { flex: 1; position: relative; text-align: center; color: #C9D3CF; text-decoration: none; padding: .75rem .25rem; border-radius: 1.1rem; font-weight: 700; transition: background-color .25s var(--ease), color .25s; }
#tabs a[aria-current] { color: #fff; background: var(--ink-2); }
#tabs a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: .3rem; width: .3rem; height: .3rem; margin-left: -.15rem; border-radius: 50%; background: var(--gold); }

#view { max-width: 40rem; margin: 0 auto; padding: 1.5rem 1rem 2rem; outline: 0; }
.head h1 { font-size: 1.9rem; }
.app #toast { bottom: 6.25rem; }

/* the next class */
.next { background: radial-gradient(120% 90% at 100% 0%, #1B4552, var(--ink) 60%); color: var(--cream); border-radius: 1.4rem; padding: 1.5rem 1.35rem; margin-bottom: 1.5rem; display: grid; gap: .35rem; box-shadow: 0 1.25rem 2.5rem -1.25rem rgb(15 42 51 / .6); scroll-margin-top: 1rem; }
.next .when { color: var(--gold); font-weight: 700; }
.next h2 { font: 400 1.75rem/1.2 "Alegreya", Georgia, serif; color: #fff; }
.next h2.money { font-size: 2.75rem; font-variant-numeric: tabular-nums; }
.next .soon { color: #C9D3CF; margin-bottom: .6rem; }
.next h3 { font-size: 1rem; margin-top: .5rem; }
.next p.good { color: #9FD8B5; }
.next label { color: var(--cream); }
.next input, .next textarea, .next .chips label { color: var(--text); }
.next button:not(.primary) { background: none; color: var(--cream); border-color: #48626A; }
.next .primary, .gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.next .primary:hover, .gold:hover { background: #D6B062; }
.next .btn, .next button { width: 100%; min-height: 3rem; }
.next input, .next textarea { width: 100%; }
.next.quiet { background: var(--cream); color: var(--text); } .next.quiet h2 { color: var(--ink); } .next.quiet .soon { color: var(--soft); margin: 0; }

/* upcoming days: a quiet day label, so the dark card and the groups that need action stay the loudest */
.agenda > li.day-label { padding: 1rem 0 .1rem; border-bottom: 0; font-size: .88rem; font-weight: 700; color: var(--soft); scroll-margin-top: 1rem; }
.group { scroll-margin-top: 1rem; }

/* rows that open */
.fold { flex: 1; min-width: 0; }
.fold summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: ""; margin-left: auto; width: .5rem; height: .5rem; border: solid var(--soft); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -.15rem; transition: rotate .25s var(--ease), translate .25s var(--ease); }
.fold[open] summary::after { rotate: 225deg; translate: 0 .1rem; }
.fold .in { padding: .85rem 0 .35rem; }
.fold .in input, .fold .in textarea { width: 100%; }
.fold.lone { margin: -.5rem 0 1.75rem; } .fold.lone summary { color: var(--lapis); text-decoration: underline; } .fold.lone summary::after { content: none; }
.report { white-space: pre-wrap; color: var(--text); margin-top: .35rem; }

/* free hours */
.days { margin: 1rem 0; }
.day { background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; box-shadow: var(--lift); padding: .9rem 1.1rem; margin-bottom: .6rem; display: grid; gap: .5rem; justify-items: start; }
.day header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.day h3 { font-size: 1.05rem; }
.day .line { flex-wrap: nowrap; width: 100%; gap: .45rem; }
.day .line select { flex: 1; min-width: 0; padding-inline: .5rem; }
.day { grid-template-columns: minmax(0, 1fr); }
.day .line .x { flex: none; width: 2.75rem; padding: 0; font-size: 1.35rem; line-height: 1; }
.day ul { width: 100%; }
.savebar { position: sticky; z-index: 2; bottom: 5.5rem; background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; box-shadow: var(--lift); padding: .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

/* family */
.child { background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; box-shadow: var(--lift); padding: 1.1rem 1.25rem; margin-bottom: .9rem; display: grid; gap: .5rem; }
.child header { display: flex; align-items: center; gap: .85rem; }
.child .avatar { width: 3rem; height: 3rem; font-size: 1.05rem; }
.child h2 { font: 400 1.5rem/1.2 "Alegreya", Georgia, serif; color: var(--ink); }
.cycle { display: grid; gap: .45rem; padding-top: .35rem; }
.meter { height: .6rem; border-radius: 1rem; background: var(--cream); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #2F8F5B); }

/* free hours: each day's time on a 24-hour bar, ticks every 6 hours */
.bar24 { position: relative; width: 100%; height: .7rem; border-radius: 1rem; background: repeating-linear-gradient(90deg, var(--cream) 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); overflow: hidden; }
.bar24 i { position: absolute; top: 0; bottom: 0; border-radius: 1rem; background: var(--green); }

/* sign-in and invite: the paper card sits on Night Ink, under the same double gold rule as the website header */
body.door { display: grid; place-items: center; padding: 1.5rem; background: var(--ink); }
.door main { width: min(26rem, 100%); background: var(--paper); border-radius: 1rem; border-top: 4px double var(--gold); padding: 2rem 1.75rem; display: grid; gap: 1.1rem; box-shadow: 0 2rem 4rem -1.5rem rgb(0 0 0 / .5); }
.door .brand { display: flex; align-items: center; gap: .6rem; font: 500 1.1rem/1 "Alegreya", Georgia, serif; color: var(--gold-ink); text-decoration: none; justify-self: start; }
.door .brand img { width: 2.5rem; height: 2.5rem; }
.door h1 { font: 400 1.9rem/1.15 "Alegreya", Georgia, serif; color: var(--ink); }
.door form { display: grid; gap: 1rem; }
.door input { width: 100%; }
.door button { min-height: 3rem; }
#note:empty { display: none; }
#note { font-weight: 700; color: var(--green); } #note.bad { color: var(--madder); }

@media (min-width: 761px) {
  #view { padding-top: 2.5rem; }
  .next .btn, .next button { width: auto; justify-self: start; }
}
