.hc, .hc-leave {
  --hc-ink: #173f39;
  --hc-line: #d9dccf;
  --hc-leaf: #1c5149;
  --hc-paper: #f8f6ed;
  --hc-rust: #97452a;
  max-width: 1010px;
  margin: clamp(26px,4vw,52px) auto;
  color: var(--hc-ink);
  font-family: 'DM Sans', sans-serif;
}
.hc *, .hc-leave * { box-sizing: border-box; }
.hc [hidden] { display: none !important; }
.hc :focus-visible, .hc-leave :focus-visible { outline: 3px solid #b65223; outline-offset: 3px; }
.hc-heading h2, .hc-leave h2 {
  margin: 0; font: 400 clamp(31px,4vw,45px)/1.1 'DM Serif Text', Georgia, serif;
  letter-spacing: -.03em; color: var(--hc-ink);
}
.hc-heading p, .hc-leave > p { margin: .45rem 0 1.25rem; max-width: 65ch; font-size: 16px; line-height: 1.55; }
.hc a { color: var(--hc-ink); text-decoration: underline; text-underline-offset: .17em; }
.hc-book {
  display: grid; grid-template-columns: minmax(240px,.78fr) minmax(0,1.8fr);
  border: 1px solid #b8c6b8; border-radius: 8px; overflow: clip;
}
.hc-side { background: var(--hc-paper); padding: clamp(18px,2.8vw,32px); border-right: 1px solid var(--hc-line); }
.hc-pickers { display: grid; gap: 16px; }
.hc-pickers label { display: block; color: var(--hc-ink); font-size: 14px; font-weight: 700; }
.hc-pickers select {
  display: block; min-height: 45px; width: 100%; min-width: 0; max-width: 100%; margin-top: 5px;
  padding: .48rem .55rem; background: #fffdf7; color: var(--hc-ink); border: 1px solid #739085;
  border-radius: 4px; font: 500 16px/1.4 'DM Sans',sans-serif; cursor: pointer;
}
.hc-glance { margin: 22px 0 0; padding-top: 12px; border-top: 1px solid #c9d1c2; }
.hc-glance summary, .hc-downloads summary { cursor: pointer; padding: 7px 0; font-size: 15px; font-weight: 600; }
.hc-grid { display: grid; grid-template-columns: repeat(7,1fr); justify-items: center; gap: 2px 1px; margin: 7px 0; font-variant-numeric: tabular-nums; }
.hc-grid span { display: grid; place-items: center; min-width: 24px; height: 27px; font-size: 14px; line-height: 1; }
.hc-grid .hc-weekday { font-size: 12px; font-weight: 700; color: #52645c; }
.hc-grid .hc-marked { border-radius: 50%; background: #efd38d; font-weight: 700; color: #193b35; }
.hc-legend { margin: 6px 0 0; font: 400 13px/1.4 'DM Sans',sans-serif; }
.hc-legend span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #efd38d; border: 1px solid #aa8d4c; }
.hc-savehint { margin: 22px 0 0; font-size: 14px; line-height: 1.45; color: #435d53; }
.hc a.hc-save {
  display: inline-block; padding: .65rem .85rem; margin-top: 19px; border-radius: 4px;
  color: white; background: var(--hc-leaf); font-size: 14px; font-weight: 700; text-decoration: none;
}
.hc-save:hover { background: #123a33; }
.hc-downloads p, .hc-downloads a { font-size: 15px; line-height: 1.5; }
.hc-downloads a { display: block; margin: .35rem 0; }
.hc-results { padding: clamp(17px,3.5vw,39px); min-width: 0; }
.hc-turn { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
#hc-position { color: #4a6258; font-size: 14px; }
.hc-turn > div { display: flex; gap: 6px; }
.hc-turn button { width: 42px; height: 40px; cursor: pointer; background: white; color: var(--hc-ink); border: 1px solid #9eb1a5; border-radius: 4px; font: 600 20px/1 'DM Sans',sans-serif; }
.hc-turn button:disabled { opacity: .4; cursor: default; }
.hc-turn button:enabled:hover { background: #f5f0e2; }
.hc-month + .hc-month { margin-top: 1.5rem; }
.hc-month h3 { margin: 0; padding-bottom: 12px; border-bottom: 2px solid var(--hc-ink); font: 400 clamp(29px,3.5vw,42px)/1.14 'DM Serif Text',Georgia,serif; letter-spacing: -.025em; }
.hc-month h3 span { color: #62746a; font-size: .58em; letter-spacing: 0; }
.hc-month ul, .hc-leave ul { margin: 0; padding: 0; list-style: none; }
.hc-row { display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hc-line); }
.hc-row time { text-align: center; color: var(--hc-rust); }
.hc-row time b { display: block; font: 400 32px/.94 'DM Serif Text',Georgia,serif; }
.hc-row time span { display: block; font-weight: 700; font-size: 11px; letter-spacing: .06em; line-height: 1.5; text-transform: uppercase; }
.hc-row h4 { margin: 0; font: 600 clamp(17px,1.65vw,20px)/1.25 'DM Sans',sans-serif; color: #163c35; }
.hc-row p { margin: 3px 0 0; font: 400 15px/1.45 'DM Sans',sans-serif; color: #465c53; }
.hc-tentative { display: inline-block; font-size: 13px; color: #854329; margin-top: 4px; }
.hc-empty { margin: 1rem 0; max-width: 42ch; line-height: 1.55; }
.hc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hc-leave { max-width: 760px; }
.hc-leave details { border-top: 1px solid #8fa598; }
.hc-leave details:last-child { border-bottom: 1px solid #8fa598; }
.hc-leave summary { cursor: pointer; padding: 16px 1px; color: var(--hc-ink); font: 700 17px/1.35 'DM Sans',sans-serif; }
.hc-leave li { display: grid; grid-template-columns: minmax(125px,.48fr) minmax(0,1.5fr); gap: 14px; padding: 12px 16px; background: #f7f6ef; border-top: 1px solid #dedfd2; }
.hc-leave li > span { color: var(--hc-rust); font: 400 19px/1.25 'DM Serif Text',Georgia,serif; }
.hc-leave li strong { font: 700 16px/1.35 'DM Sans',sans-serif; }
.hc-leave li p { margin: 3px 0 0; font: 400 15px/1.5 'DM Sans',sans-serif; color: #39544a; }
@media (max-width: 680px) {
  .hc-book { display: block; }
  .hc-side { border-right: 0; border-bottom: 1px solid var(--hc-line); padding: 16px; }
  .hc-pickers { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 10px; }
  .hc-glance { margin-top: 12px; padding-top: 5px; }
  .hc-grid { max-width: 270px; }
  .hc-savehint, .hc a.hc-save { margin-top: 8px; }
  .hc-results { padding: 16px; }
  .hc-row { grid-template-columns: 37px minmax(0,1fr); gap: 10px; }
  .hc-row time b { font-size: 29px; }
  .hc-leave li { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-width: 370px) {
  .hc-pickers { grid-template-columns: 1fr; }
}
