*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --mobile-safe-area-height: 0px;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--aftertail-paper);
  color: var(--aftertail-ink);
}

.aftertail-scroll {
  min-height: 100vh;
}

.aftertail-page {
  min-height: 100vh;
}

.hero-section {
  min-height: 100svh;
}

img {
  max-width: 100%;
  height: auto;
}

.admin-bar .site-header {
  top: calc(66px + 32px);
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: calc(66px + 46px);
  }
}

.generic-page-content {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 48px;
  color: #7f7064;
  font-size: 14px;
  line-height: 1.85;
}

.generic-page-content h2,
.generic-page-content h3 {
  color: #685c52;
  font-family: var(--aftertail-font-display);
  font-weight: 500;
}

.generic-page-content h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.generic-page-content h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.generic-page-content a {
  color: #8a6f5c;
}

.generic-post-list {
  display: grid;
  gap: 16px;
}

.generic-post-card {
  padding: 22px;
  border: 1px solid rgba(151, 124, 103, 0.16);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.62);
}

.generic-post-card p {
  margin: 0 0 12px;
}

.generic-post-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.generic-post-link svg {
  width: 16px;
  height: 16px;
}

.flow-branches {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
}

.service-branch-title {
  margin: 22px 0 10px;
  color: #75675c;
  font-family: var(--aftertail-font-display);
  font-size: 22px;
  font-weight: 600;
}

.flow-note {
  margin: 4px 0 0;
  color: #8c7a6a;
  font-size: 12px;
  line-height: 1.7;
}

@media (min-width: 761px) {
  .generic-page-content {
    padding-bottom: 64px;
  }

  .generic-post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-branches {
    gap: 14px;
  }

  .service-branch-title {
    margin-top: 0;
  }
}
