body.sg-hub-listing,
body.sg-hub-404 {
  background: #fff;
  text-align: left;
}

body.sg-hub-listing .boby-bg,
body.sg-hub-listing .flat-breadcrumbs,
body.sg-hub-listing .breadcrumbs-list,
body.sg-hub-listing .NavXTbreadcrumbs-list,
body.sg-hub-listing .yoast_breadcrumb,
body.sg-hub-listing .sg-cat ~ .advertisement,
body.sg-hub-listing .content > .advertisement,
body.sg-hub-404 .boby-bg,
body.sg-hub-404 .flat-breadcrumbs,
body.sg-hub-404 .breadcrumbs-list,
body.sg-hub-404 .NavXTbreadcrumbs-list,
body.sg-hub-404 .yoast_breadcrumb,
body.sg-hub-404 .content > .advertisement {
  display: none !important;
}

body.sg-hub-listing .content,
body.sg-hub-404 .content {
  background: #fff;
  text-align: left;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  body.sg-hub-listing .sg-hubbar,
  body.sg-hub-404 .sg-hubbar {
    border-bottom: none;
  }
}

.sg-cat-head {
  border-bottom: 1px solid #f3f3f4;
}

.sg-cat-head-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 0;
}

.sg-cat-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 380;
  line-height: 20px;
  color: #444446;
}

.sg-cat-crumbs a {
  color: #444446;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sg-cat-crumbs a:hover {
  color: #da291c;
}

.sg-cat-crumbs-sep {
  color: #0f0f0f;
}

.sg-cat-crumbs-current,
.sg-cat-crumbs-static {
  color: #0f0f0f;
}

.sg-cat {
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 0 80px;
  color: #0f0f0f;
  text-align: left;
  font-family: var(--font-family-mi-sans-regular-330);
}

.sg-cat *,
.sg-cat *::before,
.sg-cat *::after {
  box-sizing: border-box;
}

.sg-cat-title {
  margin: 0 0 76px;
  font-size: 64px;
  line-height: 1.2;
  font-weight: 520;
  color: #0f0f0f;
}

.sg-cat.is-home {
  padding-top: 56px;
}

.sg-cat-featured {
  width: 100%;
  margin-bottom: 0;
}

/* The parent theme sets a global `p { padding-bottom: 10px }`
   (cortics/assets/css/style.css:156); cancel it under the featured
   article on every listing page. */
.sg-cat-featured .sg-cat-excerpt {
  padding-bottom: 0;
}

/* A tag/category page holding a single post renders only the featured
   article and never opens .sg-cat-list, so close it off here instead. */
.sg-cat-featured:last-child {
  display: block;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6e6e6;
}

.sg-cat-featured-media,
.sg-cat-item-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f3f4;
}

.sg-cat-featured-media {
  width: 100%;
  max-width: 1440px;
  aspect-ratio: 5 / 2;
  border-radius: 20px;
}

.sg-cat-featured-media img,
.sg-cat-item-media img,
.sg-cat-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sg-cat-featured:hover .sg-cat-featured-media img,
.sg-cat-featured:hover .sg-cat-featured-media .sg-cat-img,
.sg-cat-item:hover .sg-cat-item-media img,
.sg-cat-item:hover .sg-cat-item-media .sg-cat-img {
  transform: scale(1.06);
}

.sg-cat-img.is-empty {
  background: #ebebed;
}

.sg-cat-featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 16px;
}

.sg-cat-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.sg-cat-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-weight: 380;
  text-transform: uppercase;
  text-decoration: none;
}

.sg-cat-badge.is-featured {
  padding: 4px 8px;
  font-size: 16px;
  line-height: 22px;
  background: #da291c;
  color: #fff;
}

.sg-cat-item .sg-cat-badge {
  padding: 4px;
  font-size: 12px;
  line-height: 16px;
  background: #f3f3f4;
  color: #0f0f0f;
}

.sg-cat-date {
  font-size: 12px;
  font-weight: 330;
  line-height: 16px;
  color: #6e6e73;
}

.sg-cat-featured-meta .sg-cat-date {
  font-size: 16px;
  line-height: 24px;
}

.sg-cat-featured-title,
.sg-cat-featured-title.font-miSansDemiBold450 {
  margin: 0 0 16px;
  font-family: var(--font-family-mi-sans-demi-bold-450);
  font-size: 36px;
  line-height: 40px;
  font-weight: 450;
}

.sg-cat-featured-title a,
.sg-cat-item-title a {
  color: #0f0f0f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sg-cat-featured-title a:hover,
.sg-cat-item-title a:hover,
.sg-cat-featured:hover .sg-cat-featured-title a,
.sg-cat-item:hover .sg-cat-item-title a {
  color: #da291c;
}

.sg-cat-excerpt {
  margin: 0;
  font-size: 16px;
  font-weight: 330;
  line-height: 1.5;
  color: #6e6e73;
}

.sg-cat-excerpt a {
  color: inherit;
  text-decoration: none;
}

.sg-cat-featured .sg-cat-excerpt {
  line-height: 24px;
}

.sg-cat-list {
  margin-top: 104px;
}

.sg-cat-item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
  border-top: 1px solid #e6e6e6;
}

.sg-cat-item:first-child {
  border-top: none;
  padding-top: 0;
}

.sg-cat-item:last-child {
  border-bottom: 1px solid #e6e6e6;
}

.sg-cat-item-media {
  width: 406px;
  flex: none;
  aspect-ratio: 2 / 1;
}

.sg-cat-item-body {
  min-width: 0;
  flex: 1;
  padding-top: 0;
}

.sg-cat-item-title,
.sg-cat-item-title.font-miSansSemiBold520,
.sg-cat-item-title.font-miSansDemiBold450 {
  margin: 0 0 12px;
  font-family: var(--font-family-mi-sans-demi-bold-450);
  font-size: 24px;
  font-weight: 450;
  font-style: normal;
  line-height: 36px;
  letter-spacing: 0;
}

.sg-cat-item .sg-cat-excerpt {
  font-family: var(--font-family-mi-sans-regular-330);
  font-size: 16px;
  font-weight: 330;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 0;
}

.sg-cat-empty {
  margin: 40px 0;
  color: #86868b;
}

.sg-cat-pager {
  margin-top: 64px;
}

.sg-cat-pager ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-cat-pager .page-numbers li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-cat-pager-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-cat-pager-numbers li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-cat-pager a.page-numbers,
.sg-cat-pager span.page-numbers {
  display: flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 330;
  line-height: 1.4;
  color: #86868b;
  text-decoration: none;
  background: none;
}

.sg-cat-pager span.page-numbers.current {
  color: #0f0f0f;
  font-weight: 380;
}

.sg-cat-pager span.page-numbers.dots {
  min-width: auto;
  padding: 0 2px;
  color: #86868b;
}

.sg-cat-pager .prev.page-numbers,
.sg-cat-pager .next.page-numbers {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.sg-cat-pager .page-numbers.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.sg-cat-pager-icon {
  display: flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
}

.sg-cat-pager-icon.is-prev {
  transform: rotate(180deg);
}

.sg-cat-pager-icon svg {
  display: block;
}

/* 404 page ---------------------------------------------------------------- */

.sg-404 {
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 0 140px;
  color: #0f0f0f;
  text-align: center;
  font-family: var(--font-family-mi-sans-regular-330);
}

.sg-404 *,
.sg-404 *::before,
.sg-404 *::after {
  box-sizing: border-box;
}

/* The parent theme aligns every <p> left (cortics/assets/css/style.css:152),
   which beats the centering inherited from .sg-404. */
.sg-404-code {
  margin: 0 0 16px;
  padding-bottom: 0;
  text-align: center;
  font-size: 64px;
  line-height: 1.2;
  font-weight: 520;
  color: #0f0f0f;
}

/* Body copy matches the listing excerpt: MiSans regular 330. */
.sg-404-title {
  max-width: 640px;
  margin: 0 auto 40px;
  font-family: var(--font-family-mi-sans-regular-330);
  font-size: 16px;
  line-height: 24px;
  font-weight: 330;
  color: #6e6e73;
}

.sg-404-search {
  max-width: 480px;
  margin: 0 auto;
}

.sg-404 .search-form {
  display: flex;
  gap: 12px;
}

/* cortics/assets/js/scripts.js:882 injects an absolutely positioned icon
   after the field; the hub form uses its own submit button instead. */
.sg-404 .search-icon {
  display: none;
}

.sg-404 .search-form label {
  flex: 1 1 auto;
  margin: 0;
}

/* The parent theme overlays the submit button on the field
   (cortics/assets/css/style.css:549); this form is a plain flex row. */
.sg-404 .search-field {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  font-family: var(--font-family-mi-sans-regular-330);
  font-size: 14px;
  font-weight: 330;
  line-height: 20px;
  color: #0f0f0f;
}

.sg-404 .search-field:focus {
  outline: none;
  border-color: #0f0f0f;
}

.sg-404 .search-submit {
  position: static;
  flex: 0 0 auto;
  width: auto;
  height: 48px;
  padding: 0 28px;
  text-indent: 0;
  border: 0;
  border-radius: 999px;
  background: #0f0f0f;
  font-family: var(--font-family-mi-sans-medium-380);
  font-size: 14px;
  font-weight: 380;
  line-height: 20px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sg-404 .search-submit:hover {
  background: #da291c;
}

@media (max-width: 767px) {
  .sg-cat-head {
    display: none;
  }

  /* #page-nav pads the hubbar by 16px (max-xl:px-4); cancel it so the
     hubbar's border-bottom runs edge to edge, unlike the inset post rules. */
  body.sg-hub-listing .sg-hubbar,
  body.sg-hub-404 .sg-hubbar {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .sg-cat {
    padding: 20px 0 48px;
  }

  .sg-404 {
    padding: 48px 0 88px;
  }

  .sg-404-code {
    font-family: var(--font-family-mi-sans-demi-bold-450);
    font-size: 40px;
    font-weight: 450;
  }

  .sg-404-title {
    margin-bottom: 32px;
    font-size: 14px;
    line-height: 22px;
  }

  .sg-404 .search-form {
    flex-wrap: wrap;
  }

  .sg-404 .search-submit {
    width: 100%;
  }

  .sg-cat.is-home {
    padding-top: 16px;
  }

  .sg-cat-title,
  .sg-cat-title.font-miSansBold630 {
    margin-bottom: 32px;
    font-family: var(--font-family-mi-sans-demi-bold-450);
    font-size: 40px;
    font-weight: 450;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .sg-cat-featured-media {
    width: 100%;
    height: auto;
    aspect-ratio: 343 / 172;
    border-radius: 8px;
  }

  .sg-cat-featured-meta {
    gap: 10px;
    margin: 12px 0;
  }

  .sg-cat-featured-meta .sg-cat-date {
    font-size: 12px;
    line-height: 18px;
  }

  .sg-cat-badge.is-featured {
    padding: 4px;
    font-size: 11px;
    line-height: 14px;
  }

  .sg-cat-featured-title,
  .sg-cat-featured-title.font-miSansDemiBold450 {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 26px;
    letter-spacing: -0.02em;
  }

  .sg-cat-excerpt {
    font-size: 12px;
    line-height: 18px;
  }

  .sg-cat-featured .sg-cat-excerpt {
    line-height: 18px;
  }

  .sg-cat-list {
    margin-top: 48px;
  }

  .sg-cat-item {
    flex-direction: column;
    gap: 12px;
    padding: 20px 0 12px;
    border-top-color: #e1e1e4;
  }

  .sg-cat-item:last-child,
  .sg-cat-featured:last-child {
    border-bottom-color: #e1e1e4;
  }

  /* Lone featured article gets the same box spacing as a list item. */
  .sg-cat-featured:last-child {
    padding: 20px 0 12px;
  }

  .sg-cat-item:first-child {
    padding-top: 0;
  }

  .sg-cat-item-media {
    width: 100%;
  }

  .sg-cat-item .sg-cat-badge {
    font-size: 11px;
    line-height: 14px;
    color: #121212;
  }

  .sg-cat-date {
    line-height: 18px;
  }

  .sg-cat-item-title,
  .sg-cat-item-title.font-miSansDemiBold450 {
    font-size: 22px;
    line-height: 26px;
  }

  .sg-cat-item .sg-cat-excerpt {
    font-size: 12px;
    line-height: 18px;
    padding-bottom: 0;
  }
}

@media (min-width: 1200px) {
  body.sg-hub-listing .content,
  body.sg-hub-404 .content {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 768px) {
  .sg-cat-title,
  .sg-cat-featured-title,
  .sg-cat-featured .sg-cat-excerpt,
  .sg-cat-item-title,
  .sg-cat-item .sg-cat-excerpt {
    max-width: 800px;
  }
}
