:root {
  color-scheme: light;
  --bg: #f3eee6;
  --sheet: #fffdf8;
  --ink: #1f1a17;
  --muted: #5e554c;
  --line: #e3d5c4;
  --accent: #7a2f3b;
  --accent-ink: #fffaf7;
  --focus: #1f4b6e;
  --shadow: 0 1px 2px rgb(40 24 16 / 6%);
  --font: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --ui: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
}

button,
input,
label {
  font: inherit;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  transform: translateY(-150%);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.75rem;
  z-index: 2;
}

.skip:focus { transform: none; }

.top {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 0.5rem;
}

.mark {
  margin: 0;
  font-family: var(--ui);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.tag {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
  justify-content: space-between;
  margin-top: 1rem;
}

.dates,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
}

.date-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

label {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
}

.date-field { position: relative; }

.date-button {
  min-width: 13rem;
  max-width: 100%;
  text-align: left;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.date-button::after {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  flex: none;
  background: currentColor;
  opacity: 0.6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 1h1.5v2h5V1H12v2h2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h2zM2.5 6.5v7h11v-7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 1h1.5v2h5V1H12v2h2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h2zM2.5 6.5v7h11v-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.calendar {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: min(20rem, calc(100vw - 1.5rem));
  padding: 0.6rem;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgb(20 12 8 / 22%);
  font-family: var(--ui);
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.cal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}

.cal-nav {
  min-width: 44px;
  padding: 0.2rem 0.5rem;
  font-size: 1.3rem;
  line-height: 1;
}

.cal-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cal-grid th {
  padding: 0.2rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.cal-grid td { padding: 2px; text-align: center; }

.cal-day {
  width: 100%;
  min-height: 40px;
  padding: 0;
  border-radius: 8px;
  border-color: transparent;
  background: transparent;
  font-variant-numeric: tabular-nums;
}

.cal-day.is-today { border-color: var(--line); }

.cal-day.is-selected {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
}

.cal-day.is-off {
  color: var(--muted);
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-day.is-off:hover { border-color: transparent !important; }

.cal-hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.print-view { display: none; }

button {
  font-family: var(--ui);
  font-size: 0.95rem;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:hover:not(:disabled) { border-color: var(--accent); }

button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.status {
  max-width: 46rem;
  margin: 0.75rem auto 0;
  padding: 0 1rem;
  min-height: 1.4rem;
  color: var(--accent);
  font-family: var(--ui);
}

.banner,
.sheet {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.banner,
.sheet {
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}


main {
  max-width: 46rem;
  margin: 0 auto 2rem;
  padding: 0 1rem 1rem;
}

.banner {
  margin: 0 0 0.8rem;
  padding: 0.9rem 1rem;
  border-left: 6px solid var(--accent);
}

.banner + .banner { margin-top: -0.4rem; }

.sheet {
  margin: 0 0 0.75rem;
  border-radius: 10px;
  overflow: hidden;
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  min-height: 44px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "Hide";
  flex: none;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

details:not([open]) summary::after { content: "Show"; }

.sheet-body { padding: 0 1rem 1rem; }

.summary-note {
  display: block;
  margin-top: 0.2rem;
  font-weight: 500;
  color: var(--muted);
}

dl { margin: 0; }

.field {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}

.field dt {
  margin: 0;
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field dd { margin: 0; }

h3 {
  margin: 0.9rem 0 0.3rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

p { margin: 0.45rem 0; }


[hidden] { display: none !important; }

@media (max-width: 640px) {
  .field { grid-template-columns: 1fr; gap: 0.1rem; }
  .dates,
  .actions { width: 100%; }
  .dates { flex-wrap: nowrap; align-items: end; }
  .date-field { flex: 1 1 auto; min-width: 0; }
  .date-button { width: 100%; min-width: 0; }
  .calendar {
    position: fixed;
    top: auto;
    bottom: 0.75rem;
    left: 50%;
    width: calc(100vw - 1rem);
    max-width: 24rem;
  }
  .cal-day { min-height: 44px; }
  .dates > button { flex: 0 1 auto; }
  .dates button,
  .actions button { flex: 1; }
  .dates .cal-nav { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Unified site header (matches typicon homepage) ---- */
@font-face { font-family: 'Palatino Linotype'; src: url('/wpscripts/wpc1e74235.ttf'); }
:root {
  color-scheme: light;
  --font: "Palatino Linotype", Palatino, Georgia, serif;
}
.top .brand { display: none; }
.ct-site-header { overflow-x: auto; background: #ffffff; }
.ct-site-inner { position: relative; width: 900px; height: 190px; margin: 0 auto; }
.ct-banner { position:absolute; left:0; top:0; width:900px; height:141px; }
.ct-title { position:absolute; left:0; top:0; width:900px; height:155px; pointer-events:none; }
.ct-nav { position:absolute; left:-2px; top:150px; width:903px; height:39px; z-index:1; }
.ct-nav a.OBJ-1 { background-image:url('/wpimages/wp908a1e31_06.png'); background-repeat:no-repeat; background-position:0 0; background-size:144px 140px; display:block; position:absolute; top:0; width:144px; height:35px; line-height:35px; text-decoration:none; }
.ct-nav a.OBJ-1:hover { background-position:0 -70px; }
.ct-nav a.OBJ-1.Down, .ct-nav a.OBJ-1:active { background-position:0 -35px; }
.ct-nav a.OBJ-1 span { color:#fff; font-family:"Trebuchet MS",sans-serif; font-size:13px; text-align:center; position:absolute; left:0; top:8px; width:144px; height:18px; line-height:18px; white-space:nowrap; letter-spacing:-0.3px; display:block; cursor:pointer; }
.ct-nav a.NavDisabled { opacity:0.45; cursor:not-allowed; pointer-events:none; filter:grayscale(100%); }
.ct-nav a.NavDisabled span { cursor:not-allowed; }
@media print { .ct-site-header { display:none !important; } }
