/* Avery Blog for Blocksy - February 2025 brand system */

@font-face {
  font-family: "ABCDiatype";
  src: url("../fonts/ABCDiatype-Heavy.woff2") format("woff2");
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
}

@font-face {
  font-family: "CircularXX";
  src: url("../fonts/CircularXXWeb-Book.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "CircularXX";
  src: url("../fonts/CircularXXWeb-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "CircularXX";
  src: url("../fonts/CircularXXWeb-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "CircularXX";
  src: url("../fonts/CircularXXWeb-BookItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --avery-heritage-blue: #0039a6;
  --avery-azure-blue: #2475e6;
  --avery-heritage-red: #e00034;
  --avery-sky-blue: #c8e5fe;
  --avery-coral: #ffbecd;
  --avery-poppy-red: #ff2807;
  --avery-navy: #000a55;
  --avery-white: #ffffff;
  --avery-light-grey: #f7f7f7;
  --avery-medium-grey: #f1f1f1;
  --avery-black: #000000;
  --avery-text: #242424;
  --avery-text-soft: #444444;
  --avery-text-muted: #666666;
  --avery-border: #dedede;
  --avery-card-radius: 24px;
  --avery-control-radius: 6px;
  --avery-content-width: 1180px;
  --avery-wide-width: 1226px;
  --avery-heading-font: "ABCDiatype", Arial, Helvetica, sans-serif;
  --avery-body-font: "CircularXX", Avenir, Arial, Helvetica, sans-serif;
}

body.avery-blog-site,
.editor-styles-wrapper {
  color: var(--avery-text);
  font-family: var(--avery-body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

body.avery-blog-site {
  overflow-x: clip;
}

html:has(body.avery-blog-site) {
  overflow-x: clip;
}

body.avery-blog-site h1,
body.avery-blog-site h2,
body.avery-blog-site h3,
body.avery-blog-site h4,
body.avery-blog-site h5,
body.avery-blog-site h6,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
  color: var(--avery-text);
  font-family: var(--avery-heading-font);
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

body.avery-blog-site h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; }
body.avery-blog-site h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; }
body.avery-blog-site h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; }
body.avery-blog-site h4 { font-size: 1.25rem; line-height: 1.25; }

body.avery-blog-site a {
  color: var(--avery-heritage-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

body.avery-blog-site a:hover,
body.avery-blog-site a:focus-visible {
  color: var(--avery-navy);
}

body.avery-blog-site :focus-visible {
  outline: 3px solid var(--avery-azure-blue);
  outline-offset: 3px;
}

body.avery-blog-site button,
body.avery-blog-site input[type="submit"],
body.avery-blog-site .button,
body.avery-blog-site .wp-block-button__link {
  min-height: 42px;
  width: auto;
  padding: 11px 24px;
  border: 0;
  border-radius: var(--avery-control-radius);
  background: var(--avery-heritage-blue);
  color: var(--avery-white);
  font-family: var(--avery-body-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.avery-blog-site button:hover,
body.avery-blog-site input[type="submit"]:hover,
body.avery-blog-site .button:hover,
body.avery-blog-site .wp-block-button__link:hover {
  background: var(--avery-navy);
  color: var(--avery-white);
}

/* Blocksy header: full-width white row with Avery navigation treatment. */
body.avery-blog-site .ct-header {
  width: 100%;
  max-width: none;
  background: var(--avery-white);
  color: var(--avery-navy);
}

body.avery-blog-site .ct-header [data-row] {
  width: 100%;
  max-width: none;
  background: var(--avery-white);
}

body.avery-blog-site .ct-header [data-row="middle"] {
  border-bottom: 1px solid var(--avery-medium-grey);
}

body.avery-blog-site .ct-header [data-row] > div,
body.avery-blog-site .ct-header .ct-container {
  width: min(100% - 32px, var(--avery-wide-width));
  max-width: var(--avery-wide-width);
  margin-inline: auto;
}

body.avery-blog-site .site-logo-container img,
body.avery-blog-site .ct-header-logo img {
  min-height: 32px;
  border-radius: 0;
}

body.avery-blog-site .ct-header .menu > li > a {
  color: var(--avery-navy);
  font-family: var(--avery-body-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

body.avery-blog-site .ct-header .menu > li > a:hover,
body.avery-blog-site .ct-header .menu > li.current-menu-item > a {
  color: var(--avery-heritage-blue);
}

body.avery-blog-site .ct-header .menu > li.avery-blog-badge > a {
  min-height: 38px;
  padding: 9px 18px;
  border-radius: var(--avery-control-radius);
  background: var(--avery-heritage-red);
  color: var(--avery-white);
  text-transform: none;
}

body.avery-blog-site .ct-header .menu > li.avery-blog-badge > a:hover {
  background: var(--avery-poppy-red);
  color: var(--avery-white);
}

body.avery-blog-site .ct-header [data-id="search"] .ct-label,
body.avery-blog-site .ct-header-search .ct-label {
  display: none;
}

body.avery-blog-site .ct-header [data-id="search"],
body.avery-blog-site .ct-header-search {
  color: var(--avery-navy);
  background: transparent;
}

/* No sidebars anywhere in this blog child theme. */
body.avery-blog-site .ct-sidebar {
  display: none !important;
}

body.avery-blog-site [class*="ct-container"]:has(> .ct-sidebar) {
  display: block;
}

body.avery-blog-site [class*="ct-container"]:has(> .ct-sidebar) > main,
body.avery-blog-site [class*="ct-container"]:has(> .ct-sidebar) > article {
  width: 100%;
  max-width: 100%;
}

/* Full-bleed homepage canvas without removing Blocksy's lifecycle hooks. */
body.avery-blog-home .site-main,
body.avery-blog-home .avery-blog-main,
body.avery-blog-home .entry-content,
body.avery-blog-home article.page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.avery-blog-home .hero-section,
body.avery-blog-home .entry-header,
body.avery-blog-home .page-title,
body.avery-blog-home .ct-page-title {
  display: none;
}

.avery-blog-home-hero,
.avery-cornerstone-band {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw !important;
}

.avery-blog-home-hero {
  min-height: 420px;
  overflow: hidden;
  background: var(--avery-heritage-blue);
}

.avery-blog-home-hero__inner {
  position: relative;
  min-height: 420px;
  width: min(100% - 48px, var(--avery-wide-width));
  margin-inline: auto;
}

.avery-blog-home-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 420px;
  width: min(48%, 540px);
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 56px 0;
}

.avery-blog-home-hero .avery-blog-home-hero__title {
  margin: 0 0 16px;
  color: var(--avery-white);
  font-family: var(--avery-heading-font);
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.avery-blog-home-hero .avery-blog-home-hero__subtitle {
  max-width: 500px;
  margin: 0;
  color: var(--avery-white);
  font-size: clamp(17px, 1.45vw, 19px);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: balance;
}

.avery-blog-home-hero .avery-blog-home-hero__media {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(-24px, 3vw, 52px);
  width: clamp(430px, 45vw, 560px);
  height: clamp(430px, 45vw, 560px);
  margin: 0;
  overflow: hidden;
  transform: translateY(-50%);
  border-radius: 50%;
}

.avery-blog-home-hero .avery-blog-home-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.avery-section,
.avery-cornerstone-band__inner {
  width: min(100% - 48px, var(--avery-content-width));
  max-width: var(--avery-content-width);
  margin-inline: auto;
}

.avery-category-section {
  padding-block: 32px 16px;
}

.avery-latest-section,
.avery-featured-section {
  padding-block: 40px;
}

.avery-section-heading {
  margin: 0 0 24px;
  font-size: clamp(28px, 3vw, 40px);
}

.avery-blog-pills {
  text-align: center;
}

.avery-blog-pills__prompt {
  margin: 0 0 14px;
  color: var(--avery-text);
  font-weight: 700;
}

.avery-blog-pills__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.avery-blog-pills__list li {
  display: inline-flex;
  margin: 0;
}

.avery-blog-pills__link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 18px;
  border: 2px solid var(--avery-heritage-blue);
  border-radius: var(--avery-control-radius);
  background: var(--avery-white);
  color: var(--avery-heritage-blue) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.avery-blog-pills__link:hover,
.avery-blog-pills__link:focus-visible,
.avery-blog-pills__link.is-active,
.avery-blog-pills__link[aria-current="page"] {
  background: var(--avery-heritage-blue);
  color: var(--avery-white) !important;
}

.wp-block-post-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.wp-block-post-terms__separator,
.wp-block-post-terms__prefix,
.wp-block-post-terms__suffix {
  display: none !important;
}

.taxonomy-category::after,
.taxonomy-post_tag::after,
.ct-meta-element-categories [class*="separator"] {
  content: none !important;
  display: none !important;
}

.avery-post-grid .wp-block-post-template {
  gap: 32px;
  margin: 0;
  padding: 0;
}

.avery-post-grid .wp-block-post-template > li {
  margin: 0;
  padding: 0;
}

.avery-post-card {
  height: 100%;
  margin: 0;
}

.avery-post-card .wp-block-post-featured-image {
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: var(--avery-card-radius);
  background: var(--avery-medium-grey);
}

.avery-post-card .wp-block-post-featured-image a,
.avery-post-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.avery-post-card .wp-block-post-featured-image img {
  border-radius: var(--avery-card-radius);
  object-fit: cover;
  transition: transform 180ms ease;
}

.avery-post-card:hover .wp-block-post-featured-image img {
  transform: scale(1.015);
}

.avery-post-card__terms {
  margin: 0 0 8px;
}

.avery-post-card__terms a {
  color: var(--avery-heritage-blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.avery-post-card .avery-post-card__title {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.25;
}

.avery-post-card__title a {
  color: var(--avery-text);
  text-decoration: none;
}

.avery-post-card__title a:hover {
  color: var(--avery-heritage-blue);
}

.avery-post-card__date {
  margin: 0;
  color: var(--avery-text-muted);
  font-size: 12px;
}

.avery-post-card__excerpt {
  margin: 0 0 12px;
  color: var(--avery-text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.avery-post-card__excerpt p {
  margin: 0;
}

.avery-text-link {
  color: var(--avery-heritage-blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.avery-cornerstone-band {
  margin-top: 48px;
  padding-block: 72px;
  background: var(--avery-sky-blue);
}

.avery-card-grid {
  gap: 24px;
}

.avery-card-grid > .wp-block-column {
  padding: 28px;
  border: 1px solid rgba(0, 10, 85, 0.18);
  border-radius: 8px;
  background: var(--avery-white);
}

.avery-card-grid h3 {
  margin-top: 0;
  font-size: 24px;
}

.avery-card-grid p:last-child {
  margin-bottom: 0;
}

/* Single posts and cornerstone pages */
body.single-post .entry-header,
body.page:not(.avery-blog-home) .entry-header {
  max-width: 900px;
  margin-inline: auto;
  text-align: left;
}

body.single-post .entry-title,
body.page:not(.avery-blog-home) .entry-title {
  font-family: var(--avery-heading-font);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
}

body.single-post .entry-content,
body.page:not(.avery-blog-home) .entry-content {
  max-width: 820px;
  margin-inline: auto;
}

/* Single-post article details: intentionally excluded from all archive views. */
.avery-post-insights {
  display: flex;
  min-height: 72px;
  width: 100%;
  align-items: center;
  gap: 24px;
  margin: 0 0 44px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--avery-sky-blue);
  color: var(--avery-navy);
  font-size: 15px;
  line-height: 1.4;
}

.avery-post-insights__item {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.avery-post-insights__item span:last-child {
  min-width: 0;
}

.avery-post-insights__item strong {
  color: var(--avery-black);
  font-weight: 700;
}

.avery-post-insights__icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--avery-white);
  color: var(--avery-heritage-blue);
}

.avery-post-insights__icon svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.avery-post-insights__divider {
  width: 1px;
  height: 34px;
  flex: 0 0 1px;
  background: var(--avery-azure-blue);
}

body.single-post .entry-content > .alignwide,
body.page:not(.avery-blog-home) .entry-content > .alignwide {
  width: min(100vw - 48px, var(--avery-content-width));
  max-width: var(--avery-content-width);
  margin-left: 50%;
  transform: translateX(-50%);
}

body.single-post .entry-content > .alignfull,
body.page:not(.avery-blog-home) .entry-content > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

body.single-post .ct-featured-image,
body.single-post .ct-featured-image img,
body.single-post .entry-content .wp-block-image img,
body.page:not(.avery-blog-home) .wp-block-image img {
  border-radius: var(--avery-card-radius);
}

/*
 * Keep paired instructional images inside the reading column. WordPress can
 * attach alignwide/float styles to galleries and image columns; those styles
 * should not turn a two-up comparison into a full-viewport composition.
 */
body.single-post .entry-content > .wp-block-columns:has(.wp-block-image),
body.page:not(.avery-blog-home) .entry-content > .wp-block-columns:has(.wp-block-image),
body.single-post .entry-content > .wp-block-gallery.columns-2,
body.single-post .entry-content > .wp-block-gallery:has(> .wp-block-image:nth-child(2):last-child),
body.page:not(.avery-blog-home) .entry-content > .wp-block-gallery.columns-2,
body.page:not(.avery-blog-home) .entry-content > .wp-block-gallery:has(> .wp-block-image:nth-child(2):last-child) {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
}

body.single-post .entry-content .wp-block-columns:has(.wp-block-image),
body.page:not(.avery-blog-home) .entry-content .wp-block-columns:has(.wp-block-image) {
  align-items: start;
  gap: 24px;
}

body.single-post .entry-content .wp-block-columns:has(.wp-block-image) > .wp-block-column,
body.page:not(.avery-blog-home) .entry-content .wp-block-columns:has(.wp-block-image) > .wp-block-column {
  min-width: 0;
}

body.single-post .entry-content .wp-block-columns .wp-block-image,
body.page:not(.avery-blog-home) .entry-content .wp-block-columns .wp-block-image {
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

body.single-post .entry-content .wp-block-gallery.columns-2,
body.single-post .entry-content .wp-block-gallery:has(> .wp-block-image:nth-child(2):last-child),
body.page:not(.avery-blog-home) .entry-content .wp-block-gallery.columns-2,
body.page:not(.avery-blog-home) .entry-content .wp-block-gallery:has(> .wp-block-image:nth-child(2):last-child) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.single-post .entry-content .wp-block-gallery.columns-2 > .wp-block-image,
body.single-post .entry-content .wp-block-gallery:has(> .wp-block-image:nth-child(2):last-child) > .wp-block-image,
body.page:not(.avery-blog-home) .entry-content .wp-block-gallery.columns-2 > .wp-block-image,
body.page:not(.avery-blog-home) .entry-content .wp-block-gallery:has(> .wp-block-image:nth-child(2):last-child) > .wp-block-image {
  width: 100% !important;
  margin: 0 !important;
}

body.single-post .entry-content .wp-block-image,
body.page:not(.avery-blog-home) .entry-content .wp-block-image {
  overflow: hidden;
  border-radius: var(--avery-card-radius);
}

body.single-post .entry-content .wp-block-image img,
body.page:not(.avery-blog-home) .entry-content .wp-block-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

body.single-post .entry-content .wp-block-image figcaption,
body.page:not(.avery-blog-home) .entry-content .wp-block-image figcaption {
  margin: 8px 12px 0;
  color: var(--avery-text-muted);
  font-size: 13px;
  line-height: 1.4;
}

body.single-post blockquote,
body.page:not(.avery-blog-home) blockquote,
body.single-post .wp-block-pullquote,
body.page:not(.avery-blog-home) .wp-block-pullquote {
  margin: 36px 0;
  padding: 24px 28px;
  border: 0;
  border-left: 6px solid var(--avery-heritage-red);
  border-radius: var(--avery-card-radius);
  background: var(--avery-light-grey);
  overflow: hidden;
}

body.single-post blockquote > :first-child,
body.page:not(.avery-blog-home) blockquote > :first-child,
body.single-post .wp-block-pullquote blockquote > :first-child,
body.page:not(.avery-blog-home) .wp-block-pullquote blockquote > :first-child {
  margin-top: 0;
}

body.single-post blockquote > :last-child,
body.page:not(.avery-blog-home) blockquote > :last-child,
body.single-post .wp-block-pullquote blockquote > :last-child,
body.page:not(.avery-blog-home) .wp-block-pullquote blockquote > :last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .avery-blog-home-hero,
  .avery-blog-home-hero__inner,
  .avery-blog-home-hero__content {
    min-height: 390px;
  }

  .avery-blog-home-hero__content {
    width: 44%;
  }

  .avery-blog-home-hero .avery-blog-home-hero__media {
    right: -60px;
    width: 480px;
    height: 480px;
  }
}

@media (max-width: 768px) {
  body.avery-blog-site .ct-header [data-row] > div,
  body.avery-blog-site .ct-header .ct-container,
  .avery-section,
  .avery-cornerstone-band__inner {
    width: min(100% - 32px, var(--avery-content-width));
  }

  .avery-blog-home-hero {
    min-height: 600px;
  }

  .avery-blog-home-hero__inner {
    min-height: 600px;
    width: min(100% - 32px, 560px);
  }

  .avery-blog-home-hero__content {
    display: block;
    min-height: 0;
    width: 100%;
    padding: 44px 0 0;
    text-align: left;
  }

  .avery-blog-home-hero .avery-blog-home-hero__title {
    font-size: clamp(38px, 11vw, 50px);
  }

  .avery-blog-home-hero .avery-blog-home-hero__media {
    top: auto;
    right: auto;
    bottom: -52px;
    left: 50%;
    width: min(92vw, 410px);
    height: min(92vw, 410px);
    transform: translateX(-50%);
  }

  .avery-post-grid--latest .wp-block-post-template {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 16px;
  }

  .avery-post-grid--latest .wp-block-post-template > li {
    flex: 0 0 min(78vw, 340px);
    scroll-snap-align: start;
  }

  .avery-post-grid--featured .wp-block-post-template,
  .avery-card-grid {
    grid-template-columns: 1fr !important;
  }

  .avery-cornerstone-band {
    padding-block: 52px;
  }

  body.single-post .entry-content .wp-block-columns:has(.wp-block-image),
  body.page:not(.avery-blog-home) .entry-content .wp-block-columns:has(.wp-block-image),
  body.single-post .entry-content .wp-block-gallery.columns-2,
  body.single-post .entry-content .wp-block-gallery:has(> .wp-block-image:nth-child(2):last-child),
  body.page:not(.avery-blog-home) .entry-content .wp-block-gallery.columns-2,
  body.page:not(.avery-blog-home) .entry-content .wp-block-gallery:has(> .wp-block-image:nth-child(2):last-child) {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .avery-post-insights {
    display: grid;
    gap: 14px;
    margin-bottom: 36px;
    padding: 18px;
  }

  .avery-post-insights__divider {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 390px) {
  .avery-blog-home-hero,
  .avery-blog-home-hero__inner {
    min-height: 560px;
  }

  .avery-blog-home-hero .avery-blog-home-hero__subtitle {
    font-size: 16px;
  }

  .avery-blog-home-hero .avery-blog-home-hero__media {
    bottom: -42px;
    width: 340px;
    height: 340px;
  }

  .avery-blog-pills__link {
    padding-inline: 14px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avery-post-card .wp-block-post-featured-image img {
    transition: none;
  }
}
