/*
Theme Name: Idaho Falls Blog
Theme URI: https://idahofallsbookkeeping.com/
Description: Child theme for the custom Idaho Falls Bookkeeping blog archive.
Author: Idaho Bookkeeping
Template: twentytwentyfive
Version: 1.0.0
Text Domain: idaho-falls-blog
*/

@font-face {
  font-family: "Sweet Sans Pro";
  src: url("./assets/fonts/SweetSansPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sweet Sans Pro";
  src: url("./assets/fonts/SweetSansPro-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sweet Sans Pro";
  src: url("./assets/fonts/SweetSansPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ifb-paper: #f7f7f4;
  --ifb-white: #ffffff;
  --ifb-lilac: #e4e2ef;
  --ifb-teal: #2d6d69;
  --ifb-teal-dark: #245b58;
  --ifb-lime: #b9ca63;
  --ifb-text: #234d4b;
  --ifb-muted: #686d72;
  --ifb-purple-link: #68589d;
  --ifb-shadow: 0 10px 24px rgba(36, 60, 58, 0.08);
  --ifb-radius-xl: 34px;
  --ifb-radius-lg: 24px;
  --ifb-radius-pill: 999px;
  --ifb-max: 1190px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ifb-paper);
  color: var(--ifb-text);
  font-family: "Sweet Sans Pro", "Segoe UI", sans-serif;
}

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: min(100% - 48px, var(--ifb-max));
}

.wp-site-blocks {
  padding-left: 0;
  padding-right: 0;
}

.ifb-site-header br,
.ifb-blog-page br,
.ifb-site-footer br {
  display: none;
}

.ifb-site-header p,
.ifb-site-footer p:not(.ifb-footer-copy):not(.ifb-footer-meta-links),
.ifb-blog-page p:not(.ifb-blog-empty) {
  display: contents;
  margin: 0;
}

.ifb-main {
  margin-top: 0 !important;
}

.ifb-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-block-start: 0 !important;
  background: rgba(247, 247, 244, 0.94);
  border-bottom: 1px solid rgba(45, 109, 105, 0.07);
  backdrop-filter: blur(14px);
}

.ifb-header-shell,
.ifb-footer-shell {
  width: min(100% - 48px, var(--ifb-max));
  margin: 0 auto;
}

.ifb-header-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 20px 0 18px;
}

.ifb-brand {
  display: inline-flex;
  align-items: center;
}

.ifb-brand img {
  display: block;
  width: auto;
  height: 52px;
}

.ifb-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.ifb-nav a,
.ifb-footer-links a,
.ifb-footer-legal a {
  color: var(--ifb-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.ifb-nav a:hover,
.ifb-nav a:focus-visible,
.ifb-footer-links a:hover,
.ifb-footer-links a:focus-visible,
.ifb-footer-legal a:hover,
.ifb-footer-legal a:focus-visible {
  color: var(--ifb-teal);
}

.ifb-pill-button,
.ifb-filter-link,
.ifb-blog-pagination a,
.ifb-blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ifb-radius-pill);
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.ifb-pill-button {
  min-height: 50px;
  padding: 14px 28px;
  background: var(--ifb-teal);
  color: var(--ifb-lime);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(45, 109, 105, 0.16);
}

.ifb-site-header .ifb-pill-button {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 13px;
  line-height: 1;
  box-shadow: none;
}

.ifb-pill-button:hover,
.ifb-pill-button:focus-visible {
  background: var(--ifb-lime);
  color: var(--ifb-teal);
  transform: translateY(-1px);
}

.ifb-blog-page {
  padding: 30px 0 0;
}

.ifb-blog-shell {
  width: min(100% - 48px, var(--ifb-max));
  margin: 0 auto;
}

.ifb-blog-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 24px 0 58px;
  text-align: center;
}

.ifb-blog-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 32px;
  border: 2px solid var(--ifb-teal);
  border-radius: 999px;
  color: var(--ifb-teal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ifb-blog-title {
  max-width: 880px;
  margin: 0;
  color: #0e0f12;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.ifb-blog-title br {
  display: block;
}

.ifb-blog-shell.is-loading .ifb-filters,
.ifb-blog-shell.is-loading .ifb-posts-section {
  opacity: 0.62;
  transition: opacity 180ms ease;
}

.ifb-featured-section,
.ifb-posts-section {
  background: var(--ifb-lilac);
  border-radius: var(--ifb-radius-xl);
  padding: 52px 54px 42px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ifb-featured-section {
  margin-bottom: 42px;
}

.ifb-posts-section {
  margin-bottom: 96px;
}

.ifb-section-title {
  margin: 0 0 36px;
  color: var(--ifb-teal);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

.ifb-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 42px;
}

.ifb-filter-link {
  min-height: 44px;
  padding: 9px 22px;
  border: 2px solid var(--ifb-teal);
  background: transparent;
  color: var(--ifb-teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ifb-filter-link:hover,
.ifb-filter-link:focus-visible,
.ifb-filter-link.is-active {
  background: var(--ifb-teal);
  border-color: var(--ifb-teal);
  color: var(--ifb-white);
  box-shadow: 0 8px 18px rgba(45, 109, 105, 0.14);
}

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

.ifb-post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px;
  overflow: hidden;
  border-radius: var(--ifb-radius-lg);
  background: var(--ifb-white);
  box-shadow: var(--ifb-shadow);
}

.ifb-post-card-media {
  aspect-ratio: 1 / 0.8;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(45deg, rgba(223, 223, 223, 0.8) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(223, 223, 223, 0.8) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(223, 223, 223, 0.8) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(223, 223, 223, 0.8) 75%);
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}

.ifb-post-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.ifb-post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px 8px 10px;
}

.ifb-post-card-category {
  color: rgba(35, 77, 75, 0.82);
  font-size: 13px;
  font-weight: 500;
}

.ifb-post-card-title {
  margin: 0;
  color: var(--ifb-teal);
  font-size: clamp(20px, 1.55vw, 29px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ifb-post-card-title a {
  color: inherit;
  text-decoration: none;
}

.ifb-post-card-title a:hover,
.ifb-post-card-title a:focus-visible {
  color: var(--ifb-teal-dark);
}

.ifb-post-card-readmore {
  margin-top: auto;
  color: var(--ifb-purple-link);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ifb-post-card-readmore:hover,
.ifb-post-card-readmore:focus-visible {
  color: var(--ifb-teal);
}

.ifb-blog-empty {
  margin: 0;
  color: var(--ifb-text);
  font-size: 18px;
  text-align: center;
}

.ifb-blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.ifb-blog-pagination a,
.ifb-blog-pagination span {
  min-width: 34px;
  min-height: 34px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--ifb-teal);
  font-size: 14px;
  font-weight: 700;
}

.ifb-blog-pagination .current,
.ifb-blog-pagination .dots {
  color: var(--ifb-teal);
}

.ifb-blog-pagination a.prev,
.ifb-blog-pagination a.next {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  background: var(--ifb-teal);
  color: var(--ifb-white);
  font-size: 18px;
  line-height: 1;
}

.ifb-blog-pagination a:hover,
.ifb-blog-pagination a:focus-visible {
  color: var(--ifb-teal-dark);
}

.ifb-blog-pagination a.prev:hover,
.ifb-blog-pagination a.next:hover,
.ifb-blog-pagination a.prev:focus-visible,
.ifb-blog-pagination a.next:focus-visible {
  background: var(--ifb-lime);
  color: var(--ifb-teal);
}

.ifb-site-footer {
  margin-block-start: 0 !important;
  background: var(--ifb-teal-dark);
  color: var(--ifb-white);
}

.ifb-footer-shell {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr 0.9fr 1.15fr;
  align-items: start;
  gap: 48px;
  padding: 58px 0 50px;
}

.ifb-footer-brand img {
  display: block;
  width: auto;
  height: 70px;
}

.ifb-socials {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.ifb-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: transparent;
  transition: transform 160ms ease;
}

.ifb-socials a:hover,
.ifb-socials a:focus-visible {
  transform: translateY(-1px);
}

.ifb-socials img {
  display: block;
  width: 41px;
  height: 41px;
}

.ifb-socials a[aria-label="Instagram"] img {
  width: 24px;
  height: 24px;
  transform: none;
  padding-top: 0;
}

.ifb-socials a[aria-label="Instagram"] {
  background: var(--ifb-lime);
  overflow: hidden;
}

.ifb-footer-links,
.ifb-footer-legal {
  display: grid;
  align-content: start;
  gap: 14px;
  font-size: 17px;
  line-height: 18px;
  font-weight: 700;
}

.ifb-footer-links a,
.ifb-footer-legal a {
  color: #ffffff;
}

.ifb-footer-copy {
  max-width: 310px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
  text-align: right;
}

.ifb-footer-cta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 28px;
  justify-self: end;
}

.ifb-footer-cta .ifb-pill-button {
  min-width: 138px;
  min-height: 42px;
  padding: 12px 18px;
  border-radius: 33px;
  background: var(--ifb-lime);
  color: var(--ifb-teal);
  font-size: 14px;
  line-height: 1;
  box-shadow: none;
}

.ifb-footer-cta .ifb-pill-button:hover,
.ifb-footer-cta .ifb-pill-button:focus-visible {
  background: #ffffff;
  color: var(--ifb-teal);
}

.ifb-footer-meta-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 16px;
  line-height: 18px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.ifb-footer-meta-links a {
  color: rgba(255, 255, 255, 0.93);
  text-decoration: none;
}

.ifb-footer-meta-links span {
  display: inline-block;
  line-height: 1;
}

@media (max-width: 1100px) {
  .ifb-featured-section,
  .ifb-posts-section {
    padding: 42px 28px 34px;
  }

  .ifb-post-grid {
    gap: 22px;
  }

  .ifb-footer-shell {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 42px 0 34px;
  }

  .ifb-footer-brand {
    display: grid;
    justify-items: center;
  }

  .ifb-footer-links,
  .ifb-footer-legal,
  .ifb-footer-cta {
    justify-items: center;
    justify-self: center;
    text-align: center;
  }

  .ifb-footer-copy,
  .ifb-footer-meta-links {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .ifb-header-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ifb-nav {
    gap: 18px 22px;
  }

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

  .ifb-featured-section,
  .ifb-posts-section {
    padding: 36px 24px 28px;
  }
}

@media (max-width: 640px) {
  body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: min(100% - 28px, var(--ifb-max));
  }

  .ifb-header-shell,
  .ifb-blog-shell,
  .ifb-footer-shell {
    width: min(100% - 28px, var(--ifb-max));
  }

  .ifb-blog-page {
    padding-top: 20px;
  }

  .ifb-blog-title {
    max-width: 560px;
    font-size: clamp(32px, 11vw, 46px);
  }

  .ifb-featured-section,
  .ifb-posts-section {
    padding: 28px 18px 26px;
    border-radius: 24px;
  }

  .ifb-post-grid {
    grid-template-columns: 1fr;
  }

  .ifb-post-card {
    padding: 12px;
  }

  .ifb-footer-shell {
    grid-template-columns: 1fr;
  }

  .ifb-socials {
    justify-content: center;
    margin-top: 20px;
  }

  .ifb-footer-brand img {
    height: 74px;
  }
}

.ifb-single-page {
  padding: 20px 0 0;
}

.ifb-single-shell {
  width: min(100% - 48px, var(--ifb-max));
  margin: 0 auto;
}

.ifb-single-hero {
  position: relative;
  margin-bottom: 52px;
}

.ifb-single-hero-media {
  min-height: 458px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(45deg, rgba(223, 223, 223, 0.84) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(223, 223, 223, 0.84) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(223, 223, 223, 0.84) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(223, 223, 223, 0.84) 75%);
  background-size: 64px 64px;
  background-position: 0 0, 0 32px, 32px -32px, -32px 0;
}

.ifb-single-hero-media img {
  display: block;
  width: 100%;
  height: 458px;
  object-fit: cover;
}

.ifb-single-hero-copy {
  position: absolute;
  left: 68px;
  right: 68px;
  bottom: 28px;
  max-width: 840px;
  padding: 8px 10px 10px;
  background: rgba(247, 247, 244, 0.18);
}

.ifb-single-title {
  max-width: 820px;
  margin: 0 0 10px;
  color: #0c0d10;
  font-size: clamp(30px, 4.15vw, 50px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.ifb-single-intro {
  display: block !important;
  max-width: 740px;
  margin: 0;
  color: #121212;
  font-size: 13px;
  line-height: 1.24;
  font-weight: 500;
}

.ifb-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 338px;
  gap: 46px;
  align-items: start;
}

.ifb-single-article {
  color: #111111;
  font-size: 14px;
  line-height: 1.33;
}

.ifb-single-article > *:first-child {
  margin-top: 0;
}

.ifb-single-article p {
  display: block !important;
  margin: 0 0 20px;
  max-width: 720px;
}

.ifb-single-article h2,
.ifb-single-article h3 {
  display: block !important;
  max-width: 720px;
  margin: 32px 0 14px;
  color: var(--ifb-teal);
  font-size: clamp(24px, 2.55vw, 34px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.ifb-single-article h3 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.ifb-single-article ul,
.ifb-single-article ol {
  max-width: 720px;
  margin: 0 0 20px 22px;
  padding: 0;
}

.ifb-single-article li {
  margin-bottom: 5px;
}

.ifb-single-article strong {
  color: var(--ifb-teal);
}

.ifb-single-article img {
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 1.32 / 1;
  height: auto;
  margin: 22px 0 28px;
  border-radius: 20px;
  object-fit: cover;
}

.ifb-single-sidebar {
  display: grid;
  gap: 24px;
}

.ifb-sidebar-card {
  border-radius: 22px;
}

.ifb-share-card {
  padding: 26px 20px 22px;
  background: #6a55a0;
  color: #ffffff;
  text-align: center;
}

.ifb-sidebar-title {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.ifb-share-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.ifb-share-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
}

.ifb-share-icons img {
  display: block;
  width: 40px;
  height: 40px;
}

.ifb-share-icons a[aria-label="Instagram"] {
  background: var(--ifb-lime);
  overflow: hidden;
  position: relative;
}

.ifb-share-icons a[aria-label="Instagram"] img {
  width: 20px;
  height: 20px;
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(29%) sepia(18%) saturate(1316%) hue-rotate(236deg) brightness(92%)
    contrast(88%);
}

.ifb-newsletter-card {
  padding: 22px 20px 18px;
  background: #ffffff;
  border: 1px solid rgba(36, 60, 58, 0.08);
  box-shadow: 0 10px 28px rgba(36, 60, 58, 0.06);
}

.ifb-newsletter-icon {
  margin-bottom: 12px;
}

.ifb-newsletter-icon img {
  display: block;
  width: 62px;
  height: 62px;
}

.ifb-newsletter-title {
  margin: 0 0 10px;
  color: var(--ifb-teal);
  font-size: 19px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ifb-newsletter-copy {
  display: block !important;
  margin: 0 0 14px;
  color: #161616;
  font-size: 13px;
  line-height: 1.26;
}

.ifb-newsletter-form {
  display: grid;
  gap: 10px;
}

.ifb-newsletter-form label {
  color: var(--ifb-teal);
  font-size: 14px;
  font-weight: 700;
}

.ifb-newsletter-form input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 52px;
  border: 1px solid #cfcedd;
  border-radius: 999px;
  background: #e3e3f2;
  padding: 0 18px;
  font: inherit;
}

.ifb-newsletter-form button {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--ifb-lime);
  color: var(--ifb-teal);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ifb-help-card {
  padding: 28px 24px;
  background:
    linear-gradient(rgba(118, 163, 94, 0.48), rgba(118, 163, 94, 0.48)),
    var(--ifb-help-bg),
    linear-gradient(135deg, #8eb071 0%, #6f9461 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
}

.ifb-help-title {
  max-width: 240px;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ifb-help-card p {
  display: block !important;
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.3;
}

.ifb-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 46px;
  padding: 10px 20px;
  border: 2px solid #cbd66d;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ifb-teal);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ifb-single-featured {
  margin: 70px 0 96px;
  padding: 34px 36px 28px;
  border-radius: 32px;
  background: var(--ifb-lilac);
}

.ifb-single-featured .ifb-section-title {
  margin-bottom: 28px;
  font-size: clamp(24px, 2.7vw, 32px);
  line-height: 1.04;
}

.ifb-single-featured .ifb-post-grid {
  grid-template-columns: repeat(3, minmax(0, 392px));
  justify-content: center;
  gap: 18px;
}

.ifb-single-featured .ifb-post-card {
  min-height: 410px;
  padding: 10px;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(36, 60, 58, 0.06);
}

.ifb-single-featured .ifb-post-card-media {
  aspect-ratio: 1 / 0.64;
  border-radius: 12px;
}

.ifb-single-featured .ifb-post-card-media img {
  border-radius: 12px;
}

.ifb-single-featured .ifb-post-card-body {
  gap: 10px;
  padding: 14px 10px 10px;
}

.ifb-single-featured .ifb-post-card-category {
  display: none;
}

.ifb-single-featured .ifb-post-card-title {
  font-size: clamp(16px, 1.25vw, 22px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.ifb-single-featured .ifb-post-card-readmore {
  font-size: 12px;
}

@media (max-width: 1100px) {
  .ifb-single-layout {
    grid-template-columns: 1fr;
  }

  .ifb-single-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .ifb-single-featured .ifb-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ifb-single-hero-copy {
    left: 28px;
    right: 28px;
    bottom: 24px;
    max-width: none;
  }

  .ifb-single-sidebar {
    grid-template-columns: 1fr;
  }

  .ifb-single-article img,
  .ifb-single-article p,
  .ifb-single-article h2,
  .ifb-single-article h3,
  .ifb-single-article ul,
  .ifb-single-article ol {
    max-width: none;
  }

  .ifb-single-featured .ifb-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ifb-single-shell {
    width: min(100% - 28px, var(--ifb-max));
  }

  .ifb-single-page {
    padding-top: 20px;
  }

  .ifb-single-hero-media,
  .ifb-single-hero-media img {
    min-height: 320px;
    height: 320px;
  }

  .ifb-single-hero-copy {
    left: 20px;
    right: 20px;
    bottom: 18px;
    padding: 8px 10px 10px;
  }

  .ifb-single-title {
    font-size: clamp(32px, 9vw, 46px);
  }

  .ifb-single-intro {
    font-size: 16px;
  }

  .ifb-single-article {
    font-size: 16px;
  }

  .ifb-single-article h2,
  .ifb-single-article h3 {
    font-size: clamp(26px, 8vw, 38px);
  }

  .ifb-single-featured {
    margin: 56px 0 80px;
    padding: 28px 18px 26px;
    border-radius: 24px;
  }

  .ifb-single-featured .ifb-post-grid {
    grid-template-columns: 1fr;
  }
}
