/* Chore Rota: one stylesheet for every page. No outside fonts or images. */
:root {
  --ink: #1d2733;
  --muted: #5b6876;
  --line: #d5dce4;
  --paper: #ffffff;
  --wash: #f4f7fa;
  --brand: #14695a;
  --brand-dark: #0e4c41;
  --mark: #e3f4ef;
  --warn-ink: #7a3b00;
  --warn-wash: #fff4e2;
}

* {
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--wash);
}

body {
  margin: 0;
}

header.site,
main,
footer.site {
  max-width: 54rem;
  margin: 0 auto;
  padding: 0 1.1rem;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.2rem;
  padding-top: 1rem;
  padding-bottom: 0.6rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-dark);
  text-decoration: none;
}

nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
}

nav a:first-child {
  margin-left: 0;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-dark);
}

h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 1rem 0 0.6rem;
}

h2 {
  font-size: 1.3rem;
  margin: 1.8rem 0 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

p,
ul,
ol {
  margin: 0.6rem 0;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  margin: 1.1rem 0;
}

.card h2:first-child {
  margin-top: 0;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.2rem;
}

.field.wide {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.88rem;
}

input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #9aa7b4;
  border-radius: 7px;
  background: var(--paper);
}

textarea {
  resize: vertical;
  min-height: 7rem;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
  outline: 3px solid #7fc8b8;
  outline-offset: 1px;
}

button {
  cursor: pointer;
  border: 1px solid var(--brand-dark);
  border-radius: 7px;
  padding: 0.55rem 1.1rem;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
}

button:hover {
  background: var(--brand-dark);
}

button.secondary {
  background: var(--paper);
  color: var(--brand-dark);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  font-size: 0.93rem;
}

button.secondary:hover {
  background: var(--mark);
}

button[disabled] {
  opacity: 0.6;
  cursor: default;
}

.actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.error,
.status.warn {
  color: var(--warn-ink);
  background: var(--warn-wash);
  border: 1px solid #f0c78c;
  border-radius: 7px;
  padding: 0.5rem 0.7rem;
}

.status.good {
  background: var(--mark);
  border: 1px solid #9fd6c8;
  border-radius: 7px;
  padding: 0.5rem 0.7rem;
}

.status.info {
  color: var(--muted);
}

.paywall {
  border-color: #f0c78c;
  background: #fffaf1;
}

.price {
  font-weight: 700;
}

a.buy {
  display: inline-block;
  border: 1px solid var(--brand-dark);
  border-radius: 7px;
  padding: 0.55rem 1.1rem;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

a.buy:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: var(--paper);
  font-size: 0.95rem;
}

caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 0.3rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--wash);
}

tbody th {
  font-weight: 600;
  white-space: nowrap;
}

td.me {
  background: var(--mark);
  font-weight: 700;
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.8rem;
}

.person {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.8rem 0.9rem;
  background: var(--paper);
}

.person label {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

.person input.link {
  font-size: 0.82rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

ul.weeks {
  list-style: none;
  padding: 0;
}

ul.weeks li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  padding: 0.5rem 0.1rem;
  border-bottom: 1px solid var(--line);
}

ul.weeks .when {
  color: var(--muted);
}

ul.weeks .what {
  font-weight: 700;
}

ul.weeks li.off .what {
  font-weight: 400;
  color: var(--muted);
}

.offscreen {
  position: absolute;
  left: -9999px;
}

[hidden] {
  display: none !important;
}

footer.site {
  margin-top: 2.5rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site a {
  margin-right: 1rem;
}

@media (max-width: 40rem) {
  html {
    font-size: 16px;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.55rem;
  }
}

@media print {
  header.site,
  footer.site,
  .tool,
  .people,
  .no-print {
    display: none;
  }

  html {
    background: #ffffff;
  }
}
