.tekamakablog {
  --tekamakablog-gap: clamp(1rem, 2.5vw, 2rem);
  --tekamakablog-accent: #a09f72;
  --tekamakablog-primary: #a25a3c;
  --tekamakablog-editorial-background: #f2f0e9;
  --tekamakablog-subtle-border: rgba(0, 0, 0, 0.09);
}

.tekamakablog img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tekamakablog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--tekamakablog-gap);
}

.tekamakablog-category-nav {
  margin-block: 1.5rem 2rem;
  padding: clamp(0.85rem, 2vw, 1.1rem) clamp(1rem, 2.5vw, 1.4rem);
  border-block: 1px solid var(--tekamakablog-subtle-border);
  background: rgba(255, 255, 255, 0.5);
}

.tekamakablog-category-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tekamakablog-category-nav__link {
  display: inline-flex;
  max-width: 100%;
  padding-block: 0.35rem;
  color: inherit;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-underline-offset: 0.25em;
}

.tekamakablog-category-nav__link.is-active {
  color: var(--tekamakablog-accent);
  font-weight: 600;
  text-decoration: underline;
}

.tekamakablog-category-nav__link:hover,
.tekamakablog-category-nav__link:focus-visible {
  color: var(--tekamakablog-accent);
}

.tekamakablog-category-nav__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.2rem;
}

.tekamakablog-related .tekamakablog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tekamakablog-featured,
.tekamakablog-list,
.tekamakablog-products,
.tekamakablog-related {
  margin-block: 2rem;
}

.tekamakablog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.tekamakablog-card__media,
.tekamakablog-card__media img {
  width: 100%;
}

.tekamakablog-card__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tekamakablog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-block: 1rem;
}

.tekamakablog-card__category,
.tekamakablog-card__meta,
.tekamakablog-post__category,
.tekamakablog-post__meta {
  margin-block: 0 0.65rem;
  color: inherit;
  font-size: 0.9em;
}

.tekamakablog-card__title {
  margin: 0 0 0.6rem;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
}

.tekamakablog-card__title a {
  color: inherit;
  font: inherit;
}

.tekamakablog-card__excerpt {
  overflow-wrap: anywhere;
}

.tekamakablog-card__link {
  margin-top: auto;
  padding-top: 0.75rem;
}

.tekamakablog-index .tekamakablog-card__media,
.tekamakablog-category .tekamakablog-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.035);
}

.tekamakablog-index .tekamakablog-card__media img,
.tekamakablog-category .tekamakablog-card__media img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.tekamakablog-index .tekamakablog-card__body,
.tekamakablog-category .tekamakablog-card__body {
  padding-block: 1rem 1.15rem;
  border-bottom: 1px solid var(--tekamakablog-subtle-border);
}

.tekamakablog-index .tekamakablog-card__category,
.tekamakablog-category .tekamakablog-card__category {
  margin-bottom: 0.45rem;
  font-size: 0.82em;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.tekamakablog-index .tekamakablog-card__title,
.tekamakablog-category .tekamakablog-card__title {
  margin-bottom: 0.6rem;
}

.tekamakablog-index .tekamakablog-card__meta,
.tekamakablog-category .tekamakablog-card__meta {
  margin-bottom: 0.6rem;
  font-size: 0.85em;
  opacity: 0.72;
}

.tekamakablog-index .tekamakablog-card__excerpt,
.tekamakablog-category .tekamakablog-card__excerpt {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.tekamakablog-index .tekamakablog-card__link,
.tekamakablog-category .tekamakablog-card__link {
  padding-top: 0.9rem;
  color: var(--tekamakablog-accent);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.tekamakablog-index .tekamakablog-card__link:hover,
.tekamakablog-index .tekamakablog-card__link:focus-visible,
.tekamakablog-category .tekamakablog-card__link:hover,
.tekamakablog-category .tekamakablog-card__link:focus-visible {
  text-decoration: underline;
}

.tekamakablog-intro,
.tekamakablog-category__description {
  margin-bottom: 2rem;
}

.tekamakablog-category__media,
.tekamakablog-post__media {
  margin: 0 0 2rem;
}

.tekamakablog-post__media img {
  width: 100%;
}

.tekamakablog-richtext {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.tekamakablog-richtext img,
.tekamakablog-richtext video,
.tekamakablog-richtext iframe {
  max-width: 100%;
}

.tekamakablog-richtext table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.tekamakablog-post__content h2 {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  color: var(--tekamakablog-primary);
  line-height: 1.3;
}

.tekamakablog-post__content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-left: 0.8rem;
  border-left: 0.2rem solid var(--tekamakablog-accent);
  color: inherit;
  line-height: 1.35;
}

.tekamakablog-post__content a {
  color: var(--tekamakablog-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.tekamakablog-post__content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 0.25rem solid var(--tekamakablog-accent);
  background: var(--tekamakablog-editorial-background);
}

.tekamakablog-pagination {
  margin-top: 2rem;
}

.tekamakablog-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tekamakablog-pagination a,
.tekamakablog-pagination span {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.tekamakablog-pagination [aria-current='page'] {
  font-weight: 700;
  text-decoration: underline;
}

.tekamakablog-post__back {
  margin-top: 2rem;
}

@media (max-width: 61.99rem) {
  .tekamakablog-related .tekamakablog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 35.99rem) {
  .tekamakablog-related .tekamakablog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tekamakablog-category-nav {
    padding-inline: 0.85rem;
  }

  .tekamakablog-index .tekamakablog-card__excerpt,
  .tekamakablog-category .tekamakablog-card__excerpt {
    -webkit-line-clamp: 5;
  }
}
