.ahb {
  --ahb-ink: #1e2b20;
  --ahb-accent: #315e50;
  --ahb-tint: #e9f1ec;
  --ahb-line: #cddcd3;
  color: var(--ahb-ink);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin: 1rem auto;
}
.ahb [hidden] { display: none !important; }
.ahb .ahb-panel { min-width: 0; padding: clamp(1rem, 2.5vw, 2rem); border: 1px solid var(--ahb-line); border-radius: 1rem; background: #fff; }
.ahb h2 { font-size: clamp(1.25rem, 2.4vw, 1.8rem); margin: 0 0 1rem; }
.ahb h3 { font-size: 1.05rem; margin: .5rem 0 .8rem; text-transform: capitalize; }
.ahb .ahb-top, .ahb .ahb-nav, .ahb .ahb-legend { display: flex; gap: .5rem; align-items: baseline; }
.ahb .ahb-top { justify-content: space-between; }
.ahb .ahb-months, .ahb .ahb-fields, .ahb .ahb-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ahb .ahb-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.ahb .ahb-grid span { font-size: .78rem; }
.ahb .ahb-grid button, .ahb .ahb-nav button {
  padding: 0; min-height: 36px; min-width: 0; color: var(--ahb-ink); background: var(--ahb-tint);
  border: 1px solid transparent; border-radius: .4rem; font: inherit; font-size: .875rem; cursor: pointer;
}
.ahb .ahb-nav button { width: 40px; font-size: 1.25rem; }
.ahb .ahb-grid button:disabled, .ahb .ahb-nav button:disabled { background: #f2f5f2; color: #59675e; cursor: default; }
.ahb .ahb-grid button.busy, .ahb .ahb-legend span:nth-child(2)::before { background: repeating-linear-gradient(135deg, #fff, #fff 3px, #d4ded7 3px, #d4ded7 5px); }
.ahb .ahb-grid button.selected, .ahb .ahb-submit, .ahb .ahb-legend span:nth-child(3)::before { background: var(--ahb-accent); color: #fff; }
.ahb button:focus-visible, .ahb input:focus-visible, .ahb select:focus-visible, .ahb textarea:focus-visible { outline: 2px solid var(--ahb-accent); outline-offset: 2px; }
.ahb .ahb-legend { flex-wrap: wrap; margin: 1rem 0 0; font-size: .85rem; }
.ahb .ahb-legend span::before { content: ''; display: inline-block; width: .85rem; height: .85rem; margin-right: .3rem; background: var(--ahb-tint); border-radius: .2rem; }
.ahb .ahb-dates { background: var(--ahb-tint); border-radius: .5rem; padding: .75rem; }
.ahb .ahb-dates strong { display: block; }
.ahb .ahb-dates input[type=date] { min-width: 0; box-sizing: border-box; }
.ahb form { display: grid; gap: .85rem; }
.ahb .ahb-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ahb label { display: block; }
.ahb input:not([type=checkbox]), .ahb select, .ahb textarea { display: block; width: 100%; margin-top: .25rem; padding: .55rem; border: 1px solid var(--ahb-line); border-radius: .4rem; color: inherit; background: #fff; }
.ahb .ahb-submit { border: 0; border-radius: .5rem; padding: .7rem 1rem; font: inherit; font-weight: 600; cursor: pointer; }
.ahb .ahb-submit:disabled { opacity: .65; cursor: default; }
.ahb p:empty { display: none; }
@media (max-width: 960px) { .ahb { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 540px) { .ahb .ahb-months, .ahb .ahb-fields { grid-template-columns: minmax(0, 1fr); } }
.ahb .ahb-cancellation summary { cursor: pointer; text-decoration: underline; }
.ahb .ahb-cancellation-content { padding: 1rem; background: var(--ahb-tint); }
.ahb .ahb-lazy summary { cursor: pointer; text-decoration: underline; }
.ahb .ahb-lazy details { margin-bottom: .35rem; }
