:root {
  --ink: #171b37;
  --indigo: #282965;
  --blue: #304aca;
  --blue-dark: #2238a8;
  --pale: #edf0ff;
  --muted: #5a6276;
  --line: #dce1eb;
  --bg: #f8f9fc;
  --radius: 14px;
  --gap: 20px;
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  color: var(--ink)
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--bg);
  line-height: 1.5
}

a {
  color: var(--blue);
  text-decoration: none
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px
}

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

button,
summary {
  cursor: pointer
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6689ff;
  outline-offset: 3px
}

h1,
h2,
h3,
p {
  margin: 0
}

h1,
h2,
h3 {
  line-height: 1.17;
  letter-spacing: -.035em
}

h1 {
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 720
}

h2 {
  font-size: clamp(22px, 2.4vw, 29px)
}

h3 {
  font-size: 19px
}

p+p {
  margin-top: .75em
}

.wrap {
  width: min(1240px, calc(100% - 72px));
  margin-inline: auto
}

.icon {
  flex: none;
  width: 1.16em;
  height: 1.16em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.2em
}

.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 10;
  background: white;
  padding: 10px
}

.skip:focus {
  top: 8px
}

header {
  background: var(--indigo);
  color: white
}

.top,
.top nav,
.topactions,
.brand,
.userlink,
.navcta,
.btn,
.link {
  display: flex;
  align-items: center
}

.top {
  height: 68px;
  gap: 48px
}

.brand {
  font-size: 36px;
  line-height: 1;
  color: white;
  font-weight: 740;
  letter-spacing: -.065em;
  gap: 9px
}

.brand:hover,
.navcta:hover,
.btn:hover {
  text-decoration: none
}

.brandmark {
  position: relative;
  width: 22px;
  height: 23px;
  display: grid;
  gap: 3px;
  transform: skewY(-11deg)
}

.brandmark i {
  display: block;
  background: #b4beff;
  border-radius: 1px
}

.brandmark i:nth-child(2) {
  width: 80%
}

.brandmark i:nth-child(3) {
  width: 62%
}

.top nav {
  height: 100%;
  gap: 28px
}

.top nav a {
  color: #d9dcf4;
  display: grid;
  align-content: center;
  position: relative;
  height: 100%;
  font-size: 15px
}

.top nav a[aria-current] {
  color: white
}

.top nav a[aria-current]:after {
  position: absolute;
  content: "";
  height: 3px;
  background: #abb8ff;
  inset: auto 0 0;
  border-radius: 2px
}

.topactions {
  margin-left: auto;
  gap: 24px
}

.userlink,
.navcta {
  color: white;
  gap: 7px;
  font-size: 14px;
  font-weight: 550
}

.navcta {
  background: #485bce;
  padding: 10px 15px;
  border: 1px solid #6473d4;
  border-radius: 8px
}

.navcta:hover {
  background: #5266df
}

main {
  min-height: 66vh;
  padding-top: 28px;
  padding-bottom: 42px
}

.hero {
  background: #eaecfc;
  border: 1px solid #dce0f5;
  border-radius: 18px;
  padding: 28px 32px 30px
}

.hero h1 {
  color: #232657;
  margin-bottom: 23px
}

.searchbar {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid #cdd3e2;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  min-height: 52px
}

.searchbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: #68718b
}

.searchbar label .icon {
  width: 20px;
  height: 20px
}

.searchbar input {
  border: none;
  background: transparent;
  outline: 0;
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 13px 0
}

.searchbar label:focus-within {
  box-shadow: inset 0 0 0 2px #6784e6
}

.searchfield {
  flex: 1
}

.regionfield {
  width: 25%;
  border-left: 1px solid var(--line)
}

.searchbar .btn {
  padding-inline: 29px;
  border-radius: 0;
  min-height: 50px
}

.btn,
.link {
  justify-content: center;
  gap: 8px;
  width: fit-content
}

.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  line-height: 1.25;
  padding: 12px 19px;
  font-weight: 620;
  min-height: 44px
}

.btn:hover {
  background: var(--blue-dark)
}

.soft {
  color: var(--blue);
  background: var(--pale);
  border-color: #cbd3f1
}

.soft:hover {
  background: #dee5ff
}

.link {
  font-size: 14px;
  font-weight: 630
}

.sectionhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 15px
}

.sectionhead h2 small {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  vertical-align: middle
}

.practicehead {
  margin-top: 27px
}

.categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  overflow: hidden
}

.categories>a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  color: var(--ink);
  border-right: 1px solid var(--line)
}

.categories>a:nth-child(3n) {
  border-right: none
}

.categories>a:nth-child(-n+3) {
  border-bottom: 1px solid var(--line)
}

.categories>a:hover {
  background: #f5f6fe;
  text-decoration: none
}

.categories strong,
.categories small,
.personinfo small,
.price small {
  display: block
}

.categories strong {
  font-size: 16px
}

.categories small {
  color: var(--muted);
  font-size: 13px
}

.tileicon,
.formicon {
  background: #eeeffd;
  color: #4349a3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none
}

.tileicon .icon {
  width: 22px;
  height: 22px
}

.categories>a>.icon {
  margin-left: auto;
  width: 15px;
  color: #8890a4
}

.homecols,
.detailsgrid,
.boardcols {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(255px, 1fr);
  gap: 26px;
  align-items: start
}

.homecols {
  margin-top: 30px
}

.sideorders h2 {
  font-size: 22px
}

.sideorders .sectionhead {
  min-height: 34px
}

.people {
  display: grid;
  gap: 10px
}

.person,
.detailbox,
.miniorder,
.empty,
.formcard,
.orderrow,
.filterbar {
  background: white
}

.person,
.detailbox,
.formcard,
.empty,
.orderrow,
.filterbar,
.sidebox {
  border: 1px solid var(--line);
  border-radius: var(--radius)
}

.person {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 17px;
  padding: 18px;
  align-items: start
}

.portrait {
  width: 80px;
  height: 88px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: var(--pale)
}

.initials {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 700;
  font-size: 30px
}

.name {
  font-weight: 680;
  font-size: 19px;
  line-height: 1.3
}

.service {
  font-size: 15px;
  line-height: 1.45;
  margin: 2px 0 5px
}

.meta,
.hint,
.price small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45
}

.meta {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap
}

.meta .icon {
  width: 14px;
  height: 14px
}

.tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px
}

.tags span {
  background: #f1f2f9;
  border-radius: 5px;
  color: #474c70;
  font-size: 12px;
  padding: 2px 7px
}

.tags small,
.topic {
  font-size: 12px;
  color: #626989
}

.topic {
  font-weight: 640;
  letter-spacing: .02em
}

.price {
  text-align: right
}

.price strong {
  font-size: 16px
}

.price .link {
  margin: 14px 0 0 auto
}

.sidebox {
  overflow: hidden;
  background: white
}

.miniorder {
  display: block;
  padding: 16px 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--line)
}

.miniorder:last-child {
  border: 0
}

.miniorder strong,
.miniorder b,
.miniorder>span {
  display: block
}

.miniorder strong {
  margin: 4px 0;
  font-size: 16px;
  letter-spacing: -.012em
}

.miniorder b {
  font-size: 14px;
  margin-top: 6px
}

.miniorder:hover {
  background: #f8f9ff;
  text-decoration: none
}

.miniorder:hover strong {
  color: var(--blue)
}

.sidebox>p,
.empty {
  padding: 22px
}

.crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 17px
}

.crumb a {
  color: var(--muted)
}

main>h1+.searchbar,
main>h1+form {
  margin-top: 21px
}

.filterbar {
  margin-top: 10px;
  padding: 0 16px
}

.filterbar summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  font-weight: 570;
  color: var(--indigo);
  font-size: 14px
}

.filterbar summary:after {
  content: "⌄";
  margin-left: auto
}

.filterinner {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 0 16px
}

.filterinner label {
  flex: 1;
  min-width: 150px;
  font-size: 13px
}

.filterinner a {
  padding: 10px 0
}

.filterdot {
  height: 7px;
  width: 7px;
  background: var(--blue);
  border-radius: 50%
}

.filterbar+.sectionhead,
form+.sectionhead {
  margin-top: 25px
}

.boardcols,
.detailsgrid {
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr)
}

.orderrow,
.detailbox {
  padding: 22px
}

.orderrow {
  margin-bottom: 10px
}

.orderrow.selected {
  background: #f0f2ff;
  border-color: #919fe0
}

.orderrow h3 {
  margin: 6px 0
}

.orderrow p,
.detailbox p,
.formcard>p {
  margin: 10px 0;
  color: #454e64
}

.orderfoot,
.identity {
  display: flex;
  align-items: center;
  gap: 16px
}

.orderfoot {
  justify-content: space-between;
  margin-top: 12px;
  font-size: 14px
}

.mobileorder {
  display: none
}

.detailbox h2,
.detailbox h3 {
  margin: 20px 0 9px
}

.detailbox>:first-child,
.sectionhead h2,
.detailbox .sectionhead h2 {
  margin-top: 0
}

.detailbox>.topic+h2 {
  margin-top: 8px
}

.detailbox h1 {
  margin: 5px 0 12px;
  font-size: clamp(25px, 3vw, 37px)
}

.detailbox .link {
  margin-top: 12px
}

.prose {
  white-space: pre-line;
  overflow-wrap: anywhere
}

.notice,
.messages p {
  background: var(--pale);
  border-radius: 8px;
  padding: 12px 14px
}

.messages {
  margin-bottom: 16px
}

.responsebox {
  margin-top: 24px
}

.preview {
  position: sticky;
  top: 16px
}

.servicebox .meta,
.personinfo,
.orderrow,
.detailbox {
  overflow-wrap: anywhere
}

.pagination {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 20px
}

.empty h3 {
  margin-bottom: 6px
}

.formcard {
  margin: 10px auto;
  max-width: 540px;
  padding: 30px
}

.formicon {
  margin-bottom: 15px
}

.formcard h1 {
  font-size: 32px;
  margin-bottom: 21px
}

.field {
  margin: 14px 0
}

.field label,
.filterinner label,
.roles legend {
  font-weight: 600
}

.field label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px
}

.field input,
.field select,
.field textarea,
.filterinner select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #bec6d5;
  border-radius: 7px;
  background: white
}

.field textarea {
  resize: vertical
}

.filterinner select {
  margin-top: 4px
}

.field .hint {
  margin-top: 6px
}

.hint ul {
  padding-left: 18px;
  margin: 4px 0
}

.roles {
  margin: 0;
  border: 0;
  padding: 0
}

.roles legend {
  margin-bottom: 6px
}

.roles label {
  display: block;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 8px;
  margin: 6px 0;
  cursor: pointer
}

.roles label:has(:checked) {
  border-color: #8795e0;
  background: #f0f2ff
}

.roles input {
  margin-right: 8px;
  accent-color: var(--blue)
}

.errorlist {
  color: #9a203c;
  padding-left: 18px;
  font-size: 14px
}

.blockbtn {
  width: 100%;
  margin: 12px 0 0
}

.afterform {
  padding-top: 18px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px
}

.servicebox>.btn {
  margin-top: 12px
}

footer {
  padding: 20px 0 30px;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line)
}

footer span:first-child {
  font-weight: 710;
  color: var(--indigo);
  font-size: 20px;
  letter-spacing: -.06em
}

footer a {
  margin-left: auto
}

.mobilebar {
  display: none
}

@media(max-width:900px) {
  .wrap {
    width: calc(100% - 40px)
  }

  .top {
    gap: 28px
  }

  .homecols {
    gap: 18px;
    grid-template-columns: minmax(0, 1.8fr) minmax(215px, 1fr)
  }

  .person {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px
  }

  .portrait {
    width: 64px;
    height: 72px
  }

  .price {
    grid-column: 2;
    text-align: left;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center
  }

  .price .link {
    margin: 0 0 0 auto
  }

  .tileicon {
    width: 32px;
    height: 36px
  }

  .categories>a {
    padding: 14px 12px;
    gap: 9px
  }

  .hero {
    padding: 24px
  }

  .topactions {
    gap: 15px
  }
}

@media(max-width:700px) {
  .wrap {
    width: calc(100% - 28px)
  }

  .top {
    height: 55px
  }

  .brand {
    font-size: 31px
  }

  .brandmark {
    width: 18px;
    height: 19px
  }

  .top nav,
  .navcta {
    display: none
  }

  .userlink {
    font-size: 14px;
    min-height: 44px
  }

  main {
    padding: 15px 0 25px
  }

  .hero {
    padding: 17px 14px;
    border-radius: 12px
  }

  .hero h1 {
    font-size: 28px;
    letter-spacing: -.04em;
    margin-bottom: 15px
  }

  .searchbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    border: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible
  }

  .searchbar label {
    border: 1px solid #c8cfe0;
    border-radius: 7px;
    background: white;
    padding: 0 11px
  }

  .searchbar input {
    padding: 10px 0;
    min-height: 43px;
    font-size: 16px
  }

  .searchfield {
    grid-column: 1/-1
  }

  .regionfield {
    width: auto
  }

  .searchbar .btn {
    min-height: 44px;
    border-radius: 7px;
    padding-inline: 20px
  }

  .practicehead {
    margin-top: 22px
  }

  .sectionhead {
    margin-bottom: 10px
  }

  .sectionhead h2 {
    font-size: 21px
  }

  .link {
    font-size: 13px
  }

  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 10px
  }

  .categories>a,
  .categories>a:nth-child(3n) {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 10px
  }

  .categories>a:nth-child(odd) {
    border-right: 1px solid var(--line)
  }

  .categories>a:nth-last-child(-n+2) {
    border-bottom: 0
  }

  .categories>a>.icon {
    display: none
  }

  .categories .tileicon {
    display: none
  }

  .categories strong {
    font-size: 15px;
    color: var(--indigo)
  }

  .categories small {
    font-size: 12px
  }

  .homecols,
  .boardcols,
  .detailsgrid {
    display: block
  }

  .homecols {
    margin-top: 21px
  }

  .sideorders,
  .servicebox {
    margin-top: 20px
  }

  .person {
    padding: 12px;
    gap: 5px 12px;
    border-radius: 10px
  }

  .portrait {
    width: 62px;
    height: 70px
  }

  .name {
    font-size: 17px
  }

  .price {
    margin-top: 5px
  }

  .price strong {
    font-size: 15px
  }

  .service {
    font-size: 14px
  }

  .meta,
  .price small {
    font-size: 12px
  }

  .price .link {
    padding: 5px
  }

  .tags {
    margin-top: 3px
  }

  .miniorder {
    padding: 12px 14px
  }

  .mobilebar {
    display: flex;
    position: fixed;
    z-index: 5;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--line);
    padding: 4px 2px max(4px, env(safe-area-inset-bottom));
    justify-content: space-around
  }

  .mobilebar a {
    flex: 1;
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-direction: column;
    color: var(--indigo);
    font-size: 11px
  }

  .mobilebar .icon {
    width: 20px;
    height: 20px
  }

  .boardcols .preview,
  .selectorder {
    display: none
  }

  .mobileorder {
    display: inline
  }

  .orderrow.selected {
    background: white;
    border-color: var(--line)
  }

  .orderrow,
  .detailbox {
    padding: 16px
  }

  .orderfoot {
    align-items: start;
    flex-wrap: wrap;
    gap: 5px
  }

  .detailbox h1 {
    font-size: 27px
  }

  .filterinner {
    display: grid;
    grid-template-columns: 1fr
  }

  .filterinner label {
    width: 100%
  }

  .filterinner .btn {
    width: 100%
  }

  .filterinner a {
    text-align: center
  }

  .identity {
    gap: 12px
  }

  .servicebox .btn {
    width: 100%
  }

  .formcard {
    padding: 20px 16px;
    border-radius: 12px
  }

  .formcard h1 {
    font-size: 28px
  }

  .crumb {
    margin-bottom: 12px
  }

  .orderrow h3 a {
    display: inline-block;
    min-height: 32px
  }

  .orderrow h3 .selectorder {
    display: none
  }

  footer {
    padding: 15px 0 85px;
    flex-wrap: wrap
  }

  .responsebox .sectionhead {
    align-items: start;
    flex-wrap: wrap
  }
}

@media(max-width:360px) {
  .wrap {
    width: calc(100% - 20px)
  }

  .person {
    grid-template-columns: 52px minmax(0, 1fr)
  }

  .portrait {
    width: 52px;
    height: 60px
  }

  .price .link {
    margin-left: 0
  }

  .hero h1 {
    font-size: 25px
  }

  .sectionhead .link .icon {
    display: none
  }
}

.directorylayout {
  margin-top: 20px
}

.directoryresults .homecols {
  margin-top: 0
}

.filterpanel {
  margin-bottom: 18px
}

@media(min-width:1000px) {
  .directorylayout {
    display: grid;
    grid-template-columns: 198px minmax(0, 1fr);
    gap: 20px;
    align-items: start
  }

  .filterpanel {
    position: sticky;
    top: 16px
  }

  .filterbar {
    margin-top: 0
  }

  .filterinner {
    display: grid;
    gap: 15px
  }

  .filterinner label {
    min-width: 0
  }

  .filterinner .btn {
    width: 100%
  }

  .filterinner a {
    padding: 0;
    text-align: center;
    font-size: 14px
  }

  .directoryresults .homecols {
    grid-template-columns: minmax(0, 1fr) minmax(200px, .47fr);
    gap: 16px
  }

  .directoryresults .sectionhead h2 {
    font-size: 22px
  }

  .directoryresults .person {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 8px 12px
  }

  .directoryresults .portrait {
    width: 60px;
    height: 70px
  }

  .directoryresults .price {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    text-align: left
  }

  .directoryresults .price .link {
    margin: 0 0 0 auto
  }
}
#tg-title ~ form {
  margin-top: 16px;
  max-width: 380px;
}
