/*
Theme Name: Ecommerce UX Audit
Theme URI: https://ecommerceuxaudit.com/
Author: Martin Kairys
Author URI: https://ecommerceuxaudit.com/about/
Description: A lightweight WordPress theme for the Ecommerce UX Audit blog, matching the main website and its article layout.
Version: 1.1.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ecommerceuxaudit
*/

/*
 * The shared website stylesheet is loaded first from the site root in
 * functions.php. This file contains only WordPress-specific additions.
 */
.ai-summarization-summary {
    margin-bottom: 30px;
    background: white;
    padding: 30px;
}

.admin-bar .site-header {
  top: 32px;
}

.article-content > * {
  max-width: 46rem;
}

.article-content > h2 {
  max-width: 20ch;
  margin-top: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.25rem;
  scroll-margin-top: 7rem;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
}

.article-content > h2:first-child {
  margin-top: 0;
}

.article-content > h3 {
  margin-top: 2.25rem;
}

.article-content > p,
.article-content li {
  line-height: 1.7;
}

.article-content ul:not(.check-list),
.article-content ol {
  margin: 1.5rem 0 2rem;
  padding-left: 1.35rem;
}

.article-content li + li {
  margin-top: .65rem;
}

.article-content blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border-left: .4rem solid var(--brand-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content blockquote > :last-child {
  margin-bottom: 0;
}

.article-content figure,
.article-content .wp-block-image {
  margin: 2.5rem 0;
}

.article-content figcaption {
  margin-top: .65rem;
  color: var(--ink-soft);
  font-size: .875rem;
}

.article-content img {
  height: auto;
  border-radius: var(--radius-md);
}

.article-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: .8rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: var(--surface);
  font-family: var(--font-heading);
}

.article-content .wp-block-button__link {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.1rem;
  color: var(--white);
  background: var(--brand);
  border: 2px solid var(--brand);
  border-radius: var(--radius-xs);
  text-decoration: none;
}

.article-content .wp-block-button__link:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: .875rem;
}

.article-meta a {
  color: inherit;
  font-weight: 650;
  text-underline-offset: .18em;
}

.article-author {
  max-width: 46rem;
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.article-author__photo {
  width: 6rem;
  height: 6rem;
  display: block;
  overflow: hidden;
  background: var(--ink);
  border: .2rem solid var(--brand);
  border-radius: 50%;
}

.article-author__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.article-author .eyebrow {
  margin-bottom: .55rem;
}

.article-author h2 {
  max-width: none;
  margin: 0 0 .8rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.article-author h2 a {
  color: var(--ink);
  text-decoration: none;
}

.article-author h2 a:hover {
  text-decoration: underline;
}

.article-author p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.article-author__links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  margin-top: 1rem;
}

.article-author__links a {
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 650;
  text-underline-offset: .2em;
}

.article-related__empty {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  font-size: .9rem;
}

.blog-hero {
  padding: 50px 0px;
  background: var(--white);
}
body.home .section.section.section--soft {
	padding: 50px 0px 150px;
}
.blog-hero h1 {
  max-width: 20ch;
}

.blog-hero .lead {
  margin-bottom: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.post-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.post-card__media {
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  background: var(--surface);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion);
}

.post-card__media:hover img {
  transform: scale(1.025);
}

.post-card__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-family: var(--font-heading);
}

.post-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.post-card__body h2 {
  max-width: none;
  margin-bottom: .8rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.post-card__body h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card__body h2 a:hover {
  text-decoration: underline;
}

.post-card__body .eyebrow {
  margin-bottom: .75rem;
}

.post-card__excerpt {
  color: var(--ink-soft);
}

.post-card__link {
  margin-top: auto;
  padding-top: .75rem;
}

.posts-empty {
  max-width: 48rem;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-md);
}

.pagination {
  margin-top: 3rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.pagination .page-numbers {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-grid;
  place-items: center;
  padding: .45rem .75rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  text-decoration: none;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.search-form {
  max-width: 36rem;
  display: flex;
  gap: .75rem;
  margin-top: 2rem;
}

.search-form label {
  flex: 1;
}

.search-form .search-field {
  width: 100%;
  min-height: 3rem;
  padding: .65rem .75rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-xs);
}

.search-form .search-submit {
  min-height: 3rem;
  padding: .65rem 1.1rem;
  color: var(--white);
  background: var(--brand);
  border: 2px solid var(--brand);
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.screen-reader-text {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.screen-reader-text:focus {
  width: auto;
  height: auto;
  z-index: 100000;
  top: .75rem;
  left: .75rem;
  display: block;
  padding: .75rem 1rem;
  clip: auto;
  clip-path: none;
  color: var(--white);
  background: var(--ink);
}

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

@media (max-width: 48rem) {
  .admin-bar .site-header {
    top: 46px;
  }

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

  .search-form {
    display: grid;
  }

  .article-author {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1rem;
  }

  .article-author__photo {
    width: 4.5rem;
    height: 4.5rem;
  }
}

@media (max-width: 30rem) {
  .article-author {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card__media img {
    transition: none;
  }
}

.service-menu-icon { display: none; }

@media (max-width: 68rem) {
  .primary-nav .submenu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding: .75rem 0 1rem; background: transparent !important; border: 0; box-shadow: none; }
  .primary-nav .submenu[hidden] { display: none; }
  .primary-nav .submenu li { min-width: 0; }
  .primary-nav .submenu a { min-height: 7.75rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: .75rem; font-size: .95rem; line-height: 1.25; text-decoration: none; }
  .primary-nav .submenu a:hover { color: var(--ink); background: var(--surface); border-color: var(--brand); }
  .primary-nav .submenu a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
  .primary-nav .submenu a[aria-current="page"] { background: var(--surface); border-color: var(--brand); text-decoration: none; }
  .service-menu-icon { display: block; flex: 0 0 auto; color: var(--brand-dark); }
}

@media (max-width: 48rem) {
  .primary-nav .submenu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
