:root {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  color: #192d29;
  background: #f6f7f3;
  font-synthesis: none;
  --ink: #153830;
  --teal: #195b48;
  --line: #d3dcd5;
  --paper: #fff;
  --muted: #52675e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.48rem 0.78rem;
}
button:hover:not(:disabled),
select:hover {
  border-color: #508471;
}
a {
  color: var(--teal);
}
:focus-visible {
  outline: 3px solid #b16c17;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -10rem;
  left: 1rem;
  background: white;
  z-index: 9;
  padding: 0.8rem;
}
.skip:focus {
  top: 0.5rem;
}
.mast {
  background: #133b31;
  color: #f3f7ed;
  border-bottom: 3px solid #abae78;
}
.mast-inner {
  max-width: 1500px;
  min-height: 70px;
  margin: auto;
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 4rem);
  gap: clamp(1rem, 4vw, 4rem);
}
.brand {
  font:
    700 1.65rem/1 Georgia,
    "Times New Roman",
    serif;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  letter-spacing: -0.05em;
}
.brand i {
  font:
    bold 1.1rem/1 Georgia,
    serif;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid #a8bba4;
  border-radius: 4px;
  color: #deeac9;
}
.mast nav {
  display: flex;
  align-self: stretch;
  gap: 1.5rem;
}
.mast nav button,
.session {
  padding: 0.4rem 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #d9e8de;
  font-size: 0.92rem;
}
.mast nav button[aria-current] {
  color: white;
  box-shadow: 0 -3px 0 #dae9b8 inset;
}
.session {
  margin-left: auto;
  border: 1px solid #789588;
  border-radius: 5px;
  padding: 0.45rem 0.8rem;
  white-space: nowrap;
}
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(1.35rem, 4vw, 4rem);
  padding-top: clamp(1.7rem, 3.5vw, 3.3rem);
}
.headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    500 clamp(2.45rem, 5.2vw, 4.9rem) / 1.05 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.06em;
  margin: 0.33rem 0 0;
}
.zone {
  color: var(--muted);
  font-size: 0.89rem;
}
.zone:before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  display: inline-block;
  border: 1px solid #547765;
  border-radius: 50%;
  margin-right: 0.4rem;
}
#notice:not(:empty) {
  border-left: 3px solid #a06c29;
  background: #fff4db;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.94rem;
}
#notice button {
  margin-left: 0.8rem;
}
.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  font-weight: 600;
}
#login-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid #68987b;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 680px;
  border-radius: 6px;
}
#login-panel h2,
.aside-head h2,
.month-bar h2 {
  font:
    500 1.8rem/1.2 Georgia,
    serif;
  letter-spacing: -0.035em;
  margin: 0;
}
#login-panel p {
  line-height: 1.65;
  color: var(--muted);
  margin: 1rem 0 1.4rem;
}
.filters {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.3rem;
  align-items: end;
  padding: 1rem 0 1.25rem;
  margin-bottom: 1.5rem;
}
.filters label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.82rem;
}
.filters input,
.filters select {
  font-weight: 400;
  font-size: 0.94rem;
  padding: 0.52rem 0.7rem;
  border: 1px solid #b9c8bd;
  background: #fff;
  border-radius: 5px;
  max-width: 100%;
}
.filters select {
  min-width: 160px;
}
#view-picker {
  display: flex;
  margin-left: auto;
  border: 1px solid #bccac0;
  border-radius: 6px;
  padding: 2px;
  background: #f0f3ee;
}
#view-picker button {
  border: 0;
  padding: 0.4rem 0.95rem;
  background: transparent;
  color: var(--muted);
}
#view-picker button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(235px, 1fr);
  gap: 1.35rem;
  align-items: start;
}
.calendar-pane,
aside,
.reader-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.month-bar,
.aside-head {
  padding: 1.1rem 1.25rem;
}
.month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.month-bar h2 {
  font-size: 1.65rem;
}
#month-controls {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
#month-controls button {
  min-width: 2rem;
  padding: 0.3rem 0.55rem;
}
#previous,
#next {
  font-size: 1.3rem;
  line-height: 1;
}
.weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weekdays {
  border-block: 1px solid var(--line);
  background: #eff3ec;
}
.weekdays span {
  padding: 0.57rem 0.5rem;
  text-align: right;
  font-size: 0.77rem;
  font-weight: 600;
  color: #4a6256;
}
.day {
  min-height: clamp(4.9rem, 6.5vw, 7rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0.32rem 0.44rem;
  min-width: 0;
}
.day:nth-child(7n) {
  border-right: 0;
}
.day.dim {
  background: #f7f8f5;
  color: #879389;
}
.day.selected {
  background: #edf4e9;
  box-shadow: inset 0 0 0 2px #658c72;
}
.day-number {
  display: block;
  margin-left: auto;
  min-width: 1.65rem;
  line-height: 1.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 0.84rem;
}
.day-number.today {
  background: var(--ink);
  color: white;
  border-radius: 100%;
}
.day-event {
  display: block;
  text-decoration: none;
  color: #214c39;
  border-left: 3px solid #629569;
  background: #e3efdf;
  padding: 0.25rem 0.3rem;
  line-height: 1.16;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  overflow: hidden;
  margin: 0.2rem 0;
}
.day-event.notice {
  border-color: #aa8c54;
  background: #f5eddd;
  color: #70592b;
}
.day-event time {
  display: block;
  font-size: 0.72rem;
  color: #4d6555;
  margin-bottom: 0.18rem;
}
.more {
  font-size: 0.75rem;
  padding: 0.1rem 0.3rem;
}
.aside-head {
  border-top: 3px solid #447958;
}
.aside-head h2 {
  margin-top: 0.3rem;
  font-size: 1.45rem;
}
.subhead {
  font:
    600 0.82rem/1.4 "DM Sans",
    sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1rem 1.25rem 0.35rem;
  border-top: 1px solid var(--line);
  margin: 0;
}
.meeting-row {
  display: block;
  color: var(--ink);
  text-decoration: none;
  border-top: 1px solid #e3e9e2;
  padding: 0.85rem 1.25rem;
}
.meeting-row:hover {
  background: #f4f8f1;
}
.meeting-row b,
.meeting-row small,
.meeting-row .meeting-name {
  display: block;
}
.meeting-row small {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.meeting-name {
  font-weight: 600;
  line-height: 1.35;
  margin: 0.2rem 0 0.1rem;
}
.packet-mark {
  display: inline-block;
  color: #235339;
  background: #e7f1df;
  border-radius: 3px;
  font-size: 0.78rem;
  padding: 0.12rem 0.4rem;
  margin-top: 0.25rem;
}
.empty {
  padding: 0.9rem 1.25rem 1.3rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.back {
  margin-bottom: 1.1rem;
}
.review-heading {
  margin-bottom: 1.3rem;
}
.review-heading h1 {
  font-size: clamp(2.1rem, 4.8vw, 4.1rem);
  max-width: 1050px;
}
.review-heading p {
  margin: 0.75rem 0;
  color: var(--muted);
}
.review-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.84fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: start;
}
.reader-card {
  padding: 1.15rem;
}
.reader-card h2 {
  font:
    500 1.5rem/1.2 Georgia,
    serif;
}
.reader-card video {
  width: 100%;
  max-height: 42vh;
  background: #142a25;
  display: block;
}
.reader-card nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.reader-card nav button[aria-pressed="true"] {
  background: #214b3b;
  color: #fff;
}
.passage {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
  line-height: 1.5;
}
.passage p {
  white-space: pre-wrap;
  margin: 0.42rem 0;
  overflow-wrap: anywhere;
}
.passage small,
#player-state {
  color: var(--muted);
  font-size: 0.84rem;
}
.play-cue {
  font-weight: 650;
  font-size: 0.85rem;
  background: #edf4e8;
}
.turn-link {
  padding: 0.2rem 0.35rem;
  margin-left: 0.4rem;
  border-color: transparent;
  color: var(--teal);
  text-decoration: underline;
  font-size: 0.83rem;
}
.review-tools {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}
.reader-card input[type="search"] {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 0.5rem;
}
.reader-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.55;
}
.mobile-count {
  display: none;
}
@media (max-width: 900px) {
  .calendar-layout {
    grid-template-columns: minmax(0, 1.9fr) minmax(210px, 1fr);
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .reader-card video {
    max-height: 32vh;
  }
}
@media (max-width: 740px) {
  main {
    padding: 1.15rem 0.85rem;
  }
  .mast-inner {
    min-height: 3.8rem;
    gap: 1rem;
  }
  .brand {
    font-size: 1.35rem;
    gap: 0.35rem;
  }
  .mast nav {
    gap: 0.7rem;
  }
  .mast nav button,
  .session {
    font-size: 0.84rem;
  }
  .headline {
    margin: 1rem 0 1.2rem;
  }
  .filters {
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  .filters select {
    min-width: 0;
    width: auto;
    max-width: 45vw;
  }
  .filters input {
    width: 9.5rem;
  }
  #view-picker {
    margin-left: 0;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .month-bar,
  .aside-head {
    padding: 0.85rem 0.85rem;
  }
  .day {
    min-height: 3.55rem;
    padding: 0.18rem;
  }
  .day-event,
  .day .more {
    display: none;
  }
  .mobile-count {
    display: block;
    margin: 0.15rem auto;
    width: 1.35rem;
    height: 1.15rem;
    padding: 0;
    border: none;
    color: #214b3b;
    background: #dfecd9;
    font-size: 0.72rem;
  }
  .weekdays span {
    padding: 0.45rem 0.2rem;
    text-align: center;
  }
  .day-number {
    margin: 0 auto;
  }
  .review-heading h1 {
    font-size: 2.35rem;
  }
  .review-grid {
    display: block;
  }
  .reader-card {
    margin-bottom: 0.75rem;
  }
  .zone {
    font-size: 0.77rem;
  }
  .brand i {
    display: none;
  }
}
@media (max-width: 380px) {
  .mast-inner {
    gap: 0.6rem;
    padding: 0 0.65rem;
  }
  .mast nav {
    gap: 0.5rem;
  }
  .session {
    padding: 0.35rem;
  }
  .headline {
    align-items: start;
  }
  .filters {
    align-items: start;
  }
  .zone {
    white-space: nowrap;
  }
}
