/* Avrelahome article template */
body.single-post {
  background: #f7f4ef;
}

body.single-post .site-header {
  border-bottom: 1px solid #e7dfd6;
}

.av-single {
  background: #f7f4ef;
  color: #2f2924;
}

.av-single-hero {
  padding: 54px 0 42px;
  background:
    radial-gradient(circle at 88% 18%, rgba(185, 149, 115, .15), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f7f4ef 100%);
  border-bottom: 1px solid #e7dfd6;
}

.av-single-hero-inner {
  width: min(calc(100% - 48px), 1500px);
  margin: 0 auto;
}

.av-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 22px;
  color: #766b62;
  font-size: 14px;
  line-height: 1.5;
}

.av-breadcrumbs a {
  color: #5f4938;
  font-weight: 700;
}

.av-breadcrumbs span:last-child {
  max-width: 620px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.av-single-kicker {
  margin: 0 0 12px;
  color: #7b6048;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.av-single-hero h1 {
  max-width: 930px;
  margin: 0;
  color: #26211d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.06;
  letter-spacing: 0;
}

.av-single-dek {
  max-width: 840px;
  margin: 22px 0 0;
  color: #645a52;
  font-size: 19px;
  line-height: 1.7;
}

.av-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 24px 0 0;
  color: #766b62;
  font-size: 13px;
  font-weight: 700;
}

.av-single-meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.av-single-meta span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c2b2a3;
}

.av-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.av-share a,
.av-share button {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid #d9ccbf;
  border-radius: 999px;
  background: #fff;
  color: #684f3a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.av-single-layout {
  width: min(calc(100% - 48px), 1500px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
  padding: 42px 0 76px;
}

.av-single-main {
  min-width: 0;
  padding: 42px 64px;
  background: #fff;
  border: 1px solid #ece5dc;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(55, 41, 30, .06);
}

.av-post-body {
  max-width: 1040px;
  margin: 0 auto;
}

.av-post-body > p:first-child {
  color: #443b34;
  font-size: 19px;
  line-height: 1.82;
}

.av-post-body h2 {
  margin: 54px 0 16px;
  color: #26211d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: 0;
}

.av-post-body h3 {
  margin: 32px 0 10px;
  color: #2f2924;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.av-post-body p,
.av-post-body li {
  color: #554c45;
  font-size: 17px;
  line-height: 1.86;
}

.av-post-body p {
  margin: 0 0 22px;
}

.av-post-body ul,
.av-post-body ol {
  margin: 0 0 26px 22px;
  padding: 0;
  list-style: disc;
}

.av-post-body li {
  margin: 7px 0;
  padding-left: 2px;
}

.av-post-body a {
  color: #6f5138;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.av-post-body table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4d9ce;
  border-radius: 10px;
}

.av-post-body th,
.av-post-body td {
  padding: 14px 16px;
  border: 1px solid #e4d9ce;
  color: #554c45;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.av-post-body th {
  background: #f4eee7;
  color: #302721;
  font-weight: 800;
}

.av-single-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.av-side-card {
  padding: 22px;
  border: 1px solid #e4d9ce;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(55, 41, 30, .06);
}

.av-side-card h2 {
  margin: 0 0 14px;
  color: #26211d;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
}

.av-toc {
  grid-column: 1;
  grid-row: 1 / span 3;
  padding: 20px 18px;
}

.av-toc ol {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 180px);
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.av-toc li {
  margin: 0;
}

.av-toc a {
  display: block;
  padding-left: 12px;
  border-left: 2px solid #e5d9cc;
  color: #6a5f56;
  font-size: 13px;
  line-height: 1.45;
}

.av-toc a:hover {
  border-left-color: #795f49;
  color: #332920;
}

.av-post-list {
  display: grid;
  gap: 12px;
}

.av-post-list a {
  display: block;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee7df;
  color: #332c27;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.av-post-list a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.av-sidebar-form p {
  margin: -2px 0 18px;
  color: #6e665e;
  font-size: 14px;
  line-height: 1.65;
}

.av-sidebar-form .quote-form {
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.av-sidebar-form .qf-field {
  margin-bottom: 11px;
}

.av-sidebar-form .quote-form input,
.av-sidebar-form .quote-form select,
.av-sidebar-form .quote-form textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ded2c6;
  border-radius: 8px;
  background: #fbfaf8;
  font-size: 14px;
}

.av-sidebar-form .quote-form textarea {
  min-height: 92px;
}

.av-sidebar-form .btn {
  width: 100%;
  justify-content: center;
}

.av-sidebar-form .qf-success {
  padding: 20px 0 6px;
}

@media (max-width: 1180px) {
  .av-single-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .av-toc {
    grid-column: auto;
    grid-row: auto;
  }
  .av-single-sidebar {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 940px) {
  .av-single-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .av-single-sidebar {
    position: static;
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .av-toc,
  .av-sidebar-form {
    grid-column: 1 / -1;
  }
  .av-single-main {
    padding: 34px 28px;
  }
}

@media (max-width: 680px) {
  .av-single-hero {
    padding: 36px 0 30px;
  }
  .av-single-hero-inner,
  .av-single-layout {
    width: min(calc(100% - 28px), 1500px);
  }
  .av-single-hero h1 {
    font-size: 38px;
  }
  .av-single-dek,
  .av-post-body > p:first-child {
    font-size: 17px;
  }
  .av-single-main {
    padding: 28px 20px;
    border-radius: 12px;
  }
  .av-single-sidebar {
    grid-template-columns: 1fr;
  }
  .av-post-body h2 {
    margin-top: 42px;
    font-size: 28px;
  }
  .av-post-body h3 {
    font-size: 20px;
  }
  .av-post-body p,
  .av-post-body li {
    font-size: 16px;
  }
  .av-breadcrumbs span:last-child {
    max-width: 240px;
  }
}
