/* Native prose consumes the shared compact chapter roles without rewrapping
   authored rich HTML. Inline editor styles retain their normal precedence. */
.td-wordpress .violet-store .td-reading-summary {
  margin-block: var(--space-4) 0;
}
.td-wordpress .violet-store .td-reading-summary > .reading-lead {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--font-body);
  line-height: var(--line-body);
}
.td-wordpress .violet-store .td-author-bio {
  max-inline-size: var(--reading-measure);
  min-inline-size: 0;
}
.td-wordpress .violet-store .td-author-bio > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-body);
  line-height: var(--line-body);
  overflow-wrap: anywhere;
}
.td-wordpress .violet-store .td-author-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
}
.td-wordpress .violet-store .reading-body > .td-author-card {
  margin-block-start: var(--space-5);
}
.td-wordpress .violet-store .td-author-card--profile {
  gap: var(--space-5);
  padding: var(--space-5);
}
.td-wordpress .violet-store .td-author-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.td-wordpress .violet-store .td-author-card__avatar {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: var(--space-8);
  block-size: var(--space-8);
  border-radius: var(--radius-control);
  background: var(--tint);
  color: var(--accent-text);
}
.td-wordpress .violet-store .td-author-card__avatar > svg {
  inline-size: var(--space-5);
  block-size: var(--space-5);
}
.td-wordpress .violet-store .td-author-card__identity {
  flex: 1 1 max-content;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.td-wordpress .violet-store .td-author-card__kicker {
  color: var(--accent-text);
  font-size: var(--font-small);
  font-weight: var(--weight-heading);
}
.td-wordpress .violet-store .td-author-card__identity .section-heading {
  margin: 0;
}
.td-wordpress .violet-store .td-author-card__identity h2 {
  font-size: var(--font-panel-title);
}
.td-wordpress .violet-store .td-author-card__links,
.td-wordpress .violet-store .td-author-card__publications {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.td-wordpress .violet-store .td-author-card__links .section-all-link {
  min-inline-size: var(--control-size);
}
.td-wordpress .violet-store .td-author-card__links a[rel="me"] {
  color: var(--accent-text);
}
.td-wordpress .violet-store .td-author-card__bio {
  max-inline-size: none;
}
.td-wordpress .violet-store .td-author-card__publications {
  justify-content: space-between;
  gap: var(--space-3);
  border-block-start: 1px solid var(--border);
  padding-block-start: var(--space-4);
}
.td-wordpress .violet-store .td-author-card__count {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  color: var(--muted);
  font-size: var(--font-small);
}
.td-wordpress .violet-store .td-author-card__count > strong {
  color: var(--accent-text);
  font-size: var(--font-panel-title);
  font-weight: var(--weight-heading);
}
@media (min-width: 900px) {
  .td-wordpress .violet-store .td-author-card .td-author-card__bio > p {
    text-align: justify;
    text-align-last: start;
  }
  .td-wordpress .violet-store .td-author-card--profile {
    padding: var(--space-6);
  }
}
@media (max-width: 640px) {
  .td-wordpress .violet-store .td-author-card--profile {
    padding: var(--space-4);
  }
  .td-wordpress .violet-store .td-author-card__links {
    flex-basis: 100%;
  }
}
.td-wordpress .violet-store .td-article-resource {
  inline-size: 100%;
  container: td-article-callout / inline-size;
  margin-block: var(--space-4);
}
.td-wordpress .violet-store .td-article-resource-link {
  display: grid;
  grid-template-columns: clamp(var(--space-8), 23%, calc(var(--space-8) * 2)) minmax(0, 1fr) auto;
  min-block-size: calc(var(--space-8) + var(--space-6) + var(--space-2));
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.td-wordpress .violet-store .td-article-resource-link:is(:hover, :focus-visible) {
  border-color: var(--accent-text);
}
.td-wordpress .violet-store .td-article-resource-media {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: var(--ratio-editorial);
  border-radius: var(--radius-small);
  background: var(--surface-raised);
  color: var(--accent-text);
}
.td-wordpress .violet-store .td-article-resource-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.td-wordpress .violet-store .td-article-resource--product .td-article-resource-media img {
  object-fit: contain;
  padding: var(--space-1);
}
.td-wordpress .violet-store .td-article-resource-copy {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
  overflow-wrap: anywhere;
}
.td-wordpress .violet-store .td-article-resource-label {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  color: var(--accent-text);
  font-size: var(--font-small);
  font-weight: var(--weight-label);
  line-height: var(--line-heading);
}
.td-wordpress .violet-store .td-article-resource-title {
  font-size: var(--font-body);
  font-weight: var(--weight-heading);
  line-height: var(--line-heading);
}
.td-wordpress .violet-store .td-article-resource-price {
  color: var(--muted);
  font-size: var(--font-small);
  line-height: var(--line-heading);
}
.td-wordpress .violet-store .td-article-resource-price--loaded {
  color: var(--td-sale-color, var(--success));
  font-weight: var(--weight-card);
}
.td-wordpress .violet-store .td-article-resource-price--loaded :is(.woocommerce-Price-amount, .woocommerce-Price-amount bdi) {
  color: inherit;
}
.td-wordpress .violet-store .td-article-resource-price del {
  color: var(--td-old-price-color, var(--danger));
}
.td-wordpress .violet-store .td-article-resource-price .woocommerce-Price-currencySymbol {
  color: var(--accent-text);
}
.td-wordpress .violet-store .td-article-resource-price :is(del, ins) {
  display: inline-block;
  max-inline-size: 100%;
}
.td-wordpress .violet-store .td-article-resource-price ins {
  color: inherit;
  text-decoration: none;
}
.td-wordpress .violet-store .td-article-resource-arrow {
  display: grid;
  place-items: center;
  width: var(--space-5);
  aspect-ratio: 1;
  border-radius: var(--radius-small);
  background: var(--tint);
  color: var(--accent-text);
}
.td-wordpress .violet-store .td-article-resource-action {
  display: none;
}
.td-wordpress .violet-store .td-article-resource :is(.td-article-resource-label, .td-article-resource-arrow, .td-article-resource-media) > svg {
  width: var(--space-4);
  height: var(--space-4);
  flex: none;
}
.td-wordpress .violet-store .td-article-resource-row {
  container: td-article-row / inline-size;
  margin-block: var(--space-4);
}
.td-wordpress .violet-store .td-article-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}
.td-wordpress .violet-store .td-article-resource-grid > .td-article-resource {
  display: grid;
  inline-size: 100%;
  margin: 0;
}
.td-wordpress .violet-store .td-article-resource-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
@container td-article-row (min-width: 680px) {
  .td-wordpress .violet-store .td-article-resource-grid {
    gap: var(--space-4);
  }
}
/* Reserve the same room for wrapped titles and prices, while letting unusually
   long content or enlarged text grow instead of clipping it. */
@container td-article-callout (max-width: 440px) {
  .td-wordpress .violet-store .td-article-resource-link {
    min-block-size: calc(var(--space-8) + var(--space-7) + var(--space-2));
    gap: var(--space-2);
    padding: var(--space-2);
  }
}
@container td-article-callout (max-width: 320px) {
  .td-wordpress .violet-store .td-article-resource-link {
    grid-template-columns: var(--space-8) minmax(0, 1fr) auto;
    min-block-size: calc(var(--space-8) * 2 + var(--space-2));
  }
}
/* Paired tiles keep the media above the text at narrow widths. */
@container td-article-callout (max-width: 290px) {
  .td-wordpress .violet-store .td-article-resource-grid > .td-article-resource:not(:last-child:nth-child(odd)) > .td-article-resource-link {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }
  .td-wordpress .violet-store .td-article-resource-grid > .td-article-resource:not(:last-child:nth-child(odd)) .td-article-resource-arrow {
    position: absolute;
    inset-block-start: var(--space-3);
    inset-inline-end: var(--space-3);
  }
}
/* A card without a partner uses the article's full measure. Its image, title
   and labelled action form one link at every size. */
.td-wordpress .violet-store .td-article-resource:not(.td-article-resource-grid > :not(:last-child:nth-child(odd))) > .td-article-resource-link {
  grid-template-columns: clamp(var(--space-8), 28%, calc(var(--space-8) * 4)) minmax(0, 1fr);
  gap: var(--space-2) clamp(var(--space-3), 3cqi, var(--space-5));
  min-block-size: 0;
  padding: clamp(var(--space-3), 3cqi, var(--space-4));
}
.td-wordpress .violet-store .td-article-resource:not(.td-article-resource-grid > :not(:last-child:nth-child(odd))) .td-article-resource-media {
  grid-row: 1 / span 2;
}
.td-wordpress .violet-store .td-article-resource:not(.td-article-resource-grid > :not(:last-child:nth-child(odd))) .td-article-resource-copy {
  align-self: end;
}
.td-wordpress .violet-store .td-article-resource:not(.td-article-resource-grid > :not(:last-child:nth-child(odd))) .td-article-resource-title {
  font-size: clamp(var(--font-body), 2.5cqi, var(--font-panel-title));
}
.td-wordpress .violet-store .td-article-resource:not(.td-article-resource-grid > :not(:last-child:nth-child(odd))) .td-article-resource-arrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-self: start;
  align-self: start;
  inline-size: auto;
  max-inline-size: 100%;
  min-block-size: var(--space-5);
  aspect-ratio: auto;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-small);
  font-weight: var(--weight-label);
  line-height: var(--line-heading);
}
.td-wordpress .violet-store .td-article-resource:not(.td-article-resource-grid > :not(:last-child:nth-child(odd))) .td-article-resource-action {
  display: inline;
}
/* Give each part its own place across a wide prose column. In narrower
   columns keep the action below the copy so neither label loses space. */
@container td-article-callout (min-width: 680px) {
  .td-wordpress .violet-store .td-article-resource:not(.td-article-resource-grid > :not(:last-child:nth-child(odd))) > .td-article-resource-link {
    grid-template-columns: min(28%, calc(var(--space-8) * 4)) minmax(0, 1fr) minmax(0, 17%);
  }
  .td-wordpress .violet-store .td-article-resource:not(.td-article-resource-grid > :not(:last-child:nth-child(odd))) .td-article-resource-media {
    grid-row: auto;
  }
  .td-wordpress .violet-store .td-article-resource:not(.td-article-resource-grid > :not(:last-child:nth-child(odd))) .td-article-resource-copy {
    align-self: center;
    justify-self: center;
    max-inline-size: 100%;
  }
  .td-wordpress .violet-store .td-article-resource:not(.td-article-resource-grid > :not(:last-child:nth-child(odd))) .td-article-resource-arrow {
    align-self: center;
    justify-self: stretch;
    justify-content: center;
    min-block-size: var(--control-size);
    text-align: center;
    overflow-wrap: anywhere;
  }
}
.td-wordpress .violet-store .td-native-reading-heading {
  margin-block: var(--space-5) var(--space-3);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--border);
  font-size: var(--font-panel-title);
  font-weight: var(--weight-heading);
  line-height: var(--line-heading);
  text-wrap: balance;
  scroll-margin-block-start: var(--space-5);
}
/* Native logged-in forms omit identity fields rather than reserving a column. */
.td-wordpress
  .violet-store
  .td-comments:not(.comments-section--product)
  .comment-fields:not(:has(> .comment-identity)) {
  grid-template-columns: minmax(0, 1fr);
}
/* Keep authored row foregrounds and geometry; inherited table labels use the
   shared UI face even when an old table declares IRANSans. Explicit cell styles
   still win; marked light cells retain the inherited-ink role below. */
.td-wordpress .violet-store .reading-copy :is(th, td) {
  color: inherit;
  font-family: var(--font-ui);
}
/* Preserved legacy articles declare these old inherited container fonts.
   Project only those container roles onto PeydaTD without editing their HTML,
   text, colours or explicit cell typography. Unknown authored faces stay native. */
.td-wordpress .violet-store .reading-copy :is(div, table)[style*="font-family" i]:is([style*="IRANSans" i], [style*="Tahoma" i]) {
  font-family: var(--font-ui) !important;
}
/* Retain the author's known light table surfaces, including the purple header.
   Only inherited dark-mode text needs a dark neutral ink on those surfaces;
   explicit inline foregrounds and every non-colour author style remain native. */
.td-wordpress .violet-store.theme-dark .td-reading-light-surface {
  color: var(--surface-neutral);
}
