/*
  The practitioner directory: /practitioners and /practitioners/<slug>
  (directory_site.py, templates/site/practitioners.html, practitioner.html,
  _directory_card.html).

  Everything is scoped under .dirpage so nothing leaks: .card-p is shared
  with Book a Session. The card rules are Book a Session's
  (templates/site/book_session.html), moved off the page and under this prefix,
  so a directory card and a Book a Session card are the same machine: a
  portrait, the title above the name, one hairline, the button at the card's
  foot. The chips, the credential marks and the "may align" line are the chat's
  cards' (static/guide.css .hcg-card), so a person looks the same in both.
  Colour comes from tokens.css only; no hex here.

  Layout. Below 75rem the filter panel sits above the results and folds away
  (static/directory.js; it is drawn open, so without the script nothing is
  hidden). From 75rem it is a side column. The results column measures itself
  (a container query), so a card is two-up only when there is room for two.
*/

.dirpage__head { padding-top: 47px; padding-bottom: 0; }
.dirpage__dir  { padding-top: 34px; padding-bottom: 52px; }
.dirpage__help { padding-top: 48px; padding-bottom: 56px; }
.dirpage__profile { padding-top: 32px; padding-bottom: 40px; }
.dirpage__intro { padding-top: 48px; padding-bottom: 56px; }

.dirpage__head .band__title { line-height: 1.3; letter-spacing: normal; margin-bottom: 12px; }

.dir-layout { display: grid; gap: 26px; }
@media (min-width: 75rem) {
  .dir-layout {
    grid-template-columns: 19rem minmax(0, 1fr);
    column-gap: 48px;
    align-items: start;
  }
}

/* ------------------------------------------------------------ the filters
   A plain GET form. The search row is always in view; the rest is one folding
   panel, and inside it each group folds by itself. Every control is a real
   input inside or beside a real label, so a screen reader hears its group and
   its name, and the keyboard reaches everything in reading order. */
.dir-filter { display: grid; gap: 14px; min-width: 0; }
.dir-filter__row { display: grid; gap: 10px; }
@media (min-width: 40rem) and (max-width: 74.99rem) {
  .dir-filter__row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
.dir-filter label,
.dir-near label {
  display: block;
  font-size: 11.5px;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}
.dir-filter input[type="search"],
.dir-filter input[type="text"],
.dir-filter select {
  width: 100%;
  font: inherit;
  font-size: 16px;            /* 16px: iOS does not zoom the page on focus */
  padding: 10px 12px;
  border: 1px solid var(--hc-ink);
  border-radius: 0;
  background: var(--hc-cream);
  color: var(--hc-ink);
  min-height: 44px;
}
.dir-filter input[type="search"]:focus-visible,
.dir-filter input[type="text"]:focus-visible,
.dir-filter select:focus-visible {
  outline: 2px solid var(--hc-olive);
  outline-offset: 2px;
}
.dir-filter .btn { margin-top: 0; min-height: 44px; }

.dir-panel__toggle,
.dir-group > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.dir-panel__toggle::-webkit-details-marker,
.dir-group > summary::-webkit-details-marker { display: none; }
.dir-panel__toggle {
  padding: 0 14px;
  border: 1px solid var(--hc-ink);
  font-size: .95rem;
}
.dir-panel__toggle::after { content: "+"; margin-left: auto; font-size: 1.2rem; }
.dir-panel[open] > .dir-panel__toggle::after { content: "\2212"; }
.dir-panel__n { margin-left: .35em; }
.dir-panel__toggle:focus-visible,
.dir-group > summary:focus-visible { outline: 2px solid var(--hc-olive); outline-offset: 2px; }
/* On a wide screen the panel is the column itself: no toggle, always open. */
@media (min-width: 75rem) { .dir-panel__toggle { display: none; } }

.dir-panel__body { margin-top: 12px; }
.dir-group { border-top: 1px solid var(--color-border); }
.dir-group:last-of-type { border-bottom: 1px solid var(--color-border); }
.dir-group > summary {
  gap: 10px;
  padding: 4px 2px;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dir-group > summary::after { content: "+"; margin-left: auto; font-size: 1.15rem; letter-spacing: 0; }
.dir-group[open] > summary::after { content: "\2212"; }
.dir-group__n {
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-text-muted);
}

.dir-set { border: 0; padding: 0 0 14px; margin: 0; min-width: 0; }
.dir-set__help {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 300;
  color: var(--color-text-muted);
}
.dir-set__heading {
  margin: 12px 0 2px;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.dir-pair { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.dir-pair legend { padding: 0; margin: 4px 0 0; font-size: 13.5px; font-weight: 700; }

.dir-opt { display: flex; align-items: flex-start; gap: 10px; }
.dir-opt input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 8px 0 0;
  accent-color: var(--hc-olive);
}
/* The whole row is the target. The label rule above is for the little
   uppercase names of a field, so this one undoes it. */
.dir-filter .dir-opt label {
  flex: 1 1 auto;
  margin: 0;
  padding: 5px 0;
  min-height: 36px;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 300;
  color: var(--hc-ink);
  cursor: pointer;
}
@media (pointer: coarse) {
  .dir-filter .dir-opt label { padding-block: 11px; min-height: 44px; }
  .dir-opt input { width: 24px; height: 24px; margin-top: 10px; }
}
.dir-opt input:focus-visible { outline: 2px solid var(--hc-olive); outline-offset: 2px; }
.dir-opt__n { margin-left: .3em; font-size: .85em; color: var(--color-text-muted); }

.dir-near {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
}
.dir-near > div { min-width: 0; }
/* "Use my location" (static/geolocate.js shows it), under the two fields. */
.dir-geo {
  grid-column: 1 / -1;
  justify-self: start;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.dir-geo:disabled { opacity: .6; cursor: wait; }
.dir-geo__status { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--color-text-muted); }
.dir-geo__status:empty { display: none; }

.dir-panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding-top: 16px;
}
/* Below 75rem the panel sits above the results, so a tick far down a long list
   changes a list the visitor cannot see (Wave 12 review, QA as Mariah: the
   button was 1,375px below the first checkbox). The button that sends the
   form, and says how many people the choices find once the script has run,
   sticks to the foot of the screen while the panel is open. The bar is the
   panel's own foot, so with no script it is the same button in the same
   place, only reachable. */
@media (max-width: 74.99rem) {
  .dir-panel__foot {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-top: 10px;
    padding: 12px 0;
    background: var(--hc-cream);
    border-top: 1px solid var(--color-border);
  }
  /* The bar is the button and nothing else: the chat's launcher is fixed at
     the bottom right and would sit on a second control, and "Clear
     everything" is already the last chip of the choices above the cards (and
     each chip removes its own choice). */
  .dir-panel__foot .dir-clear { display: none; }
}
.dir-clear {
  color: inherit;
  font-size: 14px;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* --------------------------------------------------------------- results */
.dir-results { min-width: 0; container-type: inline-size; }
.dir-results:focus { outline: none; }

.dir-applied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.dir-applied li { margin: 0; }
.dir-applied__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 12px;
  border: 1px solid var(--hc-ink);
  background: var(--hc-ink);
  color: var(--hc-cream);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
}
.dir-applied__chip:hover { background: var(--hc-cream); color: var(--hc-ink); }
.dir-applied__chip:focus-visible { outline: 2px solid var(--hc-olive); outline-offset: 2px; }

.dir-count {
  font-size: 15px;
  font-weight: 300;
  margin: 0 0 20px;
}
.dir-count a { color: inherit; }

.dir-empty { margin: 0 0 24px; font-size: 15px; font-weight: 300; }
.dir-empty p { margin: 0 0 8px; }
.dir-empty__list { list-style: none; margin: 0 0 8px; padding: 0; }
.dir-empty__list li { margin: 0; padding: 6px 0; }
.dir-empty a { color: inherit; text-underline-offset: 3px; }

/* The not-an-endorsement note, shown whenever a listed-only practitioner is
   on the page (the directory) or is the page (a profile); and the quieter
   notes about the choices and the credentials. */
.dir-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--hc-olive);
  background: var(--hc-bone);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
  max-width: 66ch;
}
.dir-note--quiet { margin: 0 0 20px; padding: 10px 14px; }
.dir-note--credentials { font-size: 13px; }

.dir-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}
.dir-pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hc-ink);
  color: var(--hc-ink);
  text-decoration: none;
  font-size: 14px;
}
.dir-pager__link.is-current { background: var(--hc-ink); color: var(--hc-cream); }
.dir-pager__link:hover, .dir-pager__link:focus-visible { background: var(--hc-bone); }
.dir-pager__link.is-current:hover { background: var(--hc-ink); }
.dir-pager__gap { min-width: 24px; text-align: center; }

/* -------------------------------------------------------------- glossary */
.dir-glossary { margin: 24px 0 0; max-width: 66ch; }
.dir-glossary dt { font-weight: 700; font-size: 15px; margin-top: 16px; }
.dir-glossary dt a { color: inherit; }
.dir-glossary dd { margin: 4px 0 0; font-size: 15px; line-height: 1.5; font-weight: 300; }

/* ------------------------------------------------------------- the cards
   Book a Session's rules under .dirpage. One-up until the results column can
   hold two (a container query on .dir-results, so it counts the column and
   not the window: the side panel takes a third of a 1280px screen). */
.dir-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dir-cards > li { margin: 0; min-width: 0; display: flex; }
.dir-cards > li > .card-p { flex: 1 1 auto; }
@container (min-width: 60rem) {
  .dir-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

.dirpage .card-p {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 22px;
  background: var(--hc-bone);
}
@media (min-width: 48rem) { .dirpage .card-p { padding: 26px; } }

.dirpage .card-p__head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-areas:
    "photo ident"
    "contact contact";
  column-gap: 16px;
  row-gap: 14px;
}
@media (min-width: 48rem) {
  .dirpage .card-p__head {
    grid-template-columns: 160px minmax(0, 1fr);
    column-gap: 22px;
  }
}
.dirpage .card-p__media,
.dirpage .card-p__monogram {
  grid-area: photo;
  align-self: start;
  width: 100%;
  aspect-ratio: 5 / 6;
  height: auto;
  margin: 0;
}
.dirpage .card-p__media { overflow: hidden; background: var(--hc-bone); }
.dirpage .card-p__monogram { font-size: 1.8rem; }
@media (min-width: 48rem) { .dirpage .card-p__monogram { font-size: 2.2rem; } }
.dirpage .card-p__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.dirpage .card-p__ident { grid-area: ident; min-width: 0; }
/* A profile is the card in full: the portrait is bigger (Book a Session's
   200px), because it is the point of the page. */
@media (min-width: 48rem) {
  .dirpage--profile .card-p__head { grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; }
  .dirpage--profile .card-p__monogram { font-size: 2.4rem; }
}

.dir-card__badge {
  display: inline-block;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 8px;
  margin: 0 0 10px;
}
.dir-card__badge--member { background: var(--hc-olive); color: var(--hc-cream); }
.dir-card__badge--listed { border: 1px solid var(--hc-ink); color: var(--hc-ink); }

.dirpage .card-p__role {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--hc-ink);
  margin: 0 0 6px;
}
.dirpage .dir-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  margin: 0;
  overflow-wrap: anywhere;
}
.dirpage--profile .dir-card__name { font-size: 32px; }
.dirpage .dir-card__name a { color: inherit; text-decoration: none; }
.dirpage .dir-card__name a:hover,
.dirpage .dir-card__name a:focus-visible { text-decoration: underline; }

.dir-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 300;
}
.dir-card__meta span + span::before { content: "\00b7"; margin: 0 .5em; }
.dir-card__mode { font-weight: 700; }

/* Written as .card-p .dir-card__tags on purpose: site.css styles every
   `.card-p ul` (a "· " marker, a bottom margin), and a lone class would lose
   to that selector. The credentials list is written the same way. */
.dirpage .card-p .dir-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  line-height: 1.2;
}
.dirpage .card-p .dir-card__tags li { margin: 0; }
.dirpage .card-p .dir-card__tags li::before { content: none; }
.dir-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border: 1px solid var(--hc-ink);
  color: var(--hc-ink);
  font-size: 12.5px;
  text-decoration: none;
}
.dir-tag:hover, .dir-tag:focus-visible { background: var(--hc-ink); color: var(--hc-cream); }

/* A credential, each marked plainly. Verified is a filled label and
   Self-reported an outlined muted one, so the two differ in shape as well as
   in words and colour: they are never mistaken for each other (the chat's
   cards do the same). */
.dirpage .card-p .dir-card__creds,
.dirpage .card-p .dir-creds {
  list-style: none;
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 300;
}
.dirpage .card-p .dir-creds { margin: 0; font-size: 15px; }
.dirpage .card-p .dir-card__creds li,
.dirpage .card-p .dir-creds li { margin: 0; }
.dirpage .card-p .dir-card__creds li::before,
.dirpage .card-p .dir-creds li::before { content: none; }
.dir-cred__mark {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--hc-ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.dir-cred__mark--self { color: var(--color-text-muted); border-color: var(--color-text-muted); }
.dir-cred__mark--verified { background: var(--hc-ink); color: var(--hc-cream); }

.dir-card__reason {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 300;
}
.dir-card__label {
  display: block;
  margin-bottom: 2px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.dir-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}
/* Written under .dirpage: site.css sets `.card-p a { color: inherit }`, which
   a lone class would lose to (the filled button's words would turn ink on ink). */
.dirpage .dir-btn {
  flex: 1 1 8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--hc-ink);
  background: transparent;
  color: var(--hc-ink);
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.dirpage .dir-btn:hover,
.dirpage .dir-btn:focus-visible { background: var(--hc-ink); color: var(--hc-cream); }
.dirpage .dir-btn--primary { background: var(--hc-ink); color: var(--hc-cream); }
.dirpage .dir-btn--primary:hover,
.dirpage .dir-btn--primary:focus-visible { background: var(--hc-cream); color: var(--hc-ink); }

/* ---------------------------------------------- profile: the contact rail */
.dirpage .card-p__contact {
  grid-area: contact;
  align-self: end;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 300;
}
@media (min-width: 48rem) {
  .dirpage .card-p__contact { grid-column: 2; grid-row: 2; }
  .dirpage .card-p__media, .dirpage .card-p__monogram { grid-row: 1 / span 2; }
}
.dirpage .card-p__contact li { margin: 0; }
.dirpage .card-p__contact li::before { content: none; }
.dirpage .card-p__phone,
.dirpage .card-p__ig {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 9px;
  align-items: start;
  overflow-wrap: anywhere;
}
.dirpage .card-p__contact svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  margin-top: 3px;
}
.dirpage .card-p__ig { color: var(--hc-ink); text-decoration: none; }
.dirpage .card-p__ig:hover span, .dirpage .card-p__ig:focus-visible span { text-decoration: underline; }
.dirpage a.card-p__phone,
.dirpage .card-p__ig {
  min-height: 24px;
  align-content: center;
}
@media (hover: none) {
  .dirpage a.card-p__phone,
  .dirpage .card-p__ig {
    min-height: 44px;
    padding-block: 6px;
    margin-block: -6px;
  }
}
.dirpage a.card-p__phone { color: var(--hc-ink); text-decoration: none; }
.dirpage a.card-p__phone:hover span:last-child,
.dirpage a.card-p__phone:focus-visible span:last-child { text-decoration: underline; }

.dirpage .card-p__offer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}
.dirpage .card-p__label {
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}
.dirpage .card-p__offers {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 300;
  max-width: 66ch;
}
.dirpage .card-p__offers li { position: relative; padding-left: 18px; margin: 0 0 8px; }
.dirpage .card-p__offers li:last-child { margin-bottom: 0; }
.dirpage .card-p__offers li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
}
.dirpage .card-p__bio {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 300;
  margin: 0;
  max-width: 66ch;
  white-space: pre-line;
}
.dirpage .card-p__offer .dir-card__tags { margin-top: 0; }

/* Session style on a profile: the question, then how this person answers it. */
.dir-facts { margin: 0; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; font-weight: 300; }
.dir-facts > div { display: grid; grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr); gap: 4px 16px; }
.dir-facts dt { font-weight: 700; }
.dir-facts dd { margin: 0; }
@media (max-width: 30rem) { .dir-facts > div { grid-template-columns: minmax(0, 1fr); } }

.dirpage .card-p__book { margin-top: auto; padding-top: 22px; margin-bottom: 0; }
.dirpage .card-p__book a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--hc-ink);
  color: var(--hc-ink);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.dirpage .card-p__book a:hover,
.dirpage .card-p__book a:focus-visible { background: var(--hc-ink); color: var(--hc-cream); }
.dirpage .card-p__book svg { flex: 0 0 auto; width: 16px; height: 10px; fill: currentColor; }

/* --------------------------------------------------------------- profile */
.dir-back { margin: 0 0 20px; font-size: 14px; }
.dir-back a { color: inherit; }
.dirpage__profile .card-p { max-width: 60rem; }

/* ------------------------------------------------------------ intro form */
.dir-intro {
  display: grid;
  gap: 18px;
  max-width: 40rem;
  margin-top: 24px;
}
.dir-intro__row { display: grid; gap: 18px; }
@media (min-width: 34rem) { .dir-intro__row { grid-template-columns: 1fr 1fr; } }
.dir-intro label { display: block; font-size: .95rem; }
.dir-intro input[type="text"],
.dir-intro input[type="email"],
.dir-intro textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--hc-ink);
  border-radius: 0;
  background: var(--hc-cream);
  color: var(--hc-ink);
  min-height: 44px;
}
.dir-intro textarea { resize: vertical; }
.dir-intro input[aria-invalid="true"] { outline: 2px solid var(--color-accent); }
.dir-intro__consent { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.dir-intro__consent input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--hc-olive); flex: 0 0 auto; }
.dir-intro__submit { justify-self: start; min-height: 44px; }
.dir-intro__error {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--color-accent);
  background: var(--hc-cream);
  font-size: 14px;
}
.dir-intro__notice {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--hc-olive);
  background: var(--hc-cream);
  font-size: 15px;
}

/* ---- "Usually available": the profile's week of hours (availability.py).
   An opening-hours table: day on the left, each set of hours on its own line
   on the right, today marked, days off quiet. */
.dirpage .hours-table { width: 100%; max-width: 30rem; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.dirpage .hours-table th, .dirpage .hours-table td { padding: 9px 0; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.dirpage .hours-table tr:last-child th, .dirpage .hours-table tr:last-child td { border-bottom: 0; }
.dirpage .hours-table th { text-align: left; font-weight: 500; width: 46%; padding-right: 12px; }
.dirpage .hours-table td { text-align: right; font-weight: 300; }
.dirpage .hours-table__window { display: block; white-space: nowrap; }
.dirpage .hours-table__short { display: none; }
.dirpage .hours-table tr.is-off th, .dirpage .hours-table tr.is-off td { color: var(--color-text-muted); font-weight: 300; }
.dirpage .hours-table__none { font-style: italic; }
.dirpage .hours-table tr.is-today:not(.is-off) th, .dirpage .hours-table tr.is-today:not(.is-off) td { font-weight: 600; }
.dirpage .hours-table__today {
  display: inline-block; margin-left: 8px; padding: 1px 8px; font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px;
  background: var(--hc-olive); color: var(--hc-cream);
}
.dirpage .hours-table__note { margin: 10px 0 0; font-size: 13px; color: var(--color-text-muted); font-weight: 300; }
@media (max-width: 22rem) {
  .dirpage .hours-table__long { display: none; }
  .dirpage .hours-table__short { display: inline; }
}

/* "Usually available" on a card (_practitioner_card.html): the days they
   work, each set of hours on its own line, right-aligned like an
   opening-hours sign. */
.dirpage .card-p__hours { width: 100%; max-width: 26rem; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.dirpage .card-p__hours th, .dirpage .card-p__hours td { padding: 6px 0; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.dirpage .card-p__hours tr:last-child th, .dirpage .card-p__hours tr:last-child td { border-bottom: 0; }
.dirpage .card-p__hours th { text-align: left; font-weight: 500; padding-right: 12px; }
.dirpage .card-p__hours td { text-align: right; font-weight: 300; }
.dirpage .card-p__hours td span { display: block; white-space: nowrap; }
.dirpage .card-p__hours-note { margin: 8px 0 0; font-size: 12.5px; color: var(--color-text-muted); font-weight: 300; }
