/* Teklano blog (teklanoblog module) in the shop's visual language.
   The module exposes --tkb-* tokens; map them to the shop tokens first, then
   restyle the structure the tokens cannot reach. */

:root {
  --tkb-accent: var(--tk-ink);
  --tkb-accent-contrast: var(--tk-paper);
  --tkb-text: var(--tk-ink);
  --tkb-muted: var(--tk-muted);
  --tkb-border: var(--tk-line);
  --tkb-surface: var(--tk-card-cream);
  --tkb-surface-muted: var(--tk-off);
  --tkb-radius: 16px;
  --tkb-gap: 16px;
  --tkb-font: Manrope, Arial, sans-serif;
}

/* ---------- Page shell ---------- */
body[id^="module-teklanoblog-"] {
  background: var(--tk-paper);
}

body[id^="module-teklanoblog-"] #wrapper {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body[id^="module-teklanoblog-"] #wrapper > .container {
  width: min(1800px, calc(100% - clamp(32px, 4vw, 80px)));
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

body[id^="module-teklanoblog-"] #wrapper > .container > .row {
  margin: 0;
}

body[id^="module-teklanoblog-"] #content-wrapper {
  width: 100%;
  padding: 0;
  float: none;
}

body[id^="module-teklanoblog-"] #main {
  padding-bottom: clamp(70px, 8vw, 130px);
}

body[id^="module-teklanoblog-"] #main .page-content,
body[id^="module-teklanoblog-"] #content {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[id^="module-teklanoblog-"] #main .page-footer:empty,
body[id^="module-teklanoblog-"] #main .page-footer {
  display: none;
}

body[id^="module-teklanoblog-"] :is(.tkb-blog-home, .tkb-blog-category, .tkb-blog-tag, .tkb-blog-author, .tkb-post, .tkb-unsubscribe) {
  color: var(--tk-ink);
  font-family: Manrope, Arial, sans-serif;
}

/* ---------- Page heading ---------- */
.tkb-page-head {
  margin: clamp(8px, 1.5vw, 20px) 0 clamp(34px, 4.5vw, 60px);
}

.tkb-page-kicker {
  margin: 0 0 14px;
  color: var(--tk-mint-text, #1f6f60);
  font: 700 10px/1.3 'Space Mono', monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tkb-page-title {
  max-width: 980px;
  margin: 0;
  color: var(--tk-ink);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.075em;
}

.tkb-page-lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--tk-muted);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.6;
}

.tkb-page-lead p {
  margin: 0;
}

.tkb-page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--tk-muted);
  font: 700 10px/1 'Space Mono', monospace;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}

.tkb-page-back:hover,
.tkb-page-back:focus-visible {
  color: var(--tk-ink);
  text-decoration: none;
}

:is(.tkb-page-back, .tkb-section-see-all, .tkb-widget-see-all, .tkb-pagination, .tkb-post-nav, .tkb-card-arrow, .tkb-product-card-cta) svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sections ---------- */
.tkb-section {
  margin-bottom: clamp(44px, 5vw, 72px);
}

.tkb-section-head,
.tkb-widget-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 22px;
}

.tkb-section-title,
.tkb-widget-title {
  margin: 0;
  color: var(--tk-ink);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.065em;
}

.tkb-section-see-all,
.tkb-widget-see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tk-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.tkb-section-see-all:hover,
.tkb-widget-see-all:hover {
  color: var(--tk-mint-text, #1f6f60);
  text-decoration: none;
}

/* ---------- Grids ---------- */
.tkb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tkb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}

.tkb-hero-grid > .tkb-card-lg {
  grid-row: span 2;
}

.tkb-hero-grid > .tkb-card-sm:nth-child(2),
.tkb-hero-grid > .tkb-card-sm:nth-child(3) {
  grid-column: 2;
}

/* A lone featured post: lay it out as a wide horizontal card. */
.tkb-hero-grid:has(> .tkb-card:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.tkb-hero-grid > .tkb-card-lg:only-child {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.tkb-hero-grid > .tkb-card-lg:only-child .tkb-card-media {
  aspect-ratio: auto;
  min-height: 340px;
}

.tkb-hero-grid > .tkb-card-lg:only-child .tkb-card-body {
  justify-content: center;
  padding: clamp(24px, 3.5vw, 56px);
}

/* ---------- Post card ---------- */
.tkb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tk-line);
  border-radius: 16px;
  background: var(--tk-card-cream);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.tkb-card:hover,
.tkb-card:focus-within {
  border-color: var(--tk-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 19, 17, .08);
}

.tkb-card-media {
  display: block;
  margin: 10px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 11px;
  background: var(--tk-off);
}

.tkb-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.tkb-card:hover .tkb-card-media img {
  transform: scale(1.02);
}

.tkb-card-media-placeholder {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  background: #e5eae7;
}

.tkb-card-media-placeholder::before {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -30%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tk-mint);
}

.tkb-card-media-placeholder svg {
  position: relative;
  width: min(46%, 220px);
  height: auto;
  fill: var(--tk-ink);
}

.tkb-card-media-placeholder svg rect:not(:first-child) {
  fill: rgba(17, 19, 17, .35);
}

.tkb-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  padding: 8px 18px 18px;
}

.tkb-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 10px;
  color: var(--tk-mint-text, #1f6f60);
  font: 700 10px/1.3 'Space Mono', monospace;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.tkb-card-views {
  color: var(--tk-muted);
}

.tkb-card-title {
  margin: 0 0 8px;
  font-size: clamp(19px, 1.45vw, 24px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.05em;
}

.tkb-card-title a {
  color: var(--tk-ink);
  text-decoration: none;
}

/* The title link covers the whole card. */
.tkb-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tkb-card-title a:hover {
  color: var(--tk-ink);
  text-decoration: none;
}

.tkb-card-title a:focus-visible {
  outline: none;
}

.tkb-card:has(.tkb-card-title a:focus-visible) {
  outline: 2px solid var(--tk-mint-deep);
  outline-offset: 2px;
}

.tkb-card-excerpt {
  margin: 0 0 14px;
  color: var(--tk-muted);
  font-size: 13px;
  line-height: 1.55;
}

.tkb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--tk-line);
  color: var(--tk-ink);
  font-size: 12px;
  font-weight: 800;
}

.tkb-card-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--tk-ink);
  color: var(--tk-paper);
  transition: background-color .2s ease, color .2s ease;
}

.tkb-card:hover .tkb-card-arrow {
  background: var(--tk-mint-deep);
  color: var(--tk-ink);
}

.tkb-card:hover .tkb-card-arrow svg {
  transform: translateX(2px);
}

.tkb-card-arrow svg {
  transition: transform .2s ease;
}

.tkb-card-lg .tkb-card-title {
  font-size: clamp(28px, 3vw, 48px);
  line-height: .98;
  letter-spacing: -.065em;
}

.tkb-card-lg .tkb-card-excerpt {
  font-size: 15px;
}

.tkb-card-sm .tkb-card-media {
  aspect-ratio: 16 / 9;
}

.tkb-card-sm .tkb-card-excerpt {
  display: none;
}

/* ---------- Post page ---------- */
.tkb-post-header {
  max-width: 980px;
  margin: clamp(8px, 1.5vw, 20px) 0 clamp(26px, 3vw, 40px);
}

.tkb-post-title {
  margin: 0;
  color: var(--tk-ink);
  font-size: clamp(38px, 4.8vw, 70px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.07em;
}

.tkb-post-excerpt {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--tk-muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
}

.tkb-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--tk-line);
  color: var(--tk-muted);
  font: 700 10px/1.3 'Space Mono', monospace;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.tkb-post-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tk-ink);
  text-decoration: none;
}

.tkb-post-author:hover {
  color: var(--tk-mint-text, #1f6f60);
  text-decoration: none;
}

.tkb-post-author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.tkb-post-cover {
  margin: 0 0 clamp(30px, 4vw, 56px);
  overflow: hidden;
  border-radius: var(--tk-radius);
  background: var(--tk-off);
}

.tkb-post-cover img {
  display: block;
  width: 100%;
  max-height: 620px;
  border-radius: 0;
  object-fit: cover;
}

/* The module's own rule targets the wrong element and squeezes the article
   into the 220px TOC column when there is no TOC. */
body .tkb-post-layout {
  display: block;
}

body .tkb-post-layout--toc {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 760px);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

.tkb-toc {
  position: sticky;
  top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--tk-line);
  border-radius: 16px;
  background: var(--tk-card-cream);
  font-size: 13px;
}

.tkb-toc-title {
  margin: 0 0 12px;
  color: var(--tk-mint-text, #1f6f60);
  font: 700 10px/1.3 'Space Mono', monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tkb-toc ul {
  gap: 9px;
}

.tkb-toc a {
  color: var(--tk-muted);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.tkb-toc a:hover {
  color: var(--tk-ink);
  text-decoration: none;
}

.tkb-post-content {
  max-width: 760px;
  color: #2b2d2a;
  font-size: 17px;
  line-height: 1.75;
}

.tkb-post-content > .tkb-block {
  margin-bottom: 24px;
}

.tkb-post-content :is(h2, h3, h4) {
  margin: 44px 0 14px;
  color: var(--tk-ink);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.tkb-post-content h2 {
  font-size: clamp(26px, 2.4vw, 36px);
}

.tkb-post-content h3 {
  font-size: clamp(21px, 1.8vw, 26px);
}

.tkb-post-content p {
  margin: 0 0 18px;
}

.tkb-post-content a:not([class]) {
  color: var(--tk-ink);
  text-decoration: underline;
  text-decoration-color: var(--tk-mint-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.tkb-post-content a:not([class]):hover {
  color: var(--tk-mint-text, #1f6f60);
}

.tkb-post-content :is(ul, ol) {
  margin: 0 0 18px;
  padding-left: 22px;
}

.tkb-post-content li {
  margin-bottom: 6px;
}

.tkb-post-content img {
  border-radius: 16px;
}

.tkb-block-heading {
  scroll-margin-top: 110px;
}

.tkb-post-content .tkb-block-quote {
  margin: 34px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--tk-mint);
  color: var(--tk-ink);
  font-size: clamp(19px, 1.7vw, 24px);
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.03em;
}

.tkb-post-content .tkb-block-quote p {
  margin: 0;
}

.tkb-post-content .tkb-block-quote cite {
  margin-top: 10px;
  color: var(--tk-muted);
  font: 700 10px/1.3 'Space Mono', monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tkb-post-content .tkb-block-cta {
  margin: 34px 0;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--tk-radius);
  background: var(--tk-ink);
  color: rgba(247, 246, 241, .75);
  text-align: left;
}

.tkb-post-content .tkb-cta-title {
  margin: 0 0 8px;
  color: var(--tk-paper);
  font-size: clamp(22px, 2.2vw, 30px);
}

.tkb-post-content .tkb-cta-text {
  margin: 0 0 16px;
  font-size: 15px;
}

.tkb-cta-button {
  display: inline-flex;
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  align-items: center;
  border-radius: var(--tk-radius-pill);
  background: var(--tk-mint);
  color: var(--tk-ink) !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  transition: background-color .2s ease;
}

.tkb-cta-button:hover,
.tkb-cta-button:focus-visible {
  background: var(--tk-paper);
}

.tkb-post-content .tkb-block-table {
  overflow-x: auto;
}

.tkb-post-content .tkb-block-table table {
  font-size: 14px;
}

.tkb-post-content .tkb-block-table :is(th, td) {
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--tk-line);
}

.tkb-post-content .tkb-block-table th {
  color: var(--tk-ink);
  font: 700 10px/1.3 'Space Mono', monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tkb-post-content .tkb-block-code {
  border-radius: 14px;
  background: var(--tk-ink);
  color: #e8ebe6;
  font: 13px/1.6 'Space Mono', monospace;
}

.tkb-post-content .tkb-block-faq {
  border-top: 1px solid var(--tk-line);
}

.tkb-post-content .tkb-faq-item {
  padding: 0;
  border-bottom: 1px solid var(--tk-line);
}

.tkb-post-content .tkb-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--tk-ink);
  font-size: 16px;
  font-weight: 800;
  list-style: none;
}

.tkb-post-content .tkb-faq-item summary::-webkit-details-marker {
  display: none;
}

.tkb-post-content .tkb-faq-item summary::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--tk-icon-plus) center / contain no-repeat;
  mask: var(--tk-icon-plus) center / contain no-repeat;
}

.tkb-post-content .tkb-faq-item[open] summary::after {
  -webkit-mask-image: var(--tk-icon-minus);
  mask-image: var(--tk-icon-minus);
}

.tkb-post-content .tkb-faq-answer {
  margin: 0;
  padding: 0 0 18px;
  color: var(--tk-muted);
  font-size: 15px;
}

.tkb-post-content .tkb-block-separator {
  margin: 40px 0;
  border-top-color: var(--tk-line);
}

.tkb-post-content .tkb-block-banner {
  border-radius: var(--tk-radius);
  background: var(--tk-card-cream);
  border: 1px solid var(--tk-line);
}

.tkb-post-content .tkb-banner-copy {
  padding: 18px 22px;
}

.tkb-post-content .tkb-banner-copy h3 {
  margin: 0 0 6px;
}

.tkb-post-content .tkb-block-product-link {
  color: var(--tk-ink);
  font-weight: 800;
}

/* ---------- Product tiles inside posts ---------- */
.tkb-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.tkb-product-carousel {
  gap: 16px;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.tkb-product-carousel .tkb-product-card {
  flex: 0 0 min(260px, 78%);
}

.tkb-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tk-line);
  border-radius: 16px;
  background: var(--tk-card-cream);
  transition: border-color .2s ease, transform .2s ease;
}

.tkb-product-card:hover {
  border-color: var(--tk-ink);
  transform: translateY(-2px);
}

.tkb-product-card-media {
  margin: 10px;
  aspect-ratio: 1.15;
  overflow: hidden;
  border-radius: 11px;
  background: #e5eae7;
}

.tkb-product-unavailable {
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border: 1px solid var(--tk-ink);
  border-radius: 99px;
  background: var(--tk-paper);
  color: var(--tk-ink);
  font: 700 9px 'Space Mono', monospace;
}

.tkb-product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 6px 16px 16px;
}

.tkb-product-card-name {
  margin-bottom: 8px;
  color: var(--tk-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.05em;
  text-decoration: none;
}

.tkb-product-card-name::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tkb-product-card-name:hover {
  color: var(--tk-ink);
  text-decoration: none;
}

.tkb-product-card-desc {
  margin: 0 0 12px;
  color: var(--tk-muted);
  font-size: 12px;
  line-height: 1.5;
}

.tkb-product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--tk-line);
}

.tkb-product-card-price {
  color: var(--tk-ink);
  font-size: 17px;
  font-weight: 800;
}

.tkb-product-price-old {
  color: var(--tk-muted);
  font-size: 11px;
}

.tkb-product-card-cta {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--tk-ink);
  color: var(--tk-paper);
}

.tkb-product-card:hover .tkb-product-card-cta {
  background: var(--tk-mint-deep);
  color: var(--tk-ink);
}

/* ---------- Post footer blocks ---------- */
.tkb-post-related-products,
.tkb-post-related {
  margin-top: clamp(56px, 6vw, 90px);
}

.tkb-post-related-products .tkb-section-title,
.tkb-post-related .tkb-section-title {
  margin-bottom: 22px;
}

.tkb-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(48px, 5vw, 72px) 0 0;
}

.tkb-post-nav a {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid var(--tk-line);
  border-radius: 16px;
  background: var(--tk-card-cream);
  color: var(--tk-ink);
  text-decoration: none;
  transition: border-color .2s ease;
}

.tkb-post-nav a:hover {
  border-color: var(--tk-ink);
  color: var(--tk-ink);
  text-decoration: none;
}

.tkb-post-nav-next {
  grid-column: 2;
  text-align: right;
}

.tkb-post-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tk-mint-text, #1f6f60);
  font: 700 10px/1.3 'Space Mono', monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tkb-post-nav-next .tkb-post-nav-label {
  justify-content: flex-end;
}

.tkb-post-nav-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.04em;
}

/* ---------- Newsletter ---------- */
.tkb-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: end;
  gap: 24px 48px;
  margin: clamp(56px, 6vw, 90px) 0 0;
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: var(--tk-radius);
  background: var(--tk-ink);
  color: var(--tk-paper);
}

.tkb-newsletter-kicker {
  margin: 0 0 14px;
  color: var(--tk-mint);
  font: 700 10px/1.3 'Space Mono', monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tkb-newsletter-title {
  margin: 0 0 12px;
  color: var(--tk-paper);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.065em;
}

.tkb-newsletter-text {
  max-width: 520px;
  margin: 0;
  color: rgba(247, 246, 241, .7);
  font-size: 14px;
  line-height: 1.6;
}

.tkb-newsletter-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(247, 246, 241, .22);
  border-radius: var(--tk-radius-pill);
  background: rgba(247, 246, 241, .06);
}

.tkb-newsletter-form input[type=email] {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--tk-radius-pill);
  background: transparent;
  color: var(--tk-paper);
  font: 600 14px Manrope, sans-serif;
  outline: none;
}

.tkb-newsletter-form input[type=email]::placeholder {
  color: rgba(247, 246, 241, .5);
}

.tkb-newsletter-form:focus-within {
  border-color: var(--tk-mint);
}

.tkb-newsletter-form button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--tk-radius-pill);
  background: var(--tk-mint);
  color: var(--tk-ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease;
}

.tkb-newsletter-form button:hover,
.tkb-newsletter-form button:focus-visible {
  background: var(--tk-paper);
}

.tkb-newsletter-feedback {
  margin: 12px 0 0 18px;
  color: var(--tk-mint);
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Author ---------- */
.tkb-author-header {
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 3vw, 36px);
}

.tkb-author-avatar {
  width: clamp(88px, 10vw, 140px);
  height: clamp(88px, 10vw, 140px);
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.tkb-author-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tkb-author-social:empty {
  display: none;
}

.tkb-author-social a {
  display: inline-flex;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  align-items: center;
  border: 1px solid var(--tk-line);
  border-radius: var(--tk-radius-pill);
  color: var(--tk-ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.tkb-author-social a:hover {
  border-color: var(--tk-ink);
  text-decoration: none;
}

/* ---------- Pagination ---------- */
.tkb-pagination {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--tk-line);
}

.tkb-page-link {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  place-items: center;
  border: 1px solid var(--tk-line);
  border-radius: var(--tk-radius-pill);
  color: var(--tk-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.tkb-page-link:hover {
  border-color: var(--tk-ink);
  color: var(--tk-ink);
  text-decoration: none;
}

.tkb-page-current {
  border-color: var(--tk-ink);
  background: var(--tk-ink);
  color: var(--tk-paper);
}

.tkb-page-current:hover {
  color: var(--tk-paper);
}

.tkb-empty,
.tkb-unsubscribe p {
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--tk-line);
  border-radius: 16px;
  color: var(--tk-muted);
  font-size: 15px;
}

/* ---------- Widgets on shop pages ---------- */
.tkb-widget {
  margin: clamp(48px, 6vw, 96px) 0;
}

.tkb-widget-product .tkb-widget-title,
.tkb-widget-category .tkb-widget-title {
  margin-bottom: 22px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .tkb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .tkb-post-layout--toc {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .tkb-hero-grid,
  .tkb-hero-grid > .tkb-card-lg:only-child {
    grid-template-columns: minmax(0, 1fr);
  }

  .tkb-hero-grid > .tkb-card-sm:nth-child(2),
  .tkb-hero-grid > .tkb-card-sm:nth-child(3) {
    grid-column: auto;
  }

  .tkb-hero-grid > .tkb-card-lg {
    grid-row: auto;
  }

  .tkb-hero-grid > .tkb-card-lg:only-child .tkb-card-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .tkb-hero-grid > .tkb-card-lg:only-child .tkb-card-body {
    padding: 8px 18px 18px;
  }

  body .tkb-post-layout--toc {
    display: block;
  }

  .tkb-toc {
    position: static;
    margin-bottom: 28px;
  }

  .tkb-newsletter {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body[id^="module-teklanoblog-"] #wrapper > .container {
    width: calc(100% - 32px);
  }

  .tkb-grid,
  .tkb-post-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .tkb-post-nav-next {
    grid-column: auto;
  }

  .tkb-post-content {
    font-size: 16px;
  }

  .tkb-newsletter-form {
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .tkb-newsletter-form input[type=email],
  .tkb-newsletter-form button {
    width: 100%;
  }

  .tkb-author-header {
    flex-direction: column;
  }
}

/* Classic theme greys out page paragraphs. */
.tkb-post-content :is(p, li) {
  color: #2b2d2a;
  text-align: left;
}

/* A large product tile inside an article reads as a horizontal card. */
.tkb-post-content .tkb-product-card-large {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  margin: 30px 0;
}

.tkb-post-content .tkb-product-card-large .tkb-product-card-media {
  aspect-ratio: 1.15;
  align-self: start;
}

.tkb-post-content .tkb-product-card-large .tkb-product-card-body {
  padding: 18px 20px 16px 8px;
}

.tkb-post-content .tkb-product-card-large .tkb-product-card-name {
  font-size: 24px;
}

.tkb-post-content .tkb-product-card-large .tkb-product-card-desc {
  color: var(--tk-muted);
  font-size: 14px;
}

.tkb-post-content .tkb-product-card img {
  border-radius: 0;
}

@media (max-width: 640px) {
  .tkb-post-content .tkb-product-card-large {
    grid-template-columns: minmax(0, 1fr);
  }

  .tkb-post-content .tkb-product-card-large .tkb-product-card-body {
    padding: 6px 16px 16px;
  }
}

.tkb-post-content .tkb-block-cta p.tkb-cta-text {
  color: rgba(247, 246, 241, .75);
}
